axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saminda Wishwajith Abeyruwan (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-2772) RPCMessageReceivers' response is invalid in some situations.
Date Wed, 06 Jun 2007 12:22:26 GMT
RPCMessageReceivers' response is invalid in some situations.  
--------------------------------------------------------------

                 Key: AXIS2-2772
                 URL: https://issues.apache.org/jira/browse/AXIS2-2772
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: adb
         Environment: Any 
            Reporter: Saminda Wishwajith Abeyruwan
            Assignee: Deepal Jayasinghe
            Priority: Critical


Use case.

When RPCMessageReceiver is used, 


If the service has the following method signature,

public Foo[] getFoos();

Foo can be either primitive type, primitive type wrapper, or a custom bean. 

If some one return an empty array (new Foo[0];)

Following is the resulting response SOAP envelope, 

<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:getFoosResponse xmlns:ns="http://org.apache.axis2/xsd">
<return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
</ns:getFoosResponse>
</soapenv:Body>
</soapenv:Envelope>


Is it technically correct to send <return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true" />

if an empty element is return ?

Thank you

Saminda 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message