Can we have more than one WSDL file for same service
Joined: Nov 06, 2007
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
Joined: Aug 19, 2005
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.