Hello guys,
I have added a web reference from a WSDL file (system file path e.g. C:\MyWsdl.wsdl)
It generated the certain classes and other files and now when I call its Open method the state of the service client is open. Meaning, it works fine.
I have this newly generated data in the web.config:
<endpoint address="https://preprodservices.ws.ch/ss/SoapServiceV1"
binding="customBinding" bindingConfiguration="SoapServiceBindingV1_0"
contract="ServiceReference1.SoapServicePortTypeV1_0" name="SoapServicePortV1_0" />My question is how do I consume this same WS without adding a reference. Rather I want to call it directly using the HttpWebRequest and response classes.
When I try I get error 500.
Any suggestions are welcome and greatly appreciated