从 XSD 文件生成 WSDL [英] Generating a WSDL from an XSD file

查看:39
本文介绍了从 XSD 文件生成 WSDL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要生成一个给定 XSD 文件的 WSDL 文件.我该怎么做呢?我可以在 VS2005 中做到这一点吗?最简单的方法是什么?

I need to generate a WSDL file given an XSD file. How do I do this? Can I do this in VS2005? What is the simplest way to do this?

推荐答案

你不能 - XSD 描述了 DATA 方面,例如Web 服务的 - WSDL 描述了 Web 服务的功能(方法调用).您通常无法仅从您的数据中找出方法调用.

You cannot - a XSD describes the DATA aspects e.g. of a webservice - the WSDL describes the FUNCTIONS of the web services (method calls). You cannot typically figure out the method calls from your data alone.

这实际上是等式的两个独立的、独特的部分.为简单起见,您通常会在 标记中将 XSD 定义导入 WSDL.

These are really two separate, distinctive parts of the equation. For simplicity's sake you would often import your XSD definitions into the WSDL in the <wsdl:types> tag.

(感谢 Cheeso 指出我对术语的不准确使用)

(thanks to Cheeso for pointing out my inaccurate usage of terms)

这篇关于从 XSD 文件生成 WSDL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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