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

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="http://schemas.xmlsoap.org/soap/envelope/";'

   +' xmlns:ser="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(

   '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:
   '

             +
   '"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:
   "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="http://schemas.xmlsoap.org/soap/envelope/";
   xmlns:ser="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="http://schemas.xmlsoap.org/soap/envelope/";><s:Body><s:Fault><
   faultcode
   xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none";>a:Ac
   tionNotSupported</faultcode><faultstring xml:lang="en-US">The message
   with Action
   '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
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------