我正在创建一个可以调用名为 post 的自定义活动的工作流,该活动将执行 webrequest 并将响应作为 xmldoc 返回。我试图返回动态,但没有奏效。然后,我想在 xml 文档中获取一个特定值并将其添加到下一个帖子调用的帖子数据中,以将调用链接在一起。我想不通的是如何将第一个帖子的响应数据获取到第二个帖子的帖子数据中。任何帮助将不胜感激。
Variable<XmlDocument> output1 = new Variable<XmlDocument>();
ActivityBuilder ab1 = new ActivityBuilder();
ab1.Name = "CustomWorkflow";
ab1.Implementation = new Sequence
{
Activities =
{
new Post()
{
PostData =
"<xml></xml>",
EndPoint =
"www.test.com",
ContentType = "text/xml;charset=\"utf-8\"",
Accept = "text/xml",
Headers = "SOAPAction,Test",
Response = new OutArgument<XmlDocument>(output1)
},
new Post()
{
PostData =
"<xml>"+ output1.GetSingleNode("stuff here") "</xml>",
EndPoint =
"www.test.com",
ContentType = "text/xml;charset=\"utf-8\"",
Accept = "text/xml",
Headers = "SOAPAction,Test"
}
},
Variables =
{
output1
}
};