Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/258.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 精密预成型机自动化_C#_.net_Soap_Exacttarget - Fatal编程技术网

C# 精密预成型机自动化

C# 精密预成型机自动化,c#,.net,soap,exacttarget,C#,.net,Soap,Exacttarget,我试图在C中使用.net中的SOAP在ExactTarget上触发一个自动化# 到目前为止,我已经找到了示例页面 表示var performResponse=soapClient.Perform(performRequest) 但是,soapClient.Perform不需要一次签名 到目前为止,我得到的是这个 Automation automation = new Automation(); PerformOptions options = new PerformOptions(); auto

我试图在C中使用.net中的SOAP在ExactTarget上触发一个自动化#

到目前为止,我已经找到了示例页面

表示var performResponse=soapClient.Perform(performRequest)

但是,soapClient.Perform不需要一次签名

到目前为止,我得到的是这个

Automation automation = new Automation();
PerformOptions options = new PerformOptions();
automation.CustomerKey = "53ba121d-2934-90d6-d86d-e0662c656165";
automation.ScheduledTime = DateTime.Now;
automation.ScheduledTimeSpecified = true;
automation.IsActive = true;
automation.AutomationSource = new AutomationSource()
{
   AutomationSourceID = Guid.NewGuid().ToString(),
   AutomationSourceType = "RestAPI"
};

automation.Notifications = new AutomationNotification[0];
//   automation.ObjectID = "7d88eb5b-80ea-43bb-97b2-4067aaa19c35";
automation.PartnerProperties = new APIProperty[0] { };
// automation.PartnerKey = "53ba121d-2934-90d6-d86d-e0662c656165";

string sA;
string sB;
string sC;


PerformResult[] steve = soapClient.Perform(new PerformOptions(), 
"start", new APIObject[] { automation }, out sA, out sB, out sC);
谁能帮我一把或给我举个简单的例子吗


谢谢。

我主要使用Java与ET交互,但我可以提供一些提示:

  • 首先尝试创建自动化
  • 如果自动化已经存在,请尝试查找/检索它
  • 您可以将此检索到的对象传递给执行方法

我认为,如果对象已经存在,那么CustomerKey应该足以满足您的需要,您无需再指定任何内容。

thnak的Grzegorz Gajos我会尝试一下,然后再返回给您(它一直在尝试支持,但还没有得到任何帮助)。我尝试过,但没有成功。自动化已经创建。我要做的就是将其设置为“开始”,或者将其计划为尽快开始。如果您有任何Java示例,它可能会有所帮助,因为到目前为止我什么都没有,我只能推测他们的文档已经过时了。thanksI可以看到他们将ObjectID设置为automation而不是CustomerKey,您尝试过这个吗<代码>automation.ObjectID=程序ID是的,它仍然不起作用。我将尝试使用API来安排自动化(文档仍然是错误的,但我可能能够找到答案)感谢您的帮助,即使我们可以解决它。我想到的最后一件事是调试SOAP响应。不确定如何在.NET中调试此。SOAP信封中有很多详细信息,还有调试数据。您可以尝试直接使用SOAP,例如使用此工具