how to show argument variable names to webservice client

Hi java expert(S)!

This is sri, i am creating a webservice using sun java studio enterprise 8.1 IDE, my problem is consumer(from .net) say ,parameter names are not clear or visible. say, for example, my webservice method look like

public java.lang.String login(final String clientid,final String password)

throws java.rmi.RemoteException {...}

to me but for webservice client String login(String_1, String_2). sohow to show argument variables to client

webservice client needs to know argument names for proper usage.

Any body knows how to do this, Any help will be appreciated!!!!!

Thanks & Regards,

SRI.

[774 byte] By [Java_Aspiranta] at [2007-11-27 8:15:36]
# 1
Eh, what? What shows it like what?
CeciNEstPasUnProgrammeura at 2007-7-12 20:00:25 > top of Java-index,Java Essentials,Java Programming...
# 2

hI

i have posted my wsdl below

If you go through , you can find that in order to call a method , we have to supply string or int arguments but those names are not shown

for example to call login , you need to supply 2 string arguments but how do you know first one is username and second one is for password.

it shows simply string_1 and string_2 as arguments, instead if it shows login(String username,String password) for caller(webservice client), it will be easy to handle you know.

How to do this?

<definitions name="mysws" targetNamespace="urn:mysws/wsdl">

<types>

<schema targetNamespace="urn:mysws/types">

<complexType name="getData">

<sequence>

<element name="String_1" type="string" nillable="true"/>

<element name="String_2" type="string" nillable="true"/>

<element name="int_3" type="int"/>

</sequence>

</complexType>

<complexType name="getDataResponse">

<sequence>

<element name="result" type="string" nillable="true"/>

</sequence>

</complexType>

<complexType name="getMoreRows">

<sequence>

<element name="int_1" type="int"/>

<element name="int_2" type="int"/>

<element name="int_3" type="int"/>

</sequence>

</complexType>

<complexType name="getMoreRowsResponse">

<sequence>

<element name="result" type="string" nillable="true"/>

</sequence>

</complexType>

<complexType name="insertData">

<sequence>

<element name="String_1" type="string" nillable="true"/>

</sequence>

</complexType>

<complexType name="insertDataResponse">

<sequence>

<element name="result" type="string" nillable="true"/>

</sequence>

</complexType>

<complexType name="login">

<sequence>

<element name="String_1" type="string" nillable="true"/>

<element name="String_2" type="string" nillable="true"/>

<element name="String_3" type="string" nillable="true"/>

</sequence>

</complexType>

<complexType name="loginResponse">

<sequence>

<element name="result" type="string" nillable="true"/>

</sequence>

</complexType>

<complexType name="logout">

<sequence>

<element name="String_1" type="string" nillable="true"/>

<element name="String_2" type="string" nillable="true"/>

</sequence>

</complexType>

<complexType name="logoutResponse">

<sequence>

<element name="result" type="string" nillable="true"/>

</sequence>

</complexType>

<element name="getData" type="tns:getData"/>

<element name="getDataResponse" type="tns:getDataResponse"/>

<element name="getMoreRows" type="tns:getMoreRows"/>

<element name="getMoreRowsResponse" type="tns:getMoreRowsResponse"/>

<element name="insertData" type="tns:insertData"/>

<element name="insertDataResponse" type="tns:insertDataResponse"/>

<element name="login" type="tns:login"/>

<element name="loginResponse" type="tns:loginResponse"/>

<element name="logout" type="tns:logout"/>

<element name="logoutResponse" type="tns:logoutResponse"/>

</schema>

</types>

<message name="myswsSEI_getData">

<part name="parameters" element="ns2:getData"/>

</message>

<message name="myswsSEI_getDataResponse">

<part name="result" element="ns2:getDataResponse"/>

</message>

<message name="myswsSEI_getMoreRows">

<part name="parameters" element="ns2:getMoreRows"/>

</message>

<message name="myswsSEI_getMoreRowsResponse">

<part name="result" element="ns2:getMoreRowsResponse"/>

</message>

Regards,

Sri

Java_Aspiranta at 2007-7-12 20:00:25 > top of Java-index,Java Essentials,Java Programming...