Hi!
I created a web service method (running on jbossws) to get POJO objects
(actually Entity Beans, but let's start with simple POJOs):

public void setProfileDefinition(ProfileDefinition profileDefinition);

ProfileDefinition is an empty class at the moment (no fields, method)
but I tried some with them too.

Then i create a client using _xfire_ and want to use the
setProfileDefinition method and got the following exception:

Exception in thread "main" org.codehaus.xfire.XFireRuntimeException:
Could not invoke service.. Nested exception is
org.codehaus.xfire.fault.XFireFault: Cannot find child element: arg0
org.codehaus.xfire.fault.XFireFault: Cannot find child element: arg0
    at
org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)
    at
org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28)
    at
org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111)
    at
org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67)
    at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
    at org.codehaus.xfire.client.Client.onReceive(Client.java:387)
    at
org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
    at
org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
    at
org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
    at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
    at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75)
    at org.codehaus.xfire.client.Client.invoke(Client.java:335)
    at
org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
    at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
    at $Proxy13.setProfileDefinition(Unknown Source)
    at pl.edu.agh.sius.wamp.client.WCCore.main(WCCore.java:64)

Sending String works good. Any ideas what could I miss? Can I send POJOs
that way?

Thanks for your help!
Michael


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to