users@jax-rpc.java.net

parameter names in generated WSDL can be renamed?

From: Pedro Salazar <pedro-b-salazar_at_PTINOVACAO.PT>
Date: Wed, 11 Dec 2002 18:20:29 +0000

Greetings,

I would like to ask if the names generated in WSDL file are static and
specific to the service implementation, or if it's possible to rename
some names to be more legible.

For example, I created a method in my service which has the following
signature:

 public Status methodX(
                String name,
                int age,
                String gender,
                String info1,
                String info2,
                float height)
                throws RemoteException;

the generated message for this method in the WSDL file is:

 <message name="SERVICE_methodX">
    <part name="String_1" type="xsd:string"/>
    <part name="int_2" type="xsd:int"/>
    <part name="String_3" type="xsd:string"/>
    <part name="String_4" type="xsd:string"/>
    <part name="String_5" type="xsd:string"/>
    <part name="float_6" type="xsd:float"/></message>
 <message name="SERVICE_methodXResponse">
    <part name="result" type="ns2:Status"/></message>

As a service information, the WSDL is not clear to understand. Since I
didn't examined yet the serializers/builders classes at SOAP level, I
would like to know if I can rename the names String_N, int_N to a more
legible names like the names in the signature methods, without a risk of
my service implementation failure?

thanks,
Pedro Salazar

-- 
pedro salazar (pt-inovacao) <pedro-b-salazar_at_ptinovacao.pt>
key id: D803BC61