我的SOAP请求和SOAP响应如下:
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
accessCode: xxxxxx
Invoke
SOAP 1.1
以下是SOAP1.1请求和响应的示例。显示的占位符需要替换为实际值。
POST /UI/WebServices/CalManager.asmx HTTP/1.1
Host: login.nediso.com
Content-Type:
我正在使用ASP.NET Web创建一个预订服务,
对于这个响应模型,如下所示:
[XmlRoot("RateList")]
public class RateList
{
[XmlElement("Rate")]
public List<Rate> Rate { get; set; }
}
public class Rate
{
[XmlAttribute("Code")]
public string Code { get; set; }
[XmlAttribute("ErrorMe
我正在开发一个与soap服务通信的node应用程序,它使用foam模块将json解析为一个有效的soap请求,并在收到响应时再次返回。当与soap服务通信时,这一切都很好。
我遇到的问题是为此编写单元测试(集成测试很好)。我使用nock来模拟http服务并发送回复。这个回复确实被foam解析了,然后我可以针对响应进行断言。
因此,我不能将json对象作为答复传递,因为foam需要soap响应。如果我尝试这样做,我会得到一个错误:
Error: Start tag expected, '<' not found
将XML存储在javascript变量中是痛苦的,不起作用(即