[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTTP/1.1 500 Internal Server Error - ContractFilter mismatch



Hi David,

Your WSDL expects the following as a SoapAction:
  https://ws.towersperrin.com/services/IGeocodeService/GeocodeRequest

Your code, however, sends this (note the difference):
  https://ws.towersperrin.com/IGeocodeService/GeocodeRequest

The web service is taking this SoapAction and using it to determine 
which action to take.  Since it doesn't recognize the SoapAction you're 
sending, it doesn't know what to do... so it responds with "Action 
cannot be processed" to tell you that it doesn't understand your 
SoapAction.

Please make your SoapAction match the one in the WSDL, and try again.

On 1/3/2011 12:54 PM, David Baugh wrote:
> Hi Scott, the odds are stacked high ! OK here's the WSDL.
>
> Please be advised that this is a business partner of ours, that checks the requesting IP-address for security purposes, so if you were to attempt contact, it may kick you out.
>
> Thanks so much ...
>
> David
>
> START WSDL:
>
> <?xml version="1.0" encoding="utf-8" ?>
> -<wsdl:definitions name="GeocodeService" targetNamespace="https://ws.towersperrin.com/services/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; xmlns:tns="https://ws.towersperrin.com/services/"; xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"; xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"; xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy"; xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"; xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract"; xmlns:wsa10="http://www.w3.org/2005/08/addressing"; xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"; xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata";>
> -<wsdl:types>
> -<xsd:schema targetNamespace="https://ws.towersperrin.com/services/Imports";>
>    <xsd:import schemaLocation="http://74.208.111.150/CATservicesBETA/GeocodeService/GeocodeService.svc?xsd=xsd0"; namespace="https://ws.towersperrin.com/services/"; />
>    <xsd:import schemaLocation="http://74.208.111.150/CATservicesBETA/GeocodeService/GeocodeService.svc?xsd=xsd1"; namespace="http://schemas.microsoft.com/2003/10/Serialization/"; />
>    <xsd:import schemaLocation="http://74.208.111.150/CATservicesBETA/GeocodeService/GeocodeService.svc?xsd=xsd2"; namespace="http://schemas.datacontract.org/2004/07/GeocodeServicePovider"; />
>    <xsd:import schemaLocation="http://74.208.111.150/CATservicesBETA/GeocodeService/GeocodeService.svc?xsd=xsd3"; namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays"; />
>    </xsd:schema>
>    </wsdl:types>
> -<wsdl:message name="IGeocodeService_MakeSearchRequest_InputMessage">
>    <wsdl:part name="parameters" element="tns:MakeSearchRequest" />
>    </wsdl:message>
> -<wsdl:message name="IGeocodeService_MakeSearchRequest_OutputMessage">
>    <wsdl:part name="parameters" element="tns:MakeSearchRequestResponse" />
>    </wsdl:message>
> -<wsdl:message name="IGeocodeService_GeocodeRequestByFulldAddress_InputMessage">
>    <wsdl:part name="parameters" element="tns:GeocodeRequestByFulldAddress" />
>    </wsdl:message>
> -<wsdl:message name="IGeocodeService_GeocodeRequestByFulldAddress_OutputMessage">
>    <wsdl:part name="parameters" element="tns:GeocodeRequestByFulldAddressResponse" />
>    </wsdl:message>
> -<wsdl:message name="IGeocodeService_GeocodeRequest_InputMessage">
>    <wsdl:part name="parameters" element="tns:GeocodeRequest" />
>    </wsdl:message>
> -<wsdl:message name="IGeocodeService_GeocodeRequest_OutputMessage">
>    <wsdl:part name="parameters" element="tns:GeocodeRequestResponse" />
>    </wsdl:message>
> -<wsdl:message name="IGeocodeService_ReverseGeocodeRequest_InputMessage">
>    <wsdl:part name="parameters" element="tns:ReverseGeocodeRequest" />
>    </wsdl:message>
> -<wsdl:message name="IGeocodeService_ReverseGeocodeRequest_OutputMessage">
>    <wsdl:part name="parameters" element="tns:ReverseGeocodeRequestResponse" />
>    </wsdl:message>
> -<wsdl:message name="IGeocodeService_ResponseXML_InputMessage">
>    <wsdl:part name="parameters" element="tns:ResponseXML" />
>    </wsdl:message>
> -<wsdl:message name="IGeocodeService_ResponseXML_OutputMessage">
>    <wsdl:part name="parameters" element="tns:ResponseXMLResponse" />
>    </wsdl:message>
> -<wsdl:message name="IGeocodeService_GetImageryMetadata_InputMessage">
>    <wsdl:part name="parameters" element="tns:GetImageryMetadata" />
>    </wsdl:message>
> -<wsdl:message name="IGeocodeService_GetImageryMetadata_OutputMessage">
>    <wsdl:part name="parameters" element="tns:GetImageryMetadataResponse" />
>    </wsdl:message>
> -<wsdl:portType name="IGeocodeService">
> -<wsdl:operation name="MakeSearchRequest">
>    <wsdl:input wsaw:Action="https://ws.towersperrin.com/services/IGeocodeService/MakeSearchRequest"; message="tns:IGeocodeService_MakeSearchRequest_InputMessage" />
>    <wsdl:output wsaw:Action="https://ws.towersperrin.com/services/IGeocodeService/MakeSearchRequestResponse"; message="tns:IGeocodeService_MakeSearchRequest_OutputMessage" />
>    </wsdl:operation>
> -<wsdl:operation name="GeocodeRequestByFulldAddress">
>    <wsdl:input wsaw:Action="https://ws.towersperrin.com/services/IGeocodeService/GeocodeRequestByFulldAddress"; message="tns:IGeocodeService_GeocodeRequestByFulldAddress_InputMessage" />
>    <wsdl:output wsaw:Action="https://ws.towersperrin.com/services/IGeocodeService/GeocodeRequestByFulldAddressResponse"; message="tns:IGeocodeService_GeocodeRequestByFulldAddress_OutputMessage" />
>    </wsdl:operation>
> -<wsdl:operation name="GeocodeRequest">
>    <wsdl:input wsaw:Action="https://ws.towersperrin.com/services/IGeocodeService/GeocodeRequest"; message="tns:IGeocodeService_GeocodeRequest_InputMessage" />
>    <wsdl:output wsaw:Action="https://ws.towersperrin.com/services/IGeocodeService/GeocodeRequestResponse"; message="tns:IGeocodeService_GeocodeRequest_OutputMessage" />
>    </wsdl:operation>
> -<wsdl:operation name="ReverseGeocodeRequest">
>    <wsdl:input wsaw:Action="https://ws.towersperrin.com/services/IGeocodeService/ReverseGeocodeRequest"; message="tns:IGeocodeService_ReverseGeocodeRequest_InputMessage" />
>    <wsdl:output wsaw:Action="https://ws.towersperrin.com/services/IGeocodeService/ReverseGeocodeRequestResponse"; message="tns:IGeocodeService_ReverseGeocodeRequest_OutputMessage" />
>    </wsdl:operation>
> -<wsdl:operation name="ResponseXML">
>    <wsdl:input wsaw:Action="https://ws.towersperrin.com/services/IGeocodeService/ResponseXML"; message="tns:IGeocodeService_ResponseXML_InputMessage" />
>    <wsdl:output wsaw:Action="https://ws.towersperrin.com/services/IGeocodeService/ResponseXMLResponse"; message="tns:IGeocodeService_ResponseXML_OutputMessage" />
>    </wsdl:operation>
> -<wsdl:operation name="GetImageryMetadata">
>    <wsdl:input wsaw:Action="https://ws.towersperrin.com/services/IGeocodeService/GetImageryMetadata"; message="tns:IGeocodeService_GetImageryMetadata_InputMessage" />
>    <wsdl:output wsaw:Action="https://ws.towersperrin.com/services/IGeocodeService/GetImageryMetadataResponse"; message="tns:IGeocodeService_GetImageryMetadata_OutputMessage" />
>    </wsdl:operation>
>    </wsdl:portType>
> -<wsdl:binding name="BasicHttpBinding_IGeocodeService" type="tns:IGeocodeService">
>    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; />
> -<wsdl:operation name="MakeSearchRequest">
>    <soap:operation soapAction="https://ws.towersperrin.com/services/IGeocodeService/MakeSearchRequest"; style="document" />
> -<wsdl:input>
>    <soap:body use="literal" />
>    </wsdl:input>
> -<wsdl:output>
>    <soap:body use="literal" />
>    </wsdl:output>
>    </wsdl:operation>
> -<wsdl:operation name="GeocodeRequestByFulldAddress">
>    <soap:operation soapAction="https://ws.towersperrin.com/services/IGeocodeService/GeocodeRequestByFulldAddress"; style="document" />
> -<wsdl:input>
>    <soap:body use="literal" />
>    </wsdl:input>
> -<wsdl:output>
>    <soap:body use="literal" />
>    </wsdl:output>
>    </wsdl:operation>
> -<wsdl:operation name="GeocodeRequest">
>    <soap:operation soapAction="https://ws.towersperrin.com/services/IGeocodeService/GeocodeRequest"; style="document" />
> -<wsdl:input>
>    <soap:body use="literal" />
>    </wsdl:input>
> -<wsdl:output>
>    <soap:body use="literal" />
>    </wsdl:output>
>    </wsdl:operation>
> -<wsdl:operation name="ReverseGeocodeRequest">
>    <soap:operation soapAction="https://ws.towersperrin.com/services/IGeocodeService/ReverseGeocodeRequest"; style="document" />
> -<wsdl:input>
>    <soap:body use="literal" />
>    </wsdl:input>
> -<wsdl:output>
>    <soap:body use="literal" />
>    </wsdl:output>
>    </wsdl:operation>
> -<wsdl:operation name="ResponseXML">
>    <soap:operation soapAction="https://ws.towersperrin.com/services/IGeocodeService/ResponseXML"; style="document" />
> -<wsdl:input>
>    <soap:body use="literal" />
>    </wsdl:input>
> -<wsdl:output>
>    <soap:body use="literal" />
>    </wsdl:output>
>    </wsdl:operation>
> -<wsdl:operation name="GetImageryMetadata">
>    <soap:operation soapAction="https://ws.towersperrin.com/services/IGeocodeService/GetImageryMetadata"; style="document" />
> -<wsdl:input>
>    <soap:body use="literal" />
>    </wsdl:input>
> -<wsdl:output>
>    <soap:body use="literal" />
>    </wsdl:output>
>    </wsdl:operation>
>    </wsdl:binding>
> -<wsdl:service name="GeocodeService">
> -<wsdl:port name="BasicHttpBinding_IGeocodeService" binding="tns:BasicHttpBinding_IGeocodeService">
>    <soap:address location="http://74.208.111.150/CATservicesBETA/GeocodeService/GeocodeService.svc"; />
>    </wsdl:port>
>    </wsdl:service>
>    </wsdl:definitions>
>
> END WSDL
>
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
> Sent: Monday, January 03, 2011 10:25 AM
> To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: HTTP/1.1 500 Internal Server Error - ContractFilter mismatch
>
> Hi David,
>
> Please provide the WSDL for this web service?  That is the document that describes how the web service works -- and since we haven't seen that, I don't see how we could possibly know what you're supposed to be sending?
>
> I guess if someone else here might've used the same service, they'd know... but what are the odds?
>
> Please post the WSDL, thanks!
>
>
> On 1/3/2011 11:56 AM, David Baugh wrote:
>>   .. this web-service has .svc file at an http address, but the soap
>> action is located at a different url , which is an https
>>
>> Does this matter? Is the overriding factor the .svc address?
>>
>> If you look at the error message in the log, it relates to the soap
>> action, which is my reason for thinking it might be related to ssl...
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
>

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------