Instead of String, if it is an object called MsgRequest, then what to
do?
Sasi Marian
1625 South Congress Ave.
Suite 200
Delray Beach, FL 33445
Tel:(561) 454-7636
www.shsolutions.com
-----Original Message-----
From: Anne Thomas Manes [mailto:atmanes_at_gmail.com]
Sent: Thursday, December 28, 2006 8:37 AM
To: users_at_jax-ws.dev.java.net
Subject: Re: Making Input Parameters Required
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
>
>
---------------------------------------------------------------------
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