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

HTTPAPI log in errors



   Scott,


   I am trying to consume a web service from a new vendor using the
   HTTPAPI.  I have been able to get your examples to work successfully,
   but I am having problems getting this new application to work.


   The vendor has supplied a test html document that runs just fine when
   run from a browser.  It is attached.


   My RPG program issues the call to HTTPAPI using the following line:


   rc = http_post_xml(

   'https://anscert.drfirst.com/getURL'

                     : %addr(DR1ST_XML) + VARYINGDATAOFFSET

                     : %len(DR1ST_XML)

                     : *NULL

                     : %paddr(MapXmlData)

                     : %addr(EngineUpload) );


   This code is a slightly modified version of the GEOIP example that you
   supplied.


   When I execute the program, the attached debug log is generated.  It
   appears that my request string is passed as requested, the server is
   apparently contacted and receives the request.  However, based on the
   response received something is wrong with the logon string and I
   cannot be authenticated.


   The test html works when sent from windows (IIS) but my request from
   the iSeries (Apache) doesn't seem to work.  Any ideas???


   The vendor is not being very helpful.  Any help you can give me would
   really be appreciated!


   Jim

     _________________________________________________________________

   Confidentiality Notice: This e-mail transmission may contain
   confidential or legally privileged material that is intended only for
   the individual or entity named in the e-mail address. If you are not
   the intended recipient, you are hereby notified that any disclosure,
   copying, distribution or reliance upon the contents of the e-mail is
   strictly prohibited. If you have received this e-mail transmission in
   error, please reply to the sender, so that proper delivery can be
   arranged, and then please delete the message from your inbox.
HTTPAPI Ver 1.23 released 2008-04-24
OS/400 Ver V6R1M0

http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: VMH.COM
DNS server found: 10.1.1.33
DNS server found: 10.1.1.190
DNS server found: 10.1.1.66
https_init(): entered
-------------------------------------------------------------------------------------
Dump of local-side certificate information:
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
Dump of server-side certificate information:
-------------------------------------------------------------------------------------
Cert Validation Code = 0
-----BEGIN CERTIFICATE-----
MIIDfjCCAuegAwIBAgIQXd8b0z/TLeS3SaE2Y//DuzANBgkqhkiG9w0B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QVFm0vLO6OFYmiY+N1dDKfMOYqlDumzvrxgwM3T+rJu1yvEyuBp6R
/RLY53Iwyfi6aR/0muXN80bwQ8RauMS0EmGt21JdkwPs3Q==
-----END CERTIFICATE-----
Serial Number: 5D:DF:1B:D3:3F:D3:2D:E4:B7:49:A1:36:63:FF:C3:BB
Common Name: anscert.drfirst.com
Country: US
State/Province: Maryland
Locality: Rockville
Org Unit: DrFirst.com, Inc.
Org: Developer
Issuer CN: Thawte Premium Server CA
Issuer Country: ZA
Issuer State/Province: Western Cape
Issuer Locality: Cape Town
Issuer Org: Thawte Consulting cc
Issuer Org Unit: Certification Services Division
Version: 03
not before: 20081224122933
not after: 20111224122933
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 /getURL HTTP/1.1
Host: anscert.drfirst.com
User-Agent: http-api/1.23
Content-Type: text/xml; charset=UTF-8
SOAPAction:  
Expect: 100-continue
Content-Length: 440


recvresp(): entered
HTTP/1.1 100 Continue


SetError() #13: HTTP/1.1 100 Continue
senddoc(): entered
<form action="https://anscert.drfirst.com/getURL"; method=POST><?xml version="1.0" encoding="UTF-8"?><RCExtRequest><Caller><VendorName>vvendor2</VendorName><VendorPassword>xxxxxxxx</VendorPassword><PracticeName>yyyyyy</PracticeName><Application>EMR</Application><Version>1</Version><Station>Station A</Station></Caller><RcopiaPracticeUsername>yyyyyy</RcopiaPracticeUsername><Request><Command>get_url</Command></Request></RCExtRequest></form>
recvresp(): entered
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: no-cache
Pragma: no-cache
Expires: -1
Set-Cookie: JSESSIONID=842CAA42754B549C9B16CB21D802E3DF.cert5_ans; Path=/
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 261
Date: Tue, 04 Jan 2011 19:02:11 GMT
Connection: close
Set-Cookie: B100Serverpoolcookie=3429201217.1.4098319936.2217797663; path=/


SetError() #13: HTTP/1.1 200 OK
recvdoc parms: identity 261
header_load_cookies() entered
cookie_parse() entered
cookie =  JSESSIONID=842CAA42754B549C9B16CB21D802E3DF.cert5_ans; Path=/
cookie attr jsessionid=842CAA42754B549C9B16CB21D802E3DF.cert5_ans
cookie attr path=/
cookie_parse() entered
cookie =  B100Serverpoolcookie=3429201217.1.4098319936.2217797663; path=/
cookie attr b100serverpoolcookie=3429201217.1.4098319936.2217797663
cookie attr path=/
recvdoc(): entered
SetError() #0:
<RCExtResponse>
<Request>

</Request>
<Response>
<ServerIPAddress></ServerIPAddress>
<Status>error</Status>


<Error>
<Code>unspecified</Code>
<Text>Exception thrown: Cannot determine user identity.</Text>
</Error>


</Response>
</RCExtResponse>
http_close(): entered


Rcopia Engine API Test Form



Command: get_url (ANS)


   ______________________________________________________________________
   ______________________________________________________________________
   ______________________________________________________________________
   ______________________________________________________________________
   ______________________________________________________________________
   ______________________________________________________________________
   ______________________________________________________________________
   ______________________________________________________________________
   ______________________________________________________________________
   ______________________________________________________________________
   ______________________________________________________________________
   ______________________________________________________________________
   ______________________________________________________________________
   ______________________________________________________________________
   ______________________________________________________________________

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