XFire Web Service framework for integration with Tomcat (2)

2010-12-30  来源:本站原创  分类:Java  人气:117 

Wsdl as follows

<? Xml version = "1.0" encoding = "UTF-8"?>

<Wsdl: definitions targetNamespace = "http://webservice"

xmlns: soapenc12 = "http://www.w3.org/2003/05/soap-encoding"

xmlns: tns = "http://webservice"

xmlns: wsdl = "http://schemas.xmlsoap.org/wsdl/"

xmlns: xsd = "http://www.w3.org/2001/XMLSchema"

xmlns: soap11 = "http://schemas.xmlsoap.org/soap/envelope/"

xmlns: wsdlsoap = "http://schemas.xmlsoap.org/wsdl/soap/"

xmlns: soapenc11 = "http://schemas.xmlsoap.org/soap/encoding/"

xmlns: soap12 = "http://www.w3.org/2003/05/soap-envelope">

<wsdl:types>

<Xsd: schema xmlns: xsd = "http://www.w3.org/2001/XMLSchema"

attributeFormDefault = "qualified" elementFormDefault = "qualified"

targetNamespace = "http://webservice">

<xsd:element name="sayHello">

<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="sayHelloResponse">

<xsd:complexType>

<xsd:sequence>

<Xsd: element maxOccurs = "1" minOccurs = "1"

name = "out" nillable = "true" type = "xsd: string" />

</ Xsd: sequence>

</ Xsd: complexType>

</ Xsd: element>

</ Xsd: schema>

</ Wsdl: types>

<wsdl:message name="sayHelloResponse">

<wsdl:part name="parameters" element="tns:sayHelloResponse">

</ Wsdl: part>

</ Wsdl: message>

<wsdl:message name="sayHelloRequest">

<wsdl:part name="parameters" element="tns:sayHello"> </ wsdl: part>

</ Wsdl: message>

<wsdl:portType name="sayHelloPortType">

<wsdl:operation name="sayHello">

<Wsdl: input name = "sayHelloRequest"

message = "tns: sayHelloRequest">

</ Wsdl: input>

<Wsdl: output name = "sayHelloResponse"

message = "tns: sayHelloResponse">

</ Wsdl: output>

</ Wsdl: operation>

</ Wsdl: portType>

<Wsdl: binding name = "sayHelloHttpBinding"

type = "tns: sayHelloPortType">

<Wsdlsoap: binding

transport = "http://schemas.xmlsoap.org/soap/http" />

<wsdl:operation name="sayHello">

<wsdlsoap:operation soapAction="" />

<wsdl:input name="sayHelloRequest">

<wsdlsoap:body use="literal" />

</ Wsdl: input>

<wsdl:output name="sayHelloResponse">

<wsdlsoap:body use="literal" />

</ Wsdl: output>

</ Wsdl: operation>

</ Wsdl: binding>

<wsdl:service name="sayHello">

<Wsdl: port name = "sayHelloHttpPort"

binding = "tns: sayHelloHttpBinding">

<Wsdlsoap: address

location = "http://127.0.0.1:8080/xfireClient/services/sayHello" />

</ Wsdl: port>

</ Wsdl: service>

</ Wsdl: definitions>

This, a small web service has been successfully posted. XFire next time the client in writing code and examples.

相关文章
  • XFire Web Service framework for integration with Tomcat (1) 2010-12-30

    XFire Web Service framework for integration with Tomcat Liu Yan Although XFire is outdated, but the frustration with the previous projects the company is jdk1.4, so I can only choose the old chariot XFire Web Service development. First, we create a w

  • XFire Web Service framework for integration with Tomcat (2) 2010-12-30

    Wsdl as follows <? Xml version = "1.0" encoding = "UTF-8"?> <Wsdl: definitions targetNamespace = "http://webservice" xmlns: soapenc12 = "http://www.w3.org/2003/05/soap-encoding" xmlns: tns = "http://we

  • Construction using XFire + Spring Web Service 2010-08-07

    XFire is a next-generation parallel with Axis 2 Web Service framework, by providing a simple API to support the standard protocol for Web Service to help you quickly and easily develop Web Service applications. Relative to the Axis, the current XFire

  • XFire webservice service and client to establish 2011-08-15

    XFire is a new generation of side by side with the Axis 2 Web Service framework, by providing a simple API supports the standard Web Service protocols to help you quickly and easily develop Web Service applications. Relative to the Axis, the current

  • JAVA and. NET, call each other - with each other through the Web service call (with source code) 2011-04-24

    JAVA and. NET is now the world's two major development of competitive media, the two languages ​​have many similarities. In many large development projects which often need to use the integrated development of two languages. And many developers are b

  • Introduction to Web Service 2010-12-01

    1.1, Web Service basic concepts Web Service, also known as XML Web Service WebService is an Internet or Intranet can receive from other systems on the pass over the request, the lightweight independent communications technology. Is: through the SOAP

  • Web Service Learning Notes (1) 2010-08-02

    The purpose is to create a Web Service does not require the user interface can interact with other applications, Web applications. Examples of its advantages, if you are a stock investment company created for the site, you do not need to securities t

  • Web Service Study Notes (1) 2010-08-02

    The purpose is to create a Web Service does not require the user interface can interact with other applications Web applications. Examples of its advantages, if you are a stock investment company created for the site, you do not need to securities tr

  • Understanding Restful Web Service (a) 2010-11-09

    Abstract: This paper demonstrates the power of Http protocol and how to define what is Restful Web Service framework and RPC-style Web services to today's comparison, and analysis of the Restful Web Service Architecture of the four characteristics: a

  • Using XFire + Spring to build Web Service 2010-03-29

    Using XFire + Spring to build Web Service XFire is a side by side with the Axis 2 framework of a new generation of Web Service by providing a simple API to support the standard protocol for Web Service to help you quickly and easily develop Web Servi

  • Web Service Practice - Start XFire 2011-08-15

    A, Axis and XFire comparison XFire is a new generation of side by side with Axis2 WebService platform. Been known as a new generation, because it: 1, supporting a range of new Web Service standards - JSR181, WSDL2.0, JAXB2, WS-Security, etc.; 2, the

  • 使用MyEclipse构建Web Service(基于Xfire框架) - 自由人 2012-09-25

    使用Xfire实现一个简单的"Hello, World"Web Services,作业应当包括相关的实现软件代码以及对应的WSDL. MyEclipse 6.5,XFire 1.2.6,Tomcat 6.x XFire下载地址:http://xfire.codehaus.org/Download,下载时选择Binary Distribution in zip package (xfire-distribution-1.2.6.zip),解压缩之后lib文件夹中包含了所有的jar文件.

  • 使用XFire+Spring构建Web Service 2014-06-26

    XFire是与Axis 2并列的新一代Web Service框架,通过提供简单的API支持Web Service各项标准协议,帮助你方便快速地开发Web Service应用. 相对于Axis来说,目前XFire相对受欢迎,加上其提供了和Spring集成的支持,在目前的Web Service开源社区拥有众多的追随者.并且因为XFire为Spring提供的支持,使得我们可以很容易在Spring中使用XFire构建Web Service应用. XFire与Axis2相比具有如下特征: l 支持一系列W

  • Framework based on REST Web Service Design 2010-03-24

    REST (Representational State Transfer) is a lightweight Web Service architecture style, through the HTTP protocol can also be used to improve the response speed of the cache Cache, performance, efficiency and ease of use are better than SOAP protocol

  • Maven and Jersey Framework development using REST style of Web Service 2010-10-28

    This article demonstrates the environment eclipse + Maven plug-in + Jersey framework. This article is only concerned about the use of Jersey, so use only static data defined in the class to do presentations. Please use to modify my code. If you did n

  • XFire + Spring Web Service Construction 2010-12-08

    Had previously been no time to study Web Service, because the project needs today, so learning the next night, the feeling is not too difficult, no BS, and said steps. Create a new Web project in MyEclipse, called webservice_test. Select the project,

  • 关于使用CXF.2.6.x+Spring+Tomcat框架开发 Web Service的配置方式 2014-10-25

    java 阵营中的Apache-cxf和C#的wcf目前是市场上webservice产品的主流框架. Web Service技术简单的说就是一种带有跨平台特征的,能够使得应用程序经由web形式交互的一种服务端技术.其标准依据, 无论客户端应用所使用的语言. 平台或内部协议是什么, 都可以相互交换数据,执行具体的业务功能. web service的描述语言依据风格和标准各不相同,但表示的业务过程并不受太多的影响.目前基于soap(Simple Object Access Protocol)描述语言

  • xfire开发web service及调用 2015-01-27

    xfire配置service <service> <name>Hello</name> <namespace>myHello</namespace> <serviceClass>com.sun.IHello</serviceClass> <implementationClass>com.sun.HelloImpl</implementationClass> <style>wrapped&

  • MyEclipse Web Service under development 2010-06-16

    Development environment Sun Java 5 + Eclipse 3.2 + MyEclipse 5.0.0. Outline This article describes the use of MyEclipse Web Service to quickly develop and test a HelloWorld Web Service, including: 1. Introduces the basic concepts of MyEclipse Web Ser

  • Java开源Web Service(转) 2012-02-20

    Axis Apache Axis 是Apache WebService项目中的子项目,其最初起源于IBM的"SOAP4J",应该属于最早的一批用于构造基于SOAP应用的Framework. 目前Apache Axis已经发展到了第三代,其核心是一个SOAP处理器,用于开发包括客户端,服务器端,SOAP Gateway等各种应用.事实上Apache Axis在了1.0版后,其发行版本还包括了完整的J2EE服务器插件, WSDL支持和生成,TCP/IP监视器等组件,从这个意义上来说Apah