File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Dynamic Proxy client to access web service from weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Dynamic Proxy client to access web service from weblogic" Watch "Dynamic Proxy client to access web service from weblogic" New topic
Author

Dynamic Proxy client to access web service from weblogic

Parameswaran Thangavel
Ranch Hand

Joined: Mar 01, 2005
Posts: 485
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.

stacktrace




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.

Thanks
Param
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic Proxy client to access web service from weblogic