Dynamic Proxy client to access web service from weblogic
posted 7 years ago
All, I created a dynamic client to access the webservice from the weblogic environment.
The issue is i am getting error in the last line of above code.
But the above code works fine with apache axis, if i modify the line setting SERVICEFACTORY_PROPERTY as System.setProperty(ServiceFactory.SERVICEFACTORY_PROPERTY,"org.apache.axis.client.ServiceFactory");
my sysout in the above code prints the following
//For Apache Axis Port Class = net.insbridge.wsi.Connector.SoftRater.SoftRaterSoapStub@1a082e2
//For weblogic Port Class = weblogic.webservice.core.rpc.StubImpl@1eb2c1b
I think problem is in the type of object reurned by the getPort method when i use weblogic service factory.
It is not returning the right object, it should return the SoftRaterSoap service stub instead of weblogic core stub.
I used ANT task, "clientgen" to generate the stub jar file. And it has the SoftRaterSoapStub.
I am not sure where i am doing wrong.
We don't want to include / put Axis jar into weblogic.
It would be great if someone can help me to figure out the issue.