博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

web service 记录1

Posted on 2007-11-06 14:48  qqhe325  阅读(1616)  评论(0编辑  收藏  举报
  1Setting environment for using Microsoft Visual Studio 2005 x86 tools.
  2
  3D:\VS2005\VC>wsdl "c:\ws_service1.cs"  "http://localhost/ws/service1.asmx?wsdl"
  4Microsoft(R) Web Services 描述语言实用工具
  5[Microsoft (R) .NET Framework, Version 2.0.50727.42]
  6Copyright (C) Microsoft Corporation. All rights reserved.
  7错误: 处理“file:///c:/ws_service1.cs”时出错。
  8  - 下载“file:///c:/ws_service1.cs”时出错。
  9  - 未能找到文件“c:\ws_service1.cs”。
 10  - 未能找到文件“c:\ws_service1.cs”。
 11  - 未能找到文件“c:\ws_service1.cs”。
 12
 13如果需要更多帮助,请键入“wsdl /?”。
 14
 15D:\VS2005\VC>wsdl "c:\\ws_service1.cs"  "http://localhost/ws/service1.asmx?wsdl"
 16
 17Microsoft(R) Web Services 描述语言实用工具
 18[Microsoft (R) .NET Framework, Version 2.0.50727.42]
 19Copyright (C) Microsoft Corporation. All rights reserved.
 20错误: 处理“file:///c://ws_service1.cs”时出错。
 21  - 下载“file:///c://ws_service1.cs”时出错。
 22  - 未能找到文件“c:\ws_service1.cs”。
 23  - 未能找到文件“c:\ws_service1.cs”。
 24  - 未能找到文件“c:\ws_service1.cs”。
 25
 26如果需要更多帮助,请键入“wsdl /?”。
 27
 28D:\VS2005\VC>wsdl "c://ws_service1.cs"  "http://localhost/ws/service1.asmx?wsdl"
 29
 30Microsoft(R) Web Services 描述语言实用工具
 31[Microsoft (R) .NET Framework, Version 2.0.50727.42]
 32Copyright (C) Microsoft Corporation. All rights reserved.
 33错误: 处理“file:///c://ws_service1.cs”时出错。
 34  - 下载“file:///c://ws_service1.cs”时出错。
 35  - 未能找到文件“c:\ws_service1.cs”。
 36  - 未能找到文件“c:\ws_service1.cs”。
 37  - 未能找到文件“c:\ws_service1.cs”。
 38
 39如果需要更多帮助,请键入“wsdl /?”。
 40
 41D:\VS2005\VC>wsdl /out:"c://ws_service1.cs"  "http://localhost/ws/service1.asmx?
 42wsdl"
 43Microsoft(R) Web Services 描述语言实用工具
 44[Microsoft (R) .NET Framework, Version 2.0.50727.42]
 45Copyright (C) Microsoft Corporation. All rights reserved.
 46正在写入文件“c://ws_service1.cs”。
 47
 48D:\VS2005\VC>csc /out:"c://ws_service1.dll" /t:library /r:System.XML.dll /r:Syst
 49em.Web.Services.dll "c://ws_services.cs"
 50Microsoft (R) Visual C# 2005 编译器 版本 8.00.50727.1378
 51用于 Microsoft (R) Windows (R) 2005 Framework 版本 2.0.50727
 52版权所有 (C) Microsoft Corporation 2001-2005。保留所有权利。
 53
 54error CS2001: 未能找到源文件“c://ws_services.cs”
 55fatal error CS2008: 未指定输入
 56
 57D:\VS2005\VC>csc /out:"c://ws_service1.dll" /t:library /r:System.XML.dll /r:Syst
 58em.Web.Services.dll "c://ws_service1.cs"
 59Microsoft (R) Visual C# 2005 编译器 版本 8.00.50727.1378
 60用于 Microsoft (R) Windows (R) 2005 Framework 版本 2.0.50727
 61版权所有 (C) Microsoft Corporation 2001-2005。保留所有权利。
 62
 63
 64D:\VS2005\VC>disco http://localhost/ws
 65Microsoft (R) Web 服务发现实用工具
 66[Microsoft (R) .NET Framework, Version 2.0.50727.42]
 67Copyright (C) Microsoft Corporation. All rights reserved.
 68错误: http://localhost/ws
 69  - 下载“http://localhost/ws”时出错。
 70  - 请求因 HTTP 状态 403 失败: Access Forbidden。
 71
 72如果您想获得更多帮助,请键入“disco /?”。
 73
 74D:\VS2005\VC>disco /out:"c:\"  http://localhost/ws
 75Microsoft (R) Web 服务发现实用工具
 76[Microsoft (R) .NET Framework, Version 2.0.50727.42]
 77Copyright (C) Microsoft Corporation. All rights reserved.
 78错误: 输出位置 'c:"  http://localhost/ws' 不是有效的目录。
 79
 80如果您想获得更多帮助,请键入“disco /?”。
 81
 82D:\VS2005\VC>disco /out:"c:\" " http://localhost/ws"
 83Microsoft (R) Web 服务发现实用工具
 84[Microsoft (R) .NET Framework, Version 2.0.50727.42]
 85Copyright (C) Microsoft Corporation. All rights reserved.
 86错误: 输出位置 'c:" ' 不是有效的目录。
 87
 88如果您想获得更多帮助,请键入“disco /?”。
 89
 90D:\VS2005\VC>disco /out:"c:\\" " http://localhost/ws"
 91Microsoft (R) Web 服务发现实用工具
 92[Microsoft (R) .NET Framework, Version 2.0.50727.42]
 93Copyright (C) Microsoft Corporation. All rights reserved.
 94错误:  http://localhost/ws
 95  - 下载“ http://localhost/ws”时出错。
 96  - 请求因 HTTP 状态 403 失败: Access Forbidden。
 97
 98如果您想获得更多帮助,请键入“disco /?”。
 99
100D:\VS2005\VC>disco /out:"c:\\" " http://localhost/ws" /pu:jack /pp:jack
101Microsoft (R) Web 服务发现实用工具
102[Microsoft (R) .NET Framework, Version 2.0.50727.42]
103Copyright (C) Microsoft Corporation. All rights reserved.
104错误:  http://localhost/ws
105  - 下载“ http://localhost/ws”时出错。
106  - 请求因 HTTP 状态 403 失败: Access Forbidden。
107
108如果您想获得更多帮助,请键入“disco /?”。
109
110D:\VS2005\VC>disco /out:"c:\\" " http://localhost/ws" /pu:jack /pp:jack
111Microsoft (R) Web 服务发现实用工具
112[Microsoft (R) .NET Framework, Version 2.0.50727.42]
113Copyright (C) Microsoft Corporation. All rights reserved.
114错误:  http://localhost/ws
115  - 下载“ http://localhost/ws”时出错。
116  - 请求因 HTTP 状态 403 失败: Access Forbidden。
117
118如果您想获得更多帮助,请键入“disco /?”。
119
120D:\VS2005\VC>disco /out:"c:\\" " http://localhost/ws"
121Microsoft (R) Web 服务发现实用工具
122[Microsoft (R) .NET Framework, Version 2.0.50727.42]
123Copyright (C) Microsoft Corporation. All rights reserved.
124错误:  http://localhost/ws
125  - 下载“ http://localhost/ws”时出错。
126  - 请求因 HTTP 状态 403 失败: Access Forbidden。
127
128如果您想获得更多帮助,请键入“disco /?”。
129
130D:\VS2005\VC>disco /out:"c:\\" " http://localhost/ws/service1.asmx"
131Microsoft (R) Web 服务发现实用工具
132[Microsoft (R) .NET Framework, Version 2.0.50727.42]
133Copyright (C) Microsoft Corporation. All rights reserved.
134Disco 在下列 URL 处找到文档:
135http://localhost/ws/service1.asmx?disco
136http://localhost/ws/service1.asmx?wsdl
137
138下列文件保存在相应的 URL 处找到的内容:
139  c:\service1.disco <- http://localhost/ws/service1.asmx?disco
140  c:\service1.wsdl <- http://localhost/ws/service1.asmx?wsdl
141文件 c:\results.discomap 保存指向这些文件中的每一个的链接。
142
143D:\VS2005\VC>wsdl /out:"c:\\a.cs" C:\results.discomap C:\service1.disco C:\servi
144ce1.wsdl
145Microsoft(R) Web Services 描述语言实用工具
146[Microsoft (R) .NET Framework, Version 2.0.50727.42]
147Copyright (C) Microsoft Corporation. All rights reserved.
148错误: 无法识别的文件类型“C:\service1.disco”。扩展名必须为 .wsdl 和 .xsd 两者之
149一。
150
151如果需要更多帮助,请键入“wsdl /?”。
152
153D:\VS2005\VC>wsdl /out:"c:\\a.cs" "C:\results.discomap" "C:\service1.disco" "C:\
154service1.wsdl"
155Microsoft(R) Web Services 描述语言实用工具
156[Microsoft (R) .NET Framework, Version 2.0.50727.42]
157Copyright (C) Microsoft Corporation. All rights reserved.
158错误: 无法识别的文件类型“C:\service1.disco”。扩展名必须为 .wsdl 和 .xsd 两者之
159一。
160
161如果需要更多帮助,请键入“wsdl /?”。
162
163D:\VS2005\VC>wsdl /out:"c:\\a.cs"  "C:\service1.wsdl"
164Microsoft(R) Web Services 描述语言实用工具
165[Microsoft (R) .NET Framework, Version 2.0.50727.42]
166Copyright (C) Microsoft Corporation. All rights reserved.
167正在写入文件“c:\\a.cs”。
168
169D:\VS2005\VC>csc /out:"c:\a.dll" /t:libray  /r:System.XML.dll /r:System.Web.Serv
170ices.dll a.cs
171Microsoft (R) Visual C# 2005 编译器 版本 8.00.50727.1378
172用于 Microsoft (R) Windows (R) 2005 Framework 版本 2.0.50727
173版权所有 (C) Microsoft Corporation 2001-2005。保留所有权利。
174
175fatal error CS2019: /target 的目标类型无效:
176        必须指定“exe”、“winexe”、“library”或“module”
177error CS2001: 未能找到源文件“a.cs”
178fatal error CS2008: 未指定输入
179
180D:\VS2005\VC>csc /out:"c:\a.dll" /t:libray  /r:System.XML.dll /r:System.Web.Serv
181ices.dll c:\a.cs
182Microsoft (R) Visual C# 2005 编译器 版本 8.00.50727.1378
183用于 Microsoft (R) Windows (R) 2005 Framework 版本 2.0.50727
184版权所有 (C) Microsoft Corporation 2001-2005。保留所有权利。
185
186fatal error CS2019: /target 的目标类型无效:
187        必须指定“exe”、“winexe”、“library”或“module”
188
189D:\VS2005\VC>csc /out:"c:\a.dll" /t:library  /r:System.XML.dll /r:System.Web.Ser
190vices.dll c:\a.cs
191Microsoft (R) Visual C# 2005 编译器 版本 8.00.50727.1378
192用于 Microsoft (R) Windows (R) 2005 Framework 版本 2.0.50727
193版权所有 (C) Microsoft Corporation 2001-2005。保留所有权利。
194
195
196D:\VS2005\VC>