2 Replies Latest reply on Feb 27, 2008 4:06 AM by ropalka

    Changeing minOccurs possible?

    sunfire

      I have a method like this:

      @WebMethod(operationName="GetBillingAccountRequest")
       @WebResult(name="GetBillingAccountResponse")
       public GetBillingAccountResponse getBillingAccount (
       @WebParam(name="GetBillingAccountRequest") GetBillingAccountRequest getBillingAccountRequest
       );


      When i deploy the SFSB the resulting WSDL for the GetBillingAccountRequest type looks like this:
      <xs:complexType name="GetBillingAccountRequest">
      <xs:sequence>
      <xs:element minOccurs="0" name="GetBillingAccountRequest" type="tns:getBillingAccountRequest"/>
      </xs:sequence>
      </xs:complexType>
      

      Is there any way to annotate that the GetBillingAccountRequest is supposed to be mandatory when the WSDL is auto generated (e.g. minOccurs="1")?

      Thanks, Thorsten