Skip to main content

Accessing imported schema behind firewall

2 replies [Last post]
jeff_
Offline
Joined: 2008-07-04

Hi,

We run our web service behind a firewall so that external clients see the address:

http://external.company.com/webapp?wsdl

but internally this maps to a different machine:

http://internal.company.com/webapp?wsdl

this causes the urls for imported schemas and port addresses to look like:

where the location is an internal address. I have searched through the sun-jaxws.xml documentation and found no way to change this. I have specified the external address in the wsdl file that we reference in the sun-jaxws.xml file, and still no luck.

Is there a solution to this problem?

Thanks,
Jeff

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Fabian Ritzmann

On 5. Jul 2008, at 00:07, metro@javadesktop.org wrote:

> We run our web service behind a firewall so that external clients
> see the address:
>
> http://external.company.com/webapp?wsdl
>
> but internally this maps to a different machine:
>
> http://internal.company.com/webapp?wsdl
>
> this causes the urls for imported schemas and port addresses to look
> like:
>
>
>
>
>
>

This happens when you query the WSDL internally. Externally, if you
send a request to external.company.com and your gateways/proxies/load
balancers don't alter the host name in transit, the soap address will
have the external name.

Fabian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Glen Mazza

I believe setting the "url-pattern" option[1] in your Metro config file (see
Step #7 and #8 of [2]) will fix the problem for you. CXF has a
"PublishedEndpointURL" config option that does the same thing (See Note #4
at the bottom of [2]).

HTH,
Glen

[1] https://metro.dev.java.net/guide/Deploying_Metro_endpoint.html
[2] http://www.jroller.com/gmazza/date/20080417

metro wrote:
>
> Hi,
>
> We run our web service behind a firewall so that external clients see the
> address:
>
> http://external.company.com/webapp?wsdl
>
> but internally this maps to a different machine:
>
> http://internal.company.com/webapp?wsdl
>
> this causes the urls for imported schemas and port addresses to look like:
>
>
>
>
>
>

>
> where the location is an internal address. I have searched through the
> sun-jaxws.xml documentation and found no way to change this. I have
> specified the external address in the wsdl file that we reference in the
> sun-jaxws.xml file, and still no luck.
>
> Is there a solution to this problem?
>
> Thanks,
> Jeff
> [Message sent by forum member 'jeff_' (jeff_)]
>
> http://forums.java.net/jive/thread.jspa?messageID=284467
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: users-help@metro.dev.java.net
>
>
>

--
View this message in context: http://www.nabble.com/Accessing-imported-schema-behind-firewall-tp182858...
Sent from the Metro - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net