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

HTTPAPI - no response



   Hi Scott,

   Httpapi works fine with the web service of webservicex.net but I am
   trying to consume a TiBCO web service in my rpgle program. But m not
   able to get the apt response from it instead I get an error that
   "unable to find the specified resource". In my debug log ,I have tested
   the web service in soap ui and its working fine , I am able to get the
   right response .
   Below is my debug log for that call.

   HTTPAPI Ver 1.23 released 2008-04-24
   OS/400 Ver V6R1M0

   New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
   http_persist_open(): entered
   http_long_ParseURL(): entered
   DNS resolver retrans: 2
   DNS resolver retry  : 2
   DNS resolver options: x'[1]00000136'
   DNS default domain: WARSAW.BMET
   DNS server found: 10.1.3.4
   DNS server found: 10.1.3.5
   http_persist_post(): entered
   http_long_ParseURL(): entered
   do_post(): entered
   POST /Services/Service.serviceagent/PortTypeEndpoint1P HTTP/1.1
   Host: [2]10.201.223.193:7878
   User-Agent: http-api/1.23
   Content-Type: text/xml
   SOAPAction: /Service.serviceagent/PortTypeEndpoint1P/GTINgen
   Expect: 100-continue
   Content-Length: 416

   recvresp(): entered
   HTTP/1.1 100 Continue

   SetError() #13: HTTP/1.1 100 Continue
   senddoc(): entered
   <?xml version="1.0"
   encoding="utf-8"?><soapenv:Envelopexmlns:soapenv="[3]http://schemas.xml
   soap.org/soap/envelope/"
   xmlns:xsi="[4]http://www.w3.org/2001/XMLSchema-instance";
   xmlns:xsd="[5]http://www.w3.org/2001/XMLSchema"xmlns:sch="[6]http://www
   .tibco.com/schemas/LaserSOAP/Schemas/Schema.xsd"><soapenv:Header/><soap
   env:Body>  <sch:root>      <sch:ITEMNBR>113768</sch:ITEMNBR>
   </sch:root></soapenv:Body></soapenv:Envelope>
   recvresp(): entered
   HTTP/1.1 200 OK
   Server: Apache-Coyote/1.1
   Content-Type: text/html;charset=UTF-8
   Content-Length: 36
   Date: Wed, 16 Mar 2016 18:47:57 GMT

   SetError() #13: HTTP/1.1 200 OK
   recvdoc parms: identity 36
   header_load_cookies() entered
   recvdoc(): entered
   SetError() #0:
   Unable to get the specified resource
   http_close(): entered
   SetError() #66: XML parse failed at line 1, col 0: syntax error

   Thanks ,
   Dishant Sharma

   ::DISCLAIMER::
   -----------------------------------------------------------------------
   -----------------------------------------------------------------------
   ------

   The contents of this e-mail and any attachment(s) are confidential and
   intended for the named recipient(s) only.
   E-mail transmission is not guaranteed to be secure or error-free as
   information could be intercepted, corrupted,
   lost, destroyed, arrive late or incomplete, or may contain viruses in
   transmission. The e mail and its contents
   (with or without referred errors) shall therefore not attach any
   liability on the originator or HCL or its affiliates.
   Views or opinions, if any, presented in this email are solely those of
   the author and may not necessarily reflect the
   views or opinions of HCL or its affiliates. Any form of reproduction,
   dissemination, copying, disclosure, modification,
   distribution and / or publication of this message without the prior
   written consent of authorized representative of
   HCL is strictly prohibited. If you have received this email in error
   please delete it and notify the sender immediately.
   Before opening any email and/or attachments, please check them for
   viruses and other defects.

   -----------------------------------------------------------------------
   -----------------------------------------------------------------------
   ------

References

   1. tel:00000136
   2. tel:10.201.223.193
   3. http://schemas.xmlsoap.org/soap/envelope/
   4. http://www.w3.org/2001/XMLSchema-instance
   5. http://www.w3.org/2001/XMLSchema
   6. http://www.tibco.com/schemas/LaserSOAP/Schemas/Schema.xsd
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------