axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Huang" <alex.hu...@openwave.com>
Subject Bug in wsdl2java...
Date Wed, 27 Nov 2002 19:02:00 GMT
I ran into this very peculiar problem.  Can someone tell me if this is a
bug with wsdl2java or if it's something of my own doing.  My wsdl file
looks like the following.

<xsd:element name="UserGroupElement" type="xsd:int" minOccurs="0"
maxOccurs="unbounded"/>


   <message name="addRequest">
    <part name="username" type="xsd:string" />
    <part name="password" type="xsd:string" />
    <part name="email" type="xsd:string" />
    <part name="preferredLanguage" type="xsd:string" />
    <part name="partnerName" type="xsd:string" />
    <part name="groups" element="odm:UserGroupElement"/>
  </message>
  
  <message name="updateRequest">
    <part name="username" type="xsd:string" />
    <part name="password" type="xsd:string" />
    <part name="email" type="xsd:string" />
    <part name="preferredLanguage" type="xsd:string" />
    <part name="partnerName" type="xsd:string"/>
    <part name="groups" element="odm:UserGroupElement"/>
  </message>

The stubs created for these two calls look like the following.

 _call.setOperationName(new javax.xml.namespace.QName("OdmApi",
"UserGroupElement"));

This seems to be a problem with using "element" in the part name.  Am I
using it incorrectly? There's two problems to note here:
1. It changed the name of the operation to UserGroupElement instead of
"Add" or "Update".
2. Now, if the client makes a call to update, add gets called because
both "Add" and "Update" have the same Qname.

I've tried the following things.
1. Move the element line further up the parameter chain.  Same problem.
2. Added additional element line.  Same problem.
3. Remove the element line from update.  Same problem for Add.

Any ideas?

Thanks for any help that you can give.

--Alex


Mime
View raw message