WebService introduction

http + xml

You can exchange data or integrate with each other without using third-party hardware.

It is an application deployed on a web server, which exposes an API that can be called through the web to the outside world. That is to say, you can call this application through the web by programming , We call the application that calls this web service the client, and the machine that publishes the web service is called the webservice server

Technical rules:

1. Web-based system-level interface specification

A universally applicable standard: http+xml

< p>Any network communication operating system

Self-contained, self-describing, modular

Publishing, positioning, and calling via web

2. web service technology and rules

xml: extensible markup language

soap: simple object Access protocol (simple object access) soap– http+xml –>socket cross-platform

wsdl: webservice description language, which is also implemented by xml (understand this: equivalent to a manual  Laughing)

< p>uddi: general description, discovery and integration

3. Cross-platform interoperability

based on xml

based on xsd (xml schema)

based on http

4. Webservice general access method: HttpClient

HTTP-GET

HTTP-POST

SOAP (Http+xml)

5. Recommended access method:

After jdk1.6, provide webservice access through the jax-ws package Support (the early version of this package is called jax-rpc (remote produce call))

Statement: Annotated Way to declare webservice;

Publish: Publish webservice service through EndPoint.publish() in jdk

Webservice is included in the w3c specification, and other platforms support this specification, which is the most powerful It is .NET.

All support the wsimport method: generate a local proxy for the remote webservice service, and then access the webservice through the local proxy

wsimport generates a java language local proxy, and resolves the remote service to the local Classes and interfaces of

The location of the wsimport command: jdk installation directoryin

Requirements: ① The jdk version must be 1.6.21 and above ②The jdk version installed by the operating system is consistent with MyEclipse and the version specified by default

< span style="white-space:pre"> Reason: wsimport needs to be converted to local, compiled in the form of commands

Use: ① Remember to set the jdkin environment variable Specify the path path

Syntax: wsimport [options]

wsdl_uri: Uniform Resource Identifier of wsdl

There are many interfaces in www.webxml.com.cn that can be called

Leave a Comment

Your email address will not be published.