WEB SERVICE complex data type returns?

zhaozj2021-02-16  48

Please browse the heroes give points to the comments

Return question of Server end complex data type

The data type of the web service is returned. If it is a simple data type, it is relatively simple. If it is not used as a conversion, if it is a complex data type, it is more troublesome.

Complex Type 1: JavaBeans type, this type, usually automatic

Complex Type 2: Specific Schema type, this type, not very good.

This article is to be discussed is complex type 2

There is a complex type example below,

Web Service Case Study: Software Feedback Tracking Platform

For example, the data type to return is as follows

... * ... ... < DatabaseK templatekey = "..."> ... *

Corresponding to Schema is as follows:

save_feedback api schema definition Data type, how Returns the parameters of the web service? Or how can I serve as a parameter requested by the web service?

Use WASP to develop Web Service development

Using JAXB, get the Java class for Schema. Establish a class, use it to publish web services. A method of this class, returning to the top of the SCHEMA to get the type of Java class now, now you will release this class, generate WSDL, etc., all do it. More convenient, misfortune, I am experimenting with 1-4 above, fail! ! ! ! ! ! Use WASP to easily return Client code via WSDL. Even WASP is not used

Development of the Web Service Server end. It is also possible to use it for CLIENT development.

NEW option with a Generate Web Service Client from WSDL

转载请注明原文地址:https://www.9cbs.com/read-20262.html

New Post(0)