0

我的客户有一些外部服务,我们通过服务引用使用 SOAP 请求访问这些服务。它以前有效(并且仍然在测试环境中有效),但是在将生产服务从 www6.client.org/services.client.org/Personify/CustomerInformation.svc 移动到 www6.client.org:5000/services.client 之后。 org/Personify/CustomerInformation.svc,他们不再工作:

Error in OrganizationalLogin: There was no endpoint listening at https://www6.client.org:5000/services.client.org/Personify/CustomerInformation.svc that could accept the message. 
This is often caused by an incorrect address or SOAP action. 
See InnerException, if present, for more details.; 

我可以在我的浏览器中点击 URL,并且看到列出的我正在尝试使用的方法:

<wsdl:operation name="AuthenticateUserByOrderNumber" parameterOrder="orderNumber status">
  <wsdl:input wsaw:Action="http//services.client.org/CustomerInformation/AuthenticateUserByOrderNumber" message="tns:CustomerInformation_AuthenticateUserByOrderNumber_InputMessage" />
  <wsdl:output wsaw:Action="http//services.client.org/CustomerInformation/AuthenticateUserByOrderNumber" message="tns:CustomerInformation_AuthenticateUserByOrderNumber_OutputMessage" />
</wsdl:operation>

<wsdl:operation name="AuthenticateUserByOrderNumber">
  <soap:operation soapAction="http//services.client.org/CustomerInformation/AuthenticateUserByOrderNumber" style="rpc" />
  <wsdl:input>
    <soap:body use="literal" namespace="http//services.client.org/CustomerInformation" />
  </wsdl:input>
  <wsdl:output>
    <soap:body use="literal" namespace="http//services.client.org/CustomerInformation" />
  </wsdl:output>
</wsdl:operation>

这似乎与我们的(工作)测试环境完全相同;唯一的区别是它位于 www6.client.org:5000 而不是 www16.client.org。

然后,在 Reference.cs 中:

[System.ServiceModel.OperationContractAttribute(Action="http//services.client.org/CustomerInformation/AuthenticatUserByOrderNumber", ]
Client.Foundation.Membership.iftService.AuthenticateUserByOrderNumberResponse AuthenticateUserByOrderNumber(Client.Foundation.Membership.clientService.AuthenticateUserByOrderNumberRequest request);
    

同样,https://www6.client.org:5000/services.ift.org/Personify/ CustomerInformation.svc ?singleWsdl和https://www16.client.org/services.ift之间似乎没有任何区别.org/Personify/CustomerInformation.svc?singleWsdl所以我想知道这是否是端口问题以及如何解决?

4

0 回答 0