views:

340

answers:

4

i need to visit a secure web service, every request in the header need to carry a token.

i know the endpoint to the web service, i also know how to create the token.

but i cannot see the WSDL for the webservice.

is there a way in C#, to create a soap client, without the WSDL file.

+3  A: 

A SOAP client is simply an HTTP client with more stuff in it. See the HttpWebRequest class. You'll then have to create your own SOAP message, perhaps using XML Serialization.

John Saunders
A: 

You could create your own service, expose it to have a WSDL and then generate the client from that... kind of the long way.

Lucas B
A: 

Can you ask the developers of the web service to send you the WSDL and XSD file(s) by email? If so, you can dump the files in a folder and then add a Service Reference using the WSDL on your hard disk.

Junto