如何在Java中使用SOAP Web服务 [英] How to consume a SOAP web service in Java

查看:113
本文介绍了如何在Java中使用SOAP Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮我提供一些关于如何使用Java中的Web服务WSDL的链接吗?

Can someone please help me with some links and other on how to consume a web service WSDL in Java?

推荐答案

我将使用 CXF ,您也可以想到AXIS 2.

I will use CXF also you can think of AXIS 2 .

最好的方法是使用JAX RS参考示例

The best way to do it may be using JAX RS Refer this example

Example:

wsimport -p stockquote http://stockquote.xyz/quote?wsdl

This will generate the Java artifacts and compile them by importing the http://stockquote.xyz/quote?wsdl.

这篇关于如何在Java中使用SOAP Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆