I uncommented the lines in this code

    protected Port createPort(Definition definition, Binding binding,
Service service) throws WSDLException {
        Port port = definition.createPort();
        port.setBinding(binding);
        configurePort(definition, port, binding);
        /*
        ExtensibilityElement soapAddress =
            definition.getExtensionRegistry().createExtension(Port.class,
SOAP_ADDRESS);
        ((SOAPAddress)soapAddress).setLocationURI("");
        port.addExtensibilityElement(soapAddress);
        */
        service.addPort(port);
        return port;

And now ?wsdl returns

<wsdl:service name="HelloWorld__Service">
    <wsdl:port name="HelloWorld__SOAPHTTPPort"
binding="tns:HelloWorld__SOAPBinding">
<wsdlsoap:address location="http://192.168.247.1:8085/HelloWorldService"/>
</wsdl:port>
</wsdl:service>

So the URI must be inserted later on from the binding URI. My hunch was
wrong there. Why are these lines commented out?

Simon

Reply via email to