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

Error Message using XML Inside IFS File (http_post_stmf)



   Hi Scott,
   I just start to use the http_post_stmf with an IFS file with the XML to
   make a POST
   Filexml  = XML to make the post
    file2      = IFS file with the response data
     //----------------------------------------
        rc = http_post_stmf(urlsa           :
        filexml                                      :
        file2                                         :
        tiempo                                     :
        HTTP_USERAGENT                 :
        'Mozilla/5.0 (X11; U; OS400)'       :
        'text/xml;charset=UTF-8');

     //----------------------------------------
   But when I try to connect I received this error msg:
   <soap:Envelope
   xmlns:soap="[1]http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><s
   oap:Fault><faultcode>soap:Client</faultcode><faultstring>Error reading
   XMLStreamReader.</faultstring></soap:Fault></soap:Body></soap:Envelope>
   I show you the debug information:
   HTTPAPI Ver 1.24 released 2012-01-23
   OS/400 Ver V7R1M0
   New iconv() objects set, PostRem=1208. PostLoc=0. ProtRem=819.
   ProtLoc=0
   http_url_post_stmf(): entered
   getting post file size...
   opening file to be sent...
   opening file to be received
   http_persist_open(): entered
   http_long_ParseURL(): entered
   DNS resolver retrans: 2
   DNS resolver retry  : 2
   DNS resolver options: x'00000136'
   DNS default domain: [2]BANCON.HN
   DNS server found: 10.0.254.3
   DNS server found: 10.0.254.4
   http_persist_post(): entered
   http_persist_req(POST) entered.
   http_long_ParseURL(): entered
   do_oper(POST): entered
   There are 0 cookies in the cache
   POST /everest-wallet/WalletService/EverestWalletService HTTP/1.1
   Host: [3]172.30.1.221:8180
   User-Agent: http-api/1.24
   Content-Type: Mozilla/5.0 (X11; U; OS400)
   SOAPAction: text/xml;charset=UTF-8
   Content-Length: 1181
   sendraw(): entered
   <SOAP:Envelope
   xmlns:soapenv="[4]http://schemas.xmlsoap.org/soap/envelope/";
   xmlns:everest-wallet-ws-types="[5]http://www.wizzit-int.com/schema/ever
   est-wallet-ws-types">
   <soapenv:Header>
   <soapenv:Body>
   <ever:getAccountBalance>
   <ever:balanceEnquiryRequest>
   <ever:userCredentials>
   <ever:username>BancoContinental</ever:username>
   <ever:password>bancoContinental_02_WALLET</ever:password>
   </ever:userCredentials>
   <ever:customerRequest>
   <ever:customerRequestType>National Identification
   Number</ever:customerRequestType>
   <ever:customerRequestValue>0801197103218</ever:customerRequestValue>
   </ever:customerRequest>
   <ever:financialInstitution>
   <ever:code>BancoConti</ever:code>
   <ever:name>Banco Cont</ever:name>
   <ever:identification>003</ever:identification>
   <ever:branch>
   <ever:name>Sucursal M</ever:name>
   <ever:identification>401</ever:identification>
   </ever:branch>
   </ever:financialInstitution>
   <ever:authorisingEntity>
   <ever:name>Mario Alex</ever:name>
   <ever:identification>CAJA_123</ever:identification>
   </ever:authorisingEntity>
   <ever:transactionTypeIdentification>2</ever:transactionTypeIdentificati
   on>
   </ever:balanceEnquiryRequest>
   </ever:getAccountBalance>
   </SOAP:Body>
   </SOAP:Envelope>
   recvresp(): entered
   HTTP/1.1 500 Internal Server Error
   Server: Apache-Coyote/1.1
   Content-Type: text/xml;charset=ISO-8859-1
   Content-Length: 225
   Date: Thu, 20 Feb 2014 19:22:31 GMT
   Connection: close
   SetError() Ñ13: HTTP/1.1 500 Internal Server Error
   recvresp(): end with 500
   recvdoc parms: identity 225
   header_load_cookies() entered
   recvdoc(): entered
   SetError() Ñ0:
   <soap:Envelope
   xmlns:soap="[6]http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><s
   oap:Fault><faultcode>soap:Client</faultcode><faultstring>Error reading
   XMLStreamReader.</faultstring></soap:Fault></soap:Body></soap:Envelope>
   SetError() Ñ13: HTTP/1.1 500 Internal Server Error
   http_close(): entered
   Could you tell me the reason of the error?
   Best Regards,

References

   1. http://schemas.xmlsoap.org/soap/envelope/
   2. http://BANCON.HN/
   3. http://172.30.1.221:8180/
   4. http://schemas.xmlsoap.org/soap/envelope/
   5. http://www.wizzit-int.com/schema/everest-wallet-ws-types
   6. http://schemas.xmlsoap.org/soap/envelope/
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------