Posted: Fri Oct 12, 2007 12:33 pm Post subject: The namespace for 'xmlns' cannot be bound to any prefix expl
Acolyte
Joined: 07 Feb 2006 Posts: 72
We use WMB 6.
We are getting the following parsing error when trying to navigate a message:
XML Parsing Errors have occurred; An error has been reported by the BIPXML4C component.; Null pointer; The namespace for 'xmlns' cannot be bound to any prefix explicitly. ; http://www.acme.com/ServiceMessage:ReplyServiceException;
It passes the MQInput node's XMLNSC parser. Here is the esql it chokes on:
Set Environment.Variables.referenceID = Coalesce(InputRoot.XMLNSC.*:Envelope.*:Body.*:*.*:EFileID.*:ID, 'Unknown');
Here is the message:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soap:Header>
***
</soap:Header>
<soap:Body>
<RequestAddUpdate d3p1:sourceText="003" xmlns:d3p1="http://www.it.ojp.gov/jxdm/3.0.2" xmlns="http://www.acme.com/AgencyMessage">
<Action>
***
</Action>
</RequestAddUpdate>
<soap:Fault>
<faultcode>p747:>ReplyServiceException</faultcode>
<faultstring>com.acme.services.message.v21.ReplyServiceException: acme.com.common.services.ServiceException & HTTP-Status-Code=500 & HTTP-Status-Line=HTTP/1.1 500 Internal Server Error</faultstring>
<detail>
<encodingStyle/>
<NS1:ReplyServiceException xmlns:NS1="http://www.acme.com/ServiceMessage">
<NS2:p747 xmlns:NS2="http://www.w3.org/2000/xmlns/">http://www.acme.com/ServiceMessage</NS2:p747>
<NS1:Message>com.acme.common.services.ServiceException</NS1:Message>
</NS1:ReplyServiceException>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
The message passes the MQInput node's XMLNSC parser, and looks OK in various other XML tools (XML Spy, RFHUTLC).
The XML standard allows you to use a namespace declaration to define a prefix for almost any namespace URI...but not "http://www.w3.org/2000/xmlns/". That URI is part of the XML standard, and is implicit.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum