[xgws-dev] [Bug 236] New: Using XmlBeans for xs:choice in WSDL./XML Schema

xgws-dev@extreme.indiana.edu xgws-dev_at_extreme.indiana.edu
Wed Sep 14 12:04:01 2005


http://www.extreme.indiana.edu/bugzilla/show_bug.cgi?id=236

           Summary: Using XmlBeans for xs:choice in WSDL./XML Schema
           Product: XSUL-Java
           Version: 2.0.6
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XmlBeans
        AssignedTo: xgws-dev_at_cs.indiana.edu
        ReportedBy: aslom_at_cs.indiana.edu


Rose-Marie LIEVROUW wrote:

I'm going on using XSUL and I have further problems. Thanks for telling me what
I should do. 

In my wsdl file, I have something like

<xs:complexType name="myType"/>

<xs:element name="name" type="myType" abstract="true"/>

<xs:element name="toto" type="myType" substitutionGroup="name"/>

<xs:element name="titi" type="myType" substitutionGroup="name"/>

<xs:element name="tata" type="myType" substitutionGroup="name"/>

Then an other complex type uses this type :

<xs:complexType name="rpcOperationParamType">

<xs:choice>

<xs:element ref="name"/>

<xs:element name="url" type="URIType"/>

</xs:choice>

</xs:complexType>

The code generated by XSUL contains TitiDocument, TataDocument, TotoDocument,
NameDocument, NameType, RpcOperationParamType...

In my client source code :

RpcOperationParamType param = RpcOperationParamType.Factory.newInstance();

NameType name = param.addNewName();

What I can't manage is putting a value in name. Can u tell me how I should do ?

Thanks a lot for your answer. Maybe you can send me wsdl restrictions to apply
to get the best of XSUL.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.