[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
http_url_post_xml problem
I am trying to set up a test web service call to a tax calculation
program, but I am getting a 500 error. I am new to using this stuff,
so I have no idea what the problem could be. I have attached the
debug log.
Thanks in advance,
John
Here is my test program:
SOAP =
'<?xml version="1.0" encoding="UTF-8"?>'
+ '<Envelope xmlns:s="[1]http://schemasxmlsoap.org/soap/envelope/">'
+ '<Header>'
+ '<Security mustUnderstand="1"
xmlns:wsse="[2]http://docs.oasis-'
+ 'open.org/wss/2004/01/oasis-200401-wss-wssecurity-'
+ 'secext-1.0.xsd">'
+ '<UsernameToken Id="uuid-90128b0b-6212-4e16-9382-'
+ 'e55489fa6444-1">'
+ '<Username>' + %TRIM(MerchID) + '</Username>'
+ '<Password
Type="[3]http://docs.oasis-open.org/wss/2004/01/'
+ 'oasis-200401-wssusername-token-profile-1.0'
+ '#PasswordText">' + %TRIM(Password)
+ '</Password>'
+
'</UsernameToken>'
+
'</Security>'
+
'</Header>'
+ '<Body xmlns:xsi="[4]http://www.w3.org/2001/XMLSchema-instance"
'
+
'xmlns:xsd="[5]http://www.w3.org/2001/XMLSchema">'
+ '<requestMessage
xmlns="urn:schemas-cybersource-com:transaction-'
+
'data-1.18">'
+ '<merchantID>' + %TRIM(MerchID) +
'</merchantID>'
+
'<merchantReferenceCode>482046C3A7E94F5</merchantReferenceCode>'
+
'<billTo>'
+ '<street1>1295 Charleston
Rd.</street1>'
+ '<city>Mountain
View</city>'
+
'<state>CA</state>'
+
'<postalCode>94043</postalCode>'
+
'<country>US</country>'
+
'</billTo>'
+ '<item
id="0">'
+
'<unitPrice>100.00</unitPrice>'
+
'<quantity>1</quantity>'
+
'<productCode>18902</productCode>'
+ '<productName>Test
Product</productName>'
+
'<productSKU>2B1079</productSKU>'
+
'</item>'
+ '<taxService
run="true"/>'
+
'</requestMessage>'
+
'</Body>'
+
'</Envelope>';
http_debug(*ON);
rc =
http_url_post_xml(
'https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor'
: %addr(SOAP) +
2
:
%len(SOAP)
: *NULL
: %paddr(Incoming)
: *NULL);
References
1. http://schemas.xmlsoap.org/soap/envelope/">'
2. http://docs.oasis-'/
3. http://docs.oasis-open.org/wss/2004/01/'
4. http://www.w3.org/2001/XMLSchema-instance
5. http://www.w3.org/2001/XMLSchema">'
HTTPAPI Ver 1.21 released 2007-10-01
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 15
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: WOOLRICH.COM
DNS server found: 10.10.2.1
DNS server found: 10.10.3.7
-------------------------------------------------------------------------------------
Dump of server-side certificate information:
-------------------------------------------------------------------------------------
Cert Validation Code = 6000
-----BEGIN CERTIFICATE-----
MIIFcDCCBNmgAwIBAgIERpzucjANBgkqhkiG9w0BAQUFADCBwzELMAkGA1UEBhMC
VVMxFDASBgNVBAoTC0VudHJ1c3QubmV0MTswOQYDVQQLEzJ3d3cuZW50cnVzdC5u
ZXQvQ1BTIGluY29ycC4gYnkgcmVmLiAobGltaXRzIGxpYWIuKTElMCMGA1UECxMc
KGMpIDE5OTkgRW50cnVzdC5uZXQgTGltaXRlZDE6MDgGA1UEAxMxRW50cnVzdC5u
ZXQgU2VjdXJlIFNlcnZlciBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wODAy
MTIyMDQ0MDRaFw0wOTAzMzEyMTE0MDJaMIGOMQswCQYDVQQGEwJVUzETMBEGA1UE
CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEgMB4GA1UEChMX
Q3liZXJzb3VyY2UgQ29ycG9yYXRpb24xEzARBgNVBAsTCk9wZXJhdGlvbnMxGzAZ
BgNVBAMTEmljczJ3c3Rlc3QuaWMzLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAw
gYkCgYEA2rY21uyk9njM46/cCouzD1Z0Pvx6t0Rrb7+Pd8dkBDkD/j/1qUp3dhbz
SazQ0/MmLL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uD6K4UwW8v7BFu8jipbTmTyWBJRE/uMc8DHN
1SOENvFZTP6k++Nbs/vGoP3L3unHfaSos0lLrc1pOtxCQl6ChtwaY/QToRwVpiNw
lWOxKkV4/S6SsL/fOWWnAM+456xOn6uvKEjbUaDSY/naDY9ESi6wGx1GpU/IfwCG
2N6f7A==
-----END CERTIFICATE-----
Serial Number: 46:9C:EE:72
Common Name: ics2wstest.ic3.com
Country: US
State/Province: California
Locality: Mountain View
Org Unit: Cybersource Corporation
Org: Operations
Issuer CN: Entrust.net Secure Server Certification Authority
Issuer Country: US
Issuer Org: Entrust.net
Issuer Org Unit: (c) 1999 Entrust.net Limited, OU=www.entrust.net/CPS incorp. by ref. (limits liab.)
Unknown Field: 03
Unknown Field: 20080212154404
Unknown Field: 20090331161402
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 /commerce/1.x/transactionProcessor HTTP/1.1
Host: ics2wstest.ic3.com
User-Agent: http-api/1.21
Content-Type: text/xml
Expect: 100-continue
Content-Length: 1145
recvresp(): entered
HTTP/1.1 100 Continue
SetError() #13: HTTP/1.1 100 Continue
senddoc(): entered
<?xml version="1.0" encoding="UTF-8"?><Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><Header><Security mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><UsernameToken Id="uuid-90128b0b-6212-4e16-9382-e55489fa6444-1"><Username>xxxxxx</Username><Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wssusername-token-profile-1.0#PasswordText">xxxxxx</Password></UsernameToken></Security></Header><Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.18"><merchantID>xxxxxx</merchantID><merchantReferenceCode>482046C3A7E94F5</merchantReferenceCode><billTo><street1>1295 Charleston Rd.</street1><city>Mountain View</city><state>CA</state><postalCode>94043</postalCode><country>US</country></billTo><item id="0"><unitPrice>100.00</unitPrice><quantity>1</quantity><productCode>18902</productCode><productName>Test Product</productName><productSKU>2B1079</productSKU></item><taxService run="true"/></requestMessage></Body></Envelope>
recvresp(): entered
HTTP/1.1 500 Internal Server Error
Content-Type: text/xml
Content-Length: 377
Date: Fri, 23 Jan 2009 14:43:24 GMT
Server: Apache-Coyote/1.1
Connection: close
SetError() #13: HTTP/1.1 500 Internal Server Error
recvdoc parms: identity 377
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/">
<soap:Body>
<soap:Fault xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext" xmlns:c="urn:schemas-cybersource-com:transaction-data-1.0">
<faultcode>soap:Client</faultcode>
<faultstring>
XML parse error.
</faultstring>
</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
-----------------------------------------------------------------------