Web服务的基于内容的路由中的错误

时间:2013-12-13 18:40:37

标签: mule

我想为SOAP消息实现基于内容的路由。我得到你的错误“ 无效的UTF-8起始字节0xac(在char#1,字节#-1)“。Web服务在Axis2中

我的mule-config.xml是

<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:pattern="http://www.mulesoft.org/schema/mule/pattern"
      xmlns:http="http://www.mulesoft.org/schema/mule/http"
      xmlns:mule-xml="http://www.mulesoft.org/schema/mule/xml"      
      xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.4/mule.xsd
http://www.mulesoft.org/schema/mule/pattern http://www.mulesoft.org/schema/mule/pattern/3.1/mule-pattern.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/3.4/mule-http.xsd
http://www.mulesoft.org/schema/mule/xml http://www.mulesoft.org/schema/mule/xml/3.4/mule-xml.xsd">

  <mule-xml:namespace-manager>
    <mule-xml:namespace prefix="ns1" uri="http://www.example.org/hello1"/>
    <mule-xml:namespace prefix="ns2" uri="http://www.example.org/hello2"/>
  </mule-xml:namespace-manager>

  <flow name="XPathExample">

    <http:inbound-endpoint address="http://localhost:8086/services" />

    <choice>

      <when evaluator="xpath" expression="//*/namespace::*[name()='ns1'] = 'http://www.example.org/hello1'">
        <http:outbound-endpoint address="http://localhost:8080/axis2/services/hello1" />
      </when>           

      <when evaluator="xpath" expression="//*/namespace::*[name()='ns2'] = 'http://www.example.org/hello2'">
        <http:outbound-endpoint address="http://localhost:8080/axis2/services/hello2" />
      </when>        

    </choice>

  </flow>
</mule>

0 个答案:

没有答案