Loading ...
Sorry, an error occurred while loading the content.

Re: [XMLRPCNET] data not loading for nested structure

Expand Messages
  • Kevin Smith
    Hi Charles, I can t believe I missed That.  Thank you very much for taking the time to help me.  Great software.  Have a good week,  Kevin
    Message 1 of 3 , Aug 18, 2010
    View Source
    • 0 Attachment
      Hi Charles,

      I can't believe I missed That.  Thank you very much for taking the time to help
      me.  Great software.  Have a good week,  Kevin




      ________________________________
      From: Charles Cook <chascook@...>
      To: XMLRPCNET@yahoogroups.com
      Sent: Wed, August 18, 2010 10:14:26 AM
      Subject: Re: [XMLRPCNET] data not loading for nested structure

      Hi Kevin: the XML-RPC response has "currentState" but you have defined the
      corresponding struct member as "currentstate".

      :Charles



      :Charles
      On Wed, Aug 18, 2010 at 4:04 AM, Kevin Smith <kevinsmith280280@...>wrote:

      >
      >
      > XML-RPCNET group,
      >
      > I am using the XML-RPC.NET <http://xml-rpc.net/> code and have run into a
      > problem.  I am not sure if I
      > incorrectly defined the structure relationship or there is a problem with
      > the
      > XML-RPC.NET <http://xml-rpc.net/> code.
      >
      > I defined the 3 nested structures below to match the XML returned back from
      > the
      > server.  (See the attached file)
      >
      >
      > The problem is that the data for the third structure does not get
      > loaded(See
      > bottom snapshot), even though the server does return the data (See the
      > attached
      > file).  The data for the first and second structure gets load correctly.
      >
      > I believe I have the structures defined correctly.  Am I missing something
      > or is
      > the XML-RPC.NET <http://xml-rpc.net/> code having issue with the nested
      > structures?
      >
      > Thanks for an help,
      >
      > Kevin Smith
      > FEMA Video Operations Center
      >
      > ' define structures for the return data
      > <XmlRpcMissingMapping(MappingAction.Ignore)> _
      > PublicStructure PacketStructa
      >    Public currentRevision As Integer
      >    Public participants() As PacketStructb
      > EndStructure
      >
      > <XmlRpcMissingMapping(MappingAction.Ignore)> _
      > PublicStructure PacketStructb
      >    Public currentstate As PacketStructc
      >    Public conferenceName As String
      >    Public participantName As String
      > EndStructure
      >
      > PublicStructure PacketStructc
      >    Public ipAddress As String
      >    Public displayName As String
      >    Public audioRxLost As Integer
      >    Public audioTxReportedLost As Integer
      >    Public videoRxLost As Integer
      >    Public videoTxReportedLost As Integer
      > EndStructure
      >
      > ----------
      >
      >
      > Hypertext Transfer Protocol
      > eXtensible Markup Language
      > <?xml
      > <methodResponse>
      > <params>
      > <param>
      > <value>
      > <struct>
      > <member>
      > <name>
      > enumerateID
      > </name>
      > <value>
      > <string>
      > 1214
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > currentRevision
      > </name>
      > <value>
      > <int>
      > 47794
      > </int>
      > </value>
      > </member>
      > <member>
      > <name>
      > participants
      > </name>
      > <value>
      > <array>
      > <data>
      > <value>
      > <struct>
      > <member>
      > <name>
      > currentState
      > </name>
      > <value>
      > <struct>
      > <member>
      > <name>
      > callState
      > </name>
      > <value>
      > <string>
      > connected
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > connectTime
      > </name>
      > <value>
      > [ ERROR: Unrecognized text ]
      > </value>
      > </member>
      > <member>
      > <name>
      > connectPending
      > </name>
      > <value>
      > <boolean>
      > 0
      > </boolean>
      > </value>
      > </member>
      > <member>
      > <name>
      > previewURL
      > </name>
      > <value>
      > <string>
      >/conference_participant_video.jpeg?conference=6001%20-%206001%20FEMA%20-%20NLE%2011&participant=1&size=qcif
      >f
      >
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > activeConferenceId
      > </name>
      > <value>
      > <string>
      > 61250
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > maxBitRateToMCU
      > </name>
      > <value>
      > <int>
      > 384
      > </int>
      > </value>
      > </member>
      > <member>
      > <name>
      > maxBitRateFromMCU
      > </name>
      > <value>
      > <int>
      > 384
      > </int>
      > </value>
      > </member>
      > <member>
      > <name>
      > motionSharpnessTradeoff
      > </name>
      > <value>
      > <string>
      > default
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > callDirection
      > </name>
      > <value>
      > <string>
      > outgoing
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > callIdentifier
      > </name>
      > <value>
      > <base64>
      > l6S5EKkQEd+qbwANfBCJOA==
      > </base64>
      > </value>
      > </member>
      > <member>
      > <name>
      > important
      > </name>
      > <value>
      > <boolean>
      > 0
      > </boolean>
      > </value>
      > </member>
      > <member>
      > <name>
      > activeSpeaker
      > </name>
      > <value>
      > <boolean>
      > 0
      > </boolean>
      > </value>
      > </member>
      > <member>
      > <name>
      > ipAddress
      > </name>
      > <value>
      > <string>
      > 10.74.172.21
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > address
      > </name>
      > <value>
      > <string>
      > 10170792
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > displayNameOverrideStatus
      > </name>
      > <value>
      > <boolean>
      > 0
      > </boolean>
      > </value>
      > </member>
      > <member>
      > <name>
      > displayName
      > </name>
      > <value>
      > <string>
      > FEMA-AVOC-1
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > mediaEncryption
      > </name>
      > <value>
      > <string>
      > unencrypted
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > audioRxMuted
      > </name>
      > <value>
      > <boolean>
      > 0
      > </boolean>
      > </value>
      > </member>
      > <member>
      > <name>
      > audioRxMutedRemotely
      > </name>
      > <value>
      > <boolean>
      > 0
      > </boolean>
      > </value>
      > </member>
      > <member>
      > <name>
      > audioRxGainMode
      > </name>
      > <value>
      > <string>
      > none
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > audioRxEnergyMillidB
      > </name>
      > <value>
      > <int>
      > -34953
      > </int>
      > </value>
      > </member>
      > <member>
      > <name>
      > layoutControlEnabled
      > </name>
      > <value>
      > <boolean>
      > 1
      > </boolean>
      > </value>
      > </member>
      > <member>
      > <name>
      > focusType
      > </name>
      > <value>
      > <string>
      > voiceActivated
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > videoRxMuted
      > </name>
      > <value>
      > <boolean>
      > 1
      > </boolean>
      > </value>
      > </member>
      > <member>
      > <name>
      > audioTxMuted
      > </name>
      > <value>
      > <boolean>
      > 0
      > </boolean>
      > </value>
      > </member>
      > <member>
      > <name>
      > videoTxWidescreen
      > </name>
      > <value>
      > <boolean>
      > 0
      > </boolean>
      > </value>
      > </member>
      > <member>
      > <name>
      > borderWidth
      > </name>
      > <value>
      > <int>
      > 0
      > </int>
      > </value>
      > </member>
      > <member>
      > <name>
      > autoDisconnect
      > </name>
      > <value>
      > <boolean>
      > 0
      > </boolean>
      > </value>
      > </member>
      > <member>
      > <name>
      > audioRxCodec
      > </name>
      > <value>
      > <string>
      > g722.1c
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > audioRxReceived
      > </name>
      > <value>
      > <int>
      > 205199
      > </int>
      > </value>
      > </member>
      > <member>
      > <name>
      > audioRxLost
      > </name>
      > <value>
      > <int>
      > 1
      > </int>
      > </value>
      > </member>
      > <member>
      > <name>
      > audioTxCodec
      > </name>
      > <value>
      > <string>
      > siren14
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > audioTxSent
      > </name>
      > <value>
      > <int>
      > 205200
      > </int>
      > </value>
      > </member>
      > <member>
      > <name>
      > audioTxReportedLost
      > </name>
      > <value>
      > <int>
      > 0
      > </int>
      > </value>
      > </member>
      > <member>
      > <name>
      > videoRxCodec
      > </name>
      > <value>
      > <string>
      > none
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > videoTxCodec
      > </name>
      > <value>
      > <string>
      > h264
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > videoTxSent
      > </name>
      > <value>
      > <int>
      > 173340
      > </int>
      > </value>
      > </member>
      > <member>
      > <name>
      > videoTxReportedLost
      > </name>
      > <value>
      > <int>
      > 0
      > </int>
      > </value>
      > </member>
      > <member>
      > <name>
      > currentLayout
      > </name>
      > <value>
      > <int>
      > 7
      > </int>
      > </value>
      > </member>
      > <member>
      > <name>
      > layoutSource
      > </name>
      > <value>
      > <string>
      > family1
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > packetLossWarning
      > </name>
      > <value>
      > <boolean>
      > 0
      > </boolean>
      > </value>
      > </member>
      > <member>
      > <name>
      > packetLossCritical
      > </name>
      > <value>
      > <boolean>
      > 0
      > </boolean>
      > </value>
      > </member>
      > </struct>
      > </value>
      > </member>
      > <member>
      > <name>
      > conferenceName
      > </name>
      > <value>
      > <string>
      > 6001 - 6001 FEMA - NLE 11
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > connectionUniqueId
      > </name>
      > <value>
      > <int>
      > 262
      > </int>
      > </value>
      > </member>
      > <member>
      > <name>
      > participantName
      > </name>
      > <value>
      > <string>
      > FEMA-AVOC-1
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > participantType
      > </name>
      > <value>
      > <string>
      > by_address
      > </string>
      > </value>
      > </member>
      > <member>
      > <name>
      > participantProtocol
      > </name>
      > <value>
      > <string>
      > h323
      > </string>
      > </value>
      > </member>
      > </struct>
      > </value>
      >
      > [Non-text portions of this message have been removed]
      >
      >
      >


      [Non-text portions of this message have been removed]



      ------------------------------------

      Yahoo! Groups Links






      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.