[resolved] Get multiple results from tWebService

Highlighted
One Star

[resolved] Get multiple results from tWebService

Hi!
I'm trying to get mutiple return from a webservice.
The webservice returns something like:
<return>
    <report>
        <analysis>
            <nmMessageId>11431</nmMessageId>
            <name> Recapitulatif commande cheque Produit</name>
            <sentDate>2015-06-07T00:00:00+02:00</sentDate>
            <nmSent>2</nmSent>
            <nmHardBounce>1</nmHardBounce>
            <nmSoftBounce>0</nmSoftBounce>
            <nmOpen>0</nmOpen>
            <nmClick>0</nmClick>
        </analysis>
        <analysis>
            <nmMessageId>15249</nmMessageId>
            <name>CSI : infos new Machin (be_nl)</name>
            <sentDate>2015-06-07T00:00:00+02:00</sentDate>
            <nmSent>1</nmSent>
            <nmHardBounce>0</nmHardBounce>
            <nmSoftBounce>0</nmSoftBounce>
            <nmOpen>1</nmOpen>
            <nmClick>0</nmClick>
        </analysis>
       
        ....
       
    </report>
</return>

I have an error using tWebService:
Exception in component tWebService_2
java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:492)
    at java.lang.Integer.parseInt(Integer.java:527)
    at routines.system.ParserUtils.parseTo_int(ParserUtils.java:122)
    at routines.system.ParserUtils.parseTo_Integer(ParserUtils.java:137)

The result of the webservice doesn't look to be well set.
Any idea?
Regards

Accepted Solutions
One Star

Re: [resolved] Get multiple results from tWebService

twebserviceinput did the job.

View solution in original post


All Replies
One Star

Re: [resolved] Get multiple results from tWebService

Hi!
No idea about that?
Regards
One Star

Re: [resolved] Get multiple results from tWebService

twebserviceinput did the job.

View solution in original post

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog