提问人:elhanan 提问时间:10/23/2023 更新时间:10/23/2023 访问量:29
c# 如何使用 DIME soap 请求
c# how to using DIME soap request
问:
如果我不够清楚,请提前抱歉,这个话题对我来说有点新。 我使用 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>
答: 暂无答案
评论