Why do we have to have SOAP place in WSDL?

Is soap:address/

or is the soap:address location=uri /

best practice for Spring Framework web services?

+2


a source to share


2 answers


Soap: The location of the address is needed in the WSDL file because the WSDL file is a service contract. A good contract should be clear about what the service is offering, and where you can find and access the service. The service provider must be contracted by the WSDL contract to provide the service at the specified location. This is why location is required according to the w3 website.



If you are using Spring to create the web service you receive, provide the location in your properties file so you can easily change it later. If you are using Spring to create a client that uses a web service, I found that the soap location: address in the wsdl is not affected. Spring web service client ignores it and uses the value in the defaultUri property of org.springframework.ws.client.core.WebServiceTemplate.

+1


a source


I think the reason is that WSDL is not SOAP bound, so when you use it you have to be explicit.



0


a source







All Articles