-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArrayOfString maxOccurs 1 #988
Comments
That's odd. In my own services ArrayOfString gets My suggestion would be to fork the repo, setting up a test with a small service to reproduce your issue. |
In sample projects I use [ServiceContract]
public class WebService
{
[OperationContract]
public void DoStuff(string[] arrayArg) {}
} Ok, I'll try to fork when I have time to tinker it a bit) |
This is a regression of DigDes#960. In commit 5026da3, the AddSchemaType() method was changed to contain a special case for string and byte[]. However this breaks the situation where the inner type of a list is string. In that case, maxOccurs must be set to "unbounded" for the string element. So this commit reverts that change and instead fixes the original issue at another place. Fixes DigDes#988
I am able to reproduce this issue and uploaded a pull request for a fix. It is a regression of #960. I also added a test that can be used to reproduce this issue and verify that it is now fixed. |
I have updated to the 1.1.0.43 version and still see the same issue. It looks like the problem have not been fixed. |
It works for me. Please give a small reproducible example of your issue. |
The contract of the service is the same as above one attached by Griboedoff.
If I will switch to the default value (DataContract serializer), it is ok. |
Just tested it again with v1.1.0.43 and the example class above. This is what I get: <xsd:complexType name="ArrayOfString">
<xsd:sequence>
<xsd:element minOccurs="0" maxOccurs="unbounded" name="string" type="xsd:string" />
</xsd:sequence>
</xsd:complexType> As you can see, it shows |
Oh, sorry, Looks like it was the old version of library. Now it works. |
Hi!
For unknown reason when I use SoapCore
ArrayOfString
in wsdl generated withmaxOccurs="1"
instead ofmaxOccurs="unbounded"
attribute like it generates in WCF.I'm using xmlSerializer
What info I could provide?
The text was updated successfully, but these errors were encountered: