Hi,

I'm having issues when I try to invoke my webservice and I have one of the
elements (a long type) being empty.  I'm using Axis2 and used java2wsdl to
genereate my wsdl.

Here is a snapshot of my wsdl where the issue is occuring:

- <xs:complexType name="RequestTestInput">
- <xs:sequence>
  <xs:element minOccurs="0" name="accountNumber" nillable="true"
type="xs:string" /> 
  <xs:element minOccurs="0" name="applicationID" nillable="true"
type="xs:string" /> 
  <xs:element minOccurs="0" name="circuitID" nillable="true"
type="xs:string" /> 
  <xs:element minOccurs="0" name="outOfServicePermission" type="xs:string"
/> 
  <xs:element minOccurs="0" name="scheduledTime" type="xs:long" /> 
  <xs:element minOccurs="0" name="testRequested" nillable="true"
type="xs:string" /> 
  <xs:element minOccurs="0" name="testType" nillable="true" type="xs:string"
/> 
  <xs:element minOccurs="0" name="userID" nillable="true" type="xs:string"
/> 
  </xs:sequence>
  </xs:complexType>

If I leave the scheduledTime empty, it gives me the error
IllegalArgumentException.  How can I get past that?  Also is there a way
where I can get java2wsdl to set the minOccurs = 1 and set other attributes?

Any help would be appreciated.

Thanks

-- 
View this message in context: 
http://old.nabble.com/org.apache.axis2.AxisFault-caused-by-java.lang.IllegalArgumentException-tp26833483p26833483.html
Sent from the Axis - User mailing list archive at Nabble.com.

Reply via email to