• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exposing a java method as WebService

 
Greenhorn
Posts: 18
Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1514
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic