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 "Faucher, Christian" <Ch...@axa-canada.com> on 2006/07/27 21:27:41 UTC

Empty namespace issue (I think)...

Greetings,
 
I have a Message-type Web Service, in which I look into the SOAPEnvelope
to retrieve my XML content.
 
Using TCPMon, I grabbed the request sent to the server (Axis
web-service):  see request-sent.xml.  Notice the xmlns="" and XSI NS.  I
know this request has a valid foramt, since I can marshall/unmarshall
the JAXB object tree from it.
 
On my server-side, I print the XML request received (see
request-received.xml), which is not valid and fails the unmarshalling
using JAXB.  Notice the "empty" namespaces in from of elemetns (e.g.
<:ContractVersionNumber>2</:ContractVersionNumber>).  XSI namespaces are
gone as well.
 
The service side runs on JBossAS 4.0.4, with Axis 1.3.
 
What's wrong with my Axis configuration?  Also attached is my WSDD that
deploys the service.
 
Anyhelp will be appreciated!
 
BR,
 
Christian Faucher
Consultant Java / Java Consultant
  _____  

"Ce message est confidentiel, a l'usage exclusif du destinataire
ci-dessus et son contenu ne represente en aucun cas un engagement de la
part de AXA, sauf en cas de stipulation expresse et par ecrit de la part
de AXA. Toute publication, utilisation ou diffusion, meme partielle,
doit etre autorisee prealablement. Si vous n'etes pas destinataire de ce
message, merci d'en avertir immediatement l'expediteur."

"This e-mail message is confidential, for the exclusive use of the
addressee and its contents shall not constitute a commitment by AXA,
except as otherwise specifically provided in writing by AXA. Any
unauthorized disclosure, use or dissemination, either whole or partial,
is prohibited. If you are not the intended recipient of the message,
please notify the sender immediately."

Re: Empty namespace issue (I think)...

Posted by Martin Gainty <mg...@hotmail.com>.
MessageIn  the situation where the namespace is hidden or not visible within your instance 
the qualifier elementFormDefault="unqualified" 
needs to be declared for the references xmlns:Namespace


http://www.xfront.com/HideVersusExpose.html

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: Faucher, Christian 
  To: axis-user@ws.apache.org 
  Sent: Thursday, July 27, 2006 3:27 PM
  Subject: Empty namespace issue (I think)...


  Greetings,

  I have a Message-type Web Service, in which I look into the SOAPEnvelope to retrieve my XML content.

  Using TCPMon, I grabbed the request sent to the server (Axis web-service):  see request-sent.xml.  Notice the xmlns="" and XSI NS.  I know this request has a valid foramt, since I can marshall/unmarshall the JAXB object tree from it.

  On my server-side, I print the XML request received (see request-received.xml), which is not valid and fails the unmarshalling using JAXB.  Notice the "empty" namespaces in from of elemetns (e.g. <:ContractVersionNumber>2</:ContractVersionNumber>).  XSI namespaces are gone as well.

  The service side runs on JBossAS 4.0.4, with Axis 1.3.

  What's wrong with my Axis configuration?  Also attached is my WSDD that deploys the service.

  Anyhelp will be appreciated!

  BR,

  Christian Faucher
  Consultant Java / Java Consultant


------------------------------------------------------------------------------

  "Ce message est confidentiel, a l'usage exclusif du destinataire ci-dessus et son contenu ne represente en aucun cas un engagement de la part de AXA, sauf en cas de stipulation expresse et par ecrit de la part de AXA. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee prealablement. Si vous n'etes pas destinataire de ce message, merci d'en avertir immediatement l'expediteur."

  "This e-mail message is confidential, for the exclusive use of the addressee and its contents shall not constitute a commitment by AXA, except as otherwise specifically provided in writing by AXA. Any unauthorized disclosure, use or dissemination, either whole or partial, is prohibited. If you are not the intended recipient of the message, please notify the sender immediately." 


------------------------------------------------------------------------------


  ---------------------------------------------------------------------
  To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
  For additional commands, e-mail: axis-user-help@ws.apache.org

Re: Empty namespace issue (I think)...

Posted by Anne Thomas Manes <at...@gmail.com>.
All I can think of is that one of your handlers is munging the
message. Notice that the soapenv namespace declaration has also been
removed.

Anne

On 7/27/06, Faucher, Christian <Ch...@axa-canada.com> wrote:
>
>
> Greetings,
>
> I have a Message-type Web Service, in which I look into the SOAPEnvelope to
> retrieve my XML content.
>
> Using TCPMon, I grabbed the request sent to the server (Axis web-service):
> see request-sent.xml.  Notice the xmlns="" and XSI NS.  I know this request
> has a valid foramt, since I can marshall/unmarshall the JAXB object tree
> from it.
>
> On my server-side, I print the XML request received (see
> request-received.xml), which is not valid and fails the unmarshalling using
> JAXB.  Notice the "empty" namespaces in from of elemetns (e.g.
> <:ContractVersionNumber>2</:ContractVersionNumber>).  XSI
> namespaces are gone as well.
>
> The service side runs on JBossAS 4.0.4, with Axis 1.3.
>
> What's wrong with my Axis configuration?  Also attached is my WSDD that
> deploys the service.
>
> Anyhelp will be appreciated!
>
> BR,
>
>
> Christian Faucher
> Consultant Java / Java Consultant
>
>  ________________________________
>
> "Ce message est confidentiel, a l'usage exclusif du destinataire ci-dessus
> et son contenu ne represente en aucun cas un engagement de la part de AXA,
> sauf en cas de stipulation expresse et par ecrit de la part de AXA. Toute
> publication, utilisation ou diffusion, meme partielle, doit etre autorisee
> prealablement. Si vous n'etes pas destinataire de ce message, merci d'en
> avertir immediatement l'expediteur."
>
> "This e-mail message is confidential, for the exclusive use of the addressee
> and its contents shall not constitute a commitment by AXA, except as
> otherwise specifically provided in writing by AXA. Any unauthorized
> disclosure, use or dissemination, either whole or partial, is prohibited. If
> you are not the intended recipient of the message, please notify the sender
> immediately."
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org