【发布时间】:2016-01-04 21:04:01
【问题描述】:
WSO2 新手,但在我对 wso2 代理中的某些 xslt 中介有所了解之前,尝试做一些即使对于初学者来说也应该相对简单的事情。
我第一步要做的就是更改 wso2 客户端 (jms) 和端点 (http) 之间的传输。客户端在 JMS 有效负载中发送一个完整的肥皂信封。 我可以看到我的端点正在从服务器日志中调用(但是我可以看到请求被拒绝)。 果然,我可以从代理日志中看到 WSO2 在来自客户端的肥皂负载周围添加了一个额外的 SOAP 信封包装器。
我的理解是,这应该可以通过将端点的格式属性设置为“保持原样”来纠正。然而,这并没有什么不同。我怀疑这是一个简单的端点或代理配置修复,而不是需要一些 xsl 调解?感激地收到任何指导:
我的代码:
端点:
<endpoint xmlns="http://ws.apache.org/ns/synapse">
<address uri="http://d26li228.au.alcatel-lucent.com:44006/ilws/InstantLinkSOA">
<suspendOnFailure>
<progressionFactor>1.0</progressionFactor>
</suspendOnFailure>
<markForSuspension>
<retriesBeforeSuspension>0</retriesBeforeSuspension>
<retryDelay>0</retryDelay>
</markForSuspension>
</address>
</endpoint>
代理:
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="McProxy3"
transports="McJMS"
statistics="disable"
trace="enable"
startOnLoad="true">
<target>
<inSequence>
<log level="full"/>
<property name="OUT_ONLY" value="true"/>
<send>
<endpoint key="conf:/ilepr"/>
</send>
</inSequence>
<outSequence>
<send/>
</outSequence>
</target>
<parameter name="transport.jms.Destination">McQueue</parameter>
<description/>
</proxy>
【问题讨论】: