users@jax-ws.java.net

Re: Problem when create client for web services because of XSD import url

From: Vijay Ramachandran <Vijay.Ramachandran_at_Sun.COM>
Date: Tue, 16 Jan 2007 16:14:29 -0800

Indeed glassfish inserts those addresses and that is not an error - it
is an implementation detail and all our tests have at least one XSD
imports which gets handled properly.

Is it possible to pass on the WAR / JAR /EAR ?

Vijay

legolas wood wrote:
> Hi
> Thank you for reply.
> we are using v1 b48 .
> Thanks
>
> Vijay Ramachandran wrote:
>
>> Hi Legolas,
>>
>> Which GF version and build are you using ? This was fixed sometime 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
>>>
>>>
>>>
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
>> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>
>