SOAP client in Java from a WSDL i was provided with. I'm using Eclipse, so it offers me some tools in order to generate most of the code. So I should only add the invokation of the WS I'm calling and the parameters processing and stuff like that. Seems easy. The thing is, this JAR is gonna be working on different environments, so I have decided to write down the ENDPOINT URL of the WS on a properties file, so the JAR can choose which endpoint to use depending on the environment, it's dynamic. I have used this code in order to change the endpoint: https://pastebin.com/PGx1txkP . The problem is...it's giving me a 500 error server-side when I'm changing the URL. For example, the WSDL base endpoint (the one which I used to generate the client code) is URL_ENVIRONMENT1, if I make my code take that same URL (or any other) from the .properties file and set it up as you just saw it gives me the error, but if I call the web service using the default URL it works well. Any hints or ideas? Should I be doing something more in order to configure my SOAP code to change endpoints? Thank you in advance!
Where is the default URL configured?
The WSDL I was provided with has a soap:address location = "WS URL DEFAULT ENVIRONMENT"
Обсуждают сегодня