I have written a method that I expose as an axis web service. The
parameter names in my java code do not get exported correctly to the
wsdl and I don't know why.
The java method syntax looks like:
public void UpdateIt(long lId, bool bGetBooleanFields)
{
}
and the wsdl looks like (snippets):
<wsdl:operation name="UpdateIt" parameterOrder="in0 in1">
<wsdl:input message="impl:UpdateItRequest" name="UpdateItRequest" /
<wsdl:output message="impl:UpdateItResponse"
name="UpdateItResponse" />
</wsdl:operation>
<wsdl:message name="UpdateItRequest">
<wsdl:part name="in0" type="xsd:long" />
<wsdl:part name="in1" type="xsd:boolean" />
</wsdl:message>
Owen Jacobson - 03 Jul 2007 20:30 GMT
> I have written a method that I expose as an axis web service. The
> parameter names in my java code do not get exported correctly to the
[quoted text clipped - 20 lines]
> <wsdl:part name="in1" type="xsd:boolean" />
> </wsdl:message>
If you examine the .class file you'll discover that the method
bytecode does not include names for symbols, including parameters.
You need to annotate the individual method parameters with
@WebParam(name="foo") or use the corresponding XML configuration in
order to control the names in the generated WSDL and web service
invocation mapping.