WebService face question

Source: Internet
Author: User

webservice是什么?

  1.基于WEB的服务,服务端整出一些资源让客户端应用访问(提供数据)

  2.webservice是一个跨语言跨平台的规范(抽象)

  3.是多个跨语言跨平台的应用间通信整合的方案(实际)

webservice相当于什么?

  http + xml + schema

如何发布一个webservice

  1.定义SEI(接口) @webservice(类) @webMethod(暴露的方法)

  2.定义SEI的实现

   3.发布Endpoint.publish(url,new SEI的实现对象)

如何请求一个webservice

  1.根据wsdl文档生成客户端代码 jdk wsimport -keep wsdl路径 cxf wsdl2java wsdl路径

   2.根据生成的代码调用webservice 找到wsdl文档中service标签的name属性对应的类,找到这个port标签的name属性 调用这个方法

wsdl(WebService Definition Language)是什么?

  1.webservice定义语言,对应.wsdl文档

  2.定义了webservice服务器端和客户端应用交互传递请求数据的格式和过程

   3.一个webservice对应一个唯一的wsdl文档

SOAP(Simple Object Access Protocal)简单对象访问协议

  1.是一种简单的,基于HTTP和XML的协议,用于在WEB交换结构化(XML)的数据

   2.SOAP消息:请求消息和响应消息 3.HTTP+XML片断

SEI(WebService EndPoint Interface)

·  1.web服务器端处理请求的接口

CXF : Celtix+XFire

   1.apache的用于开发webservice服务器端和客户端的框架

WebService face question

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.