Thanks. I will try this. Do you know the exact ContentType to use for .Net Soap. My Windows VB application uses application/x-www-form-urlencoded for ContentType and this works fine. I noticed in the http_url_post_raw there is an additional parm for Soap type. What is this for? > -----Original Message----- > From: owner-ftpapi@xxxxxxxxxxxxx > [mailto:owner-ftpapi@xxxxxxxxxxxxx] > Sent: Thursday, February 26, 2004 3:25 PM > To: ftpapi@xxxxxxxxxxxxx > Subject: RE: Problem with Post api (Example2 rpg) > > I do notice 1 problem with the source you sent. for CondenseLevel= you > forgot the & in front. That equals the 15 characters that you says the > data is short. > > -----Original Message----- > From: owner-ftpapi@xxxxxxxxxxxxx > [mailto:owner-ftpapi@xxxxxxxxxxxxx] > Sent: Thursday, February 26, 2004 1:33 PM > To: ftpapi@xxxxxxxxxxxxx > Subject: Problem with Post api (Example2 rpg) > > Hey all, > > I am using the http_url_post api very similar to the example2 rpg > source and it is not sending > all of the data properly to my .Net Windows XML service. > > When making the same post request from a visual Basic application, > The Web service receives 357 bytes which is indicated in the WEB log > record below. > 18:08:09 172.21.10.17 - W3SVC1 CARRIERE-XP 172.21.10.17 80 POST 976 > 357 4667 HTTP/1.1 172.21.10.17 > > When using the http_url_post api, the server receives 342 bytesas > indicated in the following > log record. > 18:16:07 172.21.63.254 - W3SVC1 CARRIERE-XP 172.21.10.17 80 POST > 1337 342 20 HTTP/1.1 172.21.10.17 > > Note the 15 character difference. Also note below in the rpg > source, that the XML Operation name FleetSuite.asmx > is 15 characters. Could it be that the http_url_post is not > constructing the Operation name FleetSuite.asmx > as part of the URL? How can I debug the http_url_post api? > > > eval data='User=tom' + > '&PassWord=fishing' + > > '&City=' + > > '&State=' + > > '&Zip=08540' + > > '&Address=' + > > '&DestCity=' + > > '&DestState=' + > > '&DestZip=18974' + > > '&DestAddress=' + > > '&RouteType=' + > > '&RouteClass=' + > > '&TollAvoid='+ > > '&BordersOpen='+ > > 'CondenseLevel=1' + CRLF > > * > > eval rc = http_url_post( > > 'http://172.21.10.17/fleetsuite.asmx?': > > %addr(data): %len(%trimr(data)) : > > '/testpost.html') > > > ------------------------------------ > Tom Carriere > Principal > ALK Technologies Inc. > 609 252 8122 > carriere@xxxxxxx > -------------------------------------
<<attachment: winmail.dat>>