How to parse SOAP message into Jaxb classes

后端 未结 1 1345
悲&欢浪女
悲&欢浪女 2021-01-23 17:50

I have a SOAPMessage Object. I would like to parse and convert it into a set of Jaxb classes. How would I convert the message into a format that Jaxb can unmarshal?

jav

相关标签:
1条回答
  • 2021-01-23 18:11

    The body of the SOAP message contains the actual data and its the bit you want to unmarshal. You could do the following:

    Node node = soapMessage.getSOAPBody();
    unmarshaller.unmarshal(node)(
    
    0 讨论(0)
提交回复
热议问题