Error handling 没有这样的操作:HTTP GET PATH\u INFO:/services/EchoUMO

Error handling 没有这样的操作:HTTP GET PATH\u INFO:/services/EchoUMO,error-handling,cxf,echo,mule,sample,Error Handling,Cxf,Echo,Mule,Sample,我从网上下载了mule的echo样本。我有一个java类 package org.mule.example.echo; public class Echo { public Echo() { } public String echo(String string) { return string; } } 和一个xml文件 <?xml version="1.0" encoding="UTF-8"?> <mu

我从网上下载了mule的echo样本。我有一个java类

package org.mule.example.echo;

public class Echo
{
    public Echo()
    {
    }

    public String echo(String string)
    {
        return string;
    }
}
和一个xml文件

 <?xml version="1.0" encoding="UTF-8"?>
 <mule> 

 <flow name="EchoFlow">
        <inbound-endpoint address=":65082/services/EchoUMO" exchange-pattern="request-response"/>
        <cxf:jaxws-service serviceClass="org.mule.example.echo.Echo"/>
        <component>
            <singleton-object class="org.mule.example.echo.Echo" />
        </component>
    </flow>
</mule>
你能解释一下发生了什么事吗

当我在浏览器中写入
:65082/services/EchoUMO
时,我的浏览器显示以下页面:

<soap:Envelope>
    <soap:Body><soap:Fault>
        <faultcode>soap:Server</faultcode>
        <faultstring>No such operation: (HTTP GET PATH_INFO: /services/EchoUMO)</faultstring>
    </soap:Fault></soap:Body>
</soap:Envelope>

soap:服务器
没有这样的操作:(HTTP GET PATH_INFO:/services/EchoUMO)

您的类没有使用JAX-WS注释,因此您会得到错误

您有两种选择:

  • 保留当前类和使用,即
  • 如前所述,将JAX-WS注释添加到POJO中

  • :65082/services/EchoUMO不是有效地址,因此您发布的配置甚至无法启动。你能澄清一下你是如何配置你的入站端点的吗?@genjosanzo我强制清理本地主机,因为堆栈溢出从本地主机得到了错误我写了:localhost:65082/services/EchoUMO/echo/text/hello和我cean一些代码你能帮我更多吗?我的电子邮件是:masoudy。maryam@gmail.com
    <soap:Envelope>
        <soap:Body><soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>No such operation: (HTTP GET PATH_INFO: /services/EchoUMO)</faultstring>
        </soap:Fault></soap:Body>
    </soap:Envelope>