Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

asix2 webservice -int[] in request behaving differently

904249Feb 10 2012
i have a axis2 webservice where i have declared the request object as int[] array.
in case i give empty value for first obj and an int value for second the service takes it as null array

the same case if reversed works fine i.e if i give an int value as first and empty value as second it takes an array of two elements with assigning the -ve high int value to second obj.


i am testing this through soap ui. is this a bug in axis2 or soap or my code :(

req

<soapenv:Header/>
<soapenv:Body>
<web:addSecurityPolicies>
<!--Optional:-->
<web:userToken>string</web:userToken>
<!--Optional:-->
<web:assetID>assetid</web:assetID>
<web:securityPolicyID></web:securityPolicyID>
<web:securityPolicyID>1040</web:securityPolicyID>
</web:addSecurityPolicies>
</soapenv:Body>
</soapenv:Envelope>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 9 2012
Added on Feb 10 2012
0 comments
169 views