Answered by:
mock service returning null on xml element

Question
-
User-487105278 posted
Good morning,
I am using soapUI as a mock service and I receive the following xml as response (this is a part of it)<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v41="http://namespace/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header/> <soapenv:Body> <v41:findAllContextValueSetsOfUserRoleAuthorizationResponse> <return> <newTicket xsi:type="v41:TicketDTO"> <sessionId>SESSAO_1234</sessionId> </newTicket> <value xsi:type="v41:ContextValueSetDTO"> <uid>1</uid> <authorizationUid>1000</authorizationUid> <contextValues xsi:type="v41:AuthorizationContextValueDTO"> <contextValuesSetUid>1</contextValuesSetUid> <uid>1</uid> <contextValue xsi:type="v41:InformationValueDTO">
The object properties that stores the xml receive the correct values, except contextValues, which is null and I am unable to get why.
Here is the contextValues on the contract class, generated by nvcutils (contract last)
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.2152")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://namespace/")] public partial class ContextValueSetDTO : System.ComponentModel.INotifyPropertyChanged { private AuthorizationContextValueDTO[] contextValuesField; private long uidField; private bool uidFieldSpecified; private long authorizationUidField; private bool authorizationUidFieldSpecified; /// <remarks/> [System.Xml.Serialization.XmlElementAttribute("contextValues", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true, Order=0)] public AuthorizationContextValueDTO[] contextValues { get { return this.contextValuesField; } set { this.contextValuesField = value; this.RaisePropertyChanged("contextValues"); } }
Could someone help me?
Friday, February 22, 2013 9:58 AM
Answers
-
User-1658256289 posted
Hi, from your description, the issue is related to a third party component, so I would suggest you contact the corresponding support to help to resolve the issue.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, March 1, 2013 4:17 AM
All replies
-
User-487105278 posted
I am not the kind to flood, but I am really in need of an answer here. No one can help?
Monday, February 25, 2013 8:59 AM -
User-1658256289 posted
Hi, from your description, the issue is related to a third party component, so I would suggest you contact the corresponding support to help to resolve the issue.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, March 1, 2013 4:17 AM