I am connecting a solution to a WCF SOAP based web service. The URL is in the format:
However when I add the reference the configuration comes up with the following:
<client>
<endpoint address="http://upload.pete.vls.com/api/HmlApi.svc/soap"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IHmlApi"
contract="ServiceReference1.IHmlApi" name="BasicHttpBinding_IHmlApi" />
</client>
Im confused as to why when I add the reference with /soap/ on the end it doesnt work. But when I dont add it, the ‘add reference’ feature finds the service and adds it with a /soap/ anyway.
The URL you are entering (without the
soappart) includes information on what types of service transport are offered. VS is choosingsoapfrom that, and saving the proper endpoint address in the config.That end URL would not be correct for what is being asked for when you are prompted, though. Because it’s expecting a URL with information on the service – not the actual endpoint that will eventually get used.