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 Martin Gainty <mg...@hotmail.com> on 2007/05/01 00:17:14 UTC
Re: elementFormDefault=qualified value causes problems with xmlbeans binding
Hello Srinivas-
so if you would set uri to null e.g.
<namespace uri="" default="elements"/>
this does NOT generate the correct code?
Ive seen 2 suggestions of
XmlOptions.setSaveSuggestedPrefixes("")
XmlOptions.setSaveAggresiveNamespaces("");
but have not seen this anywhere in the code..
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: Sampige, Srinivas
To: axis-user@ws.apache.org
Sent: Monday, April 30, 2007 5:35 PM
Subject: elementFormDefault=qualified value causes problems with xmlbeans binding
What affect does elementFormDefault="qualified" have vs elementFormDefault="unqualified" in a schema declaration? Using elementFormDefault="unqualified" causes problems on the webservice server side as well as client side when using XMLBeans binding. How do I avoid this problem without using elementFormDefault="qualified" Our team insists on keeping elementFormDefault="unqualified"
Error seen on the server side
---------------
Apr 30, 2007 1:56:10 PM org.apache.axis2.transport.http.AxisServlet doPost
SEVERE: java.lang.NullPointerException
Error seen on the client side
--------------
[java] java.lang.NullPointerException
[java] at com.ctc.wstx.sw.BaseNsStreamWriter.doWriteDefaultNs(BaseNsStreamWriter.java:528)
[java] at com.ctc.wstx.sw.SimpleNsStreamWriter.writeDefaultNamespace(SimpleNsStreamWriter.java:111)
[java] at com.ctc.wstx.sw.SimpleNsStreamWriter.writeNamespace(SimpleNsStreamWriter.java:119)
[java] at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeNamespace(MTOMXMLStreamWriter.java:146)
[java] at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeElement(StreamingOMSerializer.java:243
[java] at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode(StreamingOMSerializer.java:76)
[java] at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:59)
[java] at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMSerializerUtil.java:473)
[java] at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:823)
[java] at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:848)
[java] at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:819)
[java] at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:180)
[java] at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:848)
[java] at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:419)
[java] at org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.handleOMOutput(SOAPOverHTTPSend
[java] at org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEntity.writeRequest(SOAPOverHTTPSender
[java] at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:
[java] at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
[java] at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
[java] at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
[java] at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
[java] at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
[java] at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
[java] at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:541)
[java] at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:119)
[java] at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportS
35)
[java] at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
[java] at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
[java] at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:237)
[java] at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
[java] at wss.directv.com.ScheduleRefreshServiceStub.ScheduleRefresh(ScheduleRefreshServiceStub.java:155)
[java] at wss.directv.com.Test.main(Test.java:36)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Thanks
Srinivas