forked from DigDes/SoapCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DataContract containing IList<struct> produces invalid WSDL DigDes#346
- Loading branch information
kotov.a
committed
Dec 10, 2019
1 parent
eb5ee53
commit d2db7b8
Showing
3 changed files
with
75 additions
and
1 deletion.
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,36 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
using System.ServiceModel; | ||
using System.Text; | ||
|
||
namespace SoapCore.Tests.Wsdl.Services | ||
{ | ||
[ServiceContract] | ||
public interface IStructsService | ||
{ | ||
[OperationContract] | ||
void Method(StructService.StructModel model); | ||
} | ||
|
||
public class StructService : IStructsService | ||
{ | ||
public void Method(StructModel model) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
[DataContract] | ||
public struct AnyStruct | ||
{ | ||
public int Prop { get; set; } | ||
} | ||
|
||
[DataContract] | ||
public class StructModel | ||
{ | ||
[DataMember] | ||
public IList<AnyStruct> MyStructs { 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
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