Wednesday, January 4, 2012

Writing a SOAP request programmatically in C# to call WCF web service.

I recently asked to write a SOAP request programmatically in C# to call a WCF Web service. It's pretty straight forward. I wrote it using the HttpWebRequest object which is available in .Net. You just have to pass the xml string and provide some properties to the HttpWebRequest object. Following is the code I used...



2 comments:

  1. how i can read its actual data, i mean am using this for FedEx CreateShipment Webservicethe actual result should be a pdf format,

    ReplyDelete
  2. You can get the Pdf stream to a memory stream.

    ReplyDelete