[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: http_url_post_xml
Hi, sorry for the late reply. But here I am again ;)
This is the request that is received which causes the problem according
to the guys that maintain this webservice:
Coming from iSeries the request looks like this:
POST /onlineserviceocsservice/onlineserviceocsdataservice.asmx
HTTP/1.1\r\n
[Expert Info (Chat/Sequence): POST
/onlineserviceocsservice/onlineserviceocsdataservice.asmx HTTP/1.1\r\n]
[Message: POST
/onlineserviceocsservice/onlineserviceocsdataservice.asmx HTTP/1.1\r\n]
[Severity level: Chat]
[Group: Sequence]
Request Method: POST
Request URI: /onlineserviceocsservice/onlineserviceocsdataservice.asmx
Request Version: HTTP/1.1
Host: oos-tst.oce.net\r\n
User-Agent: http-api/1.20\r\n
Content-Type: text/xml\r\n
SOAPAction: http://oosocsservice.oce.com/GetMachineCNTData\r\n
Expect: 100-continue\r\n
Content-Length: 414\r\n
[Content length: 414]
\r\n
When they do a test, and call the webservice themselves, so not from
the iSeries, their request looks a bit different:
POST /onlineserviceocsservice/onlineserviceocsdataservice.asmx
HTTP/1.1\r\n
[Expert Info (Chat/Sequence): POST
/onlineserviceocsservice/onlineserviceocsdataservice.asmx HTTP/1.1\r\n]
[Message: POST
/onlineserviceocsservice/onlineserviceocsdataservice.asmx HTTP/1.1\r\n]
[Severity level: Chat]
[Group: Sequence]
Request Method: POST
Request URI: /onlineserviceocsservice/onlineserviceocsdataservice.asmx
Request Version: HTTP/1.1
Host: oos-tst.oce.net\r\n
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
Protocol 4.0.30319.239)\r\n
Content-Type: text/xml; charset=utf-8\r\n
SOAPAction: http://oosocsservice.oce.com/GetMachineCNTData\r\n
Expect: 100-continue\r\n
Content-Length: 406\r\n
[Content length: 406]
Expext: 100-continue\r\n
Connection: Keep-Alive\r\n
\r\n
That's all the info I could get from the team that is maintaining this
webservice... :s
I tried using the same user-agent and content type as in their test
request, but that didn't solve the problem...
Hopefully that rings a bell and you know immediately what the problem
is ;))))
ps: the bad one comes after the good one
Kind regards,
Ruben
> From: mkrebs@xxxxxxxxxxxxxxxxxx
> To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
> Date: Fri, 27 Jan 2012 10:16:43 -0600
> Subject: RE: http_url_post_xml
>
> Your call looks fine.
> Does the bad one come before or after the good one?
>
> Turn on debug please and share the report (obfuscate any
login/proprietary information).
>
>
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Ruben
Dessart
> Sent: Friday, January 27, 2012 4:16 AM
> To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
> Subject: http_url_post_xml
>
>
> Hi!
>
> I am having a problem with
> http_url_post_xml.
>
> I send 1 request to a
> webservice and I get a result back. Everything ok you might
> think...
>
> BUT:
> on the other side, they
> receive 2 requests:
> - a good one (the one that
> I intended to send)
> but also
>
> - a bad request which
> contains only this: \r\n.
>
> This results in a lot of
> unnecessary requests (they all cause an entry in the http error log
saying 'HTTP
> 0.0 Bad request')
>
> Does anybody know what
> causes this?
>
> This is my
> call:
> d SOAP
> s 32767A Varying
> d Dummy
> s 200A
> d Rc
> s 10I 0
>
> d Host
> s 200a
> d SoapAction
> s 200a
>
> D Incoming
> PR
> D
> Dummy 200A
>
> D
> Depth 10I 0 Value
>
> D
> TagName 1024A Varying Const
>
> D
> Path 24576A Varying Const
>
> D
> Value 32767A Varying Const
>
> D
> Attrs * Dim(32767)
>
> D Const
> Options(*varsize)
>
> Rc =
> http_url_post_xml
> ( Host
>
> : %Addr(SOAP) + 2
>
> : %Len(SOAP)
>
> : *NULL
>
> :
> %paddr(Incoming)
> : %addr(Dummy)
>
> : HTTP_TIMEOUT
>
> : HTTP_USERAGENT
>
> : 'text/xml'
>
> : SoapAction);
> Kind regards,Ruben
>
-----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
>
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------