Hi,

I am trying to use the wsdl2java tool to generate source to use in a Muse
2.1.0 deployment. I used the template WSDL and added some custom operations
(int add(int), int getValue()), but it seems like my input parameters in the
methods that are generated are always void. 

For example:

 public int add() throws Exception    {
        //TODO implement addInput
        throw new RuntimeException("Unimplemented Method: addInput");
    }

    public Element setValue() throws Exception    {
        //TODO implement setValue
        throw new RuntimeException("Unimplemented Method: setValue");
    }

To test things, I used the wsdl from the samples/simple
(SimpleResource.wsdl). The command I ran was:

C:\cygwin\home\ranantha\muse\simpleWsdl>M:\bin\wsdl2java.bat -axis2 -wsdl
C:\cygwin\home\ranantha\muse\muse-2.1.0-bin\samples\j2ee\simple\wsdl\SimpleR
esource.wsdl

WARNING: [ID = 'NoWSRPSchema'] No WS-RP schema found.

Looking at the generated capability file, the input parameter is void:

public String firstOperation() throws Exception    {
        //TODO implement firstOperation
        throw new RuntimeException("Unimplemented Method: firstOperation");
    }

The input parameter should have been an int, like the provided capability
file in samples:

 public String firstOperation(String param1)
    {
        return "[RESPONSE] " + param1;
    }
}

Is there any other input required for the generated code to reflect the WSDL
correctly ?

Thanks,
Rachana

Reply via email to