Spring
Spring

Reputation: 11855

Java: Do I need to change the soap address of the WSDL?

My wsdl is as follows, I use Spring-WS.

For some test purposes I want to run this build also on my localhost.

Do I need to create another build to change another soap address. Or I no need to change it at all, thus it will work fine with some limitations?

<wsdl:service name="MyWSService">
    <wsdl:port binding="tns:MyWSBinding" name="MyWSPort">          
        <soap:address location="https://mywebsite.com/soapws/ws"/>             
    </wsdl:port>
</wsdl:service> 

Upvotes: 1

Views: 981

Answers (2)

Aravind Yarram
Aravind Yarram

Reputation: 80194

You doesn't need to change it for what I've observed. When you try to access this wsdl through browser by suffixing the service url with ?wsdl (http://host:port/path/service-name?wsdl) you will see that it is populated with the correct url.

This behavior might be implementation specific though. I am using Axis. It is worth to check by accessing it. But it doesn't matter what the wsdl contains as long as you are able to invoke the service.

Upvotes: 1

bvanvelsen - ACA Group
bvanvelsen - ACA Group

Reputation: 1751

We use SOAP with AXIS2 and I never had to change this setting for testing on Localhost or on an external server

Upvotes: 1

Related Questions