Problem using WebService Client

One Star

Problem using WebService Client

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
One Star

Re: Problem using WebService Client

Hi Fatih
Could you show us the settings of tWebService?
Regards,
Pedro
One Star

Re: Problem using WebService Client

Hi;
I hope these pictures are ok.
Thank you for your interest.
Regards
Fatih
One Star

Re: Problem using WebService Client

Hi Fatih
I can't reproduce this issue.
Please check your webservice.
Regards,
Pedro
One Star

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
One Star

Re: Problem using WebService Client

Hi Fatih
Could you tell me the steps to reproduce this issue?
Can I access your webservice?
Regards,
Pedro
One Star

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)
disconnected
... 12 more

On UNIX-server side this exception is thrown:
2012-08-27 17:41:20,790 DEBUG (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 (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">
<wsdlSmiley Tongueart element="dt:getAnschlussInfoRequest" name="parameters" />
</wsdl:message>
<wsdl:message name="getAnschlussInfoResponse">
<wsdlSmiley Tongueart element="dt:getAnschlussInfoResponse" name="parameters" />
</wsdl:message>
<wsdl:message name="ExceptionFaultElement">
<wsdlSmiley Tongueart element="tns:ExceptionFaultElement" name="parameters" />
</wsdl:message>
<wsdlSmiley TongueortType name="InventoryPortType">
<wsdlSmiley Surprisedperation name="getAnschlussInfo">
<wsdl:input message="tns:getAnschlussInfoRequest" />
<wsdlSmiley Surprisedutput message="tns:getAnschlussInfoResponse" />
<wsdl:fault message="tns:ExceptionFaultElement" name="ExceptionFault" />
</wsdlSmiley Surprisedperation>
</wsdlSmiley TongueortType>
<wsdl:binding name="InventorySOAPBinding" type="tns:InventoryPortType">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />

<wsdlSmiley Surprisedperation name="getAnschlussInfo">
<soapSmiley Surprisedperation soapAction="http://www.example.org/IM/getAnschlussInfo" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdlSmiley Surprisedutput>
<soap:body use="literal" />
</wsdlSmiley Surprisedutput>
<wsdl:fault name="ExceptionFault">
<soap:fault name="ExceptionFault" use="literal" />
</wsdl:fault>
</wsdlSmiley Surprisedperation>
</wsdl:binding>
<wsdl:service name="InventoryService">
<wsdlSmiley Tongueort binding="tns:InventorySOAPBinding" name="InventoryPort">
<soap:address location="HTTP://********ref:80**/R******N/inventory/InventoryService" />
</wsdlSmiley Tongueort>
</wsdl:service>
</wsdl:definitions>

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

Any help would be appreciated.

Here is my job: