You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by wazup80 <wa...@gmail.com> on 2009/12/17 20:19:56 UTC
org.apache.axis2.AxisFault caused by
java.lang.IllegalArgumentException
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.