簡體   English   中英

從 dll 生成 WSDL?

[英]Generate a WSDL from a dll?

是否可以從基於 .NET ASMX 的 web 應用程序生成 WSDL 而無需將其托管在 IIS 中? 理想情況下,我想將 svcutil.exe(或 wsdl.exe?)指向 dll,並讓它為 web 應用程序吐出所有 WSDL。

如果您可以提供 svcutil.exe 的語法,那就太好了。 我執行了 svcutil.exe /? 而且我似乎無法讓 wsdl 一代發生(如果可能的話)。

如果我打電話:

svcutil.exe myapplication.dll

我收到消息:

Generating metadata files...
Warning: No metadata files were generated. No service contracts were exported.
To export a service, use the /serviceName option. To export data contracts, specify 
the /dataContractOnly option. This can sometimes occur in certain security contexts, 
such as when the assembly is loaded over a UNC network file share. If this is the 
case, try copying the assembly into a trusted environment and running it.

(是的,我意識到 ASMX 已經過時了。我們正在棄用它。)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM