• Post Reply Bookmark Topic Watch Topic
  • New Topic

schema location setting

 
ramesh agarwal
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am running GlassFish javax.jws.WebService examples that use @WebService to expose Java methods as Web Services.

When I run the examples, the WSDL file internally includes a XSD with a reference to a http://localhost... URL.

Clients from other machines are not able to access them, I scanned for the settings to be changed but could not find.

Please advise.

Thanks,
Ramesh.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
GlassFish should automatically change the schema location to use the server address used in the request for the WSDL document.
Example:
1. Using localhost to retrieve the WSDL:
WSDL URL: http://localhost:8080/JAX-WSExceptionFaultHandling/ErrorServiceService?wsdl
Fragment of WSDL importing types schema:


2. Using 127.0.0.1 to retrieve the WSDL:
WSDL URL: http://127.0.0.1:8080/JAX-WSExceptionFaultHandling/ErrorServiceService?wsdl
Fragment of WSDL importing types schema:


The web service in question was deployed on GlassFish 2.1.
Best wishes!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!