1 Reply Latest reply on Feb 25, 2004 12:46 PM by Jason Essington

    Changing targetNamespace in WSDL

    Marc Teufel Newbie

      I have a stateless session bean and use JBOSS-NET to make this bean accessible as a web service.
      When I look at the generated WSDL in the definitions tag there stands LOCALHOST instead of my server name in all tags (f.e. targetNamespace).
      How can I change this? I want my server name or ip adress in here.

      Can you help me?

      Thanks!

        • 1. Re: Changing targetNamespace in WSDL
          Jason Essington Newbie

          That stuff is controlled in the jbossnet module of the ejbdoclet (in your build.xml file)

          So if you have something like:

           <jbossnet xmlencoding="UTF-8"
           destdir="/META-INF/"
           webDeploymentName="MyServices"
           targetNameSpace="http://my.url.org/Some/Path"
           prefix="mine"
           />
          


          It should give you

          <deployment
           name="MyServices"
           xmlns="http://xml.apache.org/axis/wsdd/"
           targetNamespace="http://my.url.org/Some/Path"
           xmlns:mine="http://my.url.org/Some/Path"
           xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
          


          In your .wsr file.