Consuming Web Services - Confusion on Setup

I recently added a remote WSDL file for a web service to my app_webreferences folder.

I can see all the objects in that WSDL file - however, the problem is that the company that i'm integrating with sent me two urls.

  1. a wsdl:
  2. an endpoint:

So - when I added the app_webreference I used the first url - it worked, added it to project.

I then proceeded to setup my bindings as such:

  <binding name="QueueWebServiceBinding">
    <security mode="TransportWithMessageCredential">
      <message clientCredentialType="UserName" />

My client endpoint looks like this:

  <endpoint address=""
    binding="wsHttpBinding" bindingConfiguration="QueueWebServiceBinding"
    contract="MyWebService" name="QueueWebServicePort" />

The thing is, I cannot for the life of me get this to work. I'm not sure where I should use the endpoint url (#2) in any of this. It seems that when I switch it out in the endpoint address (#2) above I receive a response of:

...<env:Fault..... does not contain operation meta data for ... </env:Fault>...

I'm really confused on how to set this all up.

Another thing to note, they do require authentication... so my actual code looks something like this...

MyWebServiceClient client = new MyWebServiceClient();
client.ClientCredentials.UserName.UserName = "username";
client.ClientCredentials.UserName.Password = "password";

var t = client.doSomething();

I've been googling/searching stackoverflow for the past few hours but have had little success figuring out the right way to set this all up.

Appreciate any help.


The first endpoint is for the WSDL. The second endpoint is for the actual service itself. So you need to change your endpoint in your config file as follows:

  <endpoint address=""
            contract="MyWebService" name="QueueWebServicePort" />

Since you've already tried switching out the endpoint, try using the second endpoint to add the service reference and see if that works (if you haven't already).

If neither of those work, then I'd suggest talking to the vendor's support staff to see if they can help, since they should know everything you need to do to access the service.

Need Your Help

Equivalent of git log command for Heroku

git heroku

I am wondering if there is an equivalent of git log for Heroku that shows the push history on heroku remote.

Dependency Walker Not Showing All the Depended Dll

unmanaged fortran dependency-walker

I have a fortran dll, and I want to know the assemblies that it depends on for redistribution purpose.