I've got my WebService defined as follows:

@WebService(targetNamespace = "http://cosmos.it.sybase.com";, name =
"CosmosBroker")
@SOAPBinding(parameterStyle = ParameterStyle.WRAPPED, style =
Style.DOCUMENT, use = Use.LITERAL)
public interface CosmosBroker { ...

And I have a method defined:
    @WebMethod(operationName = "isCustomerActive", action = "")
    @WebResult(name = "isCustomerActiveReturn")    
        Boolean isCustomerActive(
                @WebParam(name = "customerId") 
                        String customerId) ;

But when the wsdl is generated my complex type looks as follows:
<xs:complexType name="isCustomerActive">
  <xs:sequence>
        <xs:element minOccurs="0" name="customerId" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

So what do I need to do to make my customerId parameter required? 
(minOccurs="1") or is there even a way to accomplish this?

Thanks for the help...
-- 
View this message in context: 
http://www.nabble.com/How-to-make-paramters-on-WebMethod-required-tp16473972p16473972.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to