Did I miss something with tWebServiceInput ?

Highlighted
Eight Stars

Did I miss something with tWebServiceInput ?

[UPDATED]

Hi All,

I want to consume Magento SOAP webservice in Talend. The newbie solution I tried first was to write manually soap messages in custom routines. It works but not viable at long term and really painful to maintain. You guess it's the first time I deal with SOAP.

Now I've discovered code generation using wsdl2java in tWebServiceInput. I got the following new routines: BindingStub, MagentoService, MagentoServiceLocator, Porttype.

In a tJava, I wrote:

String wsdl = "http://mymagento.localhost/index.php/api/soap/";
routines.PortType porttype = new routines.MagentoServiceLocator().getPort(new java.net.URL(wsdl));
String resp= porttype.login("myusername", "mypassword");
System.out.println(resp);

But when I run it, I got the following error.

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Service

 How do I install this missing class ?

Moderator

Re: Did I miss something with tWebServiceInput ?

Hello,

There are two ways for you to import and use an external jar.
1)Using tLibraryload component to load the jar file at the begininig of job. for example:
tLibraryLoad
   |
tJava(on tJava, use the external API)

2)Creating custom routine, import the external jar file by clicking on the routine name and editing the routine libraries, and then call this routine in the job.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now