问题描述
大家好,
我的应用程序必须选择包含在SOAP信封中的xml文件,例如。有SOAPENV:Envelope,SOAPENV:Header和SOAPENV:Body元素。我只对存储在SOAP-ENV:Body元素中的数据感兴趣。
My application has to pick xml file which enclosed in SOAP envelope,e.g. there are SOAPENV:Envelope, SOAPENV:Header and SOAPENV:Body elements. I'm interested only in data stored in SOAP-ENV:Body element.
我如何为这样的文件创建模式并进行处理?
How can I create schema for such file and process it?
请帮助我,我们将不胜感激,
Help me on this and all will be appreciated,
最早将真正感激..............
Earliest will be truly appreciated..............
我的示例文件是:
<! - [if gte mso 10]> < MCE:风格>
<!-- [if gte mso 10]> <mce:style>
< soapenv:Envelope xmlns:soapenv =" http://schemas.xmlsoap.org/soap/envelope/ " xmlns:xsd ="
" xmlns:xsi =" "> ;
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/ " xmlns:xsd="http://www.w3.org/2001/XMLSchema " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance ">
< soapenv:Header>
< ns1:AuthHeader soapenv:mustUnderstand =" 0" xmlns:ns1 =" ">
<ns1:AuthHeader soapenv:mustUnderstand="0" xmlns:ns1="http://ocs.softtech.com ">
< ns1:用户名> xxx< / ns1:用户名>
;&NBSP;&NBSP;&NBSP;&NBSP; < ns1:密码> xxx< / ns1:密码>
;&NBSP;&NBSP; < / ns1:AuthHeader>
< / soapenv:标题>
< soapenv:Body>
< doService xmlns =" ">
<doService xmlns="http://ocs.softtech.com ">
< reqXml xsi:type =" xsd:string"><![CDATA [
<?xml version =" 1.0" encoding =" UTF-8"?>
< zsmart>
<zsmart>
<数据>
<Data>
< header>
<header>
< ACTION_ID> PreActivation< / ACTION_ID>
<ACTION_ID>PreActivation</ACTION_ID>
< REQUEST_ID> 120081117< / REQUEST_ID>
<REQUEST_ID>120081117</REQUEST_ID>
< / header>
</header>
< body>
<body>
< / body>
</body>
< / Data>
</Data>
< / zsmart>
</zsmart>
]]>< / reqXml>
]]></reqXml>
< / doService>
</doService>
< / soapenv:正文>
</soapenv:Body>
< / soapenv:Envelope>
</soapenv:Envelope>
推荐答案
您不需要为整个肥皂信封创建一个模式。 BizTalk已经了解了soap和架构。您只需要定义主体模式并确保正文通过BizTalk XMlReceive管道。这个
管道中的反汇编程序将删除SOAP信封。
You don't need to create a schema for the whole soap envelope. BizTalk already knows about soap and the schema. You only need to define the body schema and make sure the body is going through the BizTalk XMlReceive pipeline. The disassembler inside this pipeline will strip of the SOAP envelope.
这篇关于在Biztalk中为SOAP消息创建模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!