ltgaxkeh
How to consume an ASP.NET C# Web Service in Elixir?
Hi, I’m new in Elixir and studying it right now. Is there a way to consume an ASP.NET C# web service? I would gladly appreciate if you can assist me step by step.
Most Liked
sribe
“Web method” is probably the URL, and the parameter you posted looks like it would be the body, with a content-type header of application/json. So build a URL with the web method, add the content type header, make a POST with that JSON as the body.
But really, we can only make educated guesses. Ultimately you can try our guesses, and they work, or you have to dig into the documentation of the target API more. (Feeling free of course to post follow-up questions if you don’t understand those docs.)
lalo2302
Hi!
AFAIK ASP.NET web services use SOAP for communication, which is different from JSON. You can’t just pass the body on a request with the Posion library (maybe you can, I’m not certain about this)
The easiest way to do it is to use detergentex library. Check its read me, you basically need 3 things. The url, the web method and the parameters as a list.
I hope this helps ![]()
ltgaxkeh
Hi guys. I was now able to consume the web service that I made using HTTPoison. I only lacked configuration of my web service in order to be called by a get request. Thanks for the help guys! I truly appreciate it.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









