cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-3495) ClientProxyFactoryBean sends wrong payload when the interface just has some simple method : (Unmarshalling Error)
Date Thu, 30 Mar 2017 20:04:42 GMT

     [ https://issues.apache.org/jira/browse/CXF-3495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Kulp resolved CXF-3495.
------------------------------
       Resolution: Not A Problem
         Assignee: Daniel Kulp
    Fix Version/s: Invalid

Marking "not a problem" as its a mix of JAX-WS and non-jax-ws stuff which is very unpredictable
and not recommend.   At this point, stick with the jax-ws stuff.

> ClientProxyFactoryBean sends wrong payload when the interface just has some simple method
: (Unmarshalling Error)
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-3495
>                 URL: https://issues.apache.org/jira/browse/CXF-3495
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.4
>         Environment: win7 eclipse cxf2.4
>            Reporter: JackEthon
>            Assignee: Daniel Kulp
>              Labels: client, cxf, payload, soap
>             Fix For: Invalid
>
>
> when my interface just as follows:
> @WebService
> public interface IWsTest {
> 	public int method(String str);
> }
> and I use ClientProxyFacoryBean to assess the service ( calling IWsTest.method("str")
) , the server says:
> Interceptor for {http://toxind.com/}IWsTestService#{http://toxind.com/}method has thrown
exception, unwinding now
> org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"http://toxind.com/",
local:"arg0"). Expected elements are <{}arg0> ..
> and I add some method to the interface :
> @WebService
> public interface IWsTest {
> 	public int method(String str);
> 	public void add(Bean bean);  // the Bean class add annotation @XmlRootElement
> }
> then I use the same codes to access the same service , the server is just fine.
> I got the payload , and the different is :
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns1:method
xmlns:ns1="http://toxind.com/"><arg0 xmlns="http://toxind.com/">xx</arg0></ns1:method></soap:Body></soap:Envelope>
> and
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns1:method
xmlns:ns1="http://toxind.com/"><arg0>xx</arg0></ns1:method></soap:Body></soap:Envelope>



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message