我正在尝试将restful服务的响应分配给SOAP服务。restful服务的响应是application/octet-stream格式的,我无法将其赋给任何变量。目前,我正在使用pojo通过java callout获取我在SOA BPEL中使用的响应。
setVariableData("Token",response)令牌类型为:
<xsd:element name="Token" type="xsd:base64Binary" xmime:expectedContentTypes="application/octet-stream"/>元素是在xsd中定义的。
但是在运行时,错误出现了:
<Error> <oracle.soa.bpel.engine.dispatch> <BEA-000000> <failed to handle message
com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}mismatchedAssignmentFailure}
messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
parts: {{
summary=<summary>Mismatch Assign.
cannot set a nonelement value to an element-based variable.
An attempt to assign a nonelement value to an element-based variable failed.
Verify the BPEL source for invalid assign activities.
</summary>}发布于 2013-06-12 22:00:29
而不是根据元素赋值给变量。尝试为xsd:base64Binary类型的变量赋值:
<variable name="VariableName" type="xsd:base64Binary"/>..and..
setVariableData("VariableName",response) https://stackoverflow.com/questions/16893426
复制相似问题