dynamic soap:address in WSDL - is it possible?
Hi,
I'm working with JAX-RPC 1.X (which ever comes with Sun app server 8.2) using Sun app server 8.2. There is a Sun One web server in front of the app server which basically just forwards traffic onto to the app server.
Requests are supposed to go through the web server URL. The problem I'm facing is that the soap:address in the WSDL returned in the browser is getting populated with the app server hostname:port, and not the url the client submitted. I know the soap:address gets populated by the app server when the war file is deployed, but it still seems to dynamically generate it in the response to a client. I can test this by putting a fake host name in /etc/hosts and it will return that rather than what is in the generated WSDL. So when a client binds to the WSDL, it goes through the web server, but then the soap:address they receive is the app server URI, so their SOAP request goes directly to the app and bypasses the web layer altogether.
The wscompile tool was used to generate the WSDL, mapping.xml file, etc. We then build a war file and deploy it to the app server that way. It works fine other than the soap:address from what I can see.
Does anybody know if there is a way to have the WSDL returned from the app server contain the URL the client submitted in the soap:address? I'm new to web services, so I'm stumped at this point.
Thanks.