GeeCON Prague 2014*
The moose likes Web Services and the fly likes XSD generation Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "XSD generation Issue" Watch "XSD generation Issue" New topic
Author

XSD generation Issue

Andy Barky
Greenhorn

Joined: Sep 17, 2005
Posts: 16
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


SCJP, SCWCD/OCPJWCD, OCUP-100,OCUP-200, OCPJBCD-In Process
 
Don't get me started about those stupid light bulbs.
 
subject: XSD generation Issue