Huu Tuyen Nguyen
Beginner
Asked At:
1632648170000
In:
Java
cxf:rsClient
Em muốn hỏi kỹ hơn ở chỗ này
<p>
In camel-cxf schema file, there are two elements for the REST endpoint definition. cxf:rsServer for REST consumer, cxf:rsClient for REST producer.
</p>
<p>
cxf:rsServer : Is a camel component to create REST endpoint. It will turn a request into a normal Java object.
</p>
<p>
cxf:rsClient : Do the opposite of rsServer, it turn a java object to a REST request.
</p>
<p>
Ở cxf:rsClient nó thể hiện rằng biến 1 java object thành 1 REST request ở đâu và như thế nào?
</p>
<p>
Em được biết là cxf:rsServer khi n nhận đc 1 java object và chuyển đổi thành dạng rest request rồi gửi đến endpoint của rsclient khai báo như ảnh trên nhưng chưa rõ nó thể hiện như thế nào. Mong a giải đáp.<img src="https://stackask.com/wp-content/uploads/2021/09/92B06C00-5818-49DA-A70D-6BDD3DCC11E4.png" />
</p>