ESB开发实践小结
本指南描述了服务总线(ESB)的典型使用场景、设计模式和实践经验……
下面给出了这些元素的格式定义,这些元素的命名空间为预先定义的”ctx” :
|
<element name="attachments" type="mc:AttachmentsType"/> <!-- Each attachment in the 'attachments' variable is represented by an instance of this element --> <!-- Element used to represent binary payloads and pass-by reference content --> <complexType name="AttachmentsType"> <!-- Contains the attachment content itself, either in-lined or as <binary-content/> --> <complexType name="BinaryContentType"> |
上下文实际处理过程中的一些关键点
当在一个Xquery中指向一个变量时,该变量的根元素通常没有表达出。例如:一个Xquery的表达式需要获取第一个附件的Content-Description信息,可以表达为:$attachments/ctx:attachment[1]/ctx:Content-Description.
另一个Xquery示例是获取第二个附件中的订单信息,这样订单的获取为: $attachments/ctx:attachment[2]/ctx:body/*
当变量为空或只有一个元素,而Xquery返回的是一个序列信息,则当该Xquery被赋给该变量时,只有序列中的第一个元素被存入该变量。例如:如果需要将WS-Addressing MessagerID SOAP头赋予一个变量,而SOAP头只有一个的情况下,赋值动作为:
assign data($header/wsa:MessageID) to variable idvar.
注意:如果有两个WS-Addressing MessageID头存在,变量中只包含第一个头的信息。
- 本文关键词:

