Simply consuming a web service in Java

前端 未结 4 487
情歌与酒
情歌与酒 2020-11-28 05:50

I have a very simple SOAP web service that I need to consume from a Java client. What is the easiest way to accomplish this without using any third party libraries? A requ

4条回答
  •  北海茫月
    2020-11-28 06:17

    If you can relax your "no 3rd party libraries" requirement, and you have a WSDL for the web service then Axis makes it really easy. Just compile the WSDL using wsdl2java, and you can use the generated Java classes to consume the web service.

提交回复
热议问题