下面是我生成的代理类文件一部分代码
用<%@ Import Namespace="WeatherServer" %>导入空间的时候报错说找不到命名空间
我已经用csc /t:library /out:qq.dll qq.cs /r:System.dll,System.xml.dll,System.web.ser
vices.dll,System.Data 生成Dll了,可是还是出错,到底是什么原因呢????求助求助
<autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.1.4322.573
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
//
// 此源代码由 wsdl, Version=1.1.4322.573 自动生成。
// namespace WeatherServer {
using System.Diagnostics;
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Web.Services;
/// <remarks/>
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="QQSoap", Namespace="http://tempuri.org")]
public class QQ : System.Web.Services.Protocols.SoapHttpClientProtocol {
/// <remarks/>
public QQ() {
this.Url = "http://webserver.wzilin.com/webserver/WS_BIG5/qq.asmx";
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/QQ_Online", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string QQ_Online(string qqcode) {
object[] results = this.Invoke("QQ_Online", new object[] {
qqcode});
return ((string)(results[0]));
}