Hi, 

Can you attach the WSDL you are using?

Thanks,
Andrew

Andrew Eberbach
Autonomic Computing
(919) 254-2645
T/L: 444-2645
[EMAIL PROTECTED]



"Rachana Ananthakrishnan" <[EMAIL PROTECTED]> 
03/08/2007 10:03 AM
Please respond to
[email protected]


To
<[email protected]>
cc

Subject
Incorrect code generated with  wsdl2java tool






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




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to