axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Davis" <...@us.ibm.com>
Subject Re: IS IT A BUG? - BAD NAME SPACE!!!!!!!!!!!!!!!!!!!!!!!!!
Date Wed, 19 Dec 2001 13:12:52 GMT
Try using tcpmon to see what the server is returning.
This error usually means that the server is returning
some kind of http error (ie. no xml) and our parsing
throws an error on it.
-Dug


"Namor Taror" <namortaror@hotmail.com> on 12/19/2001 01:15:27 AM

Please respond to axis-user@xml.apache.org

To:   axis-user@xml.apache.org
cc:
Subject:  IS IT A BUG? - BAD NAME SPACE!!!!!!!!!!!!!!!!!!!!!!!!!



I am repeting this message because it apears to be a bug. I saw a number of
references to this problem on the list archieve and I am not sure how to
bring it to the attantion of the responsible party.



When I call ejb web service the EnvelopeBuilder throws 'Bad envelope
namespace' exception (belowe) in the startElement method. There is an if
statement in this method that compares the name space to the envelop's name
space "http://schemas.xmlsoap.org/soap/envelope/".

        if (!localName.equals(Constants.ELEM_ENVELOPE))
            throw new SAXException(
                    JavaUtils.getMessage("badTag00", localName));

I am setting the services namespace of the call object in the client code
to;
                 call.setProperty( Call.NAMESPACE, "urn:SchedulerManager");


I don't understand why since I am not building the envelope. It is axis or
soap that does it.

Here is may deployment:

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
     <service name="urn:SchedulerManager" provider="java:EJB">
          <parameter name="beanJndiName" value="
java:comp/env/SchedulerManager"/>
          <parameter name="homeInterfaceName"
value="com.taror.schedule.ejb.session.scheduler.SchedulerManagerHome"/>
          <parameter name="allowedMethods" value="saveMessage isAlive
addSecondaryJob"/>
     </service>
</deployment>

and the exception:

org.xml.sax.SAXException: Bad envelope namespace:
org.xml.sax.SAXException: Bad envelope namespace:
        at
org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.
java:108)
        at
org.apache.axis.encoding.DeserializationContext.startElement(Deserial
izationContext.java:643)
        at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1449)
        at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
        at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)

        at javax.xml.parsers.SAXParser.parse(SAXParser.java:346)
        at
org.apache.axis.encoding.DeserializationContext.parse(Deserialization
Context.java:204)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:378)
        at org.apache.axis.client.Call.invoke(Call.java:1268)
        at org.apache.axis.client.Call.invoke(Call.java:1113)
        at org.apache.axis.client.Call.invoke(Call.java:1043)
        at org.apache.axis.client.Call.invoke(Call.java:676)




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com




Mime
View raw message