Is soap:address/ or soap:address location=uri / best practice for Spring Framework web services?
Is soap:address/ or soap:address location=uri / best practice for Spring Framework web services?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The soap:address location is necessary in the WSDL file because the WSDL file is a contract for providing a service. A good contract should be clear on what the service offers as well as where the service can be found and accessed. The provider of a service should be committed through the WSDL contract to offer the service in the specified location. That’s why the location is required according to the w3 website.
If you are using Spring to create a web service you access specify the location in a property file to easily change it later. If you are using Spring to create a client that uses a web service I found that the soap:address location in the wsdl has no effect. Spring web service client ignore it and uses the value in the defaultUri property of org.springframework.ws.client.core.WebServiceTemplate.