开发者

Axis2 WSDL2java is generating only 2 java classes

I am using Axis2 for developing webservices .

Please see my program below :

pub开发者_Python百科lic class Simple {

    public String echo(String rest) {

        return rest;
    }

}

After deploying into Axis2.war , i got this wsdl file generated

Client code generation using wsdl2java :

After generating the wsdl file , i used wsdl2java for genertaing the client code

C:>WSDL2Java.bat -uri http://localhost:8080/axis2/services/SimpleService?wsdl - o E:\Axis2Tutorial\Examples\HelloWorld\client

After i ran this command i got only 2 files geerated :

SimpleServiceCallbackHandler
SimpleServiceStub

Now my question is that , why only 2 files are being that is SimpleServiceCallbackHandler and SimpleServiceStub (Where as in some of thr Axis2 Client class i have also seen Response class ) why is this in not my case .


By default those classes are generated within the stub file. You can use -u option to generate separate data binding classes. Please see here for more information.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜