Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exposing a java method as WebService

 
Sam Pablo
Greenhorn
Posts: 18
Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Sam Pablo
Greenhorn
Posts: 18
Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic