JItterBit HTTP端点 [英] JItterBit HTTP Endpoint

查看:128
本文介绍了JItterBit HTTP端点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力在JitterBit中设置一个HTTP端点,为此端点,我们有一个系统将调用该端点并将参数通过URL传递给它.

I am working to set up a HTTP Endpoint in JitterBit, for this end point we have a system that will call this Endpoint and pass parameters through the URL to it.

示例...

http://[服务器]:[服务器端口]/EndPoint?Id = {SalesForecID}& Status = {SF中的更新状态}

http://[server]:[server port]/EndPoint?Id={SalesForecID}&Status={updated status in SF}

我需要为此使用文本文件,JSON或XML方法吗?后续问题是,如果是JSON或XML,则在创建终结点期间上载的文件将是什么样子.我对文本文件版本没有成功感到厌倦.

Would i need to use the Text File, JSON or XML Method for this? Follow up question would be if it is JSON or XML what would the file look like that is uploaded during creating the endpoint. I have tired with no success with the text file version.

任何帮助都会很棒.

推荐答案

我现在才看到您的问题.您可能已经找到了解决方案,但这花了我一段时间才能弄清楚,所以我还是会回应.

I'm just seeing your question now. You may have found a solution, but this took me a while to figure out, so I'll respond anyway.

要获取传递的值,请继续创建HTTP端点并添加由其触发的新操作.然后,在您的新操作中,创建一个如下所示的脚本:

To get the passed values, go ahead and create your HTTP Endpoint and add a new operation triggered by it. Then, in your new operation create a script with something like the following:

$ SalesForceID = $ jitterbit.networking.http.query.Id $ UpdatedStatus = $ jitterbit.networking.http.query.Status

$SalesForceID = $jitterbit.networking.http.query.Id $UpdatedStatus = $jitterbit.networking.http.query.Status

然后您可以在操作链中的其他位置使用这些变量.

You can then use these variables elsewhere in your operation chain.

如果要使用这些值将其输入到另一个RESTful Web服务(即HTTP Source)中,则必须使用HTTP Source创建一个单独的转换操作.您可以将该源URL设置为:http://mysfapp.com/call?Id=[SalesForceID]&Status=[UpdatedStatus].我不知道为什么,但是您无法使用脚本从端点和在同一操作中使用这些参数的HTTP源中提取参数.

If you want to use these values to feed into another RESTful web service (i.e. an HTTP Source), you'll have to create a separate transformation operation with the HTTP Source. You'd set that source URL to be: http://mysfapp.com/call?Id=[SalesForceID]&Status=[UpdatedStatus]. I'm not sure why, but you can't have the script that extracts the parameters from the Endpoint and the HTTP Source that uses those in the same operation.

欢呼

这篇关于JItterBit HTTP端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆