3

How can I customize jax-ws webservice to be available on more than one url. I have a webserice named commonService. By default it is hosted at www.examples.com/commonservice?wsdl

I need to host it in multiple paths as below

www.examples.com/corporate/commonservices www.example.com/retail/commonservices

I am using websphere 7 and Jdk1.6

Any hints?

kiran.kumar M
  • 811
  • 8
  • 25

1 Answers1

0

Have you tried to create multiple endpoints in your sun-jaxws.xml file? I would try using the same configuration in terms of implementation, interface, but a different URL pattern - not sure if that'll work though :)

  • I am not user Will the sun-jaws.xml work in websphere 7 ( I am not using metro). Adding an end point will i need to change my wsdl ? Any hints ? – kiran.kumar M Jul 31 '11 at 04:18
  • Haven't tried metro + websphere, but seems someone did successfully: http://www.myeclipseide.com/PNphpBB2-viewtopic-t-21370.html – Gonzalo Garcia Lasurtegui Jul 31 '11 at 19:20
  • Yes I have earlier implemented metro. Later switched to container based jax-ws since I had issues when calling services out side my application. There is a PMR pending with IBM – kiran.kumar M Aug 01 '11 at 04:56