In autogenrated SoapBindingImpl body how client knows Impl class name

View: New views
1 Messages — Rating Filter:   Alert me  

In autogenrated SoapBindingImpl body how client knows Impl class name

by Naresh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have doubt abt the axis client implementation in big applications in realworld. All the examples provided on the web say that we need to modify the autogenerated SoapBindingImpl class.

ex:

class IAdd{
public int add(int i, int j);
}

class AddImpl implements IAdd{
public int add(int i, int j){
return i+j;

}


Running Java2Wsdl produces a WSDL file.(We dont provide impl class AddImpl  name)

Suppose at client side as part of Stubs/skeltons AddSoapBindingImpl class generated.

class AddSoapBindingImpl {
public int add(int x, int y){

//Here I need to update by invoiking my Impl class

AddImpl  impl = new AddImpl();
return impl.add(x,y);

}


My doubt is how in real world client knows the implementation class name and is there any other way so that client can use with out making any changes to SoapBindingImpl class

Thanks in advance.