티스토리 뷰
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
- popupWindow
- C/C++
- JDK21
- Rolling-Restart
- DB
- oid
- HLS
- CentOS
- programmer
- JAXB
- jdk6
- Spring
- fluentd
- elasticsearch
- AVIOContext
- DATABASE
- JPA
- HDFS
- Java
- Programming
- HTTP Live Streaming
- springboot
- libavformat
- onbeforeunload
- development
- Virtual Thread
- ffmpeg
- springframework
- springjpa
- jdk7
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
글 보관함