Which glassfish build are you using ? This was fixed a while back.
vijay
legolas wood wrote:
>Hi
>Thank you for reading my post.
>we have problem when we want to create client for our web services
>deployed inot Glassfish.
>Indeed the root of problem is the xsd url that is included into the WSDL
>by netbeans or glassfish.
>for example we have installed glassfish on our test server which has a
>valid ip address.
>
>when we check the WSDL it has something like this included into the WSDL
>file
>[code]
>http://testServer:8080/TestWSService/TestWS/__container$publishing$subctx/META-INF/wsdl/TestWSService_schema1.xsd"
>[/code]
>
>and here is the complete WSDL file:
>[code]
><?xml version="1.0" encoding="UTF-8"?>
><definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
>targetNamespace="http://TestWS/" name="TestWSService"
>xmlns:tns="http://TestWS/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
> <types>
> <xsd:schema>
> <xsd:import namespace="http://TestWS/"
>schemaLocation="http://testserver:8080/TestWSService/TestWS/__container$publishing$subctx/META-INF/wsdl/TestWSService_schema1.xsd"
>xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"/>
> </xsd:schema>
> </types>
> <message name="echo">
> <part name="parameters" element="tns:echo"/>
> </message>
> <message name="echoResponse">
> <part name="parameters" element="tns:echoResponse"/>
> </message>
> <portType name="TestWS">
> <operation name="echo">
> <input message="tns:echo"/>
> <output message="tns:echoResponse"/>
> </operation>
> </portType>
> <binding name="TestWSPortBinding" type="tns:TestWS">
> <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
>style="document"/>
> <operation name="echo">
> <soap:operation soapAction=""/>
> <input>
> <soap:body use="literal"/>
> </input>
> <output>
> <soap:body use="literal"/>
> </output>
> </operation>
> </binding>
> <service name="TestWSService">
> <port name="TestWSPort" binding="tns:TestWSPortBinding">
> <soap:address
>location="http://testserver:8080/TestWSService/TestWS"
>xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"/>
> </port>
> </service>
></definitions>
>[/code]
>
>Test server is our server name which has a valid IP address.
>Now that we want to create a client for this web service from a remote
>computer, using netbeans, it return this error:
>error: Connection timed out: connect
>unknown location
>
>warning: schema_reference.4: Failed to read schema document
>'http://testserver:8080/TestWSService/TestWS/__container$publishing$subctx/META-INF/wsdl/TestWSService_schema1.xsd',
>because 1) could not find the document; 2) the document could not be
>read; 3) the root element of the document is not <xsd:schema>.
> line 0 of
>file:/F:/learning/wsTest/src/conf/xml-resources/web-service-references/TestWS_1/wsdl/OUR_IP_ADDRESS_8080/TestWSService/TestWS.wsdl#types?schema1
>
>error: java.net.ConnectException: Connection timed out: connect
>
>
>how we can fix this problem?
>I should say that we used Netbeans to create web services.
>does jax-ws provide any solution to this problem?
>
>Thanks
>
>
>
>
>
>