On Friday 08 August 2008 9:40:48 am Christian Schuhegger wrote:
> Hello,
>
> could anybody please try to run the RountripTest.java
> cxf/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/Rountri
>pTest.java plus add the statement:
> assertEquals("hello", client.echo("hello"));
> at the very end of the test method? Could you please tell me if this works
> for you?
OK. Figured this out. (pretty easy)
On the server side, the simple frontend will use some class decompiling stuff
to figure out the parameter names of the methods so the wsdl has some nicer
looking things other than arg0. In this case, it is expecting an element
named "text".
However, the client side only has the interface, not the impl. Interfaces
don't store the param names (only concrete classes do). Thus, it is
sending "arg0", not "text".
If you add:
svrBean.setServiceClass(HelloService.class);
to the server side, it passes as it then uses that interface to construct the
wsdl and model and stuff and thus expects the "arg0".
Alternatively, if you change the client to use the wsdl that the server
produces, that would work as well.
--
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog