-
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 pull request #1079 from paramamue/develop
Fix WSDL for list of anonymous type
- Loading branch information
Showing
4 changed files
with
98 additions
and
0 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(); | ||
} | ||
} |
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