Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
WSO2端点格式_Wso2_Endpoint - Fatal编程技术网

WSO2端点格式

WSO2端点格式,wso2,endpoint,Wso2,Endpoint,WSO2是新手,但在我破解WSO2代理中的某些xslt中介之前,我尝试做一些即使对于新手也应该相对简单的事情 作为第一步,im尝试做的只是更改wso2客户端(jms)和端点(http)之间的传输。客户端正在JMS负载中发送完整的soap信封。 我可以看到正在从服务器日志调用我的端点(但是我可以看到请求被拒绝)。 果然,我可以从代理日志中看到WSO2正在客户端的SOAP负载周围添加一个额外的SOAP信封包装器 我的理解是,这应该通过将端点的format属性设置为“保持原样”来纠正。然而,这没有什么

WSO2是新手,但在我破解WSO2代理中的某些xslt中介之前,我尝试做一些即使对于新手也应该相对简单的事情

作为第一步,im尝试做的只是更改wso2客户端(jms)和端点(http)之间的传输。客户端正在JMS负载中发送完整的soap信封。 我可以看到正在从服务器日志调用我的端点(但是我可以看到请求被拒绝)。 果然,我可以从代理日志中看到WSO2正在客户端的SOAP负载周围添加一个额外的SOAP信封包装器

我的理解是,这应该通过将端点的format属性设置为“保持原样”来纠正。然而,这没有什么区别。我怀疑这是一个简单的端点或代理配置修复程序,而不是需要一些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>

1
0
0
代理:

<?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>

McQueue

设置从JMS接收的消息的内容类型:如果已经有SOAP信封,则为text/xml:

<parameter name="transport.jms.ContentType">
    <rules xmlns="">
        <jmsProperty>contentType</jmsProperty>
        <default>text/xml</default>
    </rules>
</parameter>

内容类型
文本/xml
如果通过端点调用的服务等待soap11或soap12,则可以在端点定义中设置此格式(不要让“保持原样”)


在通过端点发送消息之前,您在inSequence中将OUT\u定义为true:ESB不会实例化任何回调,也不会收到任何响应(outSequence将永远不会执行)

感谢您的指针Jean Michel。但是,这触发了另一个小精灵。抱歉,太早点击“保存”按钮-您的后续操作(将格式显式设置为soap12)非常成功,因为它预先解决了服务器报告的下一个不受支持的内容类型错误!再次感谢。