コード例 #1
0
ファイル: Program.cs プロジェクト: christophwille/winrt-ris
        public static async Task<DocumentResult> LoadAsync(string dokumentNummer)
        {
            var client = new OGDServiceSoapClient();

            try
            {
                getDocumentResponse doc = await client.getDocumentAsync("Br", dokumentNummer);

                var documentResult = MessageSerializationHelper.DeserializeFromString<Doc.DocumentResult>(doc.Body.getDocumentResult);
                var result = Mapper.MapDocumentResult(documentResult);

                result.OriginalDocumentResultXml = doc.Body.getDocumentResult;
                return result;
            }
            catch (Exception ex)
            {
                return new DocumentResult(ex.ToString());
            }
        }
コード例 #2
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(OGDServiceSoapClient.GetEndpointAddress(EndpointConfiguration.OGDServiceSoap));
 }
コード例 #3
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(OGDServiceSoapClient.GetBindingForEndpoint(EndpointConfiguration.OGDServiceSoap));
 }
コード例 #4
0
 public OGDServiceSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(OGDServiceSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
コード例 #5
0
 public OGDServiceSoapClient(EndpointConfiguration endpointConfiguration) :
     base(OGDServiceSoapClient.GetBindingForEndpoint(endpointConfiguration), OGDServiceSoapClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
コード例 #6
0
 public OGDServiceSoapClient() :
     base(OGDServiceSoapClient.GetDefaultBinding(), OGDServiceSoapClient.GetDefaultEndpointAddress())
 {
     this.Endpoint.Name = EndpointConfiguration.OGDServiceSoap.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }