I have to connect to a third party web service that provides no wsdl nor asmx. The url of the service is just http://server/service.soap
I have read this article about raw services calls, but I'm not sure if this is what I'm looking for.
Also, I've asked for wsdl files, but being told that there are none (and there won't be).
I'm using C# with .net 2.0, and can't upgrade to 3.5 (so no WCF yet). I think that third party is using java, as that's the example they have supplied.
Thanks in advance!
UPDATE Get this response when browsing the url:
<SOAP-ENV:Envelope>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>
Cannot find a Body tag in the enveloppe
</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Best Answer
Well, I finally got this to work, so I'll write here the code I'm using. (Remember, .Net 2.0, and no wsdl to get from web service).
First, we create an HttpWebRequest:
Next, we make a call to the webservice, passing along all values needed. As I'm reading the soap envelope from a xml document, I'll handle the data as a StringDictionary. Should be a better way to do this, but I'll think about this later:
So, that's all. If anybody thinks that GetSoapXml must be added to the answer, I'll write it down.