[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Truncated SOAPAction parm in http_url_post_xml() function, like example18, httpapi.
I made a copy of example18 to try it on the ZipCodeToLatitudeLogitude
web service at
http://www.jasongaylord.com/webservices/zipcodes.asmx. (found thru
xmethods.net)
I first I tested it at www.soapclient.com/soapmsg.html successfully
and used those results
to construct the input soap message.
I've pasted the contents of the httpapi_debug.txt (way below).
When I run this from RPG I get blank results and it looks like what
happens is
the soap action is getting truncated.
This -
SOAPAction:
http://www.jasongaylord.com/webservices/zipcodes/ZipCodeToLatitu
should be this -
SOAPAction:
http://www.jasongaylord.com/webservices/zipcodes/ZipCodeToLatitudeLogi
tude
In the http_url_post_xml() function the soap action parameter is 64a
so this is
evidently why it's truncated.
My question is..
Is there a work-around for this that i'm unaware of?
Do I not need to pass the soap action parm to get this to work?
Is it not possible to use this when the soap action is > 64
characters?
Any info is appreciated.
John B.
Relevant code -
SOAP =
'<?xml version="1.0" encoding="UTF-8" standalone="no"?>'
+'<SOAP-ENV:Envelope'
+'
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"'
+' xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"'
+' xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"'
+'
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"'
+' xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"'
+'
xmlns:tns="http://www.jasongaylord.com/webservices/zipcodes"'
+' xmlns:s="http://www.w3.org/2001/XMLSchema"'
+' xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"'
+' xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"'
+' xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"'
+' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
+' xmlns:xsd="http://www.w3.org/2001/XMLSchema" >'
+'<SOAP-ENV:Body>'
+'<tns:ZipCodeToLatitudeLogitude'
+'
xmlns:tns="http://www.jasongaylord.com/webservices/zipcodes">'
+' <tns:ZipCode>' + %trim(ZipCode) + '</tns:ZipCode>'
+'</tns:ZipCodeToLatitudeLogitude>'
+'</SOAP-ENV:Body>'
+'</SOAP-ENV:Envelope>';
http_debug(*ON);
rc = http_url_post_xml(
'http://www.jasongaylord.com/webservices/zipcodes.asmx'
: %addr(SOAP) + 2
: %len(SOAP)
: *null
: %paddr(Incoming)
: %addr(rate)
: HTTP_TIMEOUT
: HTTP_USERAGENT
: 'text/xml'
: 'http://www.jasongaylord.com/webservices/'
+ 'zipcodes/ZipCodeToLatitudeLogitude');
httpapi_debug.txt -
....+....1....+....2....+....3....+....4....+...
************Beginning of data**************
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 : 2
DNS resolver options: x'00000136'
DNS default domain: JOHNSONBROTHERS.COM
DNS server found: 192.168.20.214
DNS server found: 192.168.20.5
http_persist_post(): entered
http_long_ParseURL(): entered
do_post(): entered
POST /webservices/zipcodes.asmx HTTP/1.1
Host: www.jasongaylord.com
User-Agent: http-api/1.23
Content-Type: text/xml
Content-Type: text/xml
SOAPAction:
http://www.jasongaylord.com/webservices/zipcodes/ZipCodeToLatitu
Expect: 100-continue
Content-Length:
913
recvresp(): entered
SetError() #43: CommTCP_read: No 100-Continue (error
ignored)
senddoc(): entered
<?xml version="1.0" encoding="UTF-8"
standalone="no"?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
recvresp(): entered
HTTP/1.1 200
OK
Cache-Control:
no-cache
Date: Sat, 11 Apr 2009 19:10:02
GMT
Pragma:
no-cache
Content-Length:
1314
Content-Type: text/xml;
charset=utf-8
Expires:
-1
Server:
Microsoft-IIS/6.0
Server:
Microsoft-IIS/6.0
SetError() #13: HTTP/1.1 200
OK
recvdoc parms: identity
1314
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
http_close():
entered
************End of Data********************
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------