Hi, 
I went into the same problem...

I just patched the JavaDeployWriter.java class to add an endpointURL tag in
the wsdd:

protected void writeDeployPort(PrintWriter pw, Port port, Service service,
BindingEntry bEntry) throws IOException {
    ....
    String useStr = " use=\"" + use + "\"";

    pw.println(
      "  <service name=\"" + serviceName + "\" provider=\"" + prefix +
":RPC" + "\"" + styleStr + useStr + ">");

    // ------------------------------
    //  Patch: add an endpointURL tag
    Iterator i = port.getExtensibilityElements().iterator();
    while (i.hasNext()) {
      ExtensibilityElement elt = (ExtensibilityElement) i.next();
      if ("address".equals(elt.getElementType().getLocalPart())) {
        SOAPAddress soapAddress = (SOAPAddress) elt;
        pw.println("      <endpointURL>" + soapAddress.getLocationURI() +
"</endpointURL>");
        break;
      }
    }
    // end patch


Christophe

> -----Original Message-----
> From: PEP AD Server Administrator
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 08, 2004 9:55 AM
> To: '[EMAIL PROTECTED]'
> Subject: Move service to a different URL
> 
> Hi,
> my target is to run public services parallel to secured services. I am
> working with Axis 1.2 beta and Tomcat 5.0.25. I am using the ANT taks to
> do all the Java2wsdl, wsdl2java, deploy and undeploy.
> I use the location parameter to set the usr
> http://my.server/axis/protected/MyService when executing java2wsdl.
> Now I have a nice and complete wsdl file but when I wsdl2java on it this
> special location get lost. When I use the generated deployment descriptor
> the service will be deployed under http://.../axis/services. When I use
> ?wsdl query to get the wsdl description of the service this will also show
> .../axis/service as location.
> So when I add
> <endpointURL>http://my.server/axis/protected/MyService</endpointURL> to
> the deploy.wsdd I at least get the service accessable at
> .../axis/protected/MyService. Still the Service is also accessable at
> .../axis/services/MyService.
> How can I aviod Axis to deploy my service under the standard path?
> How can I persists the location setting from my generated wsdl-file to the
> deploy descriptor and finally to the wsdl information which will be
> offered from the service itself?
> 
> Peter MH




Reply via email to