I am hoping to get some ideas from some of the Web Services gurus on here. My scenario is that I am designing a Web Service which contains a method with no parameters. I would like to write the WSDL in such a way that's it's clear that no data is required. However, the best way I have thought of to accomplish this is something like:
<xsd:complexType name="getMethod">
<xsd:sequence/>
</xsd:complexType>
<xsd:element name="request" type="ns1:getMethod" />
However, when I generate a client for this using JAX-RPC, it generates the method in the proxy as getMethod(String str) where string is basically useless. My question is, is there a better way to specify a method that does not require any input, or am I stuck with just telling clients to feed junk into the string parameter?
Thanks for any feedback,
KS