我试图在Talend中使用dayforce的API从报表中提取数据。Dayforce API和Talend
它的工作方式是我需要先获取客户端,然后进行身份验证,然后使用代码调用报告名称。
我被困在获得客户端。 WSDL URL接受参数并返回以下内容:
<?xml version="1.0" encoding="ISO-8859-15"?>
<root>
<row>
<check><ns1:GetClientSiteUriResult xmlns:a="http://Dayforce/Services/Data" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://Dayforce/Services/DayforceService"><a:Error><a:Code>0</a:Code><a:Message i:nil="true"/><a:StackTrace i:nil="true"/></a:Error><a:ServiceVersion>49.0.16090.6</a:ServiceVersion><a:Uri>https://748.dayforcehcm.com/Datasvc/DayforceService.svc</a:Uri></ns1:GetClientSiteUriResult></check>
</row>
</root>
如何从此响应提取URI?该URI是https://748.dayforcehcm.com/Datasvc/DayforceService.svc
如何从那里使用URI调用Authenticate API方法。 Authenticate只接受3个参数的公司名称,用户和密码。我将如何使用URI?
[statistics] connecting to socket on port 3578
[statistics] connected
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Syntax error, insert ")" to complete MethodInvocation
Syntax error, insert ";" to complete LocalVariableDeclarationStatement
at dayforce_apis.dayforce_employee_listing_0_1.Dayforce_Employee_Listing.tSOAP_1Process(Dayforce_Employee_Listing.java:330)
at dayforce_apis.dayforce_employee_listing_0_1.Dayforce_Employee_Listing.runJobInTOS(Dayforce_Employee_Listing.java:610)
at dayforce_apis.dayforce_employee_listing_0_1.Dayforce_Employee_Listing.main(Dayforce_Employee_Listing.java:467)
非常感谢您的帮助。我可以看看你的组件截图是什么样的。我不确定EndPoint应该是什么。什么是您用于EndPoint和肥皂行动的URL? – a415
答案已在tSOAP部分的附加屏幕上更新。 – mhassine
我的组件外观完全一样,但出现错误。 线程“main”中的异常java.lang.Error:未解决的编译问题: \t语法错误,插入“)”以完成MethodInvocation \t语法错误,插入“;”完成LocalVariableDeclarationStatement – a415