`

[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不可以重复写,但是最近的经验是最好是不要重复,否则在某些厂商定制的技巧可能出现问题。 最近写一个应用,里面有用到网络访问,发现在有些机型下总是访问不了网络。而其他...

    How To Write Good Test Cases

    Guidelines for writing good test cases using 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将该依赖添加到本地依赖库使用,其他添加到...

    破壳漏洞(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“ ...

    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或者在我的博客中 ...

    为python3.8.1安装pyqt5时出现的问题

    Downloading https://files.pythonhosted.org/packages/46/83/7c27aec708a1eb12812a0b985eb42eebfe3bb87e294cdca1c4af308d2fa9/PyQt5-5.14.1-5.14.1-cp35.cp36.cp37.cp38-none-win_amd64.whl (53.1MB) | | 204kB 6.2...

    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 ...

    gifwrap:终端机中的GIF

    安装下载或使用Go安装: go install github.com/liamg/gifwrap/cmd/gifwrap@latest用法Usage: gifwrap [url-or-path] [flags]Flags: -f, --fill Fill the entire terminal with the gif, ignoring aspect ratio -h, ...

    EhLib 6.3 Build 6.3.176 Russian version. Full source included.

    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 ...

    geewee.github.io:个人博客

    如何使这件事运行gem install bundler bundle update --bundler bundle update github-pages bundle install --path vendor/bundle bundle exec jekyll serve失误Ignoring commonmarker-0.17.10 because its ...

    EhLib 8.0 Build 8.0.023 Pro Edition FullSource for D7-XE8

    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 ...

    Bochs - The cross platform IA-32 (x86) emulator

    - display library 'x' now uses the desktop size for the maximum guest resolution - ROM BIOS - Support for up to 2M ROM BIOS images - I/O Devices - 3 new 'pseudo device' plugins created by plugin ...

    php.ini-development

    as it gets it. On production servers, 4096 bytes is a good setting for performance ; reasons. ; Note: Output buffering can also be controlled via Output Buffering Control ; functions. ; Possible ...

Global site tag (gtag.js) - Google Analytics