You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Saminda Wishwajith Abeyruwan (JIRA)" <ji...@apache.org> on 2007/06/06 14:22:26 UTC

[jira] Created: (AXIS2-2772) RPCMessageReceivers' response is invalid in some situations.

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


[jira] Resolved: (AXIS2-2772) RPCMessageReceivers' response is invalid in some situations.

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe resolved AXIS2-2772.
--------------------------------------

    Resolution: Fixed

fixed in the current SVN

> 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