xfire webservice url请求解决思路
xfire webservice url请求
我用xfire发布了一个webservice,服务名是IWebService,
wsdl文件也能看到
<wsdl:definitions targetNamespace="http://service.netinv.aisino.com" xmlns:tns="http://service.netinv.aisino.com" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
- <wsdl:types>
- <xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://service.netinv.aisino.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <xsd:element name="mobileInform">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
- <xsd:element name="mobileInformResponse">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
- <xsd:element name="sayHi">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
- <xsd:element name="sayHiResponse">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
想通过http://192.168.8.180:9001/fpcy_ww/services/IWebService/sayHi?in0=test 来访问这个webservice的服务 但是不行 每次都跳到wsdl页面 我看过一个文章 里面用axis可以url访问webservice 是xfire没有这个功能是是需要怎么配置,请教各位大侠了,谢谢
------解决方案--------------------
MyEclipse下XFire开发Webservice实例 - meteorWJ's Home—Floating clound - ****博客
默认分类 2009-10-20 16:09:25 阅读1180 评论4 字号:大中小 订阅
meteorWJ's Home—Floating clound
I just want to stay in the peaceful corner, leave away from black, enjoy the sunshine....
MyEclipse下XFire开发Webservice实例
最近在研究JAVA开发Webservice,发现网络上比较流行的几种选择AXIS、XFire、CFX(XFire的下一代),前几天转了几篇关于这三种选择的比较的文章,对它们已经有了些概念。决定自己实践一个例子
在开始前,先介绍一些概念:
XFire Java SOAP框架概述 (摘自:http://tech.it168.com/j/e/2006-10-28/200610281432707.shtml )
MyEclipse Web Services是建立在XFire Java SOAP框架和工具基础上的, XFire是一款开源的Java SOAP框架。它拥有一个轻量级的信息处理模块,通过STAX来与SOAP信息相结合。提供了一个工作在Web Services下的简单API,支持POJO和schema开发. XFire支持 Web Services standards,Spring 整合, 支持JBI , 支持 JAXB ,XMLBeans,Java 5 和JAX-WS.并支持HTTP, JMS, XMPP, In-memory传输协议
一、环境配置:MyEclipse7.0
JDK1.6
二、创建Web Service Project
1)在MyEclipse中选择File—>New—>Other,选择Web Service Project
2)Project Name:WebServiceServer,Framework:XFire,其他选项默认
3)Next,这一步保持默认值
4)Project Library选择,选择XFire 1.2 Core Libraries
5)Finish,创建成功后看到的工程目录如下:
6)完成以上5步后,查看WebRoot/WEB-INF/web.xml
这里指明了当遇到/services/*请求时,将选用XFireConfigurableServlet来处理
我用xfire发布了一个webservice,服务名是IWebService,
wsdl文件也能看到
<wsdl:definitions targetNamespace="http://service.netinv.aisino.com" xmlns:tns="http://service.netinv.aisino.com" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
- <wsdl:types>
- <xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://service.netinv.aisino.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <xsd:element name="mobileInform">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
- <xsd:element name="mobileInformResponse">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
- <xsd:element name="sayHi">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
- <xsd:element name="sayHiResponse">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
想通过http://192.168.8.180:9001/fpcy_ww/services/IWebService/sayHi?in0=test 来访问这个webservice的服务 但是不行 每次都跳到wsdl页面 我看过一个文章 里面用axis可以url访问webservice 是xfire没有这个功能是是需要怎么配置,请教各位大侠了,谢谢
------解决方案--------------------
MyEclipse下XFire开发Webservice实例 - meteorWJ's Home—Floating clound - ****博客
默认分类 2009-10-20 16:09:25 阅读1180 评论4 字号:大中小 订阅
meteorWJ's Home—Floating clound
I just want to stay in the peaceful corner, leave away from black, enjoy the sunshine....
MyEclipse下XFire开发Webservice实例
最近在研究JAVA开发Webservice,发现网络上比较流行的几种选择AXIS、XFire、CFX(XFire的下一代),前几天转了几篇关于这三种选择的比较的文章,对它们已经有了些概念。决定自己实践一个例子
在开始前,先介绍一些概念:
XFire Java SOAP框架概述 (摘自:http://tech.it168.com/j/e/2006-10-28/200610281432707.shtml )
MyEclipse Web Services是建立在XFire Java SOAP框架和工具基础上的, XFire是一款开源的Java SOAP框架。它拥有一个轻量级的信息处理模块,通过STAX来与SOAP信息相结合。提供了一个工作在Web Services下的简单API,支持POJO和schema开发. XFire支持 Web Services standards,Spring 整合, 支持JBI , 支持 JAXB ,XMLBeans,Java 5 和JAX-WS.并支持HTTP, JMS, XMPP, In-memory传输协议
一、环境配置:MyEclipse7.0
JDK1.6
二、创建Web Service Project
1)在MyEclipse中选择File—>New—>Other,选择Web Service Project
2)Project Name:WebServiceServer,Framework:XFire,其他选项默认
3)Next,这一步保持默认值
4)Project Library选择,选择XFire 1.2 Core Libraries
5)Finish,创建成功后看到的工程目录如下:
6)完成以上5步后,查看WebRoot/WEB-INF/web.xml
这里指明了当遇到/services/*请求时,将选用XFireConfigurableServlet来处理