Re: how to get real paramerter name instead of in0, in1 in wsdl file.
thanks, you are right, we should start with wsdl file. However,sometimes, just be lazy of doing so. -JPKetan Deshpande [EMAIL PROTECTED] wrote: Hi!You can generate WSDL from an interface and at the same time use animplementing class to generate proper param names. java org.apache.axis.wsdl.Java2WSDL -i MyFooClass -l"http://localhost:8080/axis/services/MyFooService" MyFoowhere MyFoo is the interface and MyFooClass implements MyFooTechnically, you should start with WSDL! :-) See other discussion threads formore...-K--- jim wang <[EMAIL PROTECTED]>wrote: Hi, Katan: Thanks for the quick response. You are right on using class instead of interface, however, theoratically, we should use Java2WSDL to against interface not class to generate WSDL file, right? Correct me if i am wrong. -JP Ketan Deshpande <[EMAIL PROTECTED]>wrote: Hi Jim, This works fine for me if I use a class, not an interface. e.g. if I use an interface Foo, java2wsdl picks up in0 / in1. If I use a class Foo, then the param names are picked up fine. You still need to compile with -g. -K --- jim wang wrote: Folks:I am using Java2WSDL to generate wsdl file, and try to get real parameter name from interface instead of in0, in1.Someone suggested to me using the following technique:When you compile your source code, turn debugging on. Apache will use your parameter names in the WSDL file. for example:javac -g Calculator.javajava org.apache.axis.wsdl.Java2WSDL -o calculator.wsdl -l "http://localhost:8080/axis/Calculator.jws" Calculator Some how, it did not work for me, does this sound familiar to you, please help.Regards, -JP - Yahoo! Music Unlimited - Access over 1 million songs. Try it free. Ketan Deshpande [EMAIL PROTECTED]__ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ - Yahoo! Music Unlimited - Access over 1 million songs. Try it free.Ketan Deshpande[EMAIL PROTECTED]__ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
Re: how to get real paramerter name instead of in0, in1 in wsdl file.
Hi, Katan: Thanks for the quick response. You are right on using class instead of interface, however, theoratically, we should use Java2WSDL to against interface not class to generate WSDL file, right? Correct me if i am wrong. -JPKetan Deshpande [EMAIL PROTECTED] wrote: Hi Jim,This works fine for me if I use a class, not an interface. e.g. if I use aninterface Foo, java2wsdl picks up in0 / in1. If I use a class Foo, then theparam names are picked up fine. You still need to compile with -g.-K--- jim wang <[EMAIL PROTECTED]>wrote: Folks: I am using Java2WSDL to generate wsdl file, and try to get real parameter name from interface instead of in0, in1. Someone suggested to me using the following technique: When you compile your source code, turn debugging on. Apache will use your parameter names in the WSDL file. for example: javac -g Calculator.java java org.apache.axis.wsdl.Java2WSDL -o calculator.wsdl -l "http://localhost:8080/axis/Calculator.jws" Calculator Som ehow, it did not work for me, does this sound familiar to you, please help. Regards, -JP - Yahoo! Music Unlimited - Access over 1 million songs. Try it free.Ketan Deshpande[EMAIL PROTECTED]__ Yahoo! Music Unlimited Access over 1 million songs. Try it free.http://music.yahoo.com/unlimited/ Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
Re: how to get real paramerter name instead of in0, in1 in wsdl file.
Hi! You can generate WSDL from an interface and at the same time use an implementing class to generate proper param names. java org.apache.axis.wsdl.Java2WSDL -i MyFooClass -l http://localhost:8080/axis/services/MyFooService; MyFoo where MyFoo is the interface and MyFooClass implements MyFoo Technically, you should start with WSDL! :-) See other discussion threads for more... -K --- jim wang [EMAIL PROTECTED] wrote: Hi, Katan: Thanks for the quick response. You are right on using class instead of interface, however, theoratically, we should use Java2WSDL to against interface not class to generate WSDL file, right? Correct me if i am wrong. -JP Ketan Deshpande [EMAIL PROTECTED] wrote: Hi Jim, This works fine for me if I use a class, not an interface. e.g. if I use an interface Foo, java2wsdl picks up in0 / in1. If I use a class Foo, then the param names are picked up fine. You still need to compile with -g. -K --- jim wang wrote: Folks: I am using Java2WSDL to generate wsdl file, and try to get real parameter name from interface instead of in0, in1. Someone suggested to me using the following technique: When you compile your source code, turn debugging on. Apache will use your parameter names in the WSDL file. for example: javac -g Calculator.java java org.apache.axis.wsdl.Java2WSDL -o calculator.wsdl -l http://localhost:8080/axis/Calculator.jws; Calculator Somehow, it did not work for me, does this sound familiar to you, please help. Regards, -JP - Yahoo! Music Unlimited - Access over 1 million songs. Try it free. Ketan Deshpande [EMAIL PROTECTED] __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ - Yahoo! Music Unlimited - Access over 1 million songs. Try it free. Ketan Deshpande [EMAIL PROTECTED] __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
Re: how to get real paramerter name instead of in0, in1 in wsdl file.
Hi Jim, This works fine for me if I use a class, not an interface. e.g. if I use an interface Foo, java2wsdl picks up in0 / in1. If I use a class Foo, then the param names are picked up fine. You still need to compile with -g. -K --- jim wang [EMAIL PROTECTED] wrote: Folks: I am using Java2WSDL to generate wsdl file, and try to get real parameter name from interface instead of in0, in1. Someone suggested to me using the following technique: When you compile your source code, turn debugging on. Apache will use your parameter names in the WSDL file. for example: javac -g Calculator.java java org.apache.axis.wsdl.Java2WSDL -o calculator.wsdl -l http://localhost:8080/axis/Calculator.jws; Calculator Somehow, it did not work for me, does this sound familiar to you, please help. Regards, -JP - Yahoo! Music Unlimited - Access over 1 million songs. Try it free. Ketan Deshpande [EMAIL PROTECTED] __ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/