When deploying a web service I need to know the wsdl url so that my client can run against it, however I have noticed that the url that JBoss generates is different from version 4.0.2 to version 4.0.3RC1.
In 4.0.2 if I deploy a web service named Hello that is located in an ejb-jar named myjar.jar that is inside an ear named myear.ear, then my wsdl url is:
In 4.0.3RC1 if I deploy a web service named Hello that is located in an ejb-jar named myjar.jar that is inside an ear named myear.ear, then my wsdl url is:
I cannot specify the url in the wsdl file because at deployment time I don't know what host or port JBoss is running on.
I was wondering if there was a standard that JBoss was moving towards, or if there is a way (such as a property) that specifies how that url is generated so that I could either change the way it is generated or check that property to see how it was generated from version to version.
The reason I ask this is because I would like to not have to change my client if I upgraded JBoss or was running 2 different versions.
You could specify the context + path explicitly in jboss.xml. Have a look at <port-component-uri.