当我在iOS应用程序中使用此Soap服务将文档添加到oracle UCM时
定义了CHECKIN_UNIVERSAL的这些参数:
doFileCopy,dDocName,dDocTitle,dDocType,dSecurityGroup,dDocAuthor,dDocAccount
primaryFile
<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
"<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/\">\n"
"<SOAP-ENV:Body>"
"<idc:service xmlns:idc=\"http://http://192.168.1.29:16200/cs/idcplg/"
"IdcService=\"CHECKIN_UNIVERSAL\">\n"
"<idc:document dID=\"\">\n"
"<idc:field name=\"Auth\">Internet</idc:field>\n"
"<idc:field name=\"dID\"></idc:field>\n"
"<idc:field name=\"dDocAuthor\">sysadmin</idc:field>\n"
"<idc:field name=\"dDocTitle\">USER_TITLE</idc:field>\n"
"<idc:field name=\"dDocType\">RR</idc:field>\n"
"<idc:field name=\"doFileCopy\">0</idc:field>\n"
"<idc:field name=\"dSecurityGroup\">PUBLIC</idc:field>\n"
"<idc:field
name=\"primaryFile\">/Users/DesktopMacMini/Documents/test.html</idc:field>\n"
"<idc:field name=\"dDocAccount\">Ext</idc:field>\n"
"</idc:document>\n"
"</idc:service>\n"
"</SOAP-ENV:Body>\n"
"</SOAP-ENV:Envelope>\n"
This error i am getting.. this service i am using in iOS application
<?xml version='1.0' encoding='utf-8' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>Client</faultcode>
<faultstring>A formatting error was encountered while parsing (null). The tag(s)
'soap:Envelope,SOAP-ENV:Body' were not properly closed.</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
为此提供任何解决方案......
答案 0 :(得分:0)
是你写的SOAP请求是正确的但这里的字符串格式错误...错误的格式化在这里完成: “http://192.168.1.29:16200/cs/idcplg/”它必须是“http://192.168.1.29:16200/cs/idcplg/\""强>