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 "Li, Feng (JIRA)" <ji...@apache.org> on 2009/12/10 08:41:18 UTC

[jira] Created: (AXIS2-4580) JAXWS Style WebMethod can not return null

JAXWS Style WebMethod can not return null
-----------------------------------------

                 Key: AXIS2-4580
                 URL: https://issues.apache.org/jira/browse/AXIS2-4580
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: jaxws
    Affects Versions: 1.5.1
            Reporter: Li, Feng
            Priority: Blocker


JAXWS style web service can not return null.
If return null, will get following error message:
javax.xml.ws.soap.SOAPFaultException: Return argument(s) in operation method --- is null.  This is not allowed for rpc/lit messages.

By default, JAXWS will use Document/Literal style SOAP binding. but Axis2 only provide RPC style message receivers.

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


[jira] Commented: (AXIS2-4580) JAXWS Style WebMethod can not return null

Posted by "Li, Feng (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12788617#action_12788617 ] 

Li, Feng commented on AXIS2-4580:
---------------------------------

According to JAXWS Specification 2.0 and the WS-I.
For an RPC style web method, the null is not allowed for either parameter or return value.
But this issue also happens when we use Document style. 
For document style, we should allow null as parameter and return value.


> JAXWS Style WebMethod can not return null
> -----------------------------------------
>
>                 Key: AXIS2-4580
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4580
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>    Affects Versions: 1.5.1
>            Reporter: Li, Feng
>            Priority: Blocker
>
> JAXWS style web service can not return null.
> If return null, will get following error message:
> javax.xml.ws.soap.SOAPFaultException: Return argument(s) in operation method --- is null.  This is not allowed for rpc/lit messages.
> By default, JAXWS will use Document/Literal style SOAP binding. but Axis2 only provide RPC style message receivers.

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