SOAP:Address Location is being Rewritten to the current ${host.name}

View: New views
8 Messages — Rating Filter:   Alert me  

SOAP:Address Location is being Rewritten to the current ${host.name}

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am using Jax-WS 2.1.* deploying to JBoss 4.0.2 with the 'sun-jaxws.xml' deployment descriptor.  The deployment environment is using a Proxy server with multiple server instances for load balancing.  The user should only know of the Proxy server and not the instances that it directs to.

My problem is that the SOAP address location in my WSDL has the Proxy Server but is being rewritten with the local instance host name when the WSDL is retrieved via "http://....?wsdl".

Static WSDL
<soap:address location="http://public.proxy.host.name/testApp/services/MyWebServiceSoap" />

Generated WSDL:
<soap:address location="http://localhost:8080/testApp/services/MyWebServiceSoap" />

I do not want this to be over written.  I want to use a specific Host Name.  I have tried "publishedEndpointUrl" in my 'sun-jaxws.xml' but it is being ignored.

Thanks for any help!
[Message sent by forum member 'jaredmladner' (jaredmladner@...)]

http://forums.java.net/jive/thread.jspa?messageID=363443

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: SOAP:Address Location is being Rewritten to the current ${host.name}

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Not sure about JBoss, But for Tomcat and GlassFish its documented at https://metro.dev.java.net/guide/HTTP_address_in_soap_address_and_import_locations.html.
If you figure out how, please add to this guide.
[Message sent by forum member 'ramapulavarthi' (rama.pulavarthi@...)]

http://forums.java.net/jive/thread.jspa?messageID=364263

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: SOAP:Address Location is being Rewritten to the current ${host.name}

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the direction!  I will look into this for Jboss and I find out how.  When I do it will be posted.
[Message sent by forum member 'jaredmladner' (jaredmladner@...)]

http://forums.java.net/jive/thread.jspa?messageID=365640

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: SOAP:Address Location is being Rewritten to the current ${host.name}

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The suggestion in that article has problems with it. For example if part of your application is only visible inside the firewall then jsp redirects won't work as they'll try to redirect you to the external address.

This problem is covered by JAX-WS issue 602.
https://jax-ws.dev.java.net/issues/show_bug.cgi?id=602

I've submitted a patch to fix the problem.
Regards,

Nick
[Message sent by forum member 'nickwi' (nickwi@...)]

http://forums.java.net/jive/thread.jspa?messageID=368238

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: SOAP:Address Location is being Rewritten to the current ${host.name}

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is great news.  Thanks Nick.  I will be testing it out this week.
[Message sent by forum member 'jaredmladner' (jaredmladner@...)]

http://forums.java.net/jive/thread.jspa?messageID=368482

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: SOAP:Address Location is being Rewritten to the current ${host.name}

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This worked great!  Thanks again.  When can we expect this in an official release?
[Message sent by forum member 'jaredmladner' (jaredmladner@...)]

http://forums.java.net/jive/thread.jspa?messageID=368902

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: SOAP:Address Location is being Rewritten to the current ${host.name}

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No problem, although I've no idea how long it will take to get into an official release. The owner of that issue hasn't touched it for over a year so it could be a while...
[Message sent by forum member 'nickwi' (nickwi@...)]

http://forums.java.net/jive/thread.jspa?messageID=368929

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: SOAP:Address Location is being Rewritten to the current ${host.name}

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Update:  The modification worked great for the WSDL itself.  The WSDL has the correct proxy URL for the service endpoint and the XSD schema URL.

What I did notice is that the Jax-WS "Web Service landing page" that contains the EndPoint (Service, Port name) and Information (address and wsdl URLs) still has the actual host name and not the proxy URL that is in the WSLD.

Any way around this one?
[Message sent by forum member 'jaredmladner' (jaredmladner@...)]

http://forums.java.net/jive/thread.jspa?messageID=369639

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...