DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20327>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20327

Using the supplied WSDL, I get null when passed an empty array

           Summary: Using the supplied WSDL, I get null when passed an empty
                    array
           Product: Axis
           Version: 1.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Problem:

Using the supplied WSDL, I get null back when passed an object containing an 
empty array.

To Reproduce:
Please, use the supplied WSDL to generate server side stubs using WSDLJava and 
deploy it on Axis in JBOSS. Then use the WSDL from the webservice deployed, to 
generate client side stubs. Use the following mechanism to invoke the 
webservice. 

Service1SoapSoapBindingStub stub = new Service1SoapSoapBindingStub(new URL
("http://localhost:8080/axis/services/Service1Soap";), 
new Service1Locator());
ArrayOfMyBean  aom = new ArrayOfMyBean ();

aom.setMyBean(new MyBean[0]);
ArrayOfMyBean aomResult = stub.getCopy(aol);
MyBean result[] = aomResult.getMyBean();

THE aomResult returns back as null instead of a valid object.

Reply via email to