[ 
https://issues.apache.org/jira/browse/CXF-1881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12648636#action_12648636
 ] 

Daniel Kulp commented on CXF-1881:
----------------------------------


The @RequestWrapper/ResponseWrapper things should not be pointing at the 
TestRequest/TestResponse types.   Those annotations are used if you have a 
wrapper type that really holds onto the data.  For example, if your method was:

public void doDoc(String param1, String param2, String param3, Holder<Integer> 
responseCode, Holder<String> message)
(with appropriate @WebParam annotations)
then those Request/ResponseWrapper annotations would be approriate.  The 
parameters would be set into/pulled out of those wrapper types.

Most likely, you should just remove those annotations.   We'll create internal 
wrapper classes to hold onto the TestRequest/TestResponse objects that are the 
params. 
Also conisider adding parameterStyle = SOAPBinding.ParameterStyle.BARE to the 
SOAPBinding annotation.   See the wire traces/schema to see the difference.





> java first service broken if Style.DOCUMENT used, parameter is null, using 
> embedded jetty. Style.RPC works
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1881
>                 URL: https://issues.apache.org/jira/browse/CXF-1881
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.1.2
>         Environment: Using Ebmedded Jetty in CXF 2.1.2.
>            Reporter: Scott Clasen
>         Attachments: test.xml, TestDocImpl.java, TestDocService.java, 
> TestRequest.java, TestResponse.java, TestRpcImpl.java, TestRpcService.java, 
> WSTest.java
>
>
> Attempting to create a Java first JAX-WS service. When Style.DOCUMENT is 
> used, the parameter passed to the service invocation is always null, When 
> Style.RPC is used, everything works as expected.
> Attaching implementations, configuration, unit test that show the behavior

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

Reply via email to