0

我需要解决java中的pcakage导入..但是包不存在..后来我发现我必须使用一些wsdl文件来生成pacakage..我有那个wsdl文件的链接..如何使用svcutil 生成该 pacakage/解析导入的 pacakage...

D:\Profiles\pdk473\Desktop>svcutil  /t:metadata http://service/metadataEndpoint

SvcUtil V02.04.00cpp  Joe Richards (joe@joeware.net) June 2005

Usage:
 SvcUtil [machine\]service [action]

   machine         Machine to process services on
   service         Key/Display Name of service to view/manipulate
                   . for list of available services
   action          Action to perform
        STOP       Stop Service
        START      Start Service
        PAUSE      Pause Service
        RESUME     Resume Service
        VIEW       View Service
        VIEWX      Extended View Service


 This software is Freeware. Use it as you wish at your own risk.
 If you have improvement ideas, bugs, or just wish to say Hi, I
 receive email 24x7 and read it in a semi-regular timeframe.
 You can usually find me at joe@joeware.net
4

2 回答 2

0

您确定 Microsoftsvcutil正在生成 Java 代码吗?据我所知,它会为您生成一些 C++ 代码,这无济于事。

过去,当我需要从 WSDL 生成 Java 存根时,我使用了 Axis 框架的wsdl2java。使用很简单,并在链接的文档中进行了解释。

于 2009-06-17T09:28:54.093 回答
0

svcutil 无法生成 java 代码。只能创建 C#、C++ 和 VB 代码。

于 2011-09-14T13:49:07.843 回答