Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSD generation Issue

 
Andy Barky
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,

I am developing the web service with bottom up approach.

Here is my main class method signature
public MPWResponse updateAccount(String userId, String buyer_Id, int prog_Id, String token, String fName, String lName, String zip, String email, String status, boolean registered)

and below is my WSDL entry
<types>
<xsd:schema>
<xsd:import namespace="http://services.mpw.com/" schemaLocation="MainService_schema1.xsd"/>
</xsd:schema>
</types>
<message name="updateAccount">
<part element="tns:updateAccount" name="parameters"/>
</message>
<message name="updateAccountResponse">
<part element="tns:updateAccountResponse" name="parameters"/>
</message>

and below is my XSD entry
<xs:element name="updateAccount" type="tns:updateAccount"/>

<xs:element name="updateAccountResponse" type="tns:updateAccountResponse"/>

and

<xs:complexType name="updateAccount">
<xs:sequence>
<xs:element minOccurs="0" name="arg0" type="xs:string"/>
<xs:element minOccurs="0" name="arg1" type="xs:string"/>
<xs:element name="arg2" type="xs:int"/>
<xs:element minOccurs="0" name="arg3" type="xs:string"/>
<xs:element minOccurs="0" name="arg4" type="xs:string"/>
<xs:element minOccurs="0" name="arg5" type="xs:string"/>
<xs:element minOccurs="0" name="arg6" type="xs:string"/>
<xs:element minOccurs="0" name="arg7" type="xs:string"/>
<xs:element minOccurs="0" name="arg8" type="xs:string"/>
<xs:element name="arg9" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>

I am trying to print userId instead of arg0 in XSD. This name parameter has only "arg0" and so on in XSD. Everytime, I generate the WSDL and XSD automatically, It overwrites. I am using the eclipse and windows. Does anybody have any idea how this can be achieved?

Thanks for help in advance,

Regards

- WS rookie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic