I've seen this error reported on this list before. The fault message is valid, but it contains the xml:lang attribute. For some reason Axis (or is it Crimson?) is having trouble parsing this attribute. The xml: namespace prefix is not an illegal namespace. It is a predefined, well-known namespace so it doesn't need to be defined. It would be illegal if you attempted to declare the xml: namespace prefix as anything other than the xml namespace. But that's not what's going on here.

Anyone recall how to work around this problem?

Anne

At 10:16 AM 3/24/2004, you wrote:
Hello,

I am having a problem with Apache Axis properly recognizing an exception
being thrown when consuming a webMethods web service. I'm not sure if
the problem is what webMethods is sending as a response, or if Axis is
not properly processing a valid message. Please take a look at the below
SOAP response from webMethods, and the Apache Axis error message that is
produced because of it. Also, below is the email thread I am having with
webMethods on the issue.

This looks like a valid response, but from the Axis error message, it
seems to think there is a namespace problem. Any help you can give me
will be much appreciated.

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
    xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
  <SOAP-ENV:Body>
   <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Client</faultcode>
    <faultstring>[ISS.0088.9134] Exception occurred while processing the
body of the message</faultstring>
    <faultactor>http://tesla/soap/rpc</faultactor>
    <detail
xmlns:webM="http://www.webMethods.com/2001/10/soap/encoding";>
        <webM:exception>

<webM:className>com.wm.app.b2b.server.AccessException</webM:className>
            <webM:message xml:lang="en">[ISS.0084.9004] Access
Denied</webM:message>
        </webM:exception>
    </detail>
   </SOAP-ENV:Fault>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXException: Error: URI=null Line=3: Illegal Namespace prefix: &quot;xml&quot;. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXException: Error: URI=null Line=3: Illegal Namespace prefix: &quot;xml&quot;. at org.apache.axis.utils.XMLUtils$ParserErrorHandler.error(XMLUtils.java:61 9) at org.apache.crimson.parser.Parser2.error(Parser2.java:3322) at org.apache.crimson.parser.Parser2.processAttributeNS(Parser2.java:1735) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1583) at org.apache.crimson.parser.Parser2.content(Parser2.java:1926) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634) at org.apache.crimson.parser.Parser2.parse(Parser2.java:333) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448) at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.ja va:185) at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:322) at org.apache.axis.message.MessageElement.getAsDocument(MessageElement.java :688) at org.apache.axis.message.MessageElement.getAsDOM(MessageElement.java:714) at org.apache.axis.message.SOAPFaultBuilder.onEndChild(SOAPFaultBuilder.jav a:336) at org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseriali zationContextImpl.java:1018) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1675) at org.apache.crimson.parser.Parser2.content(Parser2.java:1926) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654) at org.apache.crimson.parser.Parser2.content(Parser2.java:1926) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654) at org.apache.crimson.parser.Parser2.content(Parser2.java:1926) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634) at org.apache.crimson.parser.Parser2.parse(Parser2.java:333) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio nContextImpl.java:242) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538) at org.apache.axis.Message.getSOAPEnvelope(Message.java:376) at org.apache.axis.client.Call.invokeEngine(Call.java:2583) at org.apache.axis.client.Call.invoke(Call.java:2553) at org.apache.axis.client.Call.invoke(Call.java:2248) at org.apache.axis.client.Call.invoke(Call.java:2171) at org.apache.axis.client.Call.invoke(Call.java:1691) at com.avnet.fileattachment.save.AvFileAttachmentDB_PublicBindingStub.saveF ile(AvFileAttachmentDB_PublicBindingStub.java:157) at com.avnet.fileattachment.Test.testSave(Test.java:41) at com.avnet.fileattachment.Test.main(Test.java:67)

org.xml.sax.SAXException: Error: URI=null Line=3: Illegal Namespace
prefix: "xml".
at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:543)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at
com.avnet.fileattachment.save.AvFileAttachmentDB_PublicBindingStub.saveF
ile(AvFileAttachmentDB_PublicBindingStub.java:157)
at com.avnet.fileattachment.Test.testSave(Test.java:41)
at com.avnet.fileattachment.Test.main(Test.java:67)
Caused by: org.xml.sax.SAXException: Error: URI=null Line=3: Illegal
Namespace prefix: "xml".
at
org.apache.axis.utils.XMLUtils$ParserErrorHandler.error(XMLUtils.java:61
9)
at org.apache.crimson.parser.Parser2.error(Parser2.java:3322)
at
org.apache.crimson.parser.Parser2.processAttributeNS(Parser2.java:1735)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1583)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at
org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.ja
va:185)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:322)
at
org.apache.axis.message.MessageElement.getAsDocument(MessageElement.java
:688)
at
org.apache.axis.message.MessageElement.getAsDOM(MessageElement.java:714)
at
org.apache.axis.message.SOAPFaultBuilder.onEndChild(SOAPFaultBuilder.jav
a:336)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseriali
zationContextImpl.java:1018)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1675)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
nContextImpl.java:242)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
... 9 more
Exception in thread "main"


Thanks, Chris Goguen Sr. Systems Analyst - Enterprise Integration Avnet, GIS Office: (480) 643-8019 Cell: (440) 477-6153 Home: (440) 942-5480 -----Original Message----- From: Andrew Fitt [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 6:48 PM To: Goguen, Chris Subject: RE: 1-43507131 | Access Denied web service response causing an error with Apache Axis


Hi Chris, The Soap message webMethods Integration Server sends conforms to the message standard. I recommend that you raise the issue with Apache if you are having problems with the product Axis. Regards, Andrew Fitt

-----------------------------
Reply to Andrew Fitt:

Andrew,
I'm currently using xerces, with is a part of Apache axis. I know how to
fix this error, my concern is that the error message we get in axis is
not descriptive of the actual error. Would it be possible for you to
download the Apache Axis 1.1 from http://ws.apache.org/axis/index.html
and try this out.

Axis is a standards based web services tool that should not be getting
these kinds of errors unless the soap is invalid.

Thanks,
Chris Goguen
Sr. Systems Analyst - Enterprise Integration
Avnet, GIS
Office: (480) 643-8019
Cell:    (440) 477-6153
Home: (440) 942-5480
-----Original Message-----
From: Andrew Fitt [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 10:08 AM
To: Goguen, Chris
Subject: RE: 1-43507131 | Access Denied web service response causing an
error with Apache Axis


Hi Chris, You will need to change the XML parser to Xerces. The definition is legal under W3C (http://www.w3.org/TR/2002/WD-xml-names11-20020905/) There is a similar instance of this issue on another product (http://www-124.ibm.com/pipermail/uddi4j-general/2003-January/000275.htm l) Also, I don't know if you notice the Access Denied error which is probably due to file based restrictions. Regards, Andrew




Reply to Andrew Fitt: --------------------------------

Andrew,
Now I get a different error message:

HTTP/1.0 500 Internal Server Error

Set-Cookie: ssnid=7777Gsj2WoI2TuaQ8NoPOPbwekCIaQ=8888157; path=/;

Content-Type: text/xml;charset=utf-8

Connection: Close

Content-Length: 837



<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
    xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
  <SOAP-ENV:Body>
   <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Client</faultcode>
    <faultstring>[ISS.0088.9134] Exception occurred while processing the
body of the message</faultstring>
    <faultactor>http://tesla/soap/rpc</faultactor>
    <detail
xmlns:webM="http://www.webMethods.com/2001/10/soap/encoding";>
        <webM:exception>

<webM:className>com.wm.app.b2b.server.AccessException</webM:className>
            <webM:message xml:lang="en">[ISS.0084.9004] Access
Denied</webM:message>
        </webM:exception>
    </detail>
   </SOAP-ENV:Fault>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXException: Error: URI=null Line=3: Illegal Namespace prefix: &quot;xml&quot;. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXException: Error: URI=null Line=3: Illegal Namespace prefix: &quot;xml&quot;. at org.apache.axis.utils.XMLUtils$ParserErrorHandler.error(XMLUtils.java:61 9) at org.apache.crimson.parser.Parser2.error(Parser2.java:3322) at org.apache.crimson.parser.Parser2.processAttributeNS(Parser2.java:1735) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1583) at org.apache.crimson.parser.Parser2.content(Parser2.java:1926) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634) at org.apache.crimson.parser.Parser2.parse(Parser2.java:333) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448) at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.ja va:185) at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:322) at org.apache.axis.message.MessageElement.getAsDocument(MessageElement.java :688) at org.apache.axis.message.MessageElement.getAsDOM(MessageElement.java:714) at org.apache.axis.message.SOAPFaultBuilder.onEndChild(SOAPFaultBuilder.jav a:336) at org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseriali zationContextImpl.java:1018) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1675) at org.apache.crimson.parser.Parser2.content(Parser2.java:1926) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654) at org.apache.crimson.parser.Parser2.content(Parser2.java:1926) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654) at org.apache.crimson.parser.Parser2.content(Parser2.java:1926) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634) at org.apache.crimson.parser.Parser2.parse(Parser2.java:333) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio nContextImpl.java:242) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538) at org.apache.axis.Message.getSOAPEnvelope(Message.java:376) at org.apache.axis.client.Call.invokeEngine(Call.java:2583) at org.apache.axis.client.Call.invoke(Call.java:2553) at org.apache.axis.client.Call.invoke(Call.java:2248) at org.apache.axis.client.Call.invoke(Call.java:2171) at org.apache.axis.client.Call.invoke(Call.java:1691) at com.avnet.fileattachment.save.AvFileAttachmentDB_PublicBindingStub.saveF ile(AvFileAttachmentDB_PublicBindingStub.java:157) at com.avnet.fileattachment.Test.testSave(Test.java:41) at com.avnet.fileattachment.Test.main(Test.java:67)

org.xml.sax.SAXException: Error: URI=null Line=3: Illegal Namespace
prefix: "xml".
at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:543)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at
com.avnet.fileattachment.save.AvFileAttachmentDB_PublicBindingStub.saveF
ile(AvFileAttachmentDB_PublicBindingStub.java:157)
at com.avnet.fileattachment.Test.testSave(Test.java:41)
at com.avnet.fileattachment.Test.main(Test.java:67)
Caused by: org.xml.sax.SAXException: Error: URI=null Line=3: Illegal
Namespace prefix: "xml".
at
org.apache.axis.utils.XMLUtils$ParserErrorHandler.error(XMLUtils.java:61
9)
at org.apache.crimson.parser.Parser2.error(Parser2.java:3322)
at
org.apache.crimson.parser.Parser2.processAttributeNS(Parser2.java:1735)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1583)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at
org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.ja
va:185)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:322)
at
org.apache.axis.message.MessageElement.getAsDocument(MessageElement.java
:688)
at
org.apache.axis.message.MessageElement.getAsDOM(MessageElement.java:714)
at
org.apache.axis.message.SOAPFaultBuilder.onEndChild(SOAPFaultBuilder.jav
a:336)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseriali
zationContextImpl.java:1018)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1675)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1926)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
nContextImpl.java:242)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
... 9 more
Exception in thread "main"


Thanks, Chris Goguen Sr. Systems Analyst - Enterprise Integration Avnet, GIS Office: (480) 643-8019 Cell: (440) 477-6153 Home: (440) 942-5480 -----Original Message----- From: Andrew Fitt [mailto:[EMAIL PROTECTED] Sent: Friday, March 19, 2004 4:28 PM To: Goguen, Chris Subject: RE: 1-43507131 | Access Denied web service response causing an error with Apache Axis


Hi Chris, The reason there is no language set is because the default for a service is undefined. You will need to define the language you wish to use on the service you are calling with soap. I have attached a doc with screen shots show what to do. Please let me know if that resolves your problem. I have verified this myself. Regards, Andrew Fitt


<<Doc1.doc>>







~~~~~~~~~~~~~~~~~~
Anne Thomas Manes
VP & Research Director
Burton Group




Reply via email to