[gt-user] how to describe a method with string parameter in wsdl
N. Yang
N.Yang at student.uva.nl
Mon Mar 6 09:51:33 CST 2006
Dear all,
during the development of web service, i found a problem with the wsdl
file, regarding the description of service methods.
in the method implementation i have
public void setName(String aname)
{
filename = aname;
}
and accordingly, in wsdl file, i have
...
<xsd:element name="setName" type="xsd:string"/>
<xsd:element name="setNameResponse">
<xsd:complexType/>
</xsd:element>
...
<message name="setNameInputMessage">
<part name="parameters" element="tns:setName"/>
</message>
<message name="setNameOutputMessage">
<part name="parameters" element="tns:setNameResponse"/>
</message>
...
<operation name="setName">
<input message="tns:setNameInputMessage"/>
<output message="tns:setNameOutputMessage"/>
</operation>
...
when i run the client, reader.setName("xxx"); the container reported:
aname is set to null, not the string i passed to the method. i guess the
problem must be in the wsdl file, could someone point me out here? thank
you!
regards
Jerry
More information about the gt-user
mailing list