• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Problem using WebService Client

#1 2012-06-04 13:15:49

Fatkut
Member
Company: Turkish Airlines
Registered: 2011-05-18
Posts: 16

Problem using WebService Client

Tags: [bug, java, webservice]

Hı;
Im using tWebservice (Talend DI 5.1.1.r84309) on Advanced mode to call an active webservice. Im able to call the webservice without problem using SoapUi..  But on Talend i'm getting the error below:

Exception in component tWebService_1
java.lang.RuntimeException: java.net.MalformedURLException: no protocol: tmpTargetNamespace0
    at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:71)
    at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:684)
    at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:538)
    at org.apache.ws.commons.schema.SchemaBuilder.handleSchemaElementChild(SchemaBuilder.java:1513)
    at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:659)
    at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:540)
    at org.talend.webservice.helper.ServiceDiscoveryHelper.getSchemaCollection(ServiceDiscoveryHelper.java:360)
    at org.talend.webservice.helper.ServiceDiscoveryHelper.init(ServiceDiscoveryHelper.java:130)
    at org.talend.webservice.helper.ServiceDiscoveryHelper.<init>(ServiceDiscoveryHelper.java:90)
    at org.talend.webservice.helper.ServiceInvokerHelper.<init>(ServiceInvokerHelper.java:98)
    at myloyalty.copy_of_testws_0_1.Copy_of_testWs.tWebService_1Process(Copy_of_testWs.java:316)
    at myloyalty.copy_of_testws_0_1.Copy_of_testWs.runJobInTOS(Copy_of_testWs.java:580)
    at myloyalty.copy_of_testws_0_1.Copy_of_testWs.main(Copy_of_testWs.java:442)
Caused by: java.net.MalformedURLException: no protocol: tmpTargetNamespace0
    at java.net.URL.<init>(URL.java:567)
    at java.net.URL.<init>(URL.java:464)
    at java.net.URL.<init>(URL.java:413)
    at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:67)


Any ideas?

Regards
Fatih

Last edited by Fatkut (2012-06-04 13:17:09)

Offline

#2 2012-06-05 05:29:56

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: Problem using WebService Client

Hi Fatih

Could you show us the settings of tWebService?

Regards,
Pedro


Only Paranoid Survive.

Offline

#3 2012-06-05 08:07:08

Fatkut
Member
Company: Turkish Airlines
Registered: 2011-05-18
Posts: 16

Re: Problem using WebService Client

Hi;

I hope these pictures are ok.

Thank you for your interest.

Regards
Fatih


Uploaded Images

Offline

#4 2012-06-05 09:45:11

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: Problem using WebService Client

Hi Fatih

I can't reproduce this issue.
Please check your webservice.

Regards,
Pedro


Only Paranoid Survive.

Offline

#5 2012-06-05 13:33:32

Fatkut
Member
Company: Turkish Airlines
Registered: 2011-05-18
Posts: 16

Re: Problem using WebService Client

Hi Pedro;
Our webservice is working on 5.0.2. The problem is with 5.1.1. I compared the generated files.

It looks like on 5.1.1 Util_tWebService_1 is using "org.talend.webservice.helper.Utils" class. But on 5.0.2 it uses a generic named class generated on the same file. It looks like a bug to me but im not sure.

Anything i can do to help ?


Regards
Fatih

Offline

#6 2012-06-06 04:51:54

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: Problem using WebService Client

Hi Fatih

Could you tell me the steps to reproduce this issue?
Can I access your webservice?

Regards,
Pedro


Only Paranoid Survive.

Offline

#7 2012-08-27 17:58:34

StefanD
New member
Registered: 2012-08-27
Posts: 1

Re: Problem using WebService Client

Hi to everyone.

I stuck on the same problem with "Talend Open Studio for Data Integration" Version: 5.1.1.

A to call a webservice with talend leads to the folowing exception:

Exception in component tWebService_2
java.lang.RuntimeException: java.net.MalformedURLException: no protocol: tmpTargetNamespace0
    at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:71)
    at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:684)
    at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:538)
    at org.apache.ws.commons.schema.SchemaBuilder.handleSchemaElementChild(SchemaBuilder.java:1513)
    at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:659)
    at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:540)
    at org.talend.webservice.helper.ServiceDiscoveryHelper.getSchemaCollection(ServiceDiscoveryHelper.java:360)
    at org.talend.webservice.helper.ServiceDiscoveryHelper.init(ServiceDiscoveryHelper.java:130)
    at org.talend.webservice.helper.ServiceDiscoveryHelper.<init>(ServiceDiscoveryHelper.java:90)
    at org.talend.webservice.helper.ServiceInvokerHelper.<init>(ServiceInvokerHelper.java:98)
    at *******r.a_001_getanschlussinfo_0_1.A_001_getAnschlussInfo.tFixedFlowInput_1Process(A_001_getAnschlussInfo.java:549)
    at *******r.a_001_getanschlussinfo_0_1.A_001_getAnschlussInfo.runJobInTOS(A_001_getAnschlussInfo.java:1030)
    at rubinadapter.a_001_getanschlussinfo_0_1.A_001_getAnschlussInfo.main(A_001_getAnschlussInfo.java:898)
Caused by: java.net.MalformedURLException: no protocol: tmpTargetNamespace0
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(DefaultURIResolver.java:67)
[statistics] disconnected
    ... 12 more



On UNIX-server side this exception is thrown:

2012-08-27 17:41:20,790 DEBUG [pool-2-thread-3] (Slf4jLog.java:49) - EXCEPTION
java.io.IOException: A connection with a remote socket was reset by that socket.
        at sun.nio.ch.FileDispatcher.read0(Native Method)
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:267)
        at sun.nio.ch.IOUtil.read(IOUtil.java:240)
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:234)
        at org.mortbay.io.nio.ChannelEndPoint.fill(ChannelEndPoint.java:132)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:290)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
        at java.lang.Thread.run(Thread.java:810)
2012-08-27 17:41:20,790 DEBUG [pool-2-thread-3] (Slf4jLog.java:40) - EOF



The (shortend) WSDL looks like:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="http://www.*****.de/r*******s/d*****/inventory/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Inventory"
    targetNamespace="http://www.*****.de/r*******s/d*****/inventory/"
    xmlns:dt="http://www.*****.de/r*******s/d*****/inventory/datatypes">

    <wsdl:types>
        <xsd:schema targetNamespace="http://www.*****.de/r*******s/d*****/inventory/">
            <xsd:import namespace="http://www.*****.de/r*******s/d*****/inventory/datatypes"
                schemaLocation="datatypes.xsd" />
            <xsd:element name="ExceptionFaultElement" type="dt:ExceptionFault" />
        </xsd:schema>
    </wsdl:types>

    <wsdl:message name="getAnschlussInfoRequest">
        <wsdl:part element="dt:getAnschlussInfoRequest" name="parameters" />
    </wsdl:message>
    <wsdl:message name="getAnschlussInfoResponse">
        <wsdl:part element="dt:getAnschlussInfoResponse" name="parameters" />
    </wsdl:message>

    <wsdl:message name="ExceptionFaultElement">
        <wsdl:part element="tns:ExceptionFaultElement" name="parameters" />
    </wsdl:message>

    <wsdl:portType name="InventoryPortType">

    <wsdl:operation name="getAnschlussInfo">
            <wsdl:input message="tns:getAnschlussInfoRequest" />
            <wsdl:output message="tns:getAnschlussInfoResponse" />
            <wsdl:fault message="tns:ExceptionFaultElement" name="ExceptionFault" />
        </wsdl:operation>

        </wsdl:portType>

    <wsdl:binding name="InventorySOAPBinding" type="tns:InventoryPortType">
        <soap:binding style="document"
            transport="http://schemas.xmlsoap.org/soap/http" />
       
        <wsdl:operation name="getAnschlussInfo">
            <soap:operation soapAction="http://www.example.org/IM/getAnschlussInfo" />
            <wsdl:input>
                <soap:body use="literal" />
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal" />
            </wsdl:output>
            <wsdl:fault name="ExceptionFault">
                <soap:fault name="ExceptionFault" use="literal" />
            </wsdl:fault>
        </wsdl:operation>

    </wsdl:binding>

    <wsdl:service name="InventoryService">
        <wsdl:port binding="tns:InventorySOAPBinding" name="InventoryPort">
            <soap:address location="HTTP://********ref:80**/R******N/inventory/InventoryService" />
        </wsdl:port>
    </wsdl:service>

</wsdl:definitions>


Calling the webservice with SoapUI or in the webbrowser works fine.


Any help would be appreciated.


Here is my job:


Uploaded Images

Last edited by StefanD (2012-08-27 18:15:00)

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Problem using WebService Client

Board footer

Powered by FluxBB