重分酬谢,不够再加:难题求解!关于webservice的调用!

Lengjian 2003-10-20 02:15:43
这是微软的WSFT webservice的REFERENCE文档,它实现大文件的上传,可是该死的居然将文件上传后使用了GUID(全球唯一标识符),我想要去掉这个功能,使用文件的原名,请各位看一下这个文档,有没有办法?如果需要全部的文档,请和我联系SKYSTAR@SOHU.COM。谢谢!

第一部分:
namespace SendFileLite.RdxSendService {
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="SendServiceSoap", Namespace="http://microsoft.com/webservices/RdxSendService")]
public class SendService : System.Web.Services.Protocols.SoapHttpClientProtocol {

/// <remarks/>
public SendService() {
this.Url = "http://localhost/RdxSendService/SendService.asmx";
}

/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://microsoft.com/webservices/RdxSendService/BatchIDToDocumentID", RequestNamespace="http://microsoft.com/webservices/RdxSendService", ResponseNamespace="http://microsoft.com/webservices/RdxSendService", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public int BatchIDToDocumentID(string PartnerId, System.Guid BatchID, out System.Guid DocumentID) {
object[] results = this.Invoke("BatchIDToDocumentID", new object[] {
PartnerId,
BatchID});
DocumentID = ((System.Guid)(results[1]));
return ((int)(results[0]));
}

/// <remarks/>
public System.IAsyncResult BeginBatchIDToDocumentID(string PartnerId, System.Guid BatchID, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("BatchIDToDocumentID", new object[] {
PartnerId,
BatchID}, callback, asyncState);
}

/// <remarks/>
public int EndBatchIDToDocumentID(System.IAsyncResult asyncResult, out System.Guid DocumentID) {
object[] results = this.EndInvoke(asyncResult);
DocumentID = ((System.Guid)(results[1]));
return ((int)(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://microsoft.com/webservices/RdxSendService/GetSegmentData", RequestNamespace="http://microsoft.com/webservices/RdxSendService", ResponseNamespace="http://microsoft.com/webservices/RdxSendService", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public int GetSegmentData(string PartnerId, System.Guid BatchID, long SegmentID, long SegmentOffset, int Count, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] out System.Byte[] SegmentData) {
object[] results = this.Invoke("GetSegmentData", new object[] {
PartnerId,
BatchID,
SegmentID,
SegmentOffset,
Count});
SegmentData = ((System.Byte[])(results[1]));
return ((int)(results[0]));
}

/// <remarks/>
public System.IAsyncResult BeginGetSegmentData(string PartnerId, System.Guid BatchID, long SegmentID, long SegmentOffset, int Count, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetSegmentData", new object[] {
PartnerId,
BatchID,
SegmentID,
SegmentOffset,
Count}, callback, asyncState);
}

/// <remarks/>
public int EndGetSegmentData(System.IAsyncResult asyncResult, out System.Byte[] SegmentData) {
object[] results = this.EndInvoke(asyncResult);
SegmentData = ((System.Byte[])(results[1]));
return ((int)(results[0]));
}

/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://microsoft.com/webservices/RdxSendService/GetSegmentList", RequestNamespace="http://microsoft.com/webservices/RdxSendService", ResponseNamespace="http://microsoft.com/webservices/RdxSendService", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
...全文
98 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
purefreshmilk 2003-10-21
  • 打赏
  • 举报
回复
强烈关注
kandyasp 2003-10-21
  • 打赏
  • 举报
回复
up
lyrixliu 2003-10-21
  • 打赏
  • 举报
回复
试一下吧System.Guid DocumentID转为 string DocumentID
然后在DocumentID的负值地方DocumentID = ((System.Guid)(results[1]));
改为DocumentID = “你的文件名”(这里应该是变量);

看看是否可以

12,163

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧