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

Re: [Ftpapi] Simple Soap Action . Used Example18 for a template (HTTP/1.1 500 Internal Server Error )



You are right.  My bad.  I actually sent the wrong stuff.  The xxxx is my username and password.
I just got the SOAPUI today so I'm playing with that as well.

Here is the code and attached is the debug

SOAP =
 '<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>'
+'<SOAP:Envelope'
+'xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";'
+'xmlns:web="http://websvcs.otswebws";>'
+'<SOAP:Header>'
+'<wsse:Security soapenv:mustUnderstand="1"'
+'<xmlns:wsse="http://docs.oasis-open.org/wss/'
+'2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"'
+'xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/'
+'oasis-200401-wss-wssecurity-utility-1.0.xsd">'
+'<wsse:UsernameToken wsu:Id="UsernameToken'
+'-01B51377495EE27AFE14613627051441">'
+'<wsse:Username>xxxxxx</wsse:Username>'
+'<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/'
+'/oasis-200401-wss-username-token-profile-1.0#Password'
+'Text">xxxxxxx</wsse:Password>'
+'wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01'
+'/oasis-200401-wss-soap-message-security'
+'-1.0#Base64Binary">nvLVj+qPJSJ2+eWuSvjtlg==</wsse:Nonce>'

http_debug(*ON);

rc = http_url_post_xml(
           'https://services.omnitracs.com/otsWebWS/services/OTSWebSvcs'
                  : %addr(SOAP) + 2
                  : %len(SOAP)
                  : *NULL
                  : %paddr(Incoming)
                  : %addr(rate)
                  : HTTP_TIMEOUT
                  : HTTP_USERAGENT
                  : '/tmp/geoptest.xml'
:'https://services.omnitracs.com/otsWebWS/services/OTSWebSvcs');

Thanks
Ron Koontz


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Thursday, June 01, 2017 2:10 PM
To: FTPAPI/HTTPAPI mailing list
Subject: Re: [Ftpapi] Simple Soap Action . Used Example18 for a template (HTTP/1.1 500 Internal Server Error )

Are you sure this is the correct SOAP message for this web service? It refers to WebserviceX.NET, which is highly suspicious...

You should be running the WSDL file through a tool to see what the SOAP message should look like.  Do NOT just copy another unrelated web service's SOAP message and assume it's correct.

A good tool for this is SoapUI.


On 6/1/2017 12:37 PM, Ron Koontz wrote:
>
> Here is my debug dump.
>
> Thanks
>
> Ron Koontz
>
> *From:*ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] *On Behalf Of *Pargat
> Singh
> *Sent:* Thursday, June 01, 2017 1:15 PM
> *To:* FTPAPI/HTTPAPI mailing list
> *Subject:* Re: [Ftpapi] Simple Soap Action . Used Example18 for a
> template (HTTP/1.1 500 Internal Server Error )
>
> Ron,
>
> Can you advise how are you invoking WS request?
>
> Thanks
>
> Pargat
>
> On Jun 1, 2017 12:09 PM, "Ron Koontz" <rkoontz@xxxxxxxxx
> <mailto:rkoontz@xxxxxxxxx>> wrote:
>
> Hello all,
>
> I’m getting a HTTP/1.1 500 Internal Server Error  …
>
> I not sure 100% what is wrong.  I’m new to sending the SOAP stuff this
> way.  Ideas?
>
> Protocol Used: TLS Version 1
>
> http_persist_post(): entered
>
> http_long_ParseURL(): entered
>
> do_post(): entered
>
> POST /qtracsWebWS/services/QTWebSvcs HTTP/1.1
>
> POST /qtracsWebWS/services/QTWebSvcs HTTP/1.1
>
> Host: www.cnrportal.com <http://www.cnrportal.com>
>
> User-Agent: http-api/1.23
>
> Content-Type: /tmp/geoptest.xml
>
> SOAPAction: https://www.cnrportal.com/qtracsWebWS/services/QTWebSvcs
>
> Expect: 100-continue
>
> Content-Length: 604
>
> recvresp(): entered
>
> HTTP/1.1 100 Continue
>
> SetError() #13: HTTP/1.1 100 Continu
>
> senddoc(): entered
>
> <?xml version="1.0" encoding="iso-88………….much other stuff here
>
> recvresp(): entered
>
> HTTP/1.1 500 Internal Server Error
>
> Date: Thu, 01 Jun 2017 15:37:14 GMT
>
> Date: Thu, 01 Jun 2017 15:37:14 GMT
>
> X-Powered-By: Servlet/3.0
>
> Content-Length: 399
>
> Cneonction: close
>
> Content-Type: text/xml; charset=utf-8
>
> Content-Language: en-US
>
> SetError() #13: HTTP/1.1 500 Internal
>
> recvdoc parms: identity 399
>
> header_load_cookies() entered
>
> recvdoc(): entered
>
> SetError() #0:
>
> <soapenv:Envelope xmlns:soapenv="http…other stuff
>
> SetError() #13: HTTP/1.1 500 Internal
>
> http_close(): entered
>
> http_persist_open(): entered
>
> http_long_ParseURL(): entered
>
>
>
>
> *Ron Koontz | IT Manager | Continental Express, Inc*
>
> *10450 State Rt 47 W Sidney, Ohio 45365*
>
> (: Direct: (937) 419.8118 <tel:%28937%29%20419-8118>*| *(: Tel (800)
> 497.2100 x118 <tel:%28800%29%20497-2100>*|*Ê: Fax (937) 498.2155
> <tel:%28937%29%20498-2155>**
>
> *:_rkoontz@xxxxxxxxx <mailto:rkoontz@xxxxxxxxx>_ Visit us on the web:
> www.ceioh.com <http://www.ceioh.com/> FB
> <https://www.facebook.com/pages/Continental-Express-Inc/39497029058285
> 5>Twitter
> <https://twitter.com/CEIOHIO>
>
> ----------------------------------------------------------------------
> --
>
>
> The information contained in this e-mail is intended only for the
> individual or entity to whom it is addressed. Its contents (including
> any attachments) may contain confidential and/or privileged
> information. If you are not an intended recipient you shall not use,
> disclose, disseminate, copy or print its contents. If you receive this
> e-mail in error, please notify the sender by reply e-mail and delete
> and destroy the message. Continental Express, Inc. and its
> subsidiaries and affiliates will not be held liable for the unintended
> or unauthorized use of any information contained in this email or as a
> result of any additions or deletions of information originally
> contained in this email.
>
>
> --
> _______________________________________________
> Ftpapi mailing list
> Ftpapi@xxxxxxxxxxxxxxxxxxxxxx <mailto:Ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
> http://scottklement.com/mailman/listinfo/ftpapi
>
>
> ----------------------------------------------------------------------
> --
>
> The information contained in this e-mail is intended only for the
> individual or entity to whom it is addressed. Its contents (including
> any attachments) may contain confidential and/or privileged
> information. If you are not an intended recipient you shall not use,
> disclose, disseminate, copy or print its contents. If you receive this
> e-mail in error, please notify the sender by reply e-mail and delete
> and destroy the message. Continental Express, Inc. and its
> subsidiaries and affiliates will not be held liable for the unintended
> or unauthorized use of any information contained in this email or as a
> result of any additions or deletions of information originally
> contained in this email.
>
>

--
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi

________________________________

The information contained in this e-mail is intended only for the individual or entity to whom it is addressed. Its contents (including any attachments) may contain confidential and/or privileged information. If you are not an intended recipient you shall not use, disclose, disseminate, copy or print its contents. If you receive this e-mail in error, please notify the sender by reply e-mail and delete and destroy the message. Continental Express, Inc. and its subsidiaries and affiliates will not be held liable for the unintended or unauthorized use of any information contained in this email or as a result of any additions or deletions of information originally contained in this email.
                                                                                                                                                                                     http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: xxxxxxx'
DNS default domain: xxxxxx
DNS server found: xxxxxx
DNS server found: xxxx
-------------------------------------------------------------------------------------
Dump of server-side certificate information:
-------------------------------------------------------------------------------------
Cert Validation Code = 0
-----BEGIN CERTIFICATE-----
MIIGgjCCBWqgAwIBAgIQEqmm1IXFDfduCpN/SByVQjANBgkqhkiG9w0BAQsFADB+
MQswCQYDVQQGEwJVUzEdMBsGA1UEChMUU3ltYW50ZWMgQ29ycG9yYXRpb24xHzAd
BgNVBAsTFlN5bWFudGVjIFRydXN0IE5ldHdvcmsxLzAtBgNVBAMTJlN5bWFudGVj
IENsYXNzIDMgU2VjdXJlIFNlcnZlciBDQSAtIEc0MB4XDTE2MDExMjAwMDAwMFoX
DTE4MDExMTIzNTk1OVowdzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVRleGFzMQ8w
DQYDVQQHDAZEYWxsYXMxFzAgfsdVBgNVBAoMDk9tbml0cmFjcywgTExDMQ0wCwYDVQQL
DAROV0VTMR8wHQYDVQQDDBZzZXJ2aWNlcy5vbW5pdHJhY3MuY29tMIIBIjANBgkq
hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwX4FtWymO3JdU7YSdR+zYeUpBSkLjQ3b
lPP7z8cVFdvczgf
Z5PURNEKZ6y7T0/7xAAcvxzAAVI2+1clAAAEAwBHMEUCIDMaRarviWoOEqNQEuT1p+Mh
OqgPoJ4F4SsXuOuLA/5YAiEAgylPj7XmzOsDoMRsjwSspYePjTi3LqYiT9rLSIGP
dYIwDQYJKoZIhvcNAQELBQADggEBAF15s1AiKinOE54dXwzMWGdFkerBjQjV6erU
NlsW2l/lGq3MWveJqlNNGWyBmo/k/vFF2szMSN6Bjmflcqhh5lC0AeKGFwHsmw6u
J2gmjpLkbcvoa1api0t29Q90zg1/pPDiwDr8aCtYnTNFbuJHZF+kLSDJLIlg7Eit
wRd/die279cVHlYcW0ahSwoxgnNaeVRfF//ZxJ7C5/31x/mTEG1aTRooDiosK7P9
bcONdDxCcyOEliLRVJEMLhAD9efuupcZpIgGkiqr12PD9lOzotvKA4pXFriNLYcL
3JpxpnMx8gHbAJdFdA1Q/AufVbRgDg+xaoeN+H9/dG9MCE7xa/M=
-----END CERTIFICATE-----
Serial Number: 12:A9:A6:D4:85:C5:0D:F7:6E:0A:93:7F:48:1C:95:42
Common Name: services.omnitracs.com
Country: US
State/Province: Texas
Locality: Dallas
Org Unit: Omnitracs, LLC
Org: NWES
Issuer CN: Symantec Class 3 Secure Server CA - G4
Issuer Country: US
Issuer Org: Symantec Corporation
Issuer Org Unit: Symantec Trust Network
Version: 3
not before: 20160111190000
Unknown Field: 19:00:00 11-01-2016
not after: 20180111185959
Unknown Field: 18:59:59 11-01-2018
pub key alg: 1.2.840.113549.1.1.11

Protocol Used: TLS Version 1
http_persist_post(): entered
http_long_ParseURL(): entered
do_post(): entered
POST /otsWebWS/services/OTSWebSvcs HTTP/1.1
Host: services.omnitracs.com
User-Agent: http-api/1.23
Content-Type: /tmp/geoptest.xml
SOAPAction: https://services.omnitracs.com/otsWebWS/services/OTSWebSvcs
Expect: 100-continue
Content-Length: 1079


recvresp(): entered
HTTP/1.1 100 Continue


SetError() #13: HTTP/1.1 100 Continue
senddoc(): entered
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?><SOAP:Envelopexmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:web="http://websvcs.otswebws";><SOAP:Header><wsse:Security soapenv:mustUnderstand="1"<xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";><wsse:UsernameToken wsu:Id="UsernameToken-01B51377495EE27AFE14613627051441"><wsse:Username>xxxxx</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01//oasis-200401-wss-username-token-profile-1.0#PasswordText";>xxxxx</wsse:Password>wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary";>nvLVj+qPJSJ2+eWuSvjtlg==</wsse:Nonce></wsse:UsernameToken>      </wsse:Security>    </soapenv:Header>    <soapenv:Body>       <web:dequeue2>          <subscriberId>1</subscriberId>          <transactionIdIn>0</transactionIdIn>      </web:dequeue2>    </soapenv:Body> </soapenv:Envelope>
recvresp(): entered
HTTP/1.1 500 Internal Server Error
Date: Thu, 01 Jun 2017 18:17:37 GMT
X-Powered-By: Servlet/3.0
Content-Length: 399
Cneonction: close
Content-Type: text/xml; charset=utf-8
Content-Language: en-US


SetError() #13: HTTP/1.1 500 Internal Server Error
recvdoc parms: identity 399
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><soapenv:Header/><soapenv:Body><soapenv:Fault><faultcode>Server</faultcode><faultstring>Internal Error</faultstring></soapenv:Fault></soapenv:Body></soapenv:Envelope>
SetError() #13: HTTP/1.1 500 Internal Server Error
http_close(): entered
-- 
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi