What is the best way to send XML data to webservices jaxws

前端 未结 5 636
刺人心
刺人心 2021-01-20 04:09

What is the best way to send XML data to web services jax-ws?

One of the way I could make out is to convert xml into String from client side and send it as a String

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-20 04:32

    Why are using XML would be the first question.

    I would say take a look at the google protocol buffer, you will be able create a .proto file same as you create xsd and then you will be able to generate code from that proto file into different languages, the way you send over to the webservice is just takes the bytes array out of the google proto object and send it.

提交回复
热议问题