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

Re: iSeries webservice call



   Hi Sabine,

   1) you must look inside the WSDL, you must look for something inside
   tag SoapAction, definetly is not Blanks !!

   2) not sure, ask the developer of the web service if you can, although
   this is an error of the web server.

   Regards Nicolas

   2010/8/25 Hintze, Sabine <[1]Sabine.Hintze@xxxxxxxxxx>

       Hi,
       I am trying to use Scott's EXAMPLE18 to call a web service on
     another
       iSeries and am getting an http 500 error.
       I can successfully call that web service using httpAdmin and
     another
       testing tool. I suspect that whatever I am putting in the SOAP
     Action
       parameter of the http_url_post_xml call is wrong.
       So, I have 2 questions:
       1.       How do I find out what the format of the soap action
     should
       be for this web service?
       2.       Where do I find log files on the iSeries that is hosting
     the
       web service to see if there is more information in it about what
     is
       causing the 500 error?
       Thanks, Sabine
       SOAP =
        '<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>'
       +'<soapenv:Envelope'
       +' xmlns:q0="[2]http://websrvpgm.wsbeans.iseries/xsd";'
       +' xmlns:soapenv="[3]http://schemas.xmlsoap.org/soap/envelope/";'
       +' xmlns:xsd="[4]http://www.w3.org/2001/XMLSchema";'
       +' xmlns:xsi="[5]http://www.w3.org/2001/XMLSchema-instance";>'
       +'   <soapenv:Body>'
       +'      <q0:main>'
       +'         <q0:param0>'
       +'            <q0:_I_REQUEST>aaaa</q0:_I_REQUEST>'
       +'         </q0:param0>'
       +'      </q0:main>'
       +'   </soapenv:Body>'
       +'</soapenv:Envelope>';
       SOAPAction = *Blanks;
       rc = http_url_post_xml(
                  'http://xxx.xxx.xxx.xxx:pppppp/web/services/WEBSRVPGM'
                         : %addr(SOAP) + 2
                         : %len(SOAP)
                         : *NULL
                         : %paddr(Incoming)
                         : %addr(data)
                         : HTTP_TIMEOUT
                         : HTTP_USERAGENT
                         : 'text/xml'
                         : SOAPAction);
       Sabine Hintze
       Bank Solutions
       Fiserv
       Office: 407-513-6092
       Fax: 407-357-4765
       [1][6]www.fiserv.com
       P Please consider the environment before printing this e-mail
     References
       1. [7]http://www.fiserv.com/
     -------------------------------------------------------------------
     ----
     This is the FTPAPI mailing list.  To unsubscribe, please go to:
     [8]http://www.scottklement.com/mailman/listinfo/ftpapi
     -------------------------------------------------------------------
     ----

   --
   _______________
   .:Nicolás Machado

References

   1. mailto:Sabine.Hintze@xxxxxxxxxx
   2. http://websrvpgm.wsbeans.iseries/xsd
   3. http://schemas.xmlsoap.org/soap/envelope/
   4. http://www.w3.org/2001/XMLSchema
   5. http://www.w3.org/2001/XMLSchema-instance
   6. http://www.fiserv.com/
   7. http://www.fiserv.com/
   8. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------