[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HTTP Error 500
This "<faultstring>javax.xml.stream.XMLStreamException: The namespace
prefix "xsd" was not declared.</faultstring>" appears to be the
critical part but here's the whole thing.
HTTPAPI Ver 1.24beta9 released 2010-01-06
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: RCHLAND.IBM.COM
WARNING: No name servers are configured for DNS resolution! You will
not be able to contact Internet hosts! See http://www.scottklement.com/httpapi/dns.html
for more information.
http_persist_post(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
POST /web/services/GETDESCRF HTTP/1.1
Host: 172.28.128.30:10021
User-Agent: http-api/1.24
Content-Type: text/xml; charset=UTF-8
SOAPAction: "urn:getdescr_XML"
Content-Length: 320
senddoc(): entered
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
" xmlns:web="http://www.webservicex.net"> <soapenv:Header/>
<soapenv:Body> <xsd:getdescr_XML> <xsd:param0> <xsd:_CATCODE>02</
xsd:_CATCODE> <xsd:_PRODCODE>10001</xsd:_PRODCODE> </xsd:param0> </
xsd:getdescr_XML> </soapenv:Body> </soapenv:Envelope>
recvresp(): entered
HTTP/1.1 500 OK
Date: Mon, 12 Apr 2010 16:23:04 GMT
Server: Lotus Expeditor Web Container/6.1
Content-Length: 355
Connection: close
Content-Type: text/xml; charset=UTF-8
Content-Language: en-US
SetError() #13: HTTP/1.1 500 OK
recvresp(): end with 500
recvdoc parms: identity 355
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</
faultcode><faultstring>javax.xml.stream.XMLStreamException: The
namespace prefix "xsd" was not declared.</faultstring><detail></
detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
SetError() #13: HTTP/1.1 500 OK
http_close(): entered
HTTPAPI Ver 1.24beta9 released 2010-01-06
OS/400 Ver V6R1M0
http_url_get(): entered
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: RCHLAND.IBM.COM
WARNING: No name servers are configured for DNS resolution! You will
not be able to contact Internet hosts! See http://www.scottklement.com/httpapi/dns.html
for more information.
http_persist_get(): entered
http_long_ParseURL(): entered
do_oper(GET): entered
http_url_get(): entered
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: RCHLAND.IBM.COM
WARNING: No name servers are configured for DNS resolution! You will
not be able to contact Internet hosts! See http://www.scottklement.com/httpapi/dns.html
for more information.
http_persist_get(): entered
http_long_ParseURL(): entered
do_oper(GET): entered
Jon Paris
www.Partner400.com
www.SystemiDeveloper.com
On Apr 12, 2010, at 1:27 PM, Thomas Raddatz wrote:
> Jon,
>
> Without the debug log it is hard to guess what is going wrong. Please
> enable the debug log, call the web service again and post the log
> output here.
>
> Thomas.
>
> Am 12.04.2010 05:30, schrieb Jon Paris:
>>
>> 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
>> -----------------------------------------------------------------------
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> 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
-----------------------------------------------------------------------