Use CXF to call the Webservice interface to add SoapHeader

What is WebService:

WebService is a cross-programming language and cross-operating system platform remote calling technology.
The server program is written in java, and the client program can be written in other programming languages, and vice versa! It means that the server program and the client program can run on different operating systems.

XML+XSD, SOAP and WSDL are the three major technologies that constitute the WebService platform.

The SOAP protocol defines the format of the SOAP message. The SOAP protocol is based on the HTTP protocol. SOAP is also based on XML and XSD. XML is the data encoding method of SOAP.

A WSDL file is stored on a web server and can be accessed through a url address. Before the client calls a WebService, it needs to know the address of the WSDL file of the service.

What is CXF:

Apache CXF is an open source Services framework, CXF helps you use Frontend programming API to build and develop Services, like JAX-WS. These Services can support multiple protocols, such as: SOAP, XML/HTTP, RESTful HTTP or CORBA, and can run on multiple transport protocols, such as: HTTP, JMS or JBI, CXF greatly simplifies the creation of Services, and it inherits In addition to the XFire tradition, it can also naturally integrate seamlessly with Spring

What is the soup header:

Communication in Web Services methods using SOAP follows the standard SOAP format, part of which is data encoded in an XML document. An XML document contains an Envelope root element (consisting of a required Body element and an optional Header element). The Body element consists of message-specific

おすすめ

転載: blog.csdn.net/weixin_42551921/article/details/127656228