티스토리 뷰
XML 데이터를 SOAP Body에 넣기
public static SOAPMessage makeSoapRequest(Document document) throws Exception { MessageFactory messageFactory = MessageFactory.newInstance(SOAPConstants.DEFAULT_SOAP_PROTOCOL); SOAPMessage soapMessage = messageFactory.createMessage(); SOAPPart soapPart = soapMessage.getSOAPPart(); SOAPEnvelope envelope = soapPart.getEnvelope(); SOAPBody soapBody = envelope.getBody(); soapBody.addDocument(document); soapMessage.saveChanges(); return soapMessage; } |
'TIL > Java' 카테고리의 다른 글
JDK 21, Virtual Thread 정리 (1) | 2025.01.03 |
---|---|
GSON Type 정의 관련 정리 (0) | 2017.11.21 |
Marshalling and Unmarshalling by the JAXB (0) | 2016.11.15 |
Convert date(String) to XMLGregorianCalendar (0) | 2016.11.15 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- C/C++
- Programming
- AVIOContext
- Spring
- elasticsearch
- jdk6
- JPA
- libavformat
- Rolling-Restart
- CentOS
- Virtual Thread
- fluentd
- programmer
- springjpa
- DATABASE
- DB
- development
- HDFS
- springboot
- popupWindow
- HLS
- oid
- ffmpeg
- HTTP Live Streaming
- springframework
- JDK21
- jdk7
- Java
- onbeforeunload
- JAXB
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함