重分酬谢,不够再加:难题求解!关于webservice的调用!
这是微软的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)]