[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SetError() #29: gsk_sec_soc_open: (GSKit) Handle is not valid
All,
We have solved the issue of getting past the firewall. We had to
add the http_setproxy.
Now we are looking at the Soap and http_url_post_xml and not sure
we are using them correctly because we are getting a "Handle is not
valid" error.
Here is what we are trying to do:
1. Connect to the external Web Services
2. Request a Get-lines-request
3. Reponse data in a XML fromat. example below.
Should we be using and other "HTTP_" process to get back the XML
data?
Your guidance would be greatly appreciated.
------------
Below is our debug log, the xml data we are expecting, our Soap and
http_url_post_xml for your view.
The process errors out with the following info placed in the
debug log.
/tmp/httpapi_debug.txt
HTTPAPI Ver 1.23 released 2008-04-24
OS/400 Ver V6R1M0
New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819.
ProtLoc=0
https_init(): entered
SetError() #35: Application is not registered with DCM!
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: xxx.xxxx.xxxxxx.COM
DNS server found: 99.200.3.99
DNS server found: 99.200.3.99
CONNECT xxxxxxxxx.xxxxxx.com:443 HTTP/1.1
Host: xxxxxxxxx.xxxxxx.com HTTP/1.1
User-Agent: http-api/1.23
Proxy-Connection: keep-alive
recvresp(): entered
HTTP/1.1 200 Connection established
SetError() #13: HTTP/1.1 200 Connection established
recvdoc parms: identity 0
header_load_cookies() entered
(GSKit) Handle is not valid.
ssl_error(1): (GSKit) Handle is not valid.
SetError() #29: gsk_sec_soc_open: (GSKit) Handle is not valid.
Our Response XML data we are expecting
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<ns1:sessionID
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="0"
xmlns:ns1="http://xml.apache.org/axis/session">-8845953095787106939
</ns1:sessionID>
</soapenv:Header>
<soapenv:Body>
<get-lines-response>
<ns3:line-fields-data-list
xmlns:ns3="http://www.xxxxxx.com/contracts/types/domain/line">
<ns3:line-fields-data>
<ns3:line-definition-name>pdmtbl</ns3:line-definition-name>
<ns3:line-field-data>
<ns3:line-field-name>pdmtid</ns3:line-field-name>
<ns3:line-field-value>
<ns4:string-value
xmlns:ns4="http://www.xxxxxx.com/contracts/types/domain/common">CA0
03</ns4:string-value>
</ns3:line-field-value>
</ns3:line-field-data>
</ns3:line-fields-data>
</get-lines-response>
</soapenv:Body>
</soapenv:Envelope>
Here is the Soap and http_url_post_xml code.
https_init(our_App');
http_setproxy('xxxproxy.xxxxx.com':80);
http_XmlStripCRLF(*OFF);
SOAP
=
'<soapenv:Envelope
'
+'xmlns:soapenv="[1]http://schemas.xmlsoap.org/soap/envelope/"
'
+'xmlns:con="[2]http://www.xxxxx.com/contracts/services/contract"
'
+'xmlns:auth="[3]http://www.xxxxx.com/contracts/types/auth"
'
+'xmlns:con1="[4]http://www.xxxxx.com/contracts/types/domain/contra
ct"
+'<soapenv:Header/>'
+'
<soapenv:Body>'
+'
<con:get-lines-request>'
+'
<con:authentication'
+' <auth:user>user</auth:user>'
+'
<auth:credential>'
+'
<auth:password>word</auth:password>'
+'
</auth:credential>'
+'
</con:authentication>'
+'
<con:request-data>'
+'
<con1:id>xx218f4a20034002a97aefa4763b97xx</con1:id>'
+'
</con:request-data>'
+'
</con:get-lines-request>'
+' </soapenv:Body>
'
+'</soapenv:Envelope>';
http_debug(*ON);
rc =
http_url_post_xml(
'https://xxxxxxxxxxxxxxx.xxxxxxxx.com/webservices/servic
es
/ContractServices
'
: %addr(SOAP) +
2
:
%len(SOAP)
:
*NULL
:
%paddr(Incoming)
: %addr(Result)
:
HTTP_TIMEOUT
:
HTTP_USERAGENT
:
'text/xml'
:
'https://xxxxxxxxxxxxxxxx.xxxxxxxxx.com/webservices/service
/ContractServices ');
thanks,
Bryan
References
1. http://schemas.xmlsoap.org/soap/envelope/
2. http://www.xxxxx.com/contracts/services/contract
3. http://www.xxxxx.com/contracts/types/auth
4. http://www.xxxxx.com/contracts/types/domain/contract
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------