이 콘텐츠는 선택한 언어로 제공되지 않습니다.
10.21. Web Service Extensions
10.21.1. WS-Addressing 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
This section describes how WS-Addressing can be used to provide a stateful service endpoint.
10.21.1.1. Specifications 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
WS-Addressing is defined by a combination of the following specifications from the W3C Recommendation. The WS-Addressing API is standardized by JSR-224 - Java API for XML-Based Web Services (JAX-WS)
10.21.1.2. Addressing Endpoint 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
Note
The following information should not be used in conjunction with JBoss Web Services CXF Stack.
The following endpoint implementation has a set of operation for a typical stateful shopping chart application.
It uses the JAX-WS 2.1 defined
javax.xml.ws.soap.Addressing
annotation to enable the server side addressing handler.
10.21.1.3. Addressing Client 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
The client code uses
javax.xml.ws.soap.AddressingFeature
feature from JAX-WS 2.1 API to enable the WS-Addressing.
Service service = Service.create(wsdlURL, serviceName); port1 = (StatefulEndpoint)service.getPort(StatefulEndpoint.class, new AddressingFeature());
Service service = Service.create(wsdlURL, serviceName);
port1 = (StatefulEndpoint)service.getPort(StatefulEndpoint.class, new AddressingFeature());
A client connecting to the stateful endpoint
SOAP message exchange
Below you see the SOAP messages that are being exchanged.