org.apache.cxf.interceptor.Fault:在cxf中使用未知的params调用未知方法时没有绑定操作信息

时间:2015-03-18 07:48:50

标签: cxf

问题描述可能很长。请耐心等待并提供任何帮助,因为我不熟悉网络服务。

我的项目:

spring-cxf.xml:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
    xmlns:jaxws="http://cxf.apache.org/jaxws"
    xsi:schemaLocation="http://www.springframework.org/schema/beans  
        http://www.springframework.org/schema/beans/spring-beans-3.2.xsd  
        http://www.springframework.org/schema/context  
        http://www.springframework.org/schema/context/spring-context-3.2.xsd  
        http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">


    <jaxws:endpoint id="teamService" implementor="org.baharan.hrm.web.controller.core.ws.WSServiceYalgholibeyService" address="/teamService" /> 

</beans>

和web.xml的内容:

<context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            /WEB-INF/spring/appContext-hibernate-weblogic.xml ,
            /WEB-INF/mvc-dispatcher-servlet.xml,
            /WEB-INF/spring/spring-security.xml,
            /WEB-INF/spring/spring-cxf.xml

        </param-value>
    </context-param>

    <servlet>
        <servlet-name>cxf</servlet-name>
        <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>cxf</servlet-name>
        <url-pattern>/ws/*</url-pattern>
    </servlet-mapping>

我的java代码是:

package org.baharan.hrm.web.controller.core.ws;

import javax.jws.WebMethod;
import javax.jws.WebParam;

import org.baharan.hrm.model.core.person.Person;
import org.baharan.hrm.service.core.person.IPersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WSServiceYalgholibeyService {

    /*
     * @Autowired(required = true) private IPersonService iPersonService;
     */

    @WebMethod
    public String getPersonByPersonCode() {
        return "jkdfgsogh";
    }

}
在weblogic上启动服务时,

生成了跟随错误:

WARNING: Interceptor for {http://ws.core.controller.web.hrm.baharan.org/}WSServiceYalgholibeyServiceService has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: No binding operation info while invoking unknown method with params unknown.
    at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:59)
    at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)
    at 

0 个答案:

没有答案