init lserp cs 5.0
This commit is contained in:
@@ -0,0 +1,199 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// 此源代码是由 Microsoft.VSDesigner 4.0.30319.42000 版自动生成。
|
||||
//
|
||||
#pragma warning disable 1591
|
||||
|
||||
namespace Lskj.CmCapture.net.eicp.fsdfh9 {
|
||||
using System;
|
||||
using System.Web.Services;
|
||||
using System.Diagnostics;
|
||||
using System.Web.Services.Protocols;
|
||||
using System.Xml.Serialization;
|
||||
using System.ComponentModel;
|
||||
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.2556.0")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Web.Services.WebServiceBindingAttribute(Name="UploaderSoap", Namespace="http://tempuri.org/")]
|
||||
public partial class Uploader : System.Web.Services.Protocols.SoapHttpClientProtocol {
|
||||
|
||||
private System.Threading.SendOrPostCallback UploadFileOperationCompleted;
|
||||
|
||||
private bool useDefaultCredentialsSetExplicitly;
|
||||
|
||||
/// <remarks/>
|
||||
public Uploader() {
|
||||
this.Url = global::Lskj.CmCapture.Properties.Settings.Default.Lskj_CmCapture_net_eicp_fsdfh9_Uploader;
|
||||
if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
|
||||
this.UseDefaultCredentials = true;
|
||||
this.useDefaultCredentialsSetExplicitly = false;
|
||||
}
|
||||
else {
|
||||
this.useDefaultCredentialsSetExplicitly = true;
|
||||
}
|
||||
}
|
||||
|
||||
public new string Url {
|
||||
get {
|
||||
return base.Url;
|
||||
}
|
||||
set {
|
||||
if ((((this.IsLocalFileSystemWebService(base.Url) == true)
|
||||
&& (this.useDefaultCredentialsSetExplicitly == false))
|
||||
&& (this.IsLocalFileSystemWebService(value) == false))) {
|
||||
base.UseDefaultCredentials = false;
|
||||
}
|
||||
base.Url = value;
|
||||
}
|
||||
}
|
||||
|
||||
public new bool UseDefaultCredentials {
|
||||
get {
|
||||
return base.UseDefaultCredentials;
|
||||
}
|
||||
set {
|
||||
base.UseDefaultCredentials = value;
|
||||
this.useDefaultCredentialsSetExplicitly = true;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public event UploadFileCompletedEventHandler UploadFileCompleted;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/UploadFile", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
|
||||
public ResultFile UploadFile([System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] content, string DirTabId, string filename) {
|
||||
object[] results = this.Invoke("UploadFile", new object[] {
|
||||
content,
|
||||
DirTabId,
|
||||
filename});
|
||||
return ((ResultFile)(results[0]));
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UploadFileAsync(byte[] content, string DirTabId, string filename) {
|
||||
this.UploadFileAsync(content, DirTabId, filename, null);
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public void UploadFileAsync(byte[] content, string DirTabId, string filename, object userState) {
|
||||
if ((this.UploadFileOperationCompleted == null)) {
|
||||
this.UploadFileOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUploadFileOperationCompleted);
|
||||
}
|
||||
this.InvokeAsync("UploadFile", new object[] {
|
||||
content,
|
||||
DirTabId,
|
||||
filename}, this.UploadFileOperationCompleted, userState);
|
||||
}
|
||||
|
||||
private void OnUploadFileOperationCompleted(object arg) {
|
||||
if ((this.UploadFileCompleted != null)) {
|
||||
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
|
||||
this.UploadFileCompleted(this, new UploadFileCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public new void CancelAsync(object userState) {
|
||||
base.CancelAsync(userState);
|
||||
}
|
||||
|
||||
private bool IsLocalFileSystemWebService(string url) {
|
||||
if (((url == null)
|
||||
|| (url == string.Empty))) {
|
||||
return false;
|
||||
}
|
||||
System.Uri wsUri = new System.Uri(url);
|
||||
if (((wsUri.Port >= 1024)
|
||||
&& (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.2556.0")]
|
||||
[System.SerializableAttribute()]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
|
||||
public partial class ResultFile {
|
||||
|
||||
private string errorMsgField;
|
||||
|
||||
private int statusField;
|
||||
|
||||
private string dataField;
|
||||
|
||||
/// <remarks/>
|
||||
public string ErrorMsg {
|
||||
get {
|
||||
return this.errorMsgField;
|
||||
}
|
||||
set {
|
||||
this.errorMsgField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public int Status {
|
||||
get {
|
||||
return this.statusField;
|
||||
}
|
||||
set {
|
||||
this.statusField = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public string Data {
|
||||
get {
|
||||
return this.dataField;
|
||||
}
|
||||
set {
|
||||
this.dataField = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.2556.0")]
|
||||
public delegate void UploadFileCompletedEventHandler(object sender, UploadFileCompletedEventArgs e);
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.7.2556.0")]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
public partial class UploadFileCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
|
||||
|
||||
private object[] results;
|
||||
|
||||
internal UploadFileCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
||||
base(exception, cancelled, userState) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
public ResultFile Result {
|
||||
get {
|
||||
this.RaiseExceptionIfNecessary();
|
||||
return ((ResultFile)(this.results[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning restore 1591
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<DiscoveryClientResultsFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<Results>
|
||||
<DiscoveryClientResult referenceType="System.Web.Services.Discovery.DiscoveryDocumentReference" url="http://htydqc.xicp.cn:6666/Uploader.asmx?disco" filename="Uploader.disco" />
|
||||
<DiscoveryClientResult referenceType="System.Web.Services.Discovery.ContractReference" url="http://htydqc.xicp.cn:6666/Uploader.asmx?wsdl" filename="Uploader.wsdl" />
|
||||
</Results>
|
||||
</DiscoveryClientResultsFile>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is automatically generated by Visual Studio .Net. It is
|
||||
used to store generic object data source configuration information.
|
||||
Renaming the file extension or editing the content of this file may
|
||||
cause the file to be unrecognizable by the program.
|
||||
-->
|
||||
<GenericObjectDataSource DisplayName="ResultFile" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TypeInfo>Lskj.CmCapture.net.eicp.fsdfh9.ResultFile, Web References.net.eicp.fsdfh9.Reference.cs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
||||
</GenericObjectDataSource>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<discovery xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/disco/">
|
||||
<contractRef ref="http://htydqc.xicp.cn:6666/Uploader.asmx?wsdl" docRef="http://htydqc.xicp.cn:6666/Uploader.asmx" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
|
||||
<soap address="http://htydqc.xicp.cn:6666/Uploader.asmx" xmlns:q1="http://tempuri.org/" binding="q1:UploaderSoap" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
|
||||
<soap address="http://htydqc.xicp.cn:6666/Uploader.asmx" xmlns:q2="http://tempuri.org/" binding="q2:UploaderSoap12" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
|
||||
</discovery>
|
||||
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
||||
<wsdl:types>
|
||||
<s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
|
||||
<s:element name="UploadFile">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="content" type="s:base64Binary" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="DirTabId" type="s:string" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="filename" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:element name="UploadFileResponse">
|
||||
<s:complexType>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="UploadFileResult" type="tns:ResultFile" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:element>
|
||||
<s:complexType name="ResultFile">
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="ErrorMsg" type="s:string" />
|
||||
<s:element minOccurs="1" maxOccurs="1" name="Status" type="s:int" />
|
||||
<s:element minOccurs="0" maxOccurs="1" name="Data" type="s:string" />
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:schema>
|
||||
</wsdl:types>
|
||||
<wsdl:message name="UploadFileSoapIn">
|
||||
<wsdl:part name="parameters" element="tns:UploadFile" />
|
||||
</wsdl:message>
|
||||
<wsdl:message name="UploadFileSoapOut">
|
||||
<wsdl:part name="parameters" element="tns:UploadFileResponse" />
|
||||
</wsdl:message>
|
||||
<wsdl:portType name="UploaderSoap">
|
||||
<wsdl:operation name="UploadFile">
|
||||
<wsdl:input message="tns:UploadFileSoapIn" />
|
||||
<wsdl:output message="tns:UploadFileSoapOut" />
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
<wsdl:binding name="UploaderSoap" type="tns:UploaderSoap">
|
||||
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
||||
<wsdl:operation name="UploadFile">
|
||||
<soap:operation soapAction="http://tempuri.org/UploadFile" style="document" />
|
||||
<wsdl:input>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
<wsdl:binding name="UploaderSoap12" type="tns:UploaderSoap">
|
||||
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
||||
<wsdl:operation name="UploadFile">
|
||||
<soap12:operation soapAction="http://tempuri.org/UploadFile" style="document" />
|
||||
<wsdl:input>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap12:body use="literal" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
<wsdl:service name="Uploader">
|
||||
<wsdl:port name="UploaderSoap" binding="tns:UploaderSoap">
|
||||
<soap:address location="http://htydqc.xicp.cn:6666/Uploader.asmx" />
|
||||
</wsdl:port>
|
||||
<wsdl:port name="UploaderSoap12" binding="tns:UploaderSoap12">
|
||||
<soap12:address location="http://htydqc.xicp.cn:6666/Uploader.asmx" />
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
</wsdl:definitions>
|
||||
Reference in New Issue
Block a user