What do you exactly want to know? We use XFire's wsgen to generate stubs
from WSDL (stored on www). We think there's a problem with mapping; the
'arg0' name appears first in the generated interfaces:

@WebService(name = "IProfileStorage", targetNamespace =
"http://pl.edu.agh.sius.wamp.service.profile";)
@SOAPBinding(style = SOAPBinding.Style.RPC, use =
SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface IProfileStorage {

    @WebMethod(operationName = "setProfileDefinition", action = "")
    public void setProfileDefinition(
        @WebParam(name = "arg0", targetNamespace =
"http://pl.edu.agh.sius.wamp.service.profile";)
        ProfileDefinition arg0);

    @WebMethod(operationName = "test", action = "")
    @WebResult(name = "return", targetNamespace =
"http://pl.edu.agh.sius.wamp.service.profile";)
    public ProfileDefinition test(
        @WebParam(name = "arg0", targetNamespace =
"http://pl.edu.agh.sius.wamp.service.profile";)
        String arg0);

}

The 'test' method works well; the problem is using setProfileDefinition
method...

Any ideas?
Michael


Tomek Sztelak wrote:
> Hows your client and service configuration looks like ?
>
> On 6/12/07, dyrda <[EMAIL PROTECTED]> wrote:
>> 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