title: how to consume webservices from asp.net mvc application
body: <p>There is a external web services.</p>
  
  <p>I can invoke it from my winform application, but I cannot invoke it from my asp.net mvc web application.</p>
  
  <p>Error message is like this :</p>
  
  <pre><code>System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at http://ihexds.nist.gov:9080/tf6/services/xdsrepositoryb that could accept the message. This is often caused by an incorrect address or SOAP action.
  </code></pre>
  
  <p>Is there anything to configure for my mvc web application to consume it?</p>
  
  <p>Edit :</p>
  
  <p>following is my code to invoke web services</p>
  
  <pre><code>WCF.Message msgInput, msgOutput;
  msgInput = WCF.Message.CreateMessage(MESSAGE_VERSION, PROVIDEANDREGISTERDOCUMENTSETB_WSAACTION, request);
  msgOutput = WCF.Message.CreateMessage(WCF.MessageVersion.Soap12WSAddressing10, "");
  
  string endpointName = GetRepositoryEndPointName();
  XDSRepository.XDSRepositoryClient client = new XDSRepository.XDSRepositoryClient(endpointName);
  
  msgOutput = client.ProvideAndRegisterDocumentSet(msgInput);
  </code></pre>