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: [email protected]
To: [email protected]

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";>[email protected]</ns1:Username>

                     <ns1:Email 
xmlns:ns1="http://bccs.uib.no/esysbio/projectmgnt/schema";>[email protected]</ns1:Email>

                     <Roles 
xmlns="http://bccs.uib.no/esysbio/projectmgnt/schema";>
                        <Role>ADMIN</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

Reply via email to