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

Re: HTTPAPI - no response



   Thanks for your help Scott, now it is working fine and I am really
   thankful to you , thanks a lot for your time and help.

   Thanks and regards,
   Dishant Sharma

   On Sun, Mar 20, 2016 at 2:30 p.m., Dishant Sharma
   <[1]dishant_s@xxxxxxx> wrote:

     Hi Scott,

     Sorry that debug log was old and I also looked at these mistakes
     before, after correcting them i am still getting that reply only
     below is the debug log for your reference.

     Regards,
     Dishant Sharma

     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'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/PortTypeEndpoint1 HTTP/1.1
     Host: 10.201.223.193:7878
     User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
     Content-Type: text/xml
     SOAPAction: "/Service.serviceagent/PortTypeEndpoint1/GTINgen"
     Expect: 100-continue
     Content-Length: 281

     recvresp(): entered
     HTTP/1.1 100 Continue

     SetError() #13: HTTP/1.1 100 Continue
     senddoc(): entered
     <soapenv:Envelope
     xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
     xmlns:sch="http://www.tibco.com/schemas/LaserSOAP/Schemas/Schema.xsd
     ">  <soapenv:Header/>  <soapenv: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: Sun, 20 Mar 2016 08:49:54 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

     ________________________________________
     From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
     [ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] on behalf of Scott Klement
     [sk@xxxxxxxxxxxxxxxx]
     Sent: Sunday, March 20, 2016 2:08 PM
     To: HTTPAPI and FTPAPI Projects
     Subject: Re: HTTPAPI - no response

     Dishant,

     You've looked at the endpoint, soapaction, and soap message and they
     match?

     I just compared the ones in your message to the ones in the WSDL,
     and
     they do not match for me.  You have an extra 'P' in both the soap
     action
     and endpoint, and the namespaces in the Envelope tag are  not right.

     None of them match.

     -SK

     On 3/20/2016 3:26 AM, Dishant Sharma wrote:
     >     Hi Scott,
     >
     >     Thanks for the reply ,
     >
     >     As far as I know I am using the same endpoint and soap action
     as in
     >     wsdl ,
     >     When I am calling this through soap ui I am getting the
     response which
     >     I need, but through httpapi I am not getting that response .
     >
     >     Kindly provide solution to this as I have some deadline for
     this
     >     project.
     >     I am attaching the wsdl for your reference.
     >
     >     Thanks and regards,
     >     Dishant Sharma
     >
     >     On Sun, Mar 20, 2016 at 1:44 p.m., Scott Klement
     >     <[1]sk@xxxxxxxxxxxxxxxx> wrote:
     >
     >       Dishant,
     >       You are indeed getting a response.  Here are the response
     headers:
     >           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
     >       Here is the response body:
     >            Unable to get the specified resource
     >       Since this is not an XML document, and you've told HTTPAPI
     to parse
     >       it
     >       as XML, HTTPAPI is returning an error saying that the XML
     parse
     >       failed.
     >       I realize that this is not what you want to see -- but as
     far as I
     >       can
     >       tell, HTTPAPI is working perfectly.  It is sending your data
     to the
     >       server, and it is receiving the response from the server.
     When you
     >       tell
     >       it to parse the response as XML, it's correctly telling you
     that
     >       it's
     >       not valid XML.
     >       I would suggest that you examine the WSDL for this service
     (I would
     >       use
     >       a tool like Soap UI to do this) and see what the message,
     endpoint,
     >       and
     >       soapaction should be, and compare them to what you're
     sending.
     >       -SK
     >       On 3/19/2016 11:22 PM, Dishant Sharma wrote:
     >       >     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/><s
     >       oap
     >       >     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
     >       >
     >
     --------------------------------------------------------------------
     >       ---
     >       >
     >
     --------------------------------------------------------------------
     >       ---
     >       This is the FTPAPI mailing list.  To unsubscribe, please go
     to:
     >       http://www.scottklement.com/mailman/listinfo/ftpapi
     >
     --------------------------------------------------------------------
     >       ---
     >
     > References
     >
     >     1. mailto:sk@xxxxxxxxxxxxxxxx
     >
     >
     >
     --------------------------------------------------------------------
     ---
     > 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
     --------------------------------------------------------------------
     ---

   ::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. mailto:dishant_s@xxxxxxx
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------