PFranchise
PFranchise

Reputation: 6752

what is the simplest way to send and receive a basic soap message from C#?

I know the information needed for this question is readily available, but it seems like there are several options and I just need to send a very simple message. I was planning on just building a string containing the entire SOAP message and sending that. But every example I come across seems like they are doing quite a bit more. I don't need to set up a service, I just need to communicate with one. I will only need to retrieve one element from the returned message.

Do I need to create a .amx file? Do I need to do any of the other visual studio specific things or can I just include some library and send my message?

Upvotes: 0

Views: 108

Answers (1)

flup
flup

Reputation: 27104

I'd recommend using WCF since it does everything for you. In Visual Studio, add a Service Reference to the project, it'll generate a client proxy for you.

Outside Visual Studio, you can use svcutil.exe to achieve the same thing.

Upvotes: 2

Related Questions