aspose file tools*
The moose likes Web Services and the fly likes Can we have more than one WSDL file for same service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Can we have more than one WSDL file for same service" Watch "Can we have more than one WSDL file for same service" New topic
Author

Can we have more than one WSDL file for same service

abhi khan
Greenhorn

Joined: Nov 06, 2007
Posts: 1
Hi all,

I have created a stateless EJB and have exposed it as a webservice, note that i m using WSAD5.1 & WAS5.1 for development and deployment purposes.

My EJB remote interface contains two remote methods 1) displayMessage 2) getAccountBalance

Now the problem is that once we deployed this webservice successfully over WAS5.1, we gave the client single WSDL file having two operation , but the client wants two different WSDLs for different operations, so i manually broke down One WSDL into 2.

But, Though we got two different WSDLs but still have the same <port:location> tags, Not the client wants us to have different URLs for two different WSDLs.

Could you please help me to solve the same?

Any suggestion/advise would be a great help.

Thanks
Abhishek khandelwal
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Welcome to JavaRanch!

Originally posted by abhi khan:
Not the client wants us to have different URLs


I'm not aware of any trick that will let you split the endpoint interface over two endpoints (it really doesn't make any sense).

At this point I would abandon exposing the SLSB as a web service. Instead I would create two servlet-based endpoints, each with one operation. The servlets would then simply delegate any calls to the SLSB - both servlet-based endpoints can have there own URL.
 
jQuery in Action, 2nd edition
 
subject: Can we have more than one WSDL file for same service