Xml XSLT一对多映射?
我正在调用一个web服务,它返回一个xml作为响应。此xml响应的结构如下所示Xml XSLT一对多映射?,xml,xslt,Xml,Xslt,我正在调用一个web服务,它返回一个xml作为响应。此xml响应的结构如下所示 <xsd:complexType name="MoveToNextSecretQuestionResponseType"> <xsd:sequence> <xsd:element name="question" type="xsd:string"/> <xsd:element name="authSessionId" type="xsd:string"/&
<xsd:complexType name="MoveToNextSecretQuestionResponseType">
<xsd:sequence>
<xsd:element name="question" type="xsd:string"/>
<xsd:element name="authSessionId" type="xsd:string"/>
<xsd:element name="questionId" type="xsd:string"/>
<xsd:element name="answerList" type="answerList"/>
<xsd:element name="locale" type="LocaleType"/>
</xsd:sequence>
</xsd:complexType>
}
将响应变量发送回
<questionResponse>
<MoveToNextSecretQuestionResponseType></MoveToNextSecretQuestionResponseType>
<MoveToNextSecretQuestionResponseType></MoveToNextSecretQuestionResponseType>
<MoveToNextSecretQuestionResponseType></MoveToNextSecretQuestionResponseType>
.
.
.
</questionResponse>
我不明白这个问题。while循环是用什么语言编写的?为什么不使用XSLT来完成整个工作呢?嗨,Michael,谢谢你的回答,我正在使用BPELoracle SOA来实现这个逻辑。我提到的代码是一个通用的代码,只是为了理解流程。对不起,我不知道BPEL。
while(iterator>=0){
call the web service.
store the response into source variable.
call the xsl(source=Response[iterator])
iterator= iterator-1
<questionResponse>
<MoveToNextSecretQuestionResponseType></MoveToNextSecretQuestionResponseType>
<MoveToNextSecretQuestionResponseType></MoveToNextSecretQuestionResponseType>
<MoveToNextSecretQuestionResponseType></MoveToNextSecretQuestionResponseType>
.
.
.
</questionResponse>