What is the WSDL equivalent in quiet WS. If nothing, how does the consumer generate the required client-side classes?

Let's say I have a producer in java and a consumer in a network of points. The manufacturer has a method that takes Employee as a parameter to the method and creates an employee in db.

For ws-based SOAP, the dot net client will go to WSDL and create stubs (including the presentation of employee data in a point network). Now he can fill out the object and send it to the manufacturer.

I am not sure how it will work in quiet web services, since WSDL does not exist. How does the rest consumer know what operations the manufacturer has set up without any WSDL contract, and how does the net consumer get stubs (for example, an employee data object) so that he can simply fill it in and send it through?

I know that there is WADL (parallel to WSDL) alone, but it looks like it is not very outstanding, and not standard.

I don’t understand how client-side code will generate the EmployeeData class so that it can populate it and send it to the manufacturer? Will the client manually create an additional class (instead of the EmployeeData proxy, which was previously generated based on WSDL, using utilities available on the client side)? Even if the client needs to do this manually, how will the client know what the class definition of the EmployeeData class is without wsdl or wadl?

+4
source share
2 answers

REST HATEOAS Hypermedia . , REST -, .

- REST , http://yourhost.com/rest. URL. , . . API ( ).

, : API- Hypermedia.

HATEOAS API , -.


REST / .

REST - , , WSDL.

, , EmployeeData wsdl wadl?

EmployeeData. , Employee, GET /employees, , , , , . XHTML, ( )

<form class="new-employee" action="/context/employees" method="PUT" >
    <input type="text" name="employee_name" />
    <input type="text" name="employee_age" />
    <input type="submit" name="submit" />
</form>

, . /context/employees HTTP PUT, . HATEOAS. <<25 > . PUT. , .

+6

, WSSS Json, , :

(, , ) , , .., WSDL .

+1

Source: https://habr.com/ru/post/1531950/


All Articles