You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jerome Gagner <je...@nameintel.com> on 2005/02/15 23:44:42 UTC

Element Name

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'm using Axis for web services. I'm using the WSDD method of deployment.

I have a question about element names. Axis is currently giving my
function arguments the name in0 , in1 in 2, etc, but I would like to be
able to give them better names.

I.e.



Method:

public Mark request_mark_details(String email,String keyHash,int markid)
throws Exception


Axis WSDL output:

<wsdl:message name="request_mark_detailsRequest">
<wsdl:part name="in0" type="xsd:string"/>
<wsdl:part name="in1" type="xsd:string"/>
<wsdl:part name="in2" type="xsd:int"/>
</wsdl:message>


Is there a way to get axis to automatically do something like:

<wsdl:message name="request_mark_detailsRequest">
<wsdl:part name="email" type="xsd:string"/>
<wsdl:part name="keyHash" type="xsd:string"/>
<wsdl:part name="markid" type="xsd:int"/>
</wsdl:message>


Thanks!

Jerome Gagner
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCEntaoVKKkbjLuUcRAhOBAJ9d77x142ol5ioOYXJICQW8QL8DGQCgjbzG
DEHLcKqWrFoXPlmFOLJjDbo=
=qEBk
-----END PGP SIGNATURE-----

Re: Element Name

Posted by Jerome Gagner <je...@nameintel.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bill Keese wrote:
> 
>> Is there a way to get axis to automatically do something like:
>>
>> <wsdl:message name="request_mark_detailsRequest">
>> <wsdl:part name="email" type="xsd:string"/>
>> <wsdl:part name="keyHash" type="xsd:string"/>
>> <wsdl:part name="markid" type="xsd:int"/>
>> </wsdl:message>
>>  
>>
> Did you use Java2WSDL to generate your WSDD file?  Axis might put the
> correct parameter names in the generated WSDL if  the parameter names
> are specified in the WSDD file.    Not sure though.
> 

No, I'm relying on Axis' reflection to generate it. Whats the syntax for
adding it to the WSDD?

Thanks,
Jerome
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCEsbVoVKKkbjLuUcRAicoAJ9B3wmfi3fOfuFLO/L2G1pNphCkzACdEIDW
6gn91Pe07gVwrtyolZavuZo=
=1BBV
-----END PGP SIGNATURE-----

Re: Element Name

Posted by Bill Keese <bi...@tech.beacon-it.co.jp>.
>Is there a way to get axis to automatically do something like:
>
><wsdl:message name="request_mark_detailsRequest">
><wsdl:part name="email" type="xsd:string"/>
><wsdl:part name="keyHash" type="xsd:string"/>
><wsdl:part name="markid" type="xsd:int"/>
></wsdl:message>
>  
>
Did you use Java2WSDL to generate your WSDD file?  Axis might put the 
correct parameter names in the generated WSDL if  the parameter names 
are specified in the WSDD file.    Not sure though.