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

Server did not recognize the value of HTTP Header SOAPAction: .



   This is an attempt to submit a Rate Request for parcel shipping to
   OnTrac (formerly California Overnite).  Attached is the debug file for
   this attempt.  I have only masked the Account and Password.  Both the
   URL and the Soap Message were copied directly from a successful
   submission in SoapUI v3.5 yet our attempt returns this SOAPAction
   error.


   The OnTrac Manual states:

   Requests are made using the HTTP Post method with the body of the
   request being a wellformed XML document as described below, or via
   SOAP as described in the WSDL available at the respective URL. The
   input for the SOAP functions should be a string containing the same
   XML formatted data as the HTTP Post method. The requests are to be
   made to the provided URLS depending upon the type of request you wish
   to make, and using a secure HTTPS connection is recommended, but is
   not required. The XML in the requests are not case sensitive,


   At first we tried a post.  After many failures, we received the
   following reply from OnTrac Support and thus thought it might be
   easier to use SOAP after receiving a successful reply from SoapUI.


   The issue is probably that the page was initially designed for SOAP
   and was just opened to posts by request.  So you kind of have to spoof
   the URL a little in order to use the post.  

    For example in C#, the URL I post to is
   ""[1]http://www.shipontrac.net/OnTracAPI/RateRequest.asmx/Rate_Request
   ?""

    

   And the string I post to it is 

   "xmlIN=" + the text of the xml

    

   Our programmer is working on a more traditional page where you post
   the content more directly, but that is still in development.



    I hope someone can see what we are overlooking.


   Alvin

References

   1. http://www.shipontrac.net/OnTracAPI/RateRequest.asmx/Rate_Request?
HTTPAPI Ver 1.21pre5 released 2007-08-29

New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
http_persist_open(): entered
http_long_ParseURL(): entered
https_init(): entered
-------------------------------------------------------------------------------------
Dump of local-side certificate information:
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
Dump of server-side certificate information:
-------------------------------------------------------------------------------------
Cert Validation Code = 6000
-----BEGIN CERTIFICATE-----
MIIFTTCCBDWgAwIBAgIQT04NIGOieYZ5o4qrXrhNtzANBgkqhkiG9w0BAQUFADCB
tTELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLC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qMGgwJAYIKwYBBQUHMAGGGGh0dHA6Ly9vY3NwLnZlcmlzaWduLmNvbTBABggr
BgEFBQcwAoY0aHR0cDovL1NWUlNlY3VyZS1HMi1haWEudmVyaXNpZ24uY29tL1NW
UlNlY3VyZUcyLmNlcjBuBggrBgEFBQcBDARiMGChXqBcMFowWDBWFglpbWFnZS9n
aWYwITAfMAcGBSsOAwIaBBRLa7kolgYMu9BSOJsprEsHiyEFGDAmFiRodHRwOi8v
bG9nby52ZXJpc2lnbi5jb20vdnNsb2dvMS5naWYwDQYJKoZIhvcNAQEFBQADggEB
AFzVIvyLcGrJgIiU24NWEVCrsBe+cbq4rsPnB19WxK5jvlfB0rtuxs3P/UmqtK48
qri3+0NlbCwuYbGBE6jTK+6QrzzMO9nDWW9nCSigxzGMc1vJaqJSu0TX21/hGZCj
Y0AtCmr8P/o+0MigR2v8QAMGXYNfMai8AEPqdrx84xATOeV0KsrT6LATk0a8JAjb
gzwUYfJXIQ+0b3oU4xKNh5A+QzubJklCBjfbdvEd6iLxrDrxlYrDbGtBTmUijbBn
tfSYzUXX2ExMsj3om3DWD+H3Ios1FP50rn42VUUqCMho72jqA68jIy6Vc0RdxZzP
TdNyWBc8+a2Yuzyf4Y2Grzg=
-----END CERTIFICATE-----
Serial Number: 4F:4E:0D:20:63:A2:79:86:79:A3:8A:AB:5E:B8:4D:B7
Common Name: www.shipontrac.net
Country: US
State/Province: Arizona
Locality: Phoenix
Org Unit: EXPRESS MESSENGER SYSTEMS INC.
Org: Terms of use at www.verisign.com/rpa (c)05, OU=ITDEPT
Issuer CN: VeriSign Class 3 Secure Server CA - G2
Issuer Country: US
Issuer Org: VeriSign, Inc.
Issuer Org Unit: Terms of use at https://www.verisign.com/rpa (c)09, OU=VeriSign Trust Network
Unknown Field: 03
Unknown Field: 20090813200000
Unknown Field: 20100815195959
Unknown Field: 1.2.840.113549.1.1.5

Protocol Used: TLS Version 1
http_persist_post(): entered
http_long_ParseURL(): entered
do_post(): entered
POST //ontracapi/RateRequest.asmx HTTP/1.1
Host: www.shipontrac.net
User-Agent: http-api/1.21
Content-Type: text/xml; charset=UTF-8
SOAPAction:  
Expect: 100-continue
Content-Length: 657


recvresp(): entered
HTTP/1.1 100 Continue


SetError() #13: HTTP/1.1 100 Continue
senddoc(): entered
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ship="www.shipontrac.net"><soapenv:Header/><soapenv:Body>"www.shipontrac.net/ship:Rate_Request_XML"><ship:xmlIN><OnTracRateRequest><RequestReference>123456a</RequestReference><account>**acct**</account><password>**PW**</password><package><delzip>93711</delzip><puzip>93030</puzip><service>S</service><COD>0</COD><declared></declared><type>p</type><saturdayDel>false</saturdayDel><weight>10</weight><DIM><length></length><width></width><height></height></DIM></package></OnTracRateRequest></ship:xmlIN><www.shipontrac.net/ship:Rate_Request_XML></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 500 Internal Server Error
Date: Fri, 09 Jul 2010 22:23:43 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Content-Length: 405


SetError() #13: HTTP/1.1 500 Internal Server Error
recvdoc parms: identity 405
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Server did not recognize the value of HTTP Header SOAPAction: .</faultstring><detail /></soap:Fault></soap:Body></soap: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
-----------------------------------------------------------------------