org.apache.axis2.AxisFault: Transport out has not been set

2009-08-10 Thread Claire Loto

Hi ,

I am testing my Axis2 client but got this error:

org.apache.axis2.AxisFault: Transport out has not been set
   at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:439)
   at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO

peration.java:330)
   at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAx

isOperation.java:294)
   at com.sampleAxis.xml.TestStub.login(Axis2
TestStub.java:1499)
   at com.sampleAxis.xml.testAxis2.login(testAxis2.java:53)
   at com.sampleAxis.xml.testAxis2.test(testAxis2.java:25)
   at com.sampleAxis.xml.testAxis2.main(testAxis2.java:20)

Does anyone has idea how to resolve this error?


thanks a lot in advance.

Claire


Unsubscribe

2009-08-10 Thread Janardhan Rao (janrao)
 
 
 


WSDD missing and error generating

2009-08-10 Thread Miha Vitorovic
Hi all,

I have a program, that suddenly started throwing this error:

org.apache.axis.InternalException: org.apache.axis.ConfigurationException: 
org.apache.axis.ConfigurationException: No engine configuration file - 
aborting!
org.apache.axis.ConfigurationException: No engine configuration file - 
aborting!
  at 
org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:175)
  at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
  at org.apache.axis.AxisEngine.init(AxisEngine.java:156)
  at org.apache.axis.client.AxisClient.init(AxisClient.java:52)
  at org.apache.axis.client.Service.getAxisClient(Service.java:104)
  at org.apache.axis.client.Service.init(Service.java:113)

Researching this, I have seen that the problem is most likely related to a 
missing WSDD, but now I am faced with two problems.

First is more of a question: why did this suddenly start happening, i.e. 
why didn't it happen from the start. The axis configuration is the same 
all the time, and the code also.

The second problem is, that I cannot generate the WSDD file from the WSDL. 
Searching the Internet the correct options seem to be:

WSDL2Java -o . -d Session -s -S true ws.wsdl


But I get the following exception from it:
C:\temp\wsddC:\Miha\axis2-1.4.1\bin\wsdl2java.bat -o . -d Session -s -S 
true -uri CrmService.wsdl
Using AXIS2_HOME:   C:\Miha\axis2-1.4.1
Using JAVA_HOME:C:\Progra~1\Java\jre1.6.0_07
Retrieving document at 'CrmService.wsdl'.
Exception in thread main 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
org.apache.axis2.wsdl.codegen.CodeGenerationException: No proper 
databinding has taken place
at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: No 
proper databinding has taken place
at 
org.apache.axis2.wsdl.codegen.extension.DefaultDatabindingExtension.engage(DefaultDatabindingExtension.java:41)
at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
... 2 more

Thanks in advance for any help that you may offer.
---
  Miha Vitorovic
  Inženir v tehničnem področju
  Customer Support Engineer

   NIL Data Communications,  Tivolska cesta 48,  1000 Ljubljana,  Slovenia
   Phone +386 1 4746 500  Fax +386 1 4746 501 http://www.NIL.si

Unsubscribe

2009-08-10 Thread Chen, Jennifer



Unsubscribe

2009-08-10 Thread Suman Adak

=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




Not Generating prefixes for sub-sub elements

2009-08-10 Thread Håkon Sagehaug
Hi all,

I got a definition like this in the schema I use in my wsdl

complexType name=ProjectMemberType
sequence
element name=UserId nillable=true type=xsd:int /
element name=Username nillable=true type=xsd:string /
element name=Email nillable=true type=tns:Email /
element name=Roles nillable=true type=tns:Roles /
/sequence
/complexType

complexType name=Roles
sequence
element maxOccurs=unbounded name=Role nillable=true
type=tns:Role /
/sequence
/complexType

simpleType name=Role
restriction base=xsd:string
enumeration value=ADMIN /
enumeration value=USER /
enumeration value=TESTER /
enumeration value=GUEST /
/restriction
/simpleType

And then I make a element out of this in my wsdl schema part like this.


xsd:element name=ProjectMembers
xsd:complexType
xsd:sequence
xsd:element name=Memeber
type=pgm:ProjectMemberType minOccurs=1 maxOccurs=unbounded/

/xsd:sequence
/xsd:complexType
/xsd:element

And I want all the sub elements of ProjectMemberType to have prefixes, to be
qualified. I've set the attribute elementFormDefault to qualified  both in
the schema and schema in the wsdl, but when my web service returns a
instance of this element it looks like this

 ns2:ProjectMembers
  ns2:Memeber
 ns1:UserId xmlns:ns1=
http://bccs.uib.no/esysbio/projectmgnt/schema;234/ns1:UserId
 ns1:Username xmlns:ns1=
http://bccs.uib.no/esysbio/projectmgnt/schema;ole.jan...@mail.com
/ns1:Username
 ns1:Email xmlns:ns1=
http://bccs.uib.no/esysbio/projectmgnt/schema;ole.jan...@mail.com
/ns1:Email
 Roles xmlns=
http://bccs.uib.no/esysbio/projectmgnt/schema;
RoleADMIN/Role
 /Roles
  /ns2:Memeber
   /ns2:ProjectMembers

No prefix for Roles element. Is this the way it should be, or is it
something wrong.  I use axis 1.4.1 and adb for binding when generating the
code using wsdl2code.

Any help on this subject

cheers, Håkon

-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)


Unsubscribe

2009-08-10 Thread Edgardo Ibañez O.





Re: Unsubscribe

2009-08-10 Thread Larry Meadors
Really?

This is the third unsubscribe email sent to the list today...maybe we
could add a footer to emails sent by the list that explained HOW to
unsubscribe...

Larry


RE: Unsubscribe

2009-08-10 Thread Urban, Patrick
 
Ive been trying to unsubscribe from this list for years.
Ive used the instructions, sent mails to the group etc. Something must be 
bugged with it.
Finally I gave up.

Can someone possibly take a look at this and help us out thanks.

-Original Message-
From: Larry Meadors [mailto:larry.mead...@gmail.com] 
Sent: Monday, August 10, 2009 9:21 AM
To: axis-user@ws.apache.org
Subject: Re: Unsubscribe

Really?

This is the third unsubscribe email sent to the list today...maybe we could add 
a footer to emails sent by the list that explained HOW to unsubscribe...

Larry

--
This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, notify the sender immediately by return email and delete the message 
and any attachments from your system.


Re: Unsubscribe

2009-08-10 Thread Andreas Veithen
You need to send a mail to axis-user-unsubscr...@ws.apache.org and
follow the instructions.

On Mon, Aug 10, 2009 at 15:26, Urban, Patrickpatrick_ur...@adp.com wrote:

 Ive been trying to unsubscribe from this list for years.
 Ive used the instructions, sent mails to the group etc. Something must be 
 bugged with it.
 Finally I gave up.

 Can someone possibly take a look at this and help us out thanks.

 -Original Message-
 From: Larry Meadors [mailto:larry.mead...@gmail.com]
 Sent: Monday, August 10, 2009 9:21 AM
 To: axis-user@ws.apache.org
 Subject: Re: Unsubscribe

 Really?

 This is the third unsubscribe email sent to the list today...maybe we could 
 add a footer to emails sent by the list that explained HOW to unsubscribe...

 Larry

 --
 This message and any attachments are intended only for the use of the 
 addressee and may contain information that is privileged and confidential. If 
 the reader of the message is not the intended recipient or an authorized 
 representative of the intended recipient, you are hereby notified that any 
 dissemination of this communication is strictly prohibited. If you have 
 received this communication in error, notify the sender immediately by return 
 email and delete the message and any attachments from your system.



Re: Unsubscribe

2009-08-10 Thread Larry Meadors
On Mon, Aug 10, 2009 at 7:26 AM, Urban, Patrickpatrick_ur...@adp.com wrote:
 Ive been trying to unsubscribe from this list for years.

Please try again, and if you have issues, let us know - email me
directly if you want, I don't care. :)

That way we can let the apache infrastructure guys know and get it fixed.

Even better: If you have issues and an irc client, get on freenode and
talk to the people on #asfinfra - they are amazing at getting stuff
fixed up quickly.

For the AXIS team - we were having lots of unsubscribe emails on the
ibatis list, too - we added a footer to the message saying To
unsubscribe, DO THIS. and they all went away. Just a suggestion.
:-)

Larry


RE: Not Generating prefixes for sub-sub elements

2009-08-10 Thread Martin Gainty

i did not see the definition f or Email?
please provide definition for tns:Email referenced at
element name=Email nillable=true type=tns:Email /

takk
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




Date: Mon, 10 Aug 2009 15:01:21 +0200
Subject: Not Generating prefixes for sub-sub elements
From: hakon.sageh...@bccs.uib.no
To: axis-user@ws.apache.org

Hi all,

I got a definition like this in the schema I use in my wsdl
complexType name=ProjectMemberType
sequence
element name=UserId nillable=true type=xsd:int /

element name=Username nillable=true type=xsd:string /
element name=Email nillable=true type=tns:Email /

element name=Roles nillable=true type=tns:Roles /
/sequence
/complexType

complexType name=Roles
sequence

element maxOccurs=unbounded name=Role nillable=true
type=tns:Role /
/sequence
/complexType

simpleType name=Role

restriction base=xsd:string
enumeration value=ADMIN /
enumeration value=USER /
enumeration value=TESTER /

enumeration value=GUEST /
/restriction
/simpleType

And then I make a element out of this in my wsdl schema part like this.


xsd:element name=ProjectMembers

xsd:complexType
xsd:sequence
xsd:element name=Memeber 
type=pgm:ProjectMemberType minOccurs=1 maxOccurs=unbounded/  
  

/xsd:sequence
/xsd:complexType
/xsd:element

And I want all the sub elements of ProjectMemberType to have prefixes, to be 
qualified. I've set the attribute elementFormDefault to qualified  both in the 
schema and schema in the wsdl, but when my web service returns a instance of 
this element it looks like this


 ns2:ProjectMembers
  ns2:Memeber
 ns1:UserId 
xmlns:ns1=http://bccs.uib.no/esysbio/projectmgnt/schema;234/ns1:UserId

 ns1:Username 
xmlns:ns1=http://bccs.uib.no/esysbio/projectmgnt/schema;ole.jan...@mail.com/ns1:Username

 ns1:Email 
xmlns:ns1=http://bccs.uib.no/esysbio/projectmgnt/schema;ole.jan...@mail.com/ns1:Email

 Roles 
xmlns=http://bccs.uib.no/esysbio/projectmgnt/schema;
RoleADMIN/Role
 /Roles

  /ns2:Memeber
   /ns2:ProjectMembers

No prefix for Roles element. Is this the way it should be, or is it something 
wrong.  I use axis 1.4.1 and adb for binding when generating the code using 
wsdl2code.


Any help on this subject

cheers, Håkon

-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)

_
Get your vacation photos on your phone!
http://windowsliveformobile.com/en-us/photos/default.aspx?OCID=0809TL-HM

Re: Not Generating prefixes for sub-sub elements

2009-08-10 Thread Andreas Veithen
Håkon,

Note that even though the Roles element has no prefix, it is still in
the right namespace.

Andreas

2009/8/10 Håkon Sagehaug hakon.sageh...@bccs.uib.no:
 Hi all,

 I got a definition like this in the schema I use in my wsdl

 complexType name=ProjectMemberType
         sequence
             element name=UserId nillable=true type=xsd:int /
             element name=Username nillable=true type=xsd:string /
             element name=Email nillable=true type=tns:Email /
             element name=Roles nillable=true type=tns:Roles /
         /sequence
     /complexType

     complexType name=Roles
         sequence
             element maxOccurs=unbounded name=Role nillable=true
                 type=tns:Role /
         /sequence
     /complexType

     simpleType name=Role
         restriction base=xsd:string
             enumeration value=ADMIN /
             enumeration value=USER /
             enumeration value=TESTER /
             enumeration value=GUEST /
         /restriction
     /simpleType

 And then I make a element out of this in my wsdl schema part like this.


             xsd:element name=ProjectMembers
                 xsd:complexType
                     xsd:sequence
                         xsd:element name=Memeber
 type=pgm:ProjectMemberType minOccurs=1 maxOccurs=unbounded/

                     /xsd:sequence
                 /xsd:complexType
             /xsd:element

 And I want all the sub elements of ProjectMemberType to have prefixes, to be
 qualified. I've set the attribute elementFormDefault to qualified  both in
 the schema and schema in the wsdl, but when my web service returns a
 instance of this element it looks like this

  ns2:ProjectMembers
   ns2:Memeber
  ns1:UserId
 xmlns:ns1=http://bccs.uib.no/esysbio/projectmgnt/schema;234/ns1:UserId
  ns1:Username
 xmlns:ns1=http://bccs.uib.no/esysbio/projectmgnt/schema;ole.jan...@mail.com/ns1:Username
  ns1:Email
 xmlns:ns1=http://bccs.uib.no/esysbio/projectmgnt/schema;ole.jan...@mail.com/ns1:Email
  Roles
 xmlns=http://bccs.uib.no/esysbio/projectmgnt/schema;
     RoleADMIN/Role
  /Roles
   /ns2:Memeber
    /ns2:ProjectMembers

 No prefix for Roles element. Is this the way it should be, or is it
 something wrong.  I use axis 1.4.1 and adb for binding when generating the
 code using wsdl2code.

 Any help on this subject

 cheers, Håkon

 --
 Håkon Sagehaug, Scientific Programmer
 Parallab, Bergen Center for Computational Science (BCCS)
 UNIFOB AS (University of Bergen Research Company)



Integration in Equinox-OSGi

2009-08-10 Thread Daniel Bimschas

Hi Folks!

I'm trying to simply integrate Axis2 into an Eclipse Equinox OSGi  
container.


So far I found no easy way to do that. I think the ideal way is that  
there was a How-To somewhere which says: install file A, B, C, ...  
from Axis2-src distribution and you're done. Is there a tutorial like  
that which I missed? Even more ideal would be an OBR (OSGi bundle  
repository) repository holding the main bundle and all it's  
dependencies, so that one could install it by running obr install  
when on Apache Felix or after deploying some OBR implementation into  
Equinox.


I tried to other ways to install it, which also failed. First one was  
using an OSGi-Axis2 distribution from the Knopflerfish project which  
simply failed because of invalid bundle headers (syntax errors and  
missing imports). Second one was to try to install it after  
downloading the src-distribution of Axis2, running complete build of  
it with Maven and trying to install the individual packages by hand.  
This is very tedious as there's no easy way to find out which bundle/ 
jar imports/exports the packages needed and so on. Is there maybe a  
tutorial for that?


Are there any plans for a Maven target that puts all relevant packages  
into one directory so that OSGi users simply use all jars in it to get  
up and running?


I would be very thankful for some help on this (somewhat tedious)  
problem!


Kind regards, Daniel


Re: Integration in Equinox-OSGi

2009-08-10 Thread Andreas Veithen
Daniel,

Please have a look a the following thread:

http://markmail.org/thread/3xbjzrsvxombqvkd

Andreas

On Mon, Aug 10, 2009 at 18:12, Daniel Bimschasdan...@bimschas.com wrote:
 Hi Folks!

 I'm trying to simply integrate Axis2 into an Eclipse Equinox OSGi container.

 So far I found no easy way to do that. I think the ideal way is that there
 was a How-To somewhere which says: install file A, B, C, ... from Axis2-src
 distribution and you're done. Is there a tutorial like that which I missed?
 Even more ideal would be an OBR (OSGi bundle repository) repository holding
 the main bundle and all it's dependencies, so that one could install it by
 running obr install when on Apache Felix or after deploying some OBR
 implementation into Equinox.

 I tried to other ways to install it, which also failed. First one was using
 an OSGi-Axis2 distribution from the Knopflerfish project which simply failed
 because of invalid bundle headers (syntax errors and missing imports).
 Second one was to try to install it after downloading the src-distribution
 of Axis2, running complete build of it with Maven and trying to install the
 individual packages by hand. This is very tedious as there's no easy way to
 find out which bundle/jar imports/exports the packages needed and so on. Is
 there maybe a tutorial for that?

 Are there any plans for a Maven target that puts all relevant packages into
 one directory so that OSGi users simply use all jars in it to get up and
 running?

 I would be very thankful for some help on this (somewhat tedious) problem!

 Kind regards, Daniel



RE: Integration in Equinox-OSGi

2009-08-10 Thread Martin Gainty

does either OSGI ant-build.xml or maven-pom.xml have step(s) to 
compile jsp and servlet?
create a war?
deploy servlet to container?

for each step provide Axis2.war as parameter to each step
us...@ant.apache.org will help with ant-build.xml questions
us...@maven.apache.org will help with maven-pom.xml questions

?
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 From: dan...@bimschas.com
 To: axis-user@ws.apache.org
 Subject: Integration in Equinox-OSGi
 Date: Mon, 10 Aug 2009 18:12:23 +0200
 
 Hi Folks!
 
 I'm trying to simply integrate Axis2 into an Eclipse Equinox OSGi  
 container.
 
 So far I found no easy way to do that. I think the ideal way is that  
 there was a How-To somewhere which says: install file A, B, C, ...  
 from Axis2-src distribution and you're done. Is there a tutorial like  
 that which I missed? Even more ideal would be an OBR (OSGi bundle  
 repository) repository holding the main bundle and all it's  
 dependencies, so that one could install it by running obr install  
 when on Apache Felix or after deploying some OBR implementation into  
 Equinox.
 
 I tried to other ways to install it, which also failed. First one was  
 using an OSGi-Axis2 distribution from the Knopflerfish project which  
 simply failed because of invalid bundle headers (syntax errors and  
 missing imports). Second one was to try to install it after  
 downloading the src-distribution of Axis2, running complete build of  
 it with Maven and trying to install the individual packages by hand.  
 This is very tedious as there's no easy way to find out which bundle/ 
 jar imports/exports the packages needed and so on. Is there maybe a  
 tutorial for that?
 
 Are there any plans for a Maven target that puts all relevant packages  
 into one directory so that OSGi users simply use all jars in it to get  
 up and running?
 
 I would be very thankful for some help on this (somewhat tedious)  
 problem!
 
 Kind regards, Daniel

_
Get free photo software from Windows Live
http://www.windowslive.com/online/photos?ocid=PID23393::T:WLMTAGL:ON:WL:en-US:SI_PH_software:082009

Re: Not Generating prefixes for sub-sub elements

2009-08-10 Thread Håkon Sagehaug
Hi

Yes I know that it's in the same namespace, but we have in our project best
practices that all our elements should have fully elementFormDefault names,
so is it possible to get this? And if the attribute elementFormDefault set
to elementFormDefault  then all elements should have prefixes or?

cheers, Håkon

2009/8/10 Andreas Veithen andreas.veit...@gmail.com

 Håkon,

 Note that even though the Roles element has no prefix, it is still in
 the right namespace.

 Andreas

 2009/8/10 Håkon Sagehaug hakon.sageh...@bccs.uib.no:
  Hi all,
 
  I got a definition like this in the schema I use in my wsdl
 
  complexType name=ProjectMemberType
  sequence
  element name=UserId nillable=true type=xsd:int /
  element name=Username nillable=true type=xsd:string /
  element name=Email nillable=true type=tns:Email /
  element name=Roles nillable=true type=tns:Roles /
  /sequence
  /complexType
 
  complexType name=Roles
  sequence
  element maxOccurs=unbounded name=Role nillable=true
  type=tns:Role /
  /sequence
  /complexType
 
  simpleType name=Role
  restriction base=xsd:string
  enumeration value=ADMIN /
  enumeration value=USER /
  enumeration value=TESTER /
  enumeration value=GUEST /
  /restriction
  /simpleType
 
  And then I make a element out of this in my wsdl schema part like this.
 
 
  xsd:element name=ProjectMembers
  xsd:complexType
  xsd:sequence
  xsd:element name=Memeber
  type=pgm:ProjectMemberType minOccurs=1 maxOccurs=unbounded/
 
  /xsd:sequence
  /xsd:complexType
  /xsd:element
 
  And I want all the sub elements of ProjectMemberType to have prefixes, to
 be
  qualified. I've set the attribute elementFormDefault to qualified  both
 in
  the schema and schema in the wsdl, but when my web service returns a
  instance of this element it looks like this
 
   ns2:ProjectMembers
ns2:Memeber
   ns1:UserId
  xmlns:ns1=http://bccs.uib.no/esysbio/projectmgnt/schema
 234/ns1:UserId
   ns1:Username
  xmlns:ns1=http://bccs.uib.no/esysbio/projectmgnt/schema;
 ole.jan...@mail.com/ns1:Username
   ns1:Email
  xmlns:ns1=http://bccs.uib.no/esysbio/projectmgnt/schema;
 ole.jan...@mail.com/ns1:Email
   Roles
  xmlns=http://bccs.uib.no/esysbio/projectmgnt/schema;
  RoleADMIN/Role
   /Roles
/ns2:Memeber
 /ns2:ProjectMembers
 
  No prefix for Roles element. Is this the way it should be, or is it
  something wrong.  I use axis 1.4.1 and adb for binding when generating
 the
  code using wsdl2code.
 
  Any help on this subject
 
  cheers, Håkon
 
  --
  Håkon Sagehaug, Scientific Programmer
  Parallab, Bergen Center for Computational Science (BCCS)
  UNIFOB AS (University of Bergen Research Company)
 




-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)


Re: Not Generating prefixes for sub-sub elements

2009-08-10 Thread Andreas Veithen
The actual value of the prefixes is irrelevant.
elementFormDefault=qualified only means that the elements must be
namespace qualified and this is the case here. So you are actually
following the best practices.

Andreas

2009/8/10 Håkon Sagehaug hakon.sageh...@bccs.uib.no:
 Hi

 Yes I know that it's in the same namespace, but we have in our project best
 practices that all our elements should have fully elementFormDefault names,
 so is it possible to get this? And if the attribute elementFormDefault set
 to elementFormDefault  then all elements should have prefixes or?

 cheers, Håkon

 2009/8/10 Andreas Veithen andreas.veit...@gmail.com

 Håkon,

 Note that even though the Roles element has no prefix, it is still in
 the right namespace.

 Andreas

 2009/8/10 Håkon Sagehaug hakon.sageh...@bccs.uib.no:
  Hi all,
 
  I got a definition like this in the schema I use in my wsdl
 
  complexType name=ProjectMemberType
          sequence
              element name=UserId nillable=true type=xsd:int /
              element name=Username nillable=true type=xsd:string
  /
              element name=Email nillable=true type=tns:Email /
              element name=Roles nillable=true type=tns:Roles /
          /sequence
      /complexType
 
      complexType name=Roles
          sequence
              element maxOccurs=unbounded name=Role nillable=true
                  type=tns:Role /
          /sequence
      /complexType
 
      simpleType name=Role
          restriction base=xsd:string
              enumeration value=ADMIN /
              enumeration value=USER /
              enumeration value=TESTER /
              enumeration value=GUEST /
          /restriction
      /simpleType
 
  And then I make a element out of this in my wsdl schema part like this.
 
 
              xsd:element name=ProjectMembers
                  xsd:complexType
                      xsd:sequence
                          xsd:element name=Memeber
  type=pgm:ProjectMemberType minOccurs=1 maxOccurs=unbounded/
 
                      /xsd:sequence
                  /xsd:complexType
              /xsd:element
 
  And I want all the sub elements of ProjectMemberType to have prefixes,
  to be
  qualified. I've set the attribute elementFormDefault to qualified  both
  in
  the schema and schema in the wsdl, but when my web service returns a
  instance of this element it looks like this
 
   ns2:ProjectMembers
    ns2:Memeber
   ns1:UserId
 
  xmlns:ns1=http://bccs.uib.no/esysbio/projectmgnt/schema;234/ns1:UserId
   ns1:Username
 
  xmlns:ns1=http://bccs.uib.no/esysbio/projectmgnt/schema;ole.jan...@mail.com/ns1:Username
   ns1:Email
 
  xmlns:ns1=http://bccs.uib.no/esysbio/projectmgnt/schema;ole.jan...@mail.com/ns1:Email
   Roles
  xmlns=http://bccs.uib.no/esysbio/projectmgnt/schema;
      RoleADMIN/Role
   /Roles
    /ns2:Memeber
     /ns2:ProjectMembers
 
  No prefix for Roles element. Is this the way it should be, or is it
  something wrong.  I use axis 1.4.1 and adb for binding when generating
  the
  code using wsdl2code.
 
  Any help on this subject
 
  cheers, Håkon
 
  --
  Håkon Sagehaug, Scientific Programmer
  Parallab, Bergen Center for Computational Science (BCCS)
  UNIFOB AS (University of Bergen Research Company)
 



 --
 Håkon Sagehaug, Scientific Programmer
 Parallab, Bergen Center for Computational Science (BCCS)
 UNIFOB AS (University of Bergen Research Company)