Soap12ServiceClient
Assembly: ServiceStack.Client.dll
Declaration
public class Soap12ServiceClient : WcfServiceClient, IWcfServiceClient, IServiceClient, IRestServiceClient, IServiceClientAsync, IServiceGatewayAsync, IServiceClientSync, IHasSessionId, IHasBearerToken, IHasVersion, IHttpRestClientAsync, IRestClientAsync, IReplyClient, IServiceGateway, IOneWayClient, IRestClient, IRestClientSync, IServiceClientCommon, IDisposable
Properties
Binding
Declaration
protected override Binding Binding { get; }
MessageVersion
Declaration
protected override MessageVersion MessageVersion { get; }
Inherited Properties
BearerToken
Declaration
public string BearerToken { get; set; }
Binding
Declaration
protected abstract Binding Binding { get; }
MessageVersion
Declaration
protected abstract MessageVersion MessageVersion { get; }
SessionId
Declaration
public string SessionId { get; set; }
StoreCookies
Specifies if cookies should be stored
Declaration
public bool StoreCookies { get; set; }
Uri
Declaration
public string Uri { get; set; }
Version
Declaration
public int Version { get; set; }
Methods
SetProxy(Uri)
Declaration
public override void SetProxy(Uri proxyAddress)
Parameters
Type | Name |
---|
System.Uri | proxyAddress |
Inherited Methods
Declaration
public void AddHeader(string name, string value)
Parameters
Type | Name |
---|
System.String | name |
System.String | value |
CancelAsync()
Declaration
public void CancelAsync()
ClearCookies()
Declaration
public void ClearCookies()
CustomMethod(String, IReturnVoid)
Declaration
public void CustomMethod(string httpVerb, IReturnVoid requestDto)
Parameters
CustomMethod<TResponse>(String, IReturn<TResponse>)
Declaration
public TResponse CustomMethod<TResponse>(string httpVerb, IReturn<TResponse> requestDto)
Returns
<TResponse>
Parameters
Type Parameters
CustomMethod<TResponse>(String, Object)
Declaration
public TResponse CustomMethod<TResponse>(string httpVerb, object requestDto)
Returns
<TResponse>
Parameters
Type | Name |
---|
System.String | httpVerb |
System.Object | requestDto |
Type Parameters
CustomMethodAsync(String, IReturnVoid, CancellationToken)
Declaration
public Task CustomMethodAsync(string httpVerb, IReturnVoid requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
CustomMethodAsync<TResponse>(String, IReturn<TResponse>, CancellationToken)
Declaration
public Task<TResponse> CustomMethodAsync<TResponse>(string httpVerb, IReturn<TResponse> requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type Parameters
CustomMethodAsync<TResponse>(String, Object, CancellationToken)
Declaration
public Task<TResponse> CustomMethodAsync<TResponse>(string httpVerb, object requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|
System.String | httpVerb |
System.Object | requestDto |
System.Threading.CancellationToken | token |
Type Parameters
CustomMethodAsync<TResponse>(String, String, Object, CancellationToken)
Declaration
public Task<TResponse> CustomMethodAsync<TResponse>(string httpVerb, string relativeOrAbsoluteUrl, object request, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|
System.String | httpVerb |
System.String | relativeOrAbsoluteUrl |
System.Object | request |
System.Threading.CancellationToken | token |
Type Parameters
Delete(IReturnVoid)
Declaration
public void Delete(IReturnVoid requestDto)
Parameters
Delete<TResponse>(IReturn<TResponse>)
Declaration
public TResponse Delete<TResponse>(IReturn<TResponse> request)
Returns
<TResponse>
Parameters
Type Parameters
Delete<TResponse>(Object)
Declaration
public TResponse Delete<TResponse>(object request)
Returns
<TResponse>
Parameters
Type | Name |
---|
System.Object | request |
Type Parameters
Delete<TResponse>(String)
Declaration
public TResponse Delete<TResponse>(string relativeOrAbsoluteUrl)
Returns
<TResponse>
Parameters
Type | Name |
---|
System.String | relativeOrAbsoluteUrl |
Type Parameters
DeleteAsync(IReturnVoid, CancellationToken)
Declaration
public Task DeleteAsync(IReturnVoid requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
DeleteAsync<TResponse>(IReturn<TResponse>, CancellationToken)
Declaration
public Task<TResponse> DeleteAsync<TResponse>(IReturn<TResponse> requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type Parameters
DeleteAsync<TResponse>(Object, CancellationToken)
Declaration
public Task<TResponse> DeleteAsync<TResponse>(object requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|
System.Object | requestDto |
System.Threading.CancellationToken | token |
Type Parameters
DeleteAsync<TResponse>(String, CancellationToken)
Declaration
public Task<TResponse> DeleteAsync<TResponse>(string relativeOrAbsoluteUrl, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|
System.String | relativeOrAbsoluteUrl |
System.Threading.CancellationToken | token |
Type Parameters
Dispose()
Get(IReturnVoid)
Declaration
public void Get(IReturnVoid request)
Parameters
Get<TResponse>(IReturn<TResponse>)
Declaration
public TResponse Get<TResponse>(IReturn<TResponse> requestDto)
Returns
<TResponse>
Parameters
Type Parameters
Get<TResponse>(Object)
Declaration
public TResponse Get<TResponse>(object requestDto)
Returns
<TResponse>
Parameters
Type | Name |
---|
System.Object | requestDto |
Type Parameters
Get<TResponse>(String)
Declaration
public TResponse Get<TResponse>(string relativeOrAbsoluteUrl)
Returns
<TResponse>
Parameters
Type | Name |
---|
System.String | relativeOrAbsoluteUrl |
Type Parameters
GetAsync(IReturnVoid, CancellationToken)
Declaration
public Task GetAsync(IReturnVoid requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
GetAsync<TResponse>(IReturn<TResponse>, CancellationToken)
Declaration
public Task<TResponse> GetAsync<TResponse>(IReturn<TResponse> requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type Parameters
GetAsync<TResponse>(Object, CancellationToken)
Declaration
public Task<TResponse> GetAsync<TResponse>(object requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|
System.Object | requestDto |
System.Threading.CancellationToken | token |
Type Parameters
GetAsync<TResponse>(String, CancellationToken)
Declaration
public Task<TResponse> GetAsync<TResponse>(string relativeOrAbsoluteUrl, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|
System.String | relativeOrAbsoluteUrl |
System.Threading.CancellationToken | token |
Type Parameters
GetBody<T>(Message)
Declaration
public static T GetBody<T>(Message message)
Returns
<T>
Parameters
Type | Name |
---|
System.ServiceModel.Channels.Message | message |
Type Parameters
GetCookieValues()
Declaration
public Dictionary<string, string> GetCookieValues()
Returns
System.Collections.Generic.Dictionary<System.String,System.String>
GetLazy<TResponse>(IReturn<QueryResponse<TResponse>>)
Declaration
public IEnumerable<TResponse> GetLazy<TResponse>(IReturn<QueryResponse<TResponse>> queryDto)
Returns
System.Collections.Generic.IEnumerable<<TResponse>>
Parameters
Type Parameters
Patch(IReturnVoid)
Declaration
public void Patch(IReturnVoid requestDto)
Parameters
Patch<TResponse>(IReturn<TResponse>)
Declaration
public TResponse Patch<TResponse>(IReturn<TResponse> requestDto)
Returns
<TResponse>
Parameters
Type Parameters
Patch<TResponse>(Object)
Declaration
public TResponse Patch<TResponse>(object requestDto)
Returns
<TResponse>
Parameters
Type | Name |
---|
System.Object | requestDto |
Type Parameters
Patch<TResponse>(String, Object)
Declaration
public TResponse Patch<TResponse>(string relativeOrAbsoluteUrl, object requestDto)
Returns
<TResponse>
Parameters
Type | Name |
---|
System.String | relativeOrAbsoluteUrl |
System.Object | requestDto |
Type Parameters
PatchAsync(IReturnVoid, CancellationToken)
Declaration
public Task PatchAsync(IReturnVoid requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
PatchAsync<TResponse>(IReturn<TResponse>, CancellationToken)
Declaration
public Task<TResponse> PatchAsync<TResponse>(IReturn<TResponse> requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type Parameters
PatchAsync<TResponse>(Object, CancellationToken)
Declaration
public Task<TResponse> PatchAsync<TResponse>(object requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|
System.Object | requestDto |
System.Threading.CancellationToken | token |
Type Parameters
Post(IReturnVoid)
Declaration
public void Post(IReturnVoid requestDto)
Parameters
Post<TResponse>(IReturn<TResponse>)
Declaration
public TResponse Post<TResponse>(IReturn<TResponse> requestDto)
Returns
<TResponse>
Parameters
Type Parameters
Post<TResponse>(Object)
Declaration
public TResponse Post<TResponse>(object requestDto)
Returns
<TResponse>
Parameters
Type | Name |
---|
System.Object | requestDto |
Type Parameters
Post<TResponse>(String, Object)
Declaration
public TResponse Post<TResponse>(string relativeOrAbsoluteUrl, object request)
Returns
<TResponse>
Parameters
Type | Name |
---|
System.String | relativeOrAbsoluteUrl |
System.Object | request |
Type Parameters
PostAsync(IReturnVoid, CancellationToken)
Declaration
public Task PostAsync(IReturnVoid requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
PostAsync<TResponse>(IReturn<TResponse>, CancellationToken)
Declaration
public Task<TResponse> PostAsync<TResponse>(IReturn<TResponse> requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type Parameters
PostAsync<TResponse>(Object, CancellationToken)
Declaration
public Task<TResponse> PostAsync<TResponse>(object requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|
System.Object | requestDto |
System.Threading.CancellationToken | token |
Type Parameters
PostAsync<TResponse>(String, Object, CancellationToken)
Declaration
public Task<TResponse> PostAsync<TResponse>(string relativeOrAbsoluteUrl, object request, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|
System.String | relativeOrAbsoluteUrl |
System.Object | request |
System.Threading.CancellationToken | token |
Type Parameters
PostFile<TResponse>(String, Stream, String, String)
Declaration
public TResponse PostFile<TResponse>(string relativeOrAbsoluteUrl, Stream fileToUpload, string fileName, string mimeType)
Returns
<TResponse>
Parameters
Type | Name |
---|
System.String | relativeOrAbsoluteUrl |
System.IO.Stream | fileToUpload |
System.String | fileName |
System.String | mimeType |
Type Parameters
PostFile<TResponse>(String, Stream, String, String, String)
Declaration
public TResponse PostFile<TResponse>(string relativeOrAbsoluteUrl, Stream fileToUpload, string fileName, string mimeType, string fieldName)
Returns
<TResponse>
Parameters
Type | Name |
---|
System.String | relativeOrAbsoluteUrl |
System.IO.Stream | fileToUpload |
System.String | fileName |
System.String | mimeType |
System.String | fieldName |
Type Parameters
PostFilesWithRequest<TResponse>(Object, IEnumerable<UploadFile>)
Declaration
public TResponse PostFilesWithRequest<TResponse>(object request, IEnumerable<UploadFile> files)
Returns
<TResponse>
Parameters
Type | Name |
---|
System.Object | request |
System.Collections.Generic.IEnumerable<ServiceStack.UploadFile> | files |
Type Parameters
PostFilesWithRequest<TResponse>(String, Object, IEnumerable<UploadFile>)
Declaration
public TResponse PostFilesWithRequest<TResponse>(string relativeOrAbsoluteUrl, object request, IEnumerable<UploadFile> files)
Returns
<TResponse>
Parameters
Type | Name |
---|
System.String | relativeOrAbsoluteUrl |
System.Object | request |
System.Collections.Generic.IEnumerable<ServiceStack.UploadFile> | files |
Type Parameters
PostFileWithRequest<TResponse>(Stream, String, Object, String)
Declaration
public TResponse PostFileWithRequest<TResponse>(Stream fileToUpload, string fileName, object request, string fieldName = "file")
Returns
<TResponse>
Parameters
Type | Name |
---|
System.IO.Stream | fileToUpload |
System.String | fileName |
System.Object | request |
System.String | fieldName |
Type Parameters
PostFileWithRequest<TResponse>(String, FileInfo, Object, String)
Declaration
public TResponse PostFileWithRequest<TResponse>(string relativeOrAbsoluteUrl, FileInfo fileToUpload, object request, string fieldName = "file")
Returns
<TResponse>
Parameters
Type | Name |
---|
System.String | relativeOrAbsoluteUrl |
System.IO.FileInfo | fileToUpload |
System.Object | request |
System.String | fieldName |
Type Parameters
PostFileWithRequest<TResponse>(String, Stream, String, Object, String)
Declaration
public TResponse PostFileWithRequest<TResponse>(string relativeOrAbsoluteUrl, Stream fileToUpload, string fileName, object request, string fieldName = "file")
Returns
<TResponse>
Parameters
Type | Name |
---|
System.String | relativeOrAbsoluteUrl |
System.IO.Stream | fileToUpload |
System.String | fileName |
System.Object | request |
System.String | fieldName |
Type Parameters
Publish(Object)
Declaration
public void Publish(object requestDto)
Parameters
Type | Name |
---|
System.Object | requestDto |
PublishAll(IEnumerable<Object>)
Declaration
public void PublishAll(IEnumerable<object> requestDtos)
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.Object> | requestDtos |
PublishAllAsync(IEnumerable<Object>, CancellationToken)
Declaration
public Task PublishAllAsync(IEnumerable<object> requestDtos, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.Object> | requestDtos |
System.Threading.CancellationToken | token |
PublishAsync(Object, CancellationToken)
Declaration
public Task PublishAsync(object requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|
System.Object | requestDto |
System.Threading.CancellationToken | token |
Put(IReturnVoid)
Declaration
public void Put(IReturnVoid requestDto)
Parameters
Put<TResponse>(IReturn<TResponse>)
Declaration
public TResponse Put<TResponse>(IReturn<TResponse> requestDto)
Returns
<TResponse>
Parameters
Type Parameters
Put<TResponse>(Object)
Declaration
public TResponse Put<TResponse>(object requestDto)
Returns
<TResponse>
Parameters
Type | Name |
---|
System.Object | requestDto |
Type Parameters
Put<TResponse>(String, Object)
Declaration
public TResponse Put<TResponse>(string relativeOrAbsoluteUrl, object requestDto)
Returns
<TResponse>
Parameters
Type | Name |
---|
System.String | relativeOrAbsoluteUrl |
System.Object | requestDto |
Type Parameters
PutAsync(IReturnVoid, CancellationToken)
Declaration
public Task PutAsync(IReturnVoid requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
PutAsync<TResponse>(IReturn<TResponse>, CancellationToken)
Declaration
public Task<TResponse> PutAsync<TResponse>(IReturn<TResponse> requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type Parameters
PutAsync<TResponse>(Object, CancellationToken)
Declaration
public Task<TResponse> PutAsync<TResponse>(object requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|
System.Object | requestDto |
System.Threading.CancellationToken | token |
Type Parameters
PutAsync<TResponse>(String, Object, CancellationToken)
Declaration
public Task<TResponse> PutAsync<TResponse>(string relativeOrAbsoluteUrl, object request, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|
System.String | relativeOrAbsoluteUrl |
System.Object | request |
System.Threading.CancellationToken | token |
Type Parameters
Send(IReturnVoid)
Declaration
public void Send(IReturnVoid request)
Parameters
Send(Object)
Declaration
public Message Send(object request)
Returns
System.ServiceModel.Channels.Message
Parameters
Type | Name |
---|
System.Object | request |
Send(Object, String)
Declaration
public Message Send(object request, string action)
Returns
System.ServiceModel.Channels.Message
Parameters
Type | Name |
---|
System.Object | request |
System.String | action |
Send(Message)
Declaration
public Message Send(Message message)
Returns
System.ServiceModel.Channels.Message
Parameters
Type | Name |
---|
System.ServiceModel.Channels.Message | message |
Send(XmlReader, String)
Declaration
public Message Send(XmlReader reader, string action)
Returns
System.ServiceModel.Channels.Message
Parameters
Type | Name |
---|
System.Xml.XmlReader | reader |
System.String | action |
Send<TResponse>(IReturn<TResponse>)
Declaration
public TResponse Send<TResponse>(IReturn<TResponse> request)
Returns
<TResponse>
Parameters
Type Parameters
Send<T>(Object)
Declaration
public T Send<T>(object request)
Returns
<T>
Parameters
Type | Name |
---|
System.Object | request |
Type Parameters
Send<TResponse>(String, String, Object)
Declaration
public TResponse Send<TResponse>(string httpMethod, string relativeOrAbsoluteUrl, object request)
Returns
<TResponse>
Parameters
Type | Name |
---|
System.String | httpMethod |
System.String | relativeOrAbsoluteUrl |
System.Object | request |
Type Parameters
SendAll<TResponse>(IEnumerable<Object>)
Declaration
public List<TResponse> SendAll<TResponse>(IEnumerable<object> requests)
Returns
System.Collections.Generic.List<<TResponse>>
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.Object> | requests |
Type Parameters
SendAllAsync<TResponse>(IEnumerable<Object>, CancellationToken)
Declaration
public Task<List<TResponse>> SendAllAsync<TResponse>(IEnumerable<object> requests, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Collections.Generic.List<<TResponse>>>
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.Object> | requests |
System.Threading.CancellationToken | token |
Type Parameters
SendAllOneWay(IEnumerable<Object>)
Declaration
public void SendAllOneWay(IEnumerable<object> requests)
Parameters
Type | Name |
---|
System.Collections.Generic.IEnumerable<System.Object> | requests |
SendAsync(IReturnVoid, CancellationToken)
Declaration
public Task SendAsync(IReturnVoid requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
SendAsync<TResponse>(IReturn<TResponse>, CancellationToken)
Declaration
public Task<TResponse> SendAsync<TResponse>(IReturn<TResponse> requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type Parameters
SendAsync<TResponse>(Object, CancellationToken)
Declaration
public Task<TResponse> SendAsync<TResponse>(object requestDto, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|
System.Object | requestDto |
System.Threading.CancellationToken | token |
Type Parameters
SendAsync<TResponse>(String, String, Object, CancellationToken)
Declaration
public Task<TResponse> SendAsync<TResponse>(string httpMethod, string absoluteUrl, object request, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<<TResponse>>
Parameters
Type | Name |
---|
System.String | httpMethod |
System.String | absoluteUrl |
System.Object | request |
System.Threading.CancellationToken | token |
Type Parameters
SendOneWay(Object)
Declaration
public void SendOneWay(object requestDto)
Parameters
Type | Name |
---|
System.Object | requestDto |
SendOneWay(Object, String)
Declaration
public void SendOneWay(object requestDto, string action)
Parameters
Type | Name |
---|
System.Object | requestDto |
System.String | action |
SendOneWay(Message)
Declaration
public void SendOneWay(Message message)
Parameters
Type | Name |
---|
System.ServiceModel.Channels.Message | message |
SendOneWay(String, Object)
Declaration
public void SendOneWay(string relativeOrAbsoluteUrl, object request)
Parameters
Type | Name |
---|
System.String | relativeOrAbsoluteUrl |
System.Object | request |
SendOneWay(XmlReader, String)
Declaration
public void SendOneWay(XmlReader reader, string action)
Parameters
Type | Name |
---|
System.Xml.XmlReader | reader |
System.String | action |
SetCookie(String, String, Nullable<TimeSpan>)
Declaration
public void SetCookie(string name, string value, TimeSpan? expiresIn = null)
Parameters
Type | Name |
---|
System.String | name |
System.String | value |
System.Nullable<System.TimeSpan> | expiresIn |
SetCredentials(String, String)
Declaration
public void SetCredentials(string userName, string password)
Parameters
Type | Name |
---|
System.String | userName |
System.String | password |
SetProxy(Uri)
Declaration
public abstract void SetProxy(Uri proxyAddress)
Parameters
Type | Name |
---|
System.Uri | proxyAddress |
Implements