给定WSDL文件,通过Internet使用Web服务的步骤是什么? [英] Given a WSDL file, what are the steps to consume a web service over the internet?

查看:123
本文介绍了给定WSDL文件,通过Internet使用Web服务的步骤是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我获得了一个WSDL文件,我需要通过Internet使用此WSDL文件来使用Web服务。我需要在Java中这样做。

I have been given a WSDL file and I need to consume a web service using this WSDL file over the internet. I need to do this in Java.

有人可以告诉我这样做的步骤吗?我还要感谢一些有用的链接。

Could someone tell me the steps for doing this? I would also appreciate some useful links.

推荐答案

第一步是生成可以与此Web服务通信的类。看看开源解决方案,例如 Axis2 。这将为您生成存根以便与代码中的Web服务进行通信...然后,您可以使用此服务。

The first step is to generate classes that can speak to this webservice. Take a look at open source solutions such as Axis2. This will generate stubs for you to talk to the webservice in code... then it's all up to you to use this service.

这篇关于给定WSDL文件,通过Internet使用Web服务的步骤是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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