XmlElement is not honored
See original GitHub issueXmlElementAttribute
is not working on array parameters
Code:
[ServiceContract(Namespace ="urn:test:1")]
public interface ITestService
{
[OperationContract]
TestResult ExecuteFunction([XmlElement("parameterArray")]string[] parameterArray);
}
This will parse an empty array.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (8 by maintainers)
Top Results From Across the Web
XmlElement(name="custom_name") not working in spring ...
I am almost new to rest services world,here i am trying to change the field name displayed in the output xml. Not sure,am...
Read more >XmlElement(name="myName") not honored for fields ...
I believe the class hierarchy is not important but I'll include it here anyway. My variable is named isotonicDrink but when e.g. serializing ......
Read more >Solved: Removing XML Element Not Working - NI Community
Solved: I am loading in an XML file and I need to remove an element. I am using the "Remove Child" method with...
Read more >XmlElement (Java Platform SE 8 )
A JavaBean property, when annotated with @XmlElement annotation is mapped to a local element in the XML Schema complex type to which the...
Read more >Guide to JAXB Annotations
When a top-level class or an enum type is annotated with the @XmlRootElement annotation, then its value is represented as XML element in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, I see a new release has just been done (0.0.9.9.6) - that doesn’t seem to address this. Anyway we can get this through?
TL;DR Instead of applying
XmlElementAttribute
directly to parameters, wrap parameters in request model class:Finally, I upgraded to the latest version with only minor issues (see #591). After some digging, I stumbled accross the following comment in Connected Service generated code (namespaces omitted for brevity)
XmlElementAttribute
was never designed to do what I asked for^^