axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henry Duc de Cagade de Branlou <henry...@hotmail.com>
Subject RE: [axis2] empty xmlns
Date Fri, 11 Jan 2008 14:45:49 GMT
I thought it was fixed but I still have a question please.
 
compteAncre should be in the same namespace as CodeOrganisme (http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0
et not http://findby.wsdocument.dao.acces.ancre.acoss.fr/1.0" )
 
In the previous example, is the top level element that you are refering  findByArrayResponse?
 
thx
 





> Date: Thu, 10 Jan 2008 15:31:32 -0500> From: atmanes@gmail.com> To: henry698@hotmail.com>
Subject: Re: [axis2] empty xmlns> > The top level element defines a default namespace,
so all unqualified> child elements are in the default namespace.> It is semantically
correct. The CodeOrganisme element is in a> different namespace, therefore it reassigns
the default namespace.> > Anne> > ps -- I assume that Angel asked you about RPC
style because the> accessor elements for parameter types in an RPC style message are>
supposed to be unqualified.> > On Jan 10, 2008 11:31 AM, Henry Duc de Cagade de Branlou>
<henry698@hotmail.com> wrote:> >> > Hi,> >> > By adding elementFormDefault="qualified"
into my wsdl file, I eventually> > get the empty namespace disappear (see compteAncre
attribute) :> >> >> > <?xml version="1.0" encoding="UTF-8"?>> >
<soapenv:Envelope> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">>
> <soapenv:Body>> > <findByArrayResponse> > xmlns="http://findby.wsdocument.dao.acces.ancre.acoss.fr/1.0">>
> <compteAncre>> > <CodeOrganisme> > xmlns="http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0">980</CodeOrganisme>>
>> > I expected the namespace to be filled with value though...> >> >
Do you think it is correct this way?> >> > Thx> >> >> >>
>> >> >> > ________________________________> > > Date: Thu,
10 Jan 2008 08:09:54 -0500> > > From: atmanes@gmail.com> > > To: henry698@hotmail.com>
>> >> > > Subject: Re: [axis2] empty xmlns> > >> > > You
also need it in the inline schema in your WSDL file.> > >> > > Anne>
> >> > > On Jan 10, 2008 4:04 AM, Henry Duc de Cagade de Branlou> > >
<henry698@hotmail.com> wrote:> > > >> > > > Hello,> >
> >> > > > Thanks for you reply.> > > >> > > > I
already have an elementFormDefault="qualified" defined at the> > beginning> >
> > of my xsd file.> > > >> > > > But it still doesn't work.>
> > >> > > > Should this attribute be put somewhere else in my xsd file
?> > > >> > > > Thx> > > >> > > >> >
> > ________________________________> > > > > Date: Wed, 9 Jan 2008 12:13:22
-0500> > > > > From: atmanes@gmail.com> > > > > To: axis-user@ws.apache.org>
> > > > Subject: Re: [axis2] empty xmlns> > > >> > > >>
> > > >> > > > > According to your schema, the compteAncre element
must be unqualified,> > > > > therefore the generated response is correct.
If you want the> > > > > compteAncre element to be qualified, then add this
attribute to the> > > > > http://findby.wsdocument.dao.acces.ancre.acoss.fr/1.0
schema:> > > > >> > > > > elementFormDefault="qualified">
> > > >> > > > > Anne> > > > >> > > >
> On Jan 7, 2008 3:45 AM, Henry Duc de Cagade de Branlou> > > > > <henry698@hotmail.com>
wrote:> > > > > >> > > > > >> > > > > >
Hi,> > > > > >> > > > > >> > > > > >
I have created an axis2 web service (release 1.2). I used the top> > bottom> >
> > > > approach with xmlbeans (used the axis2 generator tool).> > >
> > > The problem I have is that I have an empty xmlns tag (related to> > >
> compteAncre> > > > > > tag) in my soap web service response :> >
> > > > <?xml version="1.0" encoding="UTF-8"?>> > > > > >
<soapenv:Envelope> > > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">>
> > > > > <soapenv:Body>> > > > > > <findByResponse>
> > > > > xmlns="http://findby.wsdocument.dao.acces.ancre.acoss.fr/1.0">>
> > > > > <compteAncre xmlns="">> > > > > > <CodeOrganisme>
> > > > >> > > >> > xmlns="http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0">390</CodeOrganisme>>
> > > > > <CodeExoneration> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > > > > xmlns="http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0">
> > > > > xsi:nil="true"/>> > > > > > <OrigineExoneration>
> > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > >
> > > xmlns="http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0"> > >
> > > xsi:nil="true"/>> > > > > > <NumeroInterneCompte>
> > > > >> > > >> > xmlns="http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0">60767</NumeroInterneCompte>>
> > > > > <NumeroExterneCompte> > > > > >> > >
>> > xmlns="http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0">390000000040109656</NumeroExterneCompte>>
> > > > > <Categorie> > > > > >> > > >>
> xmlns="http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0">1</Categorie>>
> > > > > <SousCategorie xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > > > > xmlns="http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0">
> > > > > xsi:nil="true"/>> > > > > > <EtatCpte>
> > > > >> > > >> > xmlns="http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0">3</EtatCpte>>
> > > > > <NoPersonne> > > > > >> > > >>
> xmlns="http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0">9514</NoPersonne>>
> > > > > <DateEtatCpte> > > > > >> > > >>
> xmlns="http://datamodel.wsdocument.dao.acces.ancre.acoss.fr/1.0">2000-01-15+01:00</DateEtatCpte>>
> > > > >> > > > > >> > > > > > I don't
understand why. Attached are my wsdl, xsd files and soap> > > > response.>
> > > > > I also tried release 1.3 of axis2 but it didn't help.> > >
> > > Help will be greatly appreciated.> > > > > >> > >
> > > Thank you in advance.> > > > > >> > > > >
> ________________________________> > > > > > Express yourself instantly
with MSN Messenger! MSN Messenger> > > > > >> > > > > >
________________________________> > > > > > Express yourself instantly with
MSN Messenger! MSN Messenger> > > > > >> > > > > >>
> ---------------------------------------------------------------------> > > >
> > 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> > > >
>> > > >> > > > ________________________________> > >
> Express yourself instantly with MSN Messenger! MSN Messenger> >> > ________________________________>
> Express yourself instantly with MSN Messenger! MSN Messenger

Express yourself instantly with MSN Messenger! MSN Messenger 
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Mime
View raw message