---
title: "CXF 错误"
author: "langyan"
date: "2012-05-12T12:08:15Z"
tags: []
categories: ["编程语言"]
slug: "cxf"
draft: false
lastmod: "2012-05-12T12:08:15Z"
id: 1525621
url: "https://langyan.iteye.com/blog/1525621"
---

org.apache.cxf.interceptor.Fault: No such operation:  (HTTP GET PATH\_INFO: /XXXX)

 

加后缀wsdl即可，如：http://localhost:8080/Hello?WSDL  (这只是用来网页查看wsdl用的，程序代码用的还是不带wsdl的地址)

 

javax.xml.ws.WebServiceException: Could not find operation info for web method

只要在接口增加@WebService 注解