aspose file tools*
The moose likes Web Services and the fly likes Exposing a java method as WebService Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Exposing a java method as WebService" Watch "Exposing a java method as WebService" New topic
Author

Exposing a java method as WebService

Sam Pablo
Greenhorn

Joined: Apr 08, 2010
Posts: 18

Hi Friends,

I have a code which works with Oracle Identity Manager for user profiles management, created on a OIM server. I want to expose these methods as web service.

The code and the methods that I want to expose as web service is as follows:

Removing the code


The build.xml file that I use to build my project is as follows:



I run ant to build the project. The ant run is fine and the build completes successfully, but when I deploy the application from the ear directory , the deployment fails.

Following is the weblogic server log:



I cannot figure out what actually is going on. Any suggestion and clues would be greatly appreciated.

Waiting in anticipation.


Thanks,

Sud.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
The service contract the wsdl cannot be found - Caused by: weblogic.wsee.ws.WsException: Can't find wsdl /wsdls/asyncsod.wsdl

You will need it before you can create clients against the service. Some containers such as glassfish will generate it automatically. Also, how are you publishing the service?


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Sam Pablo
Greenhorn

Joined: Apr 08, 2010
Posts: 18

Hi Bosun,

Thank you for the reply.

After I build the project using ant, we get the ear file generated as a result of execution of the build.xml.

We deploy this as an application on a Weblogic 11gR1 server.

As I build this application manually, the possibility of a weblogic.jar file being included in the build path is ruled out.

During deployment, we get this error.
Sam Pablo
Greenhorn

Joined: Apr 08, 2010
Posts: 18

Hi All,

After quite a search, I understood that the asyncsod.wsdl file is what the WL server is looking for during deploying the application.

To resolve the issue, in the war file, I added a folder wsdls and added the asyncsod.wsdl file. The asyncsod.wsdl file can be found in the following location of OIM installation:

[bea-home]/Oracle_IDM1//server/apps/oim.ear/sodcheck.war/WEB-INF/wsdls/asyncsod.wsdl

This issue has been logged with Oracle but I do not know if there is any patch available for this.

Thank you.

Sudipto.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exposing a java method as WebService