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

HTTP API Timeout problem



   Hi.
   I have a strange problem - someone experienced the same ??
   I am calling a REST web-service ( http_url_get  with    url =
   'https://api.qa.bring.com/po/api/v1/'  + 3 extra parameters.. )
   It works when calling from my  development server, but when deploying
   to my customers server (V5R4M0)   I only get a timout.
   (My customer is Bring (big Norwegian transporter) and Bring is also the
   provider of the webservice (but quite an other department / other
   server)
   Brings IT-staf is looking in to the question of this webservice beeing
   inside the same network/firewall  as the calling client ....   some
   kind of routing/proxy/firewall-issue ????   (this is NOT my field at
   all...)
   Important background INFO.
   The HTTP API has been used for several years on this  customers IBM i -
   but never with certificates involved..
   So at first I got THIS error from the HTTP-API:
   gsk_env_init: (GSKit) Key database file was not found.
   From the README-file in HTTP API i get verified that as of V5R1 SSL
   support is included in the base OS.
    Via HTTP ADMIN / "Create New Certificate Store"  we followed the
   prompts to create a *SYSTEM certificate store
   After the certificate issue was handled - the job will 'hang' for some
    time, and when it finishes I see in the log/debug file that I get a
   TIMOUT..
   SetError() Æ7: Timeout occurred while trying to connect to server¤
   Anyone who has experienced the same??
   I'd appreciate very much if someone out there has any ideas  .

   ************************ Request sent from my own dev.server (V7R1M0)
   works perfectly OK **********
   (The complete  logfile attached (I replaced the API-logon-keys with
   xxxxxxx )
   HTTPAPI Ver 1.24 released 2012-01-23
   OS/400 Ver V7R1M0
   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: 5
   DNS resolver retry  : 5
   DNS resolver options: x'00000136'
   DNS default domain: systema.no
   DNS server found: 193.75.75.75
   DNS server found: 193.75.75.193
   https_init(): entered
   -----------------------------------------------------------------------
   --------------
   Dump of local-side certificate information:
   -----------------------------------------------------------------------
   --------------
   -----------------------------------------------------------------------
   --------------
   Dump of server-side certificate information:
   -----------------------------------------------------------------------
   --------------
   Cert Validation Code = 0
   -----BEGIN CERTIFICATE-----
   MIIFRjCCBC6gAwIBAgIQB/Je+s2TD9n0ay3vrwznxzANBgkqhkiG9w0BAQUFADCB
   vDELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQL
   ..........
   d9cW6ea87omLldhLJO3fhnfe+9vshpQA4P48fONnrs6DViv5COUHQK4hR/HodNFu
   J68GI623S5VIzg==
   -----END CERTIFICATE-----
   Serial Number: 07:F2:5E:FA:CD:93:0F:D9:F4:6B:2D:EF:AF:0C:E7:C7
   Common Name: api.qa.bring.com
   Country: NO
   State/Province: Oslo
   Locality: Oslo
   Org Unit: POSTEN NORGE AS
   Org: POSTEN NORGE AS
   Issuer CN: VeriSign Class 3 International Server CA - G3
   Issuer Country: US
   Issuer Org: VeriSign, Inc.
   Issuer Org Unit: Terms of use at [1]https://www.verisign.com/rpa (c)10,
   OU=VeriSign Trust Network
   Version: 03
   not before: 20130226010000
   not after: 20140228005959
   pub key alg: 1.2.840.113549.1.1.5
   Protocol Used: TLS Version 1
   http_persist_get(): entered
   http_persist_req(GET) entered.
   http_long_ParseURL(): entered
   do_oper(GET): entered
   There are 0 cookies in the cache
   GET /po/api/v1/order/8436383671001/4502632816 HTTP/1.1
   Host: api.qa.bring.com
   User-Agent: http-api/1.24
   X-Purchaseorder-API-Uid:xxxxxxx@xxxxxxxxx
   X-Purchaseorder-API-Key:xxxxx-key
   recvresp(): entered
   HTTP/1.1 200 OK
   Content-Type: application/xml
   Cache-Control: no-cache, no-store
   Pragma: no-cache
   Content-Length: 3983
   Set-Cookie:
   BIGipServerpool_posten_api.qa.bring.com_8640=143881355.49185.0000;
   path=/
   SetError() Æ13: HTTP/1.1 200 OK
   recvresp(): end with 200
   recvdoc parms: identity 3983
   header_load_cookies() entered
   cookie_parse() entered
   cookie =
   BIGipServerpool_posten_api.qa.bring.com_8640=143881355.49185.0000;
   path=/
   cookie attr
   BIGipServerpool_posten_api.qa.bring.com_8640=143881355.49185.0000
   cookie attr path=/
   recvdoc(): entered
   SetError() Æ0:
   <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
   <GetPurchaseOrderResponse xmlns="[2]http://api.bring.com/po";>
       <ResponseProperties>
     ......
   >
   </GetPurchaseOrderResponse>
   http_close(): entered

   ************************ SAME Request sent from customers production
   server (V5R4M0) GIVES ME A TIMEOUT  **********
   (the requesting program  recompiled on customers server)
   The complete logfile  - viewed via wrklnk:
    ************Beginning of data**************
   HTTPAPI Ver 1.24 released 2012-01-23
   OS/400 Ver V5R4M0

   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: norcargo.no
   DNS server found: 139.116.44.6
   DNS server found: 139.116.44.7
   SetError() Æ7: Timeout occurred while trying to connect to server¤
    ************End of Data********************
   The complete logfile (form my own server where it works)
   Forbedringer/nyheter fra Systema AS - [3]klikk her
   Med vennlig hilsen / Best regards
   Jan Ottar Valderhaug
   [4]SYSTEMA AS
   St.Halvardsgt. 33A , 0192 Oslo
   Tel: +47 22660660 Direct: +47 22660654 Mob: +47 48052470 Fax: +47
   22660661
   [cid:_4_0AC58DEC0AC582F0002AC885C1257B41]

References

   1. https://www.verisign.com/rpa
   2. http://api.bring.com/po
   3. http://aspweb.systema.no/sycgip/esPTF02.pgm?user=ASSNN
   4. file://localhost/tmp/www.systema.no

PNG image

HTTPAPI Ver 1.24 released 2012-01-23
OS/400 Ver V7R1M0

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: 5
DNS resolver retry  : 5
DNS resolver options: x'00000136'
DNS default domain: systema.no
DNS server found: 193.75.75.75
DNS server found: 193.75.75.193
https_init(): entered
-------------------------------------------------------------------------------------
Dump of local-side certificate information:
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
Dump of server-side certificate information:
-------------------------------------------------------------------------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VHSUEITAfBggrBgEF
BQcDAQYIKwYBBQUHAwIGCWCGSAGG+EIEATBDBgNVHSAEPDA6MDgGCmCGSAGG+EUB
BzYwKjAoBggrBgEFBQcCARYcaHR0cHM6Ly93d3cudmVyaXNpZ24uY29tL2NwczAf
BgNVHSMEGDAWgBTXm3zYIqAV992tX84pm1jDvEYAtTBBBgNVHR8EOjA4MDagNKAy
hjBodHRwOi8vU1ZSSW50bC1HMy1jcmwudmVyaXNpZ24uY29tL1NWUkludGxHMy5j
cmwwcgYIKwYBBQUHAQEEZjBkMCQGCCsGAQUFBzABhhhodHRwOi8vb2NzcC52ZXJp
c2lnbi5jb20wPAYIKwYBBQUHMAKGMGh0dHA6Ly9TVlJJbnRsLUczLWFpYS52ZXJp
c2lnbi5jb20vU1ZSSW50bEczLmNlcjANBgkqhkiG9w0BAQUFAAOCAQEAhrk+YwFP
5We219l6ddGJFyDRw+hvIx/CxUjQ/Ddx71OEE8+ne6oCsZg1zvOG31SN9+kaKq48
nVU5nB8eiVvsOVX8PzxtvIkwO97JC+35XgeFrcH/ejrDe7yfvL4Gk5onpCIfXfTc
wC6aTT9b/zMS02J73tujJgqrXvkIhflFR5EB8v11avt7zTEbSObHKV0QGvepGAUA
VTtLymdxeuissQY7nqGqxgg7o1HJ+5W0UbqKWPTL2Y/FmhEjf9KOC48+5mSPvxqA
d9cW6ea87omLldhLJO3fhnfe+9vshpQA4P48fONnrs6DViv5COUHQK4hR/HodNFu
J68GI623S5VIzg==
-----END CERTIFICATE-----
Serial Number: 07:F2:5E:FA:CD:93:0F:D9:F4:6B:2D:EF:AF:0C:E7:C7
Common Name: api.qa.bring.com
Country: NO
State/Province: Oslo
Locality: Oslo
Org Unit: POSTEN NORGE AS
Org: POSTEN NORGE AS
Issuer CN: VeriSign Class 3 International Server CA - G3
Issuer Country: US
Issuer Org: VeriSign, Inc.
Issuer Org Unit: Terms of use at https://www.verisign.com/rpa (c)10, OU=VeriSign Trust Network
Version: 03
not before: 20130226010000
not after: 20140228005959
pub key alg: 1.2.840.113549.1.1.5

Protocol Used: TLS Version 1
http_persist_get(): entered
http_persist_req(GET) entered.
http_long_ParseURL(): entered
do_oper(GET): entered
There are 0 cookies in the cache
GET /po/api/v1/order/8436383671001/4502632816 HTTP/1.1
Host: api.qa.bring.com
User-Agent: http-api/1.24
X-Purchaseorder-API-Uid:xxxxxxx@xxxxxxxxx
X-Purchaseorder-API-Key:xxxxx-key


recvresp(): entered
HTTP/1.1 200 OK
Content-Type: application/xml
Cache-Control: no-cache, no-store
Pragma: no-cache
Content-Length: 3983
Set-Cookie: BIGipServerpool_posten_api.qa.bring.com_8640=143881355.49185.0000; path=/


SetError() Æ13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: identity 3983
header_load_cookies() entered
cookie_parse() entered
cookie =  BIGipServerpool_posten_api.qa.bring.com_8640=143881355.49185.0000; path=/
cookie attr BIGipServerpool_posten_api.qa.bring.com_8640=143881355.49185.0000
cookie attr path=/
recvdoc(): entered
SetError() Æ0:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GetPurchaseOrderResponse xmlns="http://api.bring.com/po";>
    <ResponseProperties>
        <SchemaVersion>1</SchemaVersion>
        <Locale>en</Locale>
        <DateAndTimes subClass="ResponseDate">2013-04-02T07:23:44.728+02:00</DateAndTimes>
    </ResponseProperties>
    <PurchaseOrderSet updateIndicator="Original">
        <PurchaseOrder orderId="4502632816">
            <SenderStatus>OPEN</SenderStatus>
            <Reference>
                <ReferenceNo>4502632816</ReferenceNo>
                <ReferenceType>ON</ReferenceType>
                <Text>Buyers order number</Text>
            </Reference>
            <DateAndTimes subClass="DocumentDate">2013-03-07T08:35:04+01:00</DateAndTimes>
            <TermsOfDelivery>
                <TODConditionCode>FCA</TODConditionCode>
                <TODConditionCodeList>Incoterms</TODConditionCodeList>
                <TODLocation></TODLocation>
            </TermsOfDelivery>
        </PurchaseOrder>
        <TransportLeg>
            <TransportLeg>20</TransportLeg>
            <ModeOfTransport>3</ModeOfTransport>
            <MeansOfTransport/>
            <Location subClass="StartLocation" locationId="5257">
                <LocationName>KOKSTAD</LocationName>
                <CountryCode>NO</CountryCode>
            </Location>
            <Location subClass="EndLocation" locationId="4035">
                <LocationName>STAVANGER</LocationName>
                <CountryCode>NO</CountryCode>
            </Location>
        </TransportLeg>
        <Party subClass="OrderingParty" partyId="8436383671000" idType="">
            <Name>Statoil Petroleum AS</Name>
            <VATNo></VATNo>
            <Address subClass="PhysicalAddress">
                <PostalCode>4035</PostalCode>
                <City>STAVANGER</City>
                <StateOrRegion></StateOrRegion>
                <CountryCode>NO</CountryCode>
                <AddressLine>Forusbeen 50</AddressLine>
            </Address>
            <Contact>
                <ContactName>Per Ove Galta</ContactName>
                <PhoneNo>peoga@xxxxxxxxxxx</PhoneNo>
            </Contact>
            <PlantId></PlantId>
        </Party>
        <Party subClass="Supplier" partyId="515026672" idType="">
            <Name>Tess Vest AS, Kokstad</Name>
            <VATNo></VATNo>
            <Address subClass="PhysicalAddress">
                <PostalCode>5257</PostalCode>
                <City>KOKSTAD</City>
                <StateOrRegion></StateOrRegion>
                <CountryCode>NO</CountryCode>
                <AddressLine>Kokstadvegen 35A</AddressLine>
            </Address>
            <Contact/>
            <PlantId></PlantId>
        </Party>
        <Party subClass="DeliveryParty" partyId="1150" idType="">
            <Name>Forsyningsbase Dusavik</Name>
            <VATNo></VATNo>
            <Address subClass="PhysicalAddress">
                <City>STAVANGER</City>
                <StateOrRegion></StateOrRegion>
                <CountryCode>NO</CountryCode>
                <AddressLine>Draupner Platform Gassled TSP</AddressLine>
            </Address>
            <Contact>
                <ContactName>Draupner Platform Gassled TSP</ContactName>
                <PhoneNo>51990000</PhoneNo>
            </Contact>
            <PlantId></PlantId>
        </Party>
        <OrderLineSet>
            <OrderItem articleLineId="10">
                <ArticleQuantity>8</ArticleQuantity>
                <RemainingArticleQuantity>0</RemainingArticleQuantity>
                <Description>
                    <Text>HÃ?NDSPRÃ?YTE   650 ML</Text>
                    <Usage></Usage>
                </Description>
                <ArticleMonetaryAmounts>
                    <UnitPrice currencyIdentificationCode="">0</UnitPrice>
                </ArticleMonetaryAmounts>
            </OrderItem>
        </OrderLineSet>
    </PurchaseOrderSet>
</GetPurchaseOrderResponse>

http_close(): entered
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------