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

HTTP Error 500



   I'm getting a 500 error and I _think_ it may be the last parm in the
   http_post_xml that is the issue as it is the only one that differs
   from the original example.  In the original the last parm was a URL.
   In mine it is a this urn reference.

           SOAP = '<soapenv:Envelope +

   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; +
                     xmlns:web="http://[1]www.webservicex.net";> +
                     <soapenv:Header/> +
                     <soapenv:Body> +
                        <xsd:getdescr_XML> +
                           <xsd:param0> +
                              <xsd:_CATCODE>' +
                              catCode +
                             '</xsd:_CATCODE>  +
                              <xsd:_PRODCODE>' +
                              prodCode +
                             '</xsd:_PRODCODE> +
                           </xsd:param0> +
                        </xsd:getdescr_XML> +
                     </soapenv:Body> +
                   </soapenv:Envelope>';
           http_setCCSIDs(1208: 0);
           http_debug(*ON);
           rc = http_post_xml(
   'http://172.28.128.30:10021/web/services/GETDESCRF'
                             : %addr(SOAP) + VARYINGDATAOFFSET
                             : %len(SOAP)
                             : *NULL
                             : %paddr(MapXmlData)
                             : %addr(description)
                             : HTTP_TIMEOUT
                             : HTTP_USERAGENT
                             : 'text/xml; charset=UTF-8'
                             : '"[2]urn:getdescr"' );

   This is the soap as used by SoapUI - which works just fine.
   <soapenv:Envelope
   xmlns:soapenv="[3]http://schemas.xmlsoap.org/soap/envelope/";
   xmlns:xsd="[4]http://getdescrf.wsbeans.iseries/xsd";>
      <soapenv:Header/>
      <soapenv:Body>
         <xsd:getdescr>
            <!--Optional:-->
            <xsd:param0>
               <!--Optional:-->
               <xsd:_CATCODE>01</xsd:_CATCODE>
               <!--Optional:-->
               <xsd:_PRODCODE>00020</xsd:_PRODCODE>
            </xsd:param0>
         </xsd:getdescr>
      </soapenv:Body>
   </soapenv:Envelope>
   Any suggestions?
   Jon Paris
   [5]www.Partner400.com
   [6]www.SystemiDeveloper.com

References

   1. http://www.webservicex.net/
   2. urn:getdescr
   3. http://schemas.xmlsoap.org/soap/envelope/
   4. http://getdescrf.wsbeans.iseries/xsd
   5. http://www.Partner400.com/
   6. http://www.SystemiDeveloper.com/
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------