`

[WARNING] Ignoring SOAP port "HelloServicePort": it uses non-standard SOAP 1.2 b

 
阅读更多

D:\>wsimport -s . http://localhost:8080/CXF_3/cxf/hello?wsdl
parsing WSDL...


[WARNING] Ignoring SOAP port "HelloServicePort": it uses non-standard SOAP 1.2 b
inding.
You must specify the "-extension" option to use this binding.
  line 47 of http://localhost:8080/CXF_3/cxf/hello?wsdl

[WARNING] Service "HelloServiceService" does not contain any usable ports. try r
unning wsimport with -extension switch.
  line 46 of http://localhost:8080/CXF_3/cxf/hello?wsdl

generating code...


compiling code...
-----------------------------------------以下是服务代码-------------------------------------

cxf-servlet.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:jaxws="http://cxf.apache.org/jaxws"
	xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:cxf="http://cxf.apache.org/core"
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
          	http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
            http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
            http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
            http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
	<!-- 引入CXF Bean定义如下,早期的版本中使用 -->
	<import resource="classpath:META-INF/cxf/cxf.xml" />
	<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
	<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
	
	<!-- 第一种发布方式:简单发布(没有接口的发布) -->
	<!-- id:唯一标示  implementor:提供服务的类 address:服务的请求url-->
	<jaxws:endpoint id="helloService" implementor="cn.itcast.cxf.HelloService" address="/hello">
		<!-- 加入请求的消息拦截器 -->
		<jaxws:inInterceptors>
			<bean class="org.apache.cxf.interceptor.LoggingInInterceptor"></bean>
		</jaxws:inInterceptors>
		<!-- 加入响应的消息拦截器 -->
		<jaxws:outInterceptors>
			<bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"></bean>
		</jaxws:outInterceptors>
	</jaxws:endpoint>

</beans>

 HelloService:

 

 

package cn.itcast.cxf;

import javax.jws.WebService;

@WebService
@BindingType(value=SOAPBinding.SOAP12HTTP_BINDING)
public class HelloService {

	public String sayHello(String name){
		System.out.println("正在调用sayHello方法");
		return "hello " + name;
	}
}

 ----------------------------以下是分析--------------------------------------------

 

将 HelloService.java的@BindingType(value=SOAPBinding.SOAP12HTTP_BINDING)注释掉就可以了.

分享到:
评论

相关推荐

    ip monitor

    Jun 08 00:02:46 localhost.localdomain firewalld[854]: WARNING: beyond-scope: INVALID_ICMPTYPE: No supported ICMP type., ignoring for run-time. Jun 08 00:02:46 localhost.localdomain firewalld[854]: ...

    基于Manifest.xml中不要出现重复的uses permission的说明

    虽然Android没有明确指定uses-permission不可以重复写,但是最近的经验是最好是不要重复,否则在某些厂商定制的技巧可能出现问题。 最近写一个应用,里面有用到网络访问,发现在有些机型下总是访问不了网络。而其他...

    rsyslog-8.24.0-57.el7-9.3.x86-64.rpm

    rsyslog安装包,用于linux上日志管理系统

    GRE真题2002——2006

    - **答案**:B. eccentric…deploy ##### 题目2 - **题目背景**:考查学生对句子逻辑关系的理解。 - **分析**: - “Even though the folk tales Perrault collected and retold were not solely French in origin...

    How To Write Good Test Cases

    在使用Robot Framework编写测试用例时,首先要遵循的最重要原则是确保测试用例尽可能地易于理解,特别是对于那些熟悉该领域的人员。Robot Framework是一个通用的测试自动化框架,其项目代码和文档目前已经迁移到了...

    spire.doc-5.4.0.jar

    可以添加本地依赖通过命令mvn install:install-file -Dfile=C:\Users\spire.doc-5.4.0.jar -DgroupId=e-iceblue -DartifactId=spire.doc -Dversion=5.4.0 -Dpackaging=jar将该依赖添加到本地依赖库使用,其他添加到...

    scrapy1.6.pdf

    raise IgnoreRequest("Ignoring this request") ``` #### 二、内置服务 Scrapy还提供了一系列内置服务来增强其功能: 1. **日志(Logging):** - **定义:**记录爬虫运行期间的重要信息,如错误、警告、信息等...

    破壳漏洞(shellshock)RHEL 4(32位)补丁

    个人测试: [root@localhost ~]# rpm -Uvh --force bash-3.0-27.0.2.el4.i386.rpm ...bash: warning: x: ignoring function definition attempt bash: error importing function definition for `x'

    Bash Shell中忽略大小写的设置方法

    大多数人在使用 Bash 时,都会对其进行改造,因为默认的设置真的好难用~ 参考以下 ~/.inputrc 设置: 代码如下: # do not show hidden files in the list set match-hidden-files off ...“\e[B”: history

    mask-detection:此Python脚本用于检测给定图像中的人是否戴着口罩。 使用Darknet训练了自定义数据集

    遮罩检测 该Python脚本用于检测给定图像中的人是否戴着口罩。 使用Darknet训练了自定义数据集。 实时检测的用法: python yolo-live-cv2.py --yolo yolo 从图像检测的用法: python custom_detector.py --image“ ...

    golang开发环境篇(七) Go mod 使用1

    Go语言的包管理工具在Go 1.11版本中发生了重大变化,引入了Go Modules,这是一项旨在解决旧版Go中的包管理问题的重要更新。在此之前,开发者通常使用govendor和glide等第三方工具来管理依赖,但这些工具在处理如网络...

    msgpack-python-0.4.2.tar

    the result, or ignoring it. The latter two methods return the number of elements in the upcoming container, so that each element in an array, or key-value pair in a map, can be unpacked or skipped ...

    java 短信发送 smslib RXTX 自动串口检测 下载 最新

    自己写一个小程序,我在java1.6.0_10;smslib-v3.4.5下运行成功,...警告: GTW: SMSLINK: Ignoring InterruptedException in Queue.peek(). 如果有能解决的这个异常的,还请多多指教(yangzl0123@163.com或者在我的博客中 ...

    End-to-end Estimation of the Available Bandwidth Variation Range

    The first is iterative and non-parametric, meaning that it is more appropriate for very short time scales (typically less than 100ms), or in bottlenecks with limited flow multiplexing (where the ...

    Filling Execution Gaps

    Ignoring any of these gaps will hex any strategy or project. They regularly destroy hundreds of companies’ ability to turn their corporate vision into business value–taking careers with them. ...

    apktool documentation

    unknownFiles - Used to record name/location of non-standard files in an apk in order to place correctly on rebuilt apk sharedLibrary - Used to help support Android 5 shared library feature by ...

    EhLib5.0.13 最新的ehlib源码

    records array, ignoring local filter of the DataSet. TDBGridEh uses this property for automatic filling a list in DropDownBox of the subtitle filter cell. TDataDriverEh component carry out two ...

    SUSE 11 sp3 安装mysql 5.6

    - `Ignoring --secure-file-priv value as server is running with --bootstrap`:这表示 MySQL 正在以启动模式运行,因此忽略了一些安全设置。 - `The first specified data file ./ibdata1 did not exist: a new ...

    Manning.Git.in.Practice.2014.9.pdf

    - **Editor Settings**: Git uses the `$EDITOR` environment variable to determine which editor to use for commit messages. You can customize this setting with `git config core.editor`. **Chapter 8: ...

Global site tag (gtag.js) - Google Analytics