You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Namor Taror <na...@hotmail.com> on 2001/12/19 07:15:27 UTC

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