c# 如何使用 DIME soap 请求

c# how to using DIME soap request

提问人:elhanan 提问时间:10/23/2023 更新时间:10/23/2023 访问量:29

问:

如果我不够清楚,请提前抱歉,这个话题对我来说有点新。 我使用 WCF - WSDL 将文件附加到终结点。 我想使用 DIME 附加文件 为了使用 DIME,我需要一个请求 soap 上下文 我用soapUI来查看我需要的肥皂 我需要帮助如何使用这种肥皂才能使用 DIME

示例代码

SoapContext reqContext = objCA SDM_WS.RequestSoapContext
DimeAttachment dimeAttach = New DimeAttachment("image/gif",
TypeFormat.MediaType, "c:\test.txt")
reqContext.Attachments.Add(dimeAttach)

strResult = SDM_WS.createAttachment(sid, "doc_rep:1002",
"cr:400001", "my desc", "c:\test.txt")

样品肥皂

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
                       <soapenv:Header/>
                        <soapenv:Body>
                            <ser:createAttachment>
                                <sid>654741903</sid>
                                <repositoryHandle>doc_rep:1002</repositoryHandle>
                                <objectHandle>cr:635354</objectHandle>
                                <description>TEST</description>
                                <fileName>TEST</fileName>
                             </ser:createAttachment>
                          </soapenv:Body>
                       </soapenv:Envelope>
C# asp.net WCF .net-core soap

评论

0赞 Jiayao 10/24/2023
您可以查看此文档,其中提供了示例和建议。
0赞 elhanan 10/25/2023
我阅读了文档,它有助于更多地了解 DIME,但我仍然无法理解我如何实现 RequestSoapContext - WSE2

答: 暂无答案