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

duplicate calls to web service



   I figured I should change the subject line to better suit my problem.
   The previous thread I was posting on was: XALLOC in program
   LIBHTTP/HTTPAPIR4.


   After changing my call to the web service to include a 60-second
   timeout, I'm still having an issue with duplicate requests.  It
   doesn't always happen. Only on every 4^th or 5^th call to the web
   service.


   This is what my httpapi_debug.txt file looks like - indeed it appears
   that I'm making TWO requests. It looks like it's timing out at one
   point:

   ======================================================================
   ============

   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_url_get(): entered

   http_persist_open(): entered

   http_long_ParseURL(): entered

   DNS resolver retrans: 2

   DNS resolver retry  : 2

   DNS resolver options: x'00000136'

   DNS default domain: companyiworkfor.com

   DNS server found: 192.168.30.9

   DNS server found: 207.170.210.162

   DNS server found: 168.215.210.50

   SetError() #2: Host name look up failed


   :::many, many, many blank lines::::



   http_persist_open(): entered

   http_long_ParseURL(): entered

   DNS resolver retrans: 2

   DNS resolver retry  : 2

   DNS resolver options: x'00000136'

   DNS default domain: companyiworkfor.com

   DNS server found: 192.168.30.9

   DNS server found: 207.170.210.162

   DNS server found: 168.215.210.50

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

   Dump of server-side certificate information:

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

   Cert Validation Code = 0

   -----BEGIN CERTIFICATE-----

   Removed certificate info

   -----END CERTIFICATE-----

   Serial Number: Removed serial number

   Common Name: ws.labone.com

   Country: US

   State/Province: New Jersey

   Locality: Teterboro

   Org Unit: Quest Diagnostics, Incorporated

   Org: Corp IT - renwws01

   Issuer Org: VeriSign Trust Network

   Issuer Org Unit: www.verisign.com/CPS Incorp.by Ref. LIABILITY
   LTD.(c)97 VeriSign,

   OU=VeriSign International Server CA - Class 3, OU=VeriSign, Inc.

   Version: 03

   not before: 20101005180000

   not after: 20111006175959

   pub key alg: 1.2.840.113549.1.1.5


   Protocol Used: TLS Version 1

   http_persist_post(): entered

   http_long_ParseURL(): entered

   do_post(): entered

   POST /services/eoservice.asmx HTTP/1.1

   Host: ws.labone.com

   User-Agent: http-api/1.23

   Content-Type: text/xml

   Expect: 100-continue

   Content-Length: 2354



   recvresp(): entered

   HTTP/1.1 100 Continue



   SetError() #13: HTTP/1.1 100 Continue

   senddoc(): entered

   <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope

   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";

   xmlns:eos="http://QuestWebServices/EOService";><soapenv:Header
   /><soapenv:Body>

   <eos:DeliverExamOneContent>
   <eos:username>blahblahblah</eos:username>

   <eos:password>blahblahblah</eos:password>
   <eos:destinationID>RX</eos:destinationID>

   <eos:payload><![CDATA[<TXLife
   xsi:schemaLocation="http://ACORD.org/Standards/Life/2

   TxLife2.10.00enum.xsd"

       xmlns="http://ACORD.org/Standards/Life/2";

       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

       xmlns:n="http://ACORD.org/Standards/Life/2";>


   <TXLifeRequest PrimaryObjectID="Holding_ProposedPolicy">

     <TransRefGUID>LAN024313401-2011-02-0912:52:25</TransRefGUID>

     <TransType tc="121">General Requirements Order Request</TransType>

     <TransExeDate>2011-02-09</TransExeDate>

     <TransExeTime>12:52:25</TransExeTime>

     <NoResponseOK tc="0">False</NoResponseOK>

     <TestIndicator tc="0">False</TestIndicator>



   </TXLifeRequest>


   </TXLife>


   ]]></eos:payload></eos:DeliverExamOneContent></soapenv:Body></soapenv:
   Envelope>

   recvresp(): entered

   SetError() #43: CommSSL_Read:  time-out!

   http_close(): entered

   SetError() #22: open(): No such path or directory.

   http_persist_open(): entered

   http_long_ParseURL(): entered

   DNS resolver retrans: 2

   DNS resolver retry  : 2

   DNS resolver options: x'00000136'

   DNS default domain: companyiworkfor.com

   DNS server found: 192.168.30.9

   DNS server found: 207.170.210.162

   DNS server found: 168.215.210.50

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

   Dump of server-side certificate information:

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

   Cert Validation Code = 0

   -----BEGIN CERTIFICATE-----

   Removed certificate info

   -----END CERTIFICATE-----

   Serial Number: removed serial number

   Common Name: ws.labone.com

   Country: US

   State/Province: New Jersey

   Locality: Teterboro

   Org Unit: Quest Diagnostics, Incorporated

   Org: Corp IT - renwws01

   Issuer Org: VeriSign Trust Network

   Issuer Org Unit: www.verisign.com/CPS Incorp.by Ref. LIABILITY
   LTD.(c)97 VeriSign,

   OU=VeriSign International Server CA - Class 3, OU=VeriSign, Inc.

   Version: 03

   not before: 20101005180000

   not after: 20111006175959

   pub key alg: 1.2.840.113549.1.1.5


   Protocol Used: TLS Version 1

   http_persist_post(): entered

   http_long_ParseURL(): entered

   do_post(): entered

   POST /services/eoservice.asmx HTTP/1.1

   Host: ws.labone.com

   User-Agent: http-api/1.23

   Content-Type: text/xml

   Expect: 100-continue

   Content-Length: 2358



   recvresp(): entered

   HTTP/1.1 100 Continue



   SetError() #13: HTTP/1.1 100 Continue

   senddoc(): entered

   <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope

   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";

   xmlns:eos="http://QuestWebServices/EOService";><soapenv:Header
   /><soapenv:Body>

   <eos:DeliverExamOneContent>
   <eos:username>blahblahblah</eos:username>

   <eos:password>blahblah</eos:password>
   <eos:destinationID>RX</eos:destinationID>

   <eos:payload><![CDATA[<TXLife
   xsi:schemaLocation="http://ACORD.org/Standards/Life/2

   TxLife2.10.00enum.xsd"

       xmlns="http://ACORD.org/Standards/Life/2";

       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

       xmlns:n="http://ACORD.org/Standards/Life/2";>



   <TXLifeRequest PrimaryObjectID="Holding_ProposedPolicy">

     <TransRefGUID>SUL024313501-2011-02-0912:53:27</TransRefGUID>

     <TransType tc="121">General Requirements Order Request</TransType>

     <TransExeDate>2011-02-09</TransExeDate>

     <TransExeTime>12:53:27</TransExeTime>

     <NoResponseOK tc="0">False</NoResponseOK>

     <TestIndicator tc="0">False</TestIndicator>


   </TXLifeRequest>


   </TXLife>


   ]]></eos:payload></eos:DeliverExamOneContent></soapenv:Body></soapenv:
   Envelope>

   recvresp(): entered

   ======================================================================
   ====


   Does this look like a problem that I can control?


   Thanks for your input,


   Kim Gibson
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------