13 Replies Latest reply on Aug 2, 2011 10:01 AM by David Tonhofer

    Changing of soap:address location

    Marius Oancea Novice

      I have a webservice that is a stateless session bean.

      The service is deployed in jboss 4.2.1GA.

      When a customer download the wsdl, the soap address loaction is something like: and i have to change this to www.here.com.

      I've tried to play around with @WebContext, @WebService and some other advices found at http://jbws.dyndns.org/mediawiki/index.php/JBossWS_FAQs#How_do_I_know_what_endpoint_address_is_being_used.3F but i fail to make the generated wsdl file containing a custom url like for example:

      <soap:address location="http://www.here.com/services/MyService" />

      Anythink I try, the generated wsdl is containing:
      <soap:address location="" />

      or in general the IP of the server where service is installed instead of name.

      This is unacceptable on a production environment (if you use apache and mod_jk...)

      I also tried to use a :




      But does not work. Maybe I do not place the file in the right place ?

      Finally i accepted even to use wsdlLocation in WebService anotation. But this is also not work (specified wsdl is used but the address is still replaced with the wrong ip).

      Please help.