-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'DigDes:develop' into fix-timestamp-wsmessagefilter
- Loading branch information
Showing
9 changed files
with
312 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Xml.Serialization; | ||
|
||
namespace SoapCore.Tests.Wsdl.Services | ||
{ | ||
[XmlType(AnonymousType = true)] | ||
public class ComplexTypeAnonymous | ||
{ | ||
public int IntProperty { get; set; } | ||
[XmlElement(ElementName = "stringprop")] | ||
public string StringProperty { get; set; } | ||
[XmlElement(ElementName = "mybytes")] | ||
public byte[] ByteArrayProperty { get; set; } | ||
|
||
public Guid MyGuid { get; set; } | ||
|
||
public List<string> StringList { get; set; } | ||
|
||
public List<int> IntList { get; set; } | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/SoapCore.Tests/Wsdl/Services/IComplexAnonymousListService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.ServiceModel; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SoapCore.Tests.Wsdl.Services | ||
{ | ||
[ServiceContract] | ||
public interface IComplexAnonymousListService | ||
{ | ||
[OperationContract] | ||
List<ComplexTypeAnonymous> Test(); | ||
} | ||
|
||
public class ComplexAnonymousListService : IComplexAnonymousListService | ||
{ | ||
public List<ComplexTypeAnonymous> Test() => throw new NotImplementedException(); | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
src/SoapCore.Tests/Wsdl/Services/IServiceWithSoapHeaders.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.ServiceModel; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Xml; | ||
using System.Xml.Serialization; | ||
using SoapCore.ServiceModel; | ||
#pragma warning disable SA1401 // Fields should be private | ||
|
||
namespace SoapCore.Tests.Wsdl.Services; | ||
[ServiceContract] | ||
public interface IServiceWithSoapHeaders | ||
{ | ||
[OperationContract] | ||
[AuthenticationContextSoapHeader] | ||
public void Method(); | ||
} | ||
|
||
public class ServiceWithSoapHeaders : IServiceWithSoapHeaders | ||
{ | ||
public void Method() | ||
{ | ||
} | ||
} | ||
|
||
public sealed class AuthenticationContextSoapHeader : SoapHeaderAttribute | ||
{ | ||
[XmlAnyAttribute] | ||
public XmlAttribute[] XAttributes; | ||
|
||
public string OperatorCode { get; set; } | ||
public string Password { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.ServiceModel; | ||
|
||
namespace SoapCore.Tests.Wsdl.Services | ||
{ | ||
[ServiceContract] | ||
public interface ISystemImportService | ||
{ | ||
[OperationContract] | ||
ComplexType GetValue(); | ||
} | ||
|
||
public class SystemImportService : ISystemImportService | ||
{ | ||
public ComplexType GetValue() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.