SOAP Logon Request

Highlighted
Five Stars

SOAP Logon Request

Hi all,

 

I need to send a logon request via talend in order to authenticate against a webservice. This is how the request looks like:

 

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ccn2="http://provider.framework.webservices/types" xmlns:tns="http://provider.framework.webservices/Svc">
  <soap:Body>
    <tns:LogonRequestMsg>
      <ccn2:Username>myUSER</ccn2:Username>
      <ccn2: Password>myPW</ccn2: Password>
      <ccn2:WebServiceType>myWebserviceType</ccn2:WebServiceType>
    </tns:LogonRequestMsg>
  </soap:Body>
</soap:Envelope>

  

So how can I accomplish that in talend? 

 

I tried it via tWebService but that leads me to the following error message: 

 

Exception in component tWebService_1
org.apache.cxf.binding.soap.SoapFault: 10950122|You have to enter a password that is not empty.  - at utc [ 2017-06-08   14:20:56.2 ]
	at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:86)
	at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:52)
	at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:41)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
	at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:112)
	at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
	at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
[statistics] disconnected
	at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:798)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1669)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1550)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1347)
	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
	at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:651)
	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
	at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:324)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:277)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:297)
	at org.talend.webservice.helper.ServiceInvokerHelper.invoke(ServiceInvokerHelper.java:197)
	at org.talend.webservice.helper.ServiceInvokerHelper.invoke(ServiceInvokerHelper.java:238)
	at provider_demo.extractproductdata_0_1.extractProductData.tFixedFlowInput_1Process(extractProductData.java:883)
	at provider_demo.extractproductdata_0_1.extractProductData.runJobInTOS(extractProductData.java:1279)
	at provider_demo.extractproductdata_0_1.extractProductData.main(extractProductData.java:1136)

 image.pngimage.pngimage.png

 

image.png


Accepted Solutions
Community Manager

Re: SOAP Logon Request

Hi
Try tSOAP component that allows you to fill out the body message, please refer to the scenario in the component documentation.

Regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

All Replies
Community Manager

Re: SOAP Logon Request

Hi
Try tSOAP component that allows you to fill out the body message, please refer to the scenario in the component documentation.

Regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
Five Stars

Re: SOAP Logon Request

And again Shong: Thanks a lot! tSOAP did the job perfecly!

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads