Specify the parameters as type string rather than String.
On 12/27/06, Christopher Moesel <christopher_moesel_at_avid.com> wrote:
> Hello,
>
> Is there a way to specify that input parameters should be required
> (minOccurs="1" in the XSD/WSDL)? Here is an example of my Java code
> w/Annotations:
>
> @WebMethod(operationName = "myMethod", action = "urn:MyMethod")
> @WebResult(name="MyResult")
> MyResult myMethod( @WebParam(name="myParam1") String param1,
> @WebParam(name="myParam2") String param2 );
>
> This results in the following declaration in the generated XSD:
>
> <xs:complexType name="myMethod">
> <xs:sequence>
> <xs:element name="myParam1" type="xs:string" minOccurs="0"/>
> <xs:element name="myParam2" type="xs:string" minOccurs="0"/>
> </xs:sequence>
> </xs:complexType>
>
> In this example, however, I want the generated XSD to indicate that myParam1
> and myParam2 are required (minOccurs="1"). Is there a way to do this
> without needing to create my own input wrapper object?
>
> Thanks,
> Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>
>