我尝试使用Sudzc来生成我的SOAP请求。但是生成的请求是错误的。下面是Sudzc生成的soap请求和一个非常简单的示例请求的工作SoapUI请求。有没有人遇到过同样的问题?
Sudzc生成的soap请求:
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:sap-com:document:sap:soap:functions:mc-style">
<soap:Body>
<urn:ZcaptoSccMatDet>
<IvMatnr>D300</IvMatnr>
</urn:ZcaptoSccMatDet>
</soap:Body>
</soap:Envelope>工作中的SoapUI生成的消息:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap com:document:sap:soap:functions:mc-style">
<soapenv:Header/>
<soapenv:Body>
<urn:ZcaptoSccMatDet>
<IvMatnr>D300</IvMatnr>
</urn:ZcaptoSccMatDet>
</soapenv:Body>
</soapenv:Envelope>发布于 2012-03-17 02:49:52
凯,
如果您需要将输出更改为soapenv,请查看Soap.m中的(Sudzc生成的)代码。特别是,请查看createEnvelope方法。您可以将此方法中的硬编码引用从soap更新为soapenv。
https://stackoverflow.com/questions/9158898
复制相似问题