【发布时间】:2015-11-30 12:51:24
【问题描述】:
我有以下 WCF 服务操作:
[ServiceContract(ConfigurationName="IDocumentGenerator")]
public interface IDocumentGenerator
{
[OperationContract(Action = "GenerateDocument")]
XmlDocument GenerateDocument(int TemplateId, string Format, XmlDocument Payload);
}
我可以通过导航到服务在浏览器中加载 WSDL。但是,当我在 Jmeter 中向同一个服务发送“SOAP/XML-RPC 请求”时,我收到了响应代码 - 400 - 错误请求。
以下是我正在使用的 Soap 消息:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<GenerateDocument>
<Format>Pdf</Format>
<TemplateId>6</TemplateId>
<Payload><a></a></Payload>
</GenerateDocument>
</soapenv:Body>
</soapenv:Envelope>
【问题讨论】:
标签: xml web-services wcf soap wsdl