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

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



   I guess not,


   ..I'm relatively inexperienced with XML processes and the soap action
   threw me off. Although it is now working, due to incorrect
   identification of the path to the soap action, I'm unsure of why the
   soap action was allowed to execute, being located at an https address.


   I'd welcome any educational  discussion on the subject, or can anyone
   point me in the direction of some good reading on the subject?


   Much obliged,


   -David.



   From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Magne
   Kofoed
   Sent: Monday, January 10, 2011 12:49 AM
   To: HTTPAPI and FTPAPI Projects
   Subject: SV: HTTP/1.1 500 Internal Server Error - ContractFilter
   mismatch


   Hi,


   are you really using ssl?

   The soap action uses https, but your end-point url has http.

   There is no https init in the log file.

   Or am I missing something here?


   Best regards,

   Magne



   ______________________________________________________________________

   Fra: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx på vegne av David Baugh
   Sendt: fr 31.12.2010 02:13
   Til: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
   Emne: HTTP/1.1 500 Internal Server Error - ContractFilter mismatch

   Scott,
   I'm trying to access a WCF web service which uses SSL and getting a
   ContractFilter Mismatch on the SOAPAction. Here's my source code,
   followed by the log. Has anyone had any similar experience? I'm on
   V5R4 and have installed HTTP-API with SSL. I ran it in SOAPUI without
   a problem. Please help.
   Thanks,
   David.
   SOAP =
    '<?xml version="1.0" encoding="utf-8" ?>'
   +'<soapenv:Envelope'
   +' xmlns:soapenv="[1]http://schemas.xmlsoap.org/soap/envelope/";'
   +' xmlns:ser="[2]https://ws.towersperrin.com/services/";>'
   +'  <soapenv:Header/>'
   +'  <soapenv:Body>'
   +'     <ser:GeocodeRequest>'
   +'        <ser:StreetAddress>999 Liberty Street</ser:StreetAddress>'
   +'        <ser:City>Urbana</ser:City>'
   +'        <ser:State>IL</ser:State>'
   +'        <ser:ZipCode>61822</ser:ZipCode>'
   +'     </ser:GeocodeRequest>'
   +'  </soapenv:Body>'
   +' </soapenv:Envelope>';
   http_debug(*ON);
   http_xproc( HTTP_POINT_ADDL_HEADER
             : %paddr(Add_SOAPACTION) );
   rc = http_url_post_xml(
   '[3]http://localligence.net/CATservicesBETA/GeocodeService/+
                                        GeocodeService.svc'
                     : %addr(SOAP) + 2
                     : %len(SOAP)
                     : *NULL
                     : %paddr(Incoming)
                     : %addr(resp)
                     : HTTP_TIMEOUT
                     : HTTP_USERAGENT
                     : 'text/xml; charset=utf-8');
   .
   .
   .
   P Add_SOAPACTION  B
   D Add_SOAPACTION  PI
   D   Header                    1024A   varying
   D   UserData                      *   value
    /free
       Header = 'SOAPAction: '
             +
   '"[4]https://ws.towersperrin.com/IGeocodeService/GeocodeRequest "'
              + x'0d25';
    /end-free
   P                 E
   LOG FILE:
   HTTPAPI Ver 1.23 released 2008-04-24
   OS/400 Ver V5R4M0
   http_persist_open(): entered
   http_long_ParseURL(): entered
   DNS resolver retrans: 2
   DNS resolver retry  : 30
   DNS resolver options: x'00000136'
   DNS default domain: DEANSHOMER.COM
   DNS server found: 192.168.1.1
   DNS server found: 10.10.9.9
   http_persist_post(): entered
   http_long_ParseURL(): entered
   do_post(): entered
   POST /CATservicesBETA/GeocodeService/GeocodeService.svc HTTP/1.1
   Host: localligence.net
   User-Agent: http-api/1.23
   Content-Type: text/xml; charset=utf-8
   Expect: 100-continue
   Content-Length: 465
   SOAPAction:
   "[5]https://ws.towersperrin.com/IGeocodeService/GeocodeRequest";
   recvresp(): entered
   HTTP/1.1 100 Continue
   SetError() #13: HTTP/1.1 100 Continue
   senddoc(): entered
   <?xml version="1.0" encoding="utf-8" ?><soapenv:Envelope
   xmlns:soapenv="[6]http://schemas.xmlsoap.org/soap/envelope/";
   xmlns:ser="[7]https://ws.towersperrin.com/services/";>
   <soapenv:Header/>  <soapenv:Body>     <ser:GeocodeRequest>
   <ser:StreetAddress>340 Pine Street</ser:StreetAddress>
   <ser:City>San Francisco</ser:City>
   <ser:State>CA</ser:State>        <ser:ZipCode>94104</ser:ZipCode>
   </ser:GeocodeRequest>  </soapenv:Body> </soapenv:Envelope>
   recvresp(): entered
   HTTP/1.1 500 Internal Server Error
   Content-Length: 756
   Content-Type: text/xml; charset=utf-8
   Server: Microsoft-IIS/7.0
   X-Powered-By: ASP.NET
   Date: Fri, 31 Dec 2010 00:38:37 GMT
   SetError() #13: HTTP/1.1 500 Internal Server Error
   recvdoc parms: identity 756
   header_load_cookies() entered
   recvdoc(): entered
   SetError() #0:
   <s:Envelope
   xmlns:s="[8]http://schemas.xmlsoap.org/soap/envelope/";><s:Body><s:Faul
   t><faultcode
   xmlns:a="[9]http://schemas.microsoft.com/ws/2005/05/addressing/none";>a
   :ActionNotSupported</faultcode><faultstring xml:lang="en-US">The
   message with Action
   '[10]https://ws.towersperrin.com/IGeocodeService/GeocodeRequest'
   cannot be processed at the receiver, due to a ContractFilter mismatch
   at the EndpointDispatcher. This may be because of either a contract
   mismatch (mismatched Actions between sender and receiver) or a
   binding/security mismatch between the sender and the receiver.  Check
   that sender and receiver have the same contract and the same binding
   (including security requirements, e.g. Message, Transport,
   None).</faultstring></s:Fault></s:Body></s:Envelope>
   SetError() #13: HTTP/1.1 500 Internal Server Error
   http_close(): entered

References

   1. http://schemas.xmlsoap.org/soap/envelope/
   2. https://ws.towersperrin.com/services/
   3. http://localligence.net/CATservicesBETA/GeocodeService/+
   4. https://ws.towersperrin.com/IGeocodeService/GeocodeRequest
   5. https://ws.towersperrin.com/IGeocodeService/GeocodeRequest
   6. http://schemas.xmlsoap.org/soap/envelope/
   7. https://ws.towersperrin.com/services/
   8. http://schemas.xmlsoap.org/soap/envelope/
   9. http://schemas.microsoft.com/ws/2005/05/addressing/none
  10. https://ws.towersperrin.com/IGeocodeService/GeocodeRequest'
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------