Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

XMLRPCNET · XML-RPC.NET

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 671
  • Category: Open Source
  • Founded: Apr 3, 2002
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 1274 - 1303 of 1417   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#1274 From: "kevinsmith280280" <kevinsmith280280@...>
Date: Tue Aug 17, 2010 7:23 pm
Subject: Help....data not loading into the return structure
kevinsmith28...
Send Email Send Email
 
I defined the 3 nested structures below to match the XML returned back from the
server.

The problem is that the data for the third (C) structure does not get loaded,
even though the server does return the data (verified by Wireshark).   The data
for the A and B structure gets load correctly.

I believe I have the structures defined correctly.  Am I missing something or is
the XML-RPC.NET code having issues with the nested structures?  The start of the
return file is below.

' define structures for the return data
Public Structure PacketStructa
     Public currentRevision As Integer
     Public participants() As PacketStructb
End Structure

Public Structure PacketStructb
     Public currentstate As PacketStructc
     Public conferenceName As String
     Public participantName As String
End Structure

Public Structure 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
End Structure


Thanks for any help,

Kevin Smith

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>
                                                                     displayName
                                                                     </name>
                                                                 <value>
                                                                     <string>
                                                                        
FEMA-AVOC-1
                                                                        
</string>
                                                                     </value>
                                                                 </member>
                                                             <member>
                                                                 <name>
                                                                     audioRxLost
                                                                     </name>
                                                                 <value>
                                                                     <int>
                                                                         1
                                                                         </int>
                                                                     </value>
                                                                 </member>

#1275 From: Kevin Smith <kevinsmith280280@...>
Date: Wed Aug 18, 2010 11:04 am
Subject: data not loading for nested structure
kevinsmith28...
Send Email Send Email
 
XML-RPCNET group,
 
I am using the 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 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 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%2\
011&participant=1&size=qcif
                                                                        
</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]

#1276 From: Charles Cook <chascook@...>
Date: Wed Aug 18, 2010 2:14 pm
Subject: Re: data not loading for nested structure
charlescookuk
Send Email Send Email
 
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%2\
011&participant=1&size=qcif
>
> </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]

#1277 From: Kevin Smith <kevinsmith280280@...>
Date: Wed Aug 18, 2010 6:56 pm
Subject: Re: data not loading for nested structure
kevinsmith28...
Send Email Send Email
 
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]

#1278 From: "thompson_ian@..." <thompson_ian@...>
Date: Thu Sep 9, 2010 5:24 pm
Subject: XML-RPC .NET and LabView
thompson_ian...
Send Email Send Email
 
Does anyone in this group have any experience in using XML-RPC .NET with
LabView? LabView has no built-in xml-rpc support but it does support a .NET
interface. We can use that interface to access the functions in the library but
we are all Python/C++ (under Linux) programmers and are struggling with .NET
syntax.

I've tried using IronPython (under Windows) to familiarize myself with how calls
should be issued, and again access to the library is no problem but when I start
plugging in values, IronPython complains.

I guess what I need is a simple example on how to call system.listMethods() on a
server "http://1.2.3.4:9000" just to get me over the initial learning curve.

Any help is greatly appreciated.

Ian Thompson

#1279 From: "88Sarah88" <webtv4fb@...>
Date: Mon Sep 27, 2010 3:03 pm
Subject: [noob question] "Requested Service not found" error
webtv4fb
Send Email Send Email
 
I tried out my first XML-RPC.NET service, doing these steps:

1- I've compiled the SumAndDiffValue example service taken as is from the
documentation: http://www.xml-rpc.net/faq/xmlrpcnetfaq.html

2- On the server i have created on the desktop the "SumAndDifferenceServer"
folder with a /bin subfolder, with these 2 .dll files in the /bin subfolder :
CookComputing.XmlRpcV2.dll and SumAndDifferenceServer.dll

3- in Desktop\SumAndDifferenceServer , i have created web.config with these
contents:

<configuration>
   <system.web>
     <httpHandlers>
       <add verb="*" path="SumAndDiff.rem"
          type="SumAndDiffServer, SumAndDifferenceServer" />
     </httpHandlers>
   </system.web>
</configuration>


4- From the Server Manager, i right-clicked on Default Web Site, i chosed "Add
Virtual Directory..." and then i've set
Alias: SumAndDifferenceServer
Physical path: ......\Desktop\SumAndDifferenceServer

5- Then i tried to navigate to the URL of the service:
http://localhost/SumAndDiff.rem

And i got this error:
System.Runtime.Remoting.RemotingException: Requested Service not found

why?
thank you for your help

#1280 From: "88Sarah88" <webtv4fb@...>
Date: Tue Sep 28, 2010 10:51 am
Subject: Re: [noob question] "Requested Service not found" error
webtv4fb
Send Email Send Email
 
update: ok i found out some mistakes i made

SOLVED  :)

#1281 From: "synsuperior" <synsuperior@...>
Date: Wed Sep 29, 2010 9:38 pm
Subject: Building an xml-rpc server using XML-RPC.NET library
synsuperior
Send Email Send Email
 
Hi there,

I'm building an xml-rpc server using XML-RPC.Net library with C# to receive
calls from Shopatron server. Has anyone done this?

Per Shopatron documentation, it says that Shopatron server will send my xml-rpc
server a single xml package as a parameter. So, currently I have my xml-rpc
server method implemented as followed.

1/ First Trial
[XmlRpcMethod("GetMyXml")]
public int GetMyXml(string xmlPackage)
{
//do stuffs
return 0;
}
This trial Shopatron server gets this error: XML-RPC Fault#-1: request contains
struct value where string expected(as type String)[request:parameter 1]

2/ Second Trial
[XmlRpcMethod("GetMyXml")]
public int GetMyXml(SomeClass xmlPackage)
{
//do stuffs
return 0;
}
This trial Shopatron server gets this error: XML-RPC Fault#-1: request contains
struct value with missing non-optional members: Variable1
Variable2[request:parameter 1: struct mapped to type SomeClass]

3/ Third Trial
[XmlRpcMethod("GetMyXml")]
public int GetMyXml(XmlRpcStruct xmlPackage)
{
//do stuffs
return 0;
}
This trial Shopatron server gets this error: XML-RPC Fault#-1: Index was outside
the bounds of the array.

So, my question is: what data type should the xmlPackage parameter has? Should
it be some sort of a structure that is mapped to Shopatron xmlpackage? Could it
be the SomeClass class has a wrong structure compare to the Shopatron
xmlpackage.

Here is a sample xml package from Shopatron taken out from their docs: I've
never seen a real xml package yet, cause I can't get my xml-rpc server to work.

<?xml version="1.0" encoding="ISO-8859-1" ?>
<methodCall>
<methodName>method_name_of_client_server</methodName>
<params>
<param>
<value>
<struct>
<member><name>ManufacturerID</name>
<value><int>138</int></value>
</member>
<member><name>CatalogID</name>
<value><int>0</int></value>
</member>
</struct>
</value>
</param>
<param>
<value>
<struct>
<member><name>OrderID</name>
<value><int>1528932</int></value>
</member>
<member><name>Address1</name>
<value><string>1026 Red Oak Drive</string></value>
</member>
<member><name>City</name>
<value><string>Cherry Hill</string></value>
</member>
<member><name>State</name>
<value><string>NJ</string></value>
</member>
<member><name>Zip</name>
<value><string>08003</string></value>
</member>
<member><name>Country</name>
<value><string>United States of America</string></value>
</member>
<member><name>CountryCode</name>
<value><string>US</string></value>
</member>
<member><name>currency_id</name>
<value><int>1</int></value>
</member>
<member><name>language_id</name>
<value><int>1</int></value>
</member>
<member><name>ShipType</name>
<value><string>sts</string></value>
</member>
<member><name>EstimatedShipping</name>
<value><double>8.9</double></value>
</member>
<member><name>EstimatedDistance</name>
<value><double>2491.38288904</double></value>
</member>
<member><name>MfgID</name>
<value><int>138</int></value>
</member>
<member><name>CatalogID</name>
<value><int>0</int></value>
</member>
<member><name>Discount</name>
<value>
<struct>
<member><name>DiscountDescription</name>
<value><string>Charity Giveback</string></value>
</member>
<member><name>DiscountPercentage</name>
<value><double>0.1</double></value>
</member>
<member>
<name>DiscountTotal</name>
<value><double>10.51</double></value>
</member>
</struct>
</value>
</member>
<member><name>CheckDate</name>
<value><int>156478887</int></value>
</member>
<member><name>OrderDate</name>
<value><int>156478887</int></value>
<member><name>OrderItems</name>
<value>
<struct>
<member><name>0</name>
<value>
<struct>
<member><name>ItemID</name>
<value><string>809479</string></value>
</member>
<member><name>ProdName</name>
<value><string>Sample Product</string></value>
</member>
<member><name>PartNumber</name>
<value><string>1002</string></value>
</member>
<member><name>UPC</name>
<value><string>6.51654654654655E+017</string></value>
</member>
<member>
<name>Options</name>
<value>
<struct>
<member><name>0</name><value><string>TextureRough</string></value></member>
<member><name>1</name><value><string>FrogOrange</string></value></member>
<member><name>2</name><value><string>StylesBird</string></value></member>
</struct>
</value>
</member>
<member><name>Quantity</name>
<value><int>1</int></value>
</member>
<member><name>CustPrice</name>
<value><double>5.65</double></value>
</member>
<member><name>PaymentDisc</name>
<value><double>0.1695</double></value>
</member>
<member><name>ShopatronDisc</name>
<value><double>0.26103</double></value>
</member>
<member><name>ManufacturerDisc</name>
<value><double>0.1695</double></value>
</member>
</struct>
</value>
</member>
</struct>
</value>
</member>
</member>
</struct>
</value>
</param>
</params>
</methodCall>

I really thank you for your help.

#1282 From: "synsuperior" <synsuperior@...>
Date: Thu Sep 30, 2010 10:02 pm
Subject: Re: Building an xml-rpc server using XML-RPC.NET library
synsuperior
Send Email Send Email
 
So, I guess a simplified question for this is: How do I write a XML-RPC server
using XML-RPC.NET to consume the xml below? Any help or suggestion is
appreciated.
One note: I am a newbie in XML-RPC, so please excuse me with any newbie
question.
Thanks again,

P

--- In XMLRPCNET@yahoogroups.com, "synsuperior" <synsuperior@...> wrote:
>
> Hi there,
>
> I'm building an xml-rpc server using XML-RPC.Net library with C# to receive
calls from Shopatron server. Has anyone done this?
>
> Per Shopatron documentation, it says that Shopatron server will send my
xml-rpc server a single xml package as a parameter. So, currently I have my
xml-rpc server method implemented as followed.
>
> 1/ First Trial
> [XmlRpcMethod("GetMyXml")]
> public int GetMyXml(string xmlPackage)
> {
> //do stuffs
> return 0;
> }
> This trial Shopatron server gets this error: XML-RPC Fault#-1: request
contains struct value where string expected(as type String)[request:parameter 1]
>
> 2/ Second Trial
> [XmlRpcMethod("GetMyXml")]
> public int GetMyXml(SomeClass xmlPackage)
> {
> //do stuffs
> return 0;
> }
> This trial Shopatron server gets this error: XML-RPC Fault#-1: request
contains struct value with missing non-optional members: Variable1
Variable2[request:parameter 1: struct mapped to type SomeClass]
>
> 3/ Third Trial
> [XmlRpcMethod("GetMyXml")]
> public int GetMyXml(XmlRpcStruct xmlPackage)
> {
> //do stuffs
> return 0;
> }
> This trial Shopatron server gets this error: XML-RPC Fault#-1: Index was
outside the bounds of the array.
>
> So, my question is: what data type should the xmlPackage parameter has? Should
it be some sort of a structure that is mapped to Shopatron xmlpackage? Could it
be the SomeClass class has a wrong structure compare to the Shopatron
xmlpackage.
>
> Here is a sample xml package from Shopatron taken out from their docs: I've
never seen a real xml package yet, cause I can't get my xml-rpc server to work.
>
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <methodCall>
> <methodName>method_name_of_client_server</methodName>
> <params>
> <param>
> <value>
> <struct>
> <member><name>ManufacturerID</name>
> <value><int>138</int></value>
> </member>
> <member><name>CatalogID</name>
> <value><int>0</int></value>
> </member>
> </struct>
> </value>
> </param>
> <param>
> <value>
> <struct>
> <member><name>OrderID</name>
> <value><int>1528932</int></value>
> </member>
> <member><name>Address1</name>
> <value><string>1026 Red Oak Drive</string></value>
> </member>
> <member><name>City</name>
> <value><string>Cherry Hill</string></value>
> </member>
> <member><name>State</name>
> <value><string>NJ</string></value>
> </member>
> <member><name>Zip</name>
> <value><string>08003</string></value>
> </member>
> <member><name>Country</name>
> <value><string>United States of America</string></value>
> </member>
> <member><name>CountryCode</name>
> <value><string>US</string></value>
> </member>
> <member><name>currency_id</name>
> <value><int>1</int></value>
> </member>
> <member><name>language_id</name>
> <value><int>1</int></value>
> </member>
> <member><name>ShipType</name>
> <value><string>sts</string></value>
> </member>
> <member><name>EstimatedShipping</name>
> <value><double>8.9</double></value>
> </member>
> <member><name>EstimatedDistance</name>
> <value><double>2491.38288904</double></value>
> </member>
> <member><name>MfgID</name>
> <value><int>138</int></value>
> </member>
> <member><name>CatalogID</name>
> <value><int>0</int></value>
> </member>
> <member><name>Discount</name>
> <value>
> <struct>
> <member><name>DiscountDescription</name>
> <value><string>Charity Giveback</string></value>
> </member>
> <member><name>DiscountPercentage</name>
> <value><double>0.1</double></value>
> </member>
> <member>
> <name>DiscountTotal</name>
> <value><double>10.51</double></value>
> </member>
> </struct>
> </value>
> </member>
> <member><name>CheckDate</name>
> <value><int>156478887</int></value>
> </member>
> <member><name>OrderDate</name>
> <value><int>156478887</int></value>
> <member><name>OrderItems</name>
> <value>
> <struct>
> <member><name>0</name>
> <value>
> <struct>
> <member><name>ItemID</name>
> <value><string>809479</string></value>
> </member>
> <member><name>ProdName</name>
> <value><string>Sample Product</string></value>
> </member>
> <member><name>PartNumber</name>
> <value><string>1002</string></value>
> </member>
> <member><name>UPC</name>
> <value><string>6.51654654654655E+017</string></value>
> </member>
> <member>
> <name>Options</name>
> <value>
> <struct>
> <member><name>0</name><value><string>TextureRough</string></value></member>
> <member><name>1</name><value><string>FrogOrange</string></value></member>
> <member><name>2</name><value><string>StylesBird</string></value></member>
> </struct>
> </value>
> </member>
> <member><name>Quantity</name>
> <value><int>1</int></value>
> </member>
> <member><name>CustPrice</name>
> <value><double>5.65</double></value>
> </member>
> <member><name>PaymentDisc</name>
> <value><double>0.1695</double></value>
> </member>
> <member><name>ShopatronDisc</name>
> <value><double>0.26103</double></value>
> </member>
> <member><name>ManufacturerDisc</name>
> <value><double>0.1695</double></value>
> </member>
> </struct>
> </value>
> </member>
> </struct>
> </value>
> </member>
> </member>
> </struct>
> </value>
> </param>
> </params>
> </methodCall>
>
> I really thank you for your help.
>

#1283 From: "Jack" <synsuperior@...>
Date: Wed Oct 6, 2010 6:38 pm
Subject: Re: Building an xml-rpc server using XML-RPC.NET library
synsuperior
Send Email Send Email
 
Anyone around? I'm still struggling with building an XML-RPC server using the
XML-RPC.NET library to accept calls from PHP clients.
Can anyone help?

Thanks.
P

--- In XMLRPCNET@yahoogroups.com, "synsuperior" <synsuperior@...> wrote:
>
> So, I guess a simplified question for this is: How do I write a XML-RPC server
using XML-RPC.NET to consume the xml below? Any help or suggestion is
appreciated.
> One note: I am a newbie in XML-RPC, so please excuse me with any newbie
question.
> Thanks again,
>
> P
>
> --- In XMLRPCNET@yahoogroups.com, "synsuperior" <synsuperior@> wrote:
> >
> > Hi there,
> >
> > I'm building an xml-rpc server using XML-RPC.Net library with C# to receive
calls from Shopatron server. Has anyone done this?
> >
> > Per Shopatron documentation, it says that Shopatron server will send my
xml-rpc server a single xml package as a parameter. So, currently I have my
xml-rpc server method implemented as followed.
> >
> > 1/ First Trial
> > [XmlRpcMethod("GetMyXml")]
> > public int GetMyXml(string xmlPackage)
> > {
> > //do stuffs
> > return 0;
> > }
> > This trial Shopatron server gets this error: XML-RPC Fault#-1: request
contains struct value where string expected(as type String)[request:parameter 1]
> >
> > 2/ Second Trial
> > [XmlRpcMethod("GetMyXml")]
> > public int GetMyXml(SomeClass xmlPackage)
> > {
> > //do stuffs
> > return 0;
> > }
> > This trial Shopatron server gets this error: XML-RPC Fault#-1: request
contains struct value with missing non-optional members: Variable1
Variable2[request:parameter 1: struct mapped to type SomeClass]
> >
> > 3/ Third Trial
> > [XmlRpcMethod("GetMyXml")]
> > public int GetMyXml(XmlRpcStruct xmlPackage)
> > {
> > //do stuffs
> > return 0;
> > }
> > This trial Shopatron server gets this error: XML-RPC Fault#-1: Index was
outside the bounds of the array.
> >
> > So, my question is: what data type should the xmlPackage parameter has?
Should it be some sort of a structure that is mapped to Shopatron xmlpackage?
Could it be the SomeClass class has a wrong structure compare to the Shopatron
xmlpackage.
> >
> > Here is a sample xml package from Shopatron taken out from their docs: I've
never seen a real xml package yet, cause I can't get my xml-rpc server to work.
> >
> > <?xml version="1.0" encoding="ISO-8859-1" ?>
> > <methodCall>
> > <methodName>method_name_of_client_server</methodName>
> > <params>
> > <param>
> > <value>
> > <struct>
> > <member><name>ManufacturerID</name>
> > <value><int>138</int></value>
> > </member>
> > <member><name>CatalogID</name>
> > <value><int>0</int></value>
> > </member>
> > </struct>
> > </value>
> > </param>
> > <param>
> > <value>
> > <struct>
> > <member><name>OrderID</name>
> > <value><int>1528932</int></value>
> > </member>
> > <member><name>Address1</name>
> > <value><string>1026 Red Oak Drive</string></value>
> > </member>
> > <member><name>City</name>
> > <value><string>Cherry Hill</string></value>
> > </member>
> > <member><name>State</name>
> > <value><string>NJ</string></value>
> > </member>
> > <member><name>Zip</name>
> > <value><string>08003</string></value>
> > </member>
> > <member><name>Country</name>
> > <value><string>United States of America</string></value>
> > </member>
> > <member><name>CountryCode</name>
> > <value><string>US</string></value>
> > </member>
> > <member><name>currency_id</name>
> > <value><int>1</int></value>
> > </member>
> > <member><name>language_id</name>
> > <value><int>1</int></value>
> > </member>
> > <member><name>ShipType</name>
> > <value><string>sts</string></value>
> > </member>
> > <member><name>EstimatedShipping</name>
> > <value><double>8.9</double></value>
> > </member>
> > <member><name>EstimatedDistance</name>
> > <value><double>2491.38288904</double></value>
> > </member>
> > <member><name>MfgID</name>
> > <value><int>138</int></value>
> > </member>
> > <member><name>CatalogID</name>
> > <value><int>0</int></value>
> > </member>
> > <member><name>Discount</name>
> > <value>
> > <struct>
> > <member><name>DiscountDescription</name>
> > <value><string>Charity Giveback</string></value>
> > </member>
> > <member><name>DiscountPercentage</name>
> > <value><double>0.1</double></value>
> > </member>
> > <member>
> > <name>DiscountTotal</name>
> > <value><double>10.51</double></value>
> > </member>
> > </struct>
> > </value>
> > </member>
> > <member><name>CheckDate</name>
> > <value><int>156478887</int></value>
> > </member>
> > <member><name>OrderDate</name>
> > <value><int>156478887</int></value>
> > <member><name>OrderItems</name>
> > <value>
> > <struct>
> > <member><name>0</name>
> > <value>
> > <struct>
> > <member><name>ItemID</name>
> > <value><string>809479</string></value>
> > </member>
> > <member><name>ProdName</name>
> > <value><string>Sample Product</string></value>
> > </member>
> > <member><name>PartNumber</name>
> > <value><string>1002</string></value>
> > </member>
> > <member><name>UPC</name>
> > <value><string>6.51654654654655E+017</string></value>
> > </member>
> > <member>
> > <name>Options</name>
> > <value>
> > <struct>
> > <member><name>0</name><value><string>TextureRough</string></value></member>
> > <member><name>1</name><value><string>FrogOrange</string></value></member>
> > <member><name>2</name><value><string>StylesBird</string></value></member>
> > </struct>
> > </value>
> > </member>
> > <member><name>Quantity</name>
> > <value><int>1</int></value>
> > </member>
> > <member><name>CustPrice</name>
> > <value><double>5.65</double></value>
> > </member>
> > <member><name>PaymentDisc</name>
> > <value><double>0.1695</double></value>
> > </member>
> > <member><name>ShopatronDisc</name>
> > <value><double>0.26103</double></value>
> > </member>
> > <member><name>ManufacturerDisc</name>
> > <value><double>0.1695</double></value>
> > </member>
> > </struct>
> > </value>
> > </member>
> > </struct>
> > </value>
> > </member>
> > </member>
> > </struct>
> > </value>
> > </param>
> > </params>
> > </methodCall>
> >
> > I really thank you for your help.
> >
>

#1284 From: "ferreira.luis25" <ferreira.luis25@...>
Date: Wed Oct 13, 2010 9:16 am
Subject: XmlRpcTypeMismatchException in Fault Response
ferreira.luis25
Send Email Send Email
 
According to the XML-RPC.NET FAQ http://www.xml-rpc.net/faq/xmlrpcnetfaq.html
"An XML-RPC Fault Response contains a struct with two members: a fault code and
a fault description"

But I'm getting the following struct as fault response from the service of a
third party entity:

<?xml version="1.0"?>
<methodResponse>
	 <fault>
		 <value>
			 <struct>
				 <member>
					 <name>FaultCode</name>
					 <value><i4>90</i4></value>
				 </member>
				 <member>
					 <name>RequestTransactionID</name>
	 <value><string>400000000000015</string></value>
				 </member>
				 <member>
					 <name>Signature</name>
						
<value><base64>Yu5K10hK+YWykmoAwFv/T1VEjoswmUaQfTbgJxxAz1nqPwa0nLBycbF/RZAramkiv\
1vUYPgdgMS5Fu3oOnD4TKFml29zC4GSU/WPj3A0XldcRGd0B4bp2AeNWhKeZj5BLTsT/TKTvrbbN60NI\
/Xf5TxD3BG8/X82stA9/TS8kv8=</base64>
</value>
				 </member>
			 </struct>
		 </value>
	 </fault>
</methodResponse>

Besides the faultCode I receiving RequestTransactionID and Signature and the
FaultString is missing.

And probably because of this I'm getting the exception
XmlRpcTypeMismatchException : "fault response contains struct value with missing
non-optional members: faultString faultCode [fault response : struct mapped to
type Fault]"


Here's the stack trace:

at CookComputing.XmlRpc.XmlRpcSerializer.ParseFault(XmlNode faultNode,
ParseStack parseStack, MappingAction mappingAction)
    at CookComputing.XmlRpc.XmlRpcSerializer.DeserializeResponse(XmlDocument
xdoc, Type returnType)
    at CookComputing.XmlRpc.XmlRpcSerializer.DeserializeResponse(Stream stm, Type
svcType)
    at CookComputing.XmlRpc.XmlRpcClientProtocol.ReadResponse(XmlRpcRequest req,
WebResponse webResp, Stream respStm, Type returnType)
    at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(Object clientObj,
MethodInfo mi, Object[] parameters)
    at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(MethodInfo mi, Object[]
Parameters)
    at
XmlRpcProxye3258145-037a-4f32-b93f-3a7a5cf42ca3.RechargeSubscriberPin(String
UserName, String Password, String RequestTransactionID, String RequestDealerID,
String RequestSubDealerID, String SubscriberMSISDN, String VoucherSerialNumber,
String VoucherActivationCode, DateTime RequestTimeStamp, Byte[] Signature)

Is this fault response valid? Must I complain with the service provider entity?
Is there a way I can deal with this exception?

Any help would be much apreciatted

Luis Ferreira

#1285 From: Charles Cook <chascook@...>
Date: Wed Oct 13, 2010 6:02 pm
Subject: Re: XmlRpcTypeMismatchException in Fault Response
charlescookuk
Send Email Send Email
 
Hi Luis: it's not valid XML-RPC. According to the spec:

The <methodResponse> could also contain a <fault> which contains a <value>
which is a <struct> containing two elements, one named <faultCode>, an <int>
and one named <faultString>, a <string>.

:Charles

On Wed, Oct 13, 2010 at 10:16 AM, ferreira.luis25 <ferreira.luis25@...
> wrote:

>
>
> According to the XML-RPC.NET FAQ
> http://www.xml-rpc.net/faq/xmlrpcnetfaq.html "An XML-RPC Fault Response
> contains a struct with two members: a fault code and a fault description"
>
But I'm getting the following struct as fault response from the service of a
> third party entity:
>
> <?xml version="1.0"?>
> <methodResponse>
> <fault>
> <value>
> <struct>
> <member>
> <name>FaultCode</name>
> <value><i4>90</i4></value>
> </member>
> <member>
> <name>RequestTransactionID</name>
> <value><string>400000000000015</string></value>
> </member>
> <member>
> <name>Signature</name>
>
>
<value><base64>Yu5K10hK+YWykmoAwFv/T1VEjoswmUaQfTbgJxxAz1nqPwa0nLBycbF/RZAramkiv\
1vUYPgdgMS5Fu3oOnD4TKFml29zC4GSU/WPj3A0XldcRGd0B4bp2AeNWhKeZj5BLTsT/TKTvrbbN60NI\
/Xf5TxD3BG8/X82stA9/TS8kv8=</base64>
> </value>
> </member>
> </struct>
> </value>
> </fault>
> </methodResponse>
>
> Besides the faultCode I receiving RequestTransactionID and Signature and
> the FaultString is missing.
>
> And probably because of this I'm getting the exception
> XmlRpcTypeMismatchException : "fault response contains struct value with
> missing non-optional members: faultString faultCode [fault response : struct
> mapped to type Fault]"
>
> Here's the stack trace:
>
> at CookComputing.XmlRpc.XmlRpcSerializer.ParseFault(XmlNode faultNode,
> ParseStack parseStack, MappingAction mappingAction)
> at CookComputing.XmlRpc.XmlRpcSerializer.DeserializeResponse(XmlDocument
> xdoc, Type returnType)
> at CookComputing.XmlRpc.XmlRpcSerializer.DeserializeResponse(Stream stm,
> Type svcType)
> at CookComputing.XmlRpc.XmlRpcClientProtocol.ReadResponse(XmlRpcRequest
> req, WebResponse webResp, Stream respStm, Type returnType)
> at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(Object clientObj,
> MethodInfo mi, Object[] parameters)
> at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(MethodInfo mi, Object[]
> Parameters)
> at
> XmlRpcProxye3258145-037a-4f32-b93f-3a7a5cf42ca3.RechargeSubscriberPin(String
> UserName, String Password, String RequestTransactionID, String
> RequestDealerID, String RequestSubDealerID, String SubscriberMSISDN, String
> VoucherSerialNumber, String VoucherActivationCode, DateTime
> RequestTimeStamp, Byte[] Signature)
>
> Is this fault response valid? Must I complain with the service provider
> entity? Is there a way I can deal with this exception?
>
> Any help would be much apreciatted
>
> Luis Ferreira
>
>
>


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

#1286 From: "ferreira.luis25" <ferreira.luis25@...>
Date: Thu Oct 14, 2010 8:48 am
Subject: Re: XmlRpcTypeMismatchException in Fault Response
ferreira.luis25
Send Email Send Email
 
Hi Charles,

Thanks for the quick reply. I've talked with the developers of the xml-rpc
service in question and they've aggreed that the faultResponse doesn't conform
with the xml-rpc spec.

Will the exception still be throwned if the faultString element is added to the
fault response?

Kind Regards,

Luis Ferreira

--- In XMLRPCNET@yahoogroups.com, Charles Cook <chascook@...> wrote:
>
> Hi Luis: it's not valid XML-RPC. According to the spec:
>
> The <methodResponse> could also contain a <fault> which contains a <value>
> which is a <struct> containing two elements, one named <faultCode>, an <int>
> and one named <faultString>, a <string>.
>
> :Charles
>
> On Wed, Oct 13, 2010 at 10:16 AM, ferreira.luis25 <ferreira.luis25@...
> > wrote:
>
> >
> >
> > According to the XML-RPC.NET FAQ
> > http://www.xml-rpc.net/faq/xmlrpcnetfaq.html "An XML-RPC Fault Response
> > contains a struct with two members: a fault code and a fault description"
> >
> But I'm getting the following struct as fault response from the service of a
> > third party entity:
> >
> > <?xml version="1.0"?>
> > <methodResponse>
> > <fault>
> > <value>
> > <struct>
> > <member>
> > <name>FaultCode</name>
> > <value><i4>90</i4></value>
> > </member>
> > <member>
> > <name>RequestTransactionID</name>
> > <value><string>400000000000015</string></value>
> > </member>
> > <member>
> > <name>Signature</name>
> >
> >
<value><base64>Yu5K10hK+YWykmoAwFv/T1VEjoswmUaQfTbgJxxAz1nqPwa0nLBycbF/RZAramkiv\
1vUYPgdgMS5Fu3oOnD4TKFml29zC4GSU/WPj3A0XldcRGd0B4bp2AeNWhKeZj5BLTsT/TKTvrbbN60NI\
/Xf5TxD3BG8/X82stA9/TS8kv8=</base64>
> > </value>
> > </member>
> > </struct>
> > </value>
> > </fault>
> > </methodResponse>
> >
> > Besides the faultCode I receiving RequestTransactionID and Signature and
> > the FaultString is missing.
> >
> > And probably because of this I'm getting the exception
> > XmlRpcTypeMismatchException : "fault response contains struct value with
> > missing non-optional members: faultString faultCode [fault response : struct
> > mapped to type Fault]"
> >
> > Here's the stack trace:
> >
> > at CookComputing.XmlRpc.XmlRpcSerializer.ParseFault(XmlNode faultNode,
> > ParseStack parseStack, MappingAction mappingAction)
> > at CookComputing.XmlRpc.XmlRpcSerializer.DeserializeResponse(XmlDocument
> > xdoc, Type returnType)
> > at CookComputing.XmlRpc.XmlRpcSerializer.DeserializeResponse(Stream stm,
> > Type svcType)
> > at CookComputing.XmlRpc.XmlRpcClientProtocol.ReadResponse(XmlRpcRequest
> > req, WebResponse webResp, Stream respStm, Type returnType)
> > at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(Object clientObj,
> > MethodInfo mi, Object[] parameters)
> > at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(MethodInfo mi, Object[]
> > Parameters)
> > at
> > XmlRpcProxye3258145-037a-4f32-b93f-3a7a5cf42ca3.RechargeSubscriberPin(String
> > UserName, String Password, String RequestTransactionID, String
> > RequestDealerID, String RequestSubDealerID, String SubscriberMSISDN, String
> > VoucherSerialNumber, String VoucherActivationCode, DateTime
> > RequestTimeStamp, Byte[] Signature)
> >
> > Is this fault response valid? Must I complain with the service provider
> > entity? Is there a way I can deal with this exception?
> >
> > Any help would be much apreciatted
> >
> > Luis Ferreira
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>

#1287 From: "ferreira.luis25" <ferreira.luis25@...>
Date: Thu Oct 14, 2010 12:49 pm
Subject: Re: XmlRpcTypeMismatchException in Fault Response
ferreira.luis25
Send Email Send Email
 
Hi,

Nevermind my previous message, after suggesting adding the faultString they
quickly fixed it.

Now the exception throwned is the expected xmlRpcFaultException.

Thank you,

Luis Ferreira

--- In XMLRPCNET@yahoogroups.com, "ferreira.luis25" <ferreira.luis25@...> wrote:
>
>
> Hi Charles,
>
> Thanks for the quick reply. I've talked with the developers of the xml-rpc
service in question and they've aggreed that the faultResponse doesn't conform
with the xml-rpc spec.
>
> Will the exception still be throwned if the faultString element is added to
the fault response?
>
> Kind Regards,
>
> Luis Ferreira
>
> --- In XMLRPCNET@yahoogroups.com, Charles Cook <chascook@> wrote:
> >
> > Hi Luis: it's not valid XML-RPC. According to the spec:
> >
> > The <methodResponse> could also contain a <fault> which contains a <value>
> > which is a <struct> containing two elements, one named <faultCode>, an <int>
> > and one named <faultString>, a <string>.
> >
> > :Charles
> >
> > On Wed, Oct 13, 2010 at 10:16 AM, ferreira.luis25 <ferreira.luis25@
> > > wrote:
> >
> > >
> > >
> > > According to the XML-RPC.NET FAQ
> > > http://www.xml-rpc.net/faq/xmlrpcnetfaq.html "An XML-RPC Fault Response
> > > contains a struct with two members: a fault code and a fault description"
> > >
> > But I'm getting the following struct as fault response from the service of a
> > > third party entity:
> > >
> > > <?xml version="1.0"?>
> > > <methodResponse>
> > > <fault>
> > > <value>
> > > <struct>
> > > <member>
> > > <name>FaultCode</name>
> > > <value><i4>90</i4></value>
> > > </member>
> > > <member>
> > > <name>RequestTransactionID</name>
> > > <value><string>400000000000015</string></value>
> > > </member>
> > > <member>
> > > <name>Signature</name>
> > >
> > >
<value><base64>Yu5K10hK+YWykmoAwFv/T1VEjoswmUaQfTbgJxxAz1nqPwa0nLBycbF/RZAramkiv\
1vUYPgdgMS5Fu3oOnD4TKFml29zC4GSU/WPj3A0XldcRGd0B4bp2AeNWhKeZj5BLTsT/TKTvrbbN60NI\
/Xf5TxD3BG8/X82stA9/TS8kv8=</base64>
> > > </value>
> > > </member>
> > > </struct>
> > > </value>
> > > </fault>
> > > </methodResponse>
> > >
> > > Besides the faultCode I receiving RequestTransactionID and Signature and
> > > the FaultString is missing.
> > >
> > > And probably because of this I'm getting the exception
> > > XmlRpcTypeMismatchException : "fault response contains struct value with
> > > missing non-optional members: faultString faultCode [fault response :
struct
> > > mapped to type Fault]"
> > >
> > > Here's the stack trace:
> > >
> > > at CookComputing.XmlRpc.XmlRpcSerializer.ParseFault(XmlNode faultNode,
> > > ParseStack parseStack, MappingAction mappingAction)
> > > at CookComputing.XmlRpc.XmlRpcSerializer.DeserializeResponse(XmlDocument
> > > xdoc, Type returnType)
> > > at CookComputing.XmlRpc.XmlRpcSerializer.DeserializeResponse(Stream stm,
> > > Type svcType)
> > > at CookComputing.XmlRpc.XmlRpcClientProtocol.ReadResponse(XmlRpcRequest
> > > req, WebResponse webResp, Stream respStm, Type returnType)
> > > at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(Object clientObj,
> > > MethodInfo mi, Object[] parameters)
> > > at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(MethodInfo mi,
Object[]
> > > Parameters)
> > > at
> > >
XmlRpcProxye3258145-037a-4f32-b93f-3a7a5cf42ca3.RechargeSubscriberPin(String
> > > UserName, String Password, String RequestTransactionID, String
> > > RequestDealerID, String RequestSubDealerID, String SubscriberMSISDN,
String
> > > VoucherSerialNumber, String VoucherActivationCode, DateTime
> > > RequestTimeStamp, Byte[] Signature)
> > >
> > > Is this fault response valid? Must I complain with the service provider
> > > entity? Is there a way I can deal with this exception?
> > >
> > > Any help would be much apreciatted
> > >
> > > Luis Ferreira
> > >
> > >
> > >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>

#1288 From: "Robin Motroen" <robin.motroen@...>
Date: Thu Oct 14, 2010 5:10 pm
Subject: Structured call with vb as language
robin.motroen
Send Email Send Email
 
Hi
I have been struggled about a week with my code. The XML-RPC server i programmed
in PHP and need to get the call in structured call, i think.
This because it asks for named variables.

I have set up my code with structure like this:


     <XmlRpcMissingMapping(MappingAction.Ignore)> _
     Structure Customer
         Public id As Integer
         Public name As String
         Public address As String
         Public email_address As String
     End Structure

     <XmlRpcUrl("http://myserver/webservice/server.php")> _
     Class oproxy
         Inherits XmlRpcClientProtocol

         <XmlRpcMethod("o.getNewCustomers")> _
         Public Function getNewCustomers(ByVal pw As String, ByVal limitno As
String) As Customer()

             Dim param As New XmlRpcStruct
             param.Add("pw", pwtxt)
             param.Add("limitno", pwtxt2)

             Return Me.Invoke("getNewCustomers", param)
         End Function

     End Class

        Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
             Dim proxy As New oproxy()
             'proxy.structparams = True

             Dim ret() As Customer
             ret = proxy.getNewCustomers("secret", "20")


             Dim lname As String = ""
             Dim n As Integer = 0
             While ret.Length > n
                 lname += ret(n).customers_firstname & "<br />"
                 n = n + 1
             End While


         End Sub





But when I run the apps I get this fault message:
"Method parameters do not match signature of any method called getNewCustomers"
on line 531 in XmlRpcClientProtocol.cs


Is there another way of sending calls with params?

#1289 From: Charles Cook <chascook@...>
Date: Thu Oct 14, 2010 7:37 pm
Subject: Re: Structured call with vb as language
charlescookuk
Send Email Send Email
 
Hi Robin: this explains the StructParams feature:

http://xml-rpc.net/faq/xmlrpcnetfaq.html#2.34

and this explains how to implement a client in VB.NET:

http://xml-rpc.net/faq/xmlrpcnetfaq.html#2.12

You get the exception because you're calling Invoke with a struct as the
second parameter instead of strings as the second and third parameters (to
correspond the containing method). It's better to use XmlRpcProxyGen.Create as
in section 2.12 unless code gen is not allowed where you are making the
XML-RPC call.

:Charles




On Thu, Oct 14, 2010 at 6:10 PM, Robin Motroen
<robin.motroen@...>wrote:

>
>
> Hi
> I have been struggled about a week with my code. The XML-RPC server i
> programmed in PHP and need to get the call in structured call, i think.
> This because it asks for named variables.
>
> I have set up my code with structure like this:
>
> <XmlRpcMissingMapping(MappingAction.Ignore)> _
> Structure Customer
> Public id As Integer
> Public name As String
> Public address As String
> Public email_address As String
> End Structure
>
> <XmlRpcUrl("http://myserver/webservice/server.php")> _
> Class oproxy
> Inherits XmlRpcClientProtocol
>
> <XmlRpcMethod("o.getNewCustomers")> _
> Public Function getNewCustomers(ByVal pw As String, ByVal limitno As
> String) As Customer()
>
> Dim param As New XmlRpcStruct
> param.Add("pw", pwtxt)
> param.Add("limitno", pwtxt2)
>
> Return Me.Invoke("getNewCustomers", param)
> End Function
>
> End Class
>
> Protected Sub Page_Load(ByVal sender As Object, ByVal e As
> System.EventArgs) Handles Me.Load
> Dim proxy As New oproxy()
> 'proxy.structparams = True
>
> Dim ret() As Customer
> ret = proxy.getNewCustomers("secret", "20")
>
> Dim lname As String = ""
> Dim n As Integer = 0
> While ret.Length > n
> lname += ret(n).customers_firstname & "<br />"
> n = n + 1
> End While
>
> End Sub
>
> But when I run the apps I get this fault message:
> "Method parameters do not match signature of any method called
> getNewCustomers"
> on line 531 in XmlRpcClientProtocol.cs
>
> Is there another way of sending calls with params?
>
>
>


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

#1290 From: "jackywang029" <jackywang029@...>
Date: Thu Nov 18, 2010 6:11 am
Subject: How can I subscribe(listen to) events which are from xml-rpc server?
jackywang029
Send Email Send Email
 
Hi All,
I developed a new xml-rpc client in c# code. And I can call the methods which
are defined in xml-rpc server. But sometimes my client calls will raise some
events. So how to subscribe the events in client code? In the other words, how
to use events(which are defined in xml-rpc serve code) in client code?
Expect for your help, thanks in advance.

#1291 From: "jackywang029" <jackywang029@...>
Date: Thu Nov 18, 2010 6:38 am
Subject: How to host the xml-rpc service without IIS?
jackywang029
Send Email Send Email
 
Hello All,
I just created a new xml-rpc service, how to host this service in my application
via a new thread? I just know how to publish the xml-rpc service on IIS.
Expect for your help, thanks in advance.

#1292 From: "Jack" <synsuperior@...>
Date: Thu Nov 18, 2010 7:39 pm
Subject: Re: How to host the xml-rpc service without IIS?
synsuperior
Send Email Send Email
 
Hi there,

I think you have to use .net remoting. I think Charles did provide some examples
on this topic.

--- In XMLRPCNET@yahoogroups.com, "jackywang029" <jackywang029@...> wrote:
>
> Hello All,
> I just created a new xml-rpc service, how to host this service in my
application via a new thread? I just know how to publish the xml-rpc service on
IIS.
> Expect for your help, thanks in advance.
>

#1293 From: "Jack" <synsuperior@...>
Date: Thu Nov 18, 2010 7:55 pm
Subject: Create members dynamically inside of a struct using xmlrpc.net
synsuperior
Send Email Send Email
 
Hi guys,

Not sure if anyone has worked with Shopatron API. One of their api required an
xml like this below (you can copy, paste it to notepad, save it as xml file and
open it with IE or Firefox, you'll see it better), please pay attention to the
5th parameter. Basically, it contains Orders as a struct with member name as 0,
1, 2... and each of the members also has the order detail as a struct and again
with members as 0, 1, 2..... I create array for orders and order details and
XMLRPC.NET de-serialize it with array tags in it, and it's not the same as the
sample below. I'm really stuck now and hoping for some helps from you guys.
I do really appreciate any comment or suggestions.

Thanks again.


<?xml version="1.0" encoding="ISO-8859-1" ?>
<methodCall>
<methodName>immediate.create_order_bids</methodName>
<params>
<param>
<value><string>xml_user</string></value>
</param>
<param>
<value><string>2c93f30faf08977aa268e26afsderwerwerwereebe1f54</string></value>
</param>
<param>
<value><string>133338</string></value>
</param>
<param>
<value><string>0</string></value>
</param>
<param>
<value>
<struct>
<member><name>0</name>
<value>
<struct>
<member><name>OrderID</name>
<value><string>1526761</string></value>
</member>
<member><name>ShipmentTax</name>
<value><double>1.29</double></value>
</member>
<member><name>OrderItems</name>
<value>
<struct>
<member><name>0</name>
<value>
<struct>
<member><name>ItemID</name>
<value><string>805804</string>
</value>
</member>
<member><name>PartNumber</name>
<value><string>fee100</string>
</value>
</member>
<member><name>ItemTax</name>
<value><double>0.11</double>
</value>
</member>
<member><name>BOduration</name>
<value><int>7</int></value>
</member>
</struct>
</value>
</member>
</struct>
</value>
</member>
</struct>
</value>
</member>
<member><name>1</name>
<value>
<struct>
<member><name>OrderID</name>
<value><string>1526762</string></value>
</member>
<member><name>ShipmentTax</name>
<value><double>1.29</double></value>
</member>
<member><name>OrderItems</name>
<value>
<struct>
<member><name>0</name>
<value>
<struct>
<member><name>ItemID</name>
<value><string>805804</string>
</value>
</member>
<member><name>PartNumber</name>
<value><string>fee100</string>
</value>
</member>
<member><name>ItemTax</name>
<value><double>0.11</double>
</value>
</member>
<member><name>BOduration</name>
<value><int>7</int></value>
</member>
</struct>
</value>
</member>
</struct>
</value>
</member>
</struct>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>

#1294 From: "vahid_nasiri" <vahid_nasiri@...>
Date: Fri Nov 26, 2010 3:59 pm
Subject: .NET 4
vahid_nasiri
Send Email Send Email
 
Hello,
To use this library in a .NET 4 project (and compile it against that framework),
I've commented the following lines in AssemblyInfo.cs file:
//#if (!COMPACT_FRAMEWORK)
//[assembly: AllowPartiallyTrustedCallers]
//#endif

more info:
http://msdn.microsoft.com/en-us/library/dd233103.aspx
http://tseonet.blogspot.com/2010/07/making-log4net-run-on-net-40.html

#1295 From: "asm2me" <asm2me@...>
Date: Fri Dec 10, 2010 7:41 pm
Subject: XML-RPC with Digest Authentication and SSL not verified
asm2me
Send Email Send Email
 
Hi all

please tell me if there is a way to use XML-RPC with Digest Authentication on
unverified HTTPS

I tried to use the Credintials but no use

#1296 From: "vineet_123india" <kashyap.vineet@...>
Date: Sat Jan 1, 2011 8:45 am
Subject: Issue connecting to the xml-rpc server
vineet_123india
Send Email Send Email
 
Hi

I have built an xml-rpc client using c# to connect to the xmlrpc server

ClientProtocol.Url = "http://ubuntu:8080/rpc2"; // ubuntu is the
hostname(pc name)

which is an ubuntu machine from within my network works fine. The server
is started from the terminal and i have made sure that the port is
listening:

netstat gives me 0.0.0.0/8080 Listening

But when i use:

proxy = XmlRpcProxyGen.Create<IMath>();
ClientProtocol = (XmlRpcClientProtocol)proxy;
ClientProtocol.Url = "http://vineetk.no-ip.biz:8080/rpc2"; // I have
enabled Dynamic dns on the router.
I get, No connection could be made because the target machine actively
refused itBasically i want my client app. to work from outside my
network. I have enabled port forwarding and made sure that all firewalls
are configured to allow this port. Shouldn't NAT on the router bind the
hostname vineetk.no-ip.biz to the ip address of the server pc ?
Strangely, i can access the website hosted on the same machine when i
log onto vineetk.no-ip.biz.

Regards,

Vineet



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

#1297 From: "vineet_123india" <kashyap.vineet@...>
Date: Thu Jan 6, 2011 2:40 pm
Subject: Re: Issue connecting to the xml-rpc server
vineet_123india
Send Email Send Email
 
Its working now.

The url set was not correct, i needed an uppercase RPC.

This post can be closed.

Regards,

Vineet

--- In XMLRPCNET@yahoogroups.com, "vineet_123india" <kashyap.vineet@...> wrote:
>
> Hi
>
> I have built an xml-rpc client using c# to connect to the xmlrpc server
>
> ClientProtocol.Url = "http://ubuntu:8080/rpc2"; // ubuntu is the
> hostname(pc name)
>
> which is an ubuntu machine from within my network works fine. The server
> is started from the terminal and i have made sure that the port is
> listening:
>
> netstat gives me 0.0.0.0/8080 Listening
>
> But when i use:
>
> proxy = XmlRpcProxyGen.Create<IMath>();
> ClientProtocol = (XmlRpcClientProtocol)proxy;
> ClientProtocol.Url = "http://vineetk.no-ip.biz:8080/rpc2"; // I have
> enabled Dynamic dns on the router.
> I get, No connection could be made because the target machine actively
> refused itBasically i want my client app. to work from outside my
> network. I have enabled port forwarding and made sure that all firewalls
> are configured to allow this port. Shouldn't NAT on the router bind the
> hostname vineetk.no-ip.biz to the ip address of the server pc ?
> Strangely, i can access the website hosted on the same machine when i
> log onto vineetk.no-ip.biz.
>
> Regards,
>
> Vineet
>
>
>
> [Non-text portions of this message have been removed]
>

#1298 From: "Eric Teutsch" <erict@...>
Date: Fri Jan 21, 2011 11:03 pm
Subject: XML-RPC server on CF
erict2k
Send Email Send Email
 
Hi,

Since remoting doesn't seem to exist on compact framework, is there another
way to execute a small XML-RPC server.  Head-office needs a way to send
asynchronous commands to a specific Windows CE machine, which is always
online.

Thanks; all suggestions are appreciated!



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

#1299 From: "zbeckerman" <zbeckerman@...>
Date: Sun Jan 23, 2011 3:35 am
Subject: Possible Defect on Closing connection - 2.4.0
zbeckerman
Send Email Send Email
 
Recently we upgraded to 2.4.0. Previously, we used 2.3.1. We only have VS2005 so
we didnt upgrade to 2.5.0 since we need to compile x86 and x64. We will upgrade
to VS2010 in 4 weeks and will upgrade then.

Since the upgrade we notice an System.InvalidOperationException is thrown 1-2
times per day from our software. This is causing the service to crash and
restart due to unhandled exception in .net 2.0

We finally tracked the cause of the exception to the CookComputing Dll 2.4.0

File: XmlRpcListenerService.cs
Line: 55

       finally
       {
         RequestContext.Response.OutputStream.Close();
       }

The crux of the problem is that somehow, we are coming to this finally block and
the exception is System.invalidoperationexception with inner message:  Cannot
close stream until all bytes are written.

So somehow, we are attempting to close the stream but there is still data
outstanding. This is causing our application to crash.

Charles, have you seen this behavior before? Would it be ok to call a Flush()
before attempting to Close()?

new change:
       finally
       {
         if (RequestContext.Response.OutputStream) {
             RequestContext.Response.OutputStream.Flush();
         }
         RequestContext.Response.OutputStream.Close();
       }


Please let us know as the app is in production. The problem is minimized since
it runs as a service and automatically is restarted.

Thanks!
/Z

#1300 From: "johnpeterjore" <john@...>
Date: Tue Jan 25, 2011 4:36 pm
Subject: VB Client - Something I've done is wrong
johnpeterjore
Send Email Send Email
 
After reading the FAQ, re-reading it, and re-reading it again a few times as
well as searching the yahoo groups, I still cant get my modifications to work (I
took the sum application as the starting point, and stripped it down to the code
below.)

Best response I get back from the server is "Bad Request", the same result I get
if i browse to it using Chrome. I'm trying to communicate with a server with
these specifications http://www.domotiga.nl/wiki/Domotiga/XML-RPC, but no matter
what I do, it fails on "ret = proxy.sysprogver()" A PHP script is working, so
the server should be up and running correctly.

Anyone know what I'm doing wrong? (I'm not a developer, so please be gentle...)


Imports CookComputing.XmlRpc

Public Structure spvValue
     Public pver As String
End Structure


<XmlRpcUrl("http://192.168.1.17:9009")> _
Public Interface spvItf
     Inherits IXmlRpcProxy
     <XmlRpcMethod("system.pid")> Function sysprogver() As spvValue
End Interface


Public Class Form1
     Private Sub Btn_Add_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Btn_Add.Click
         Dim proxy As spvItf
         proxy = CType(XmlRpcProxyGen.Create(GetType(spvItf)), spvItf)
         Dim ret As spvValue
         ret = proxy.sysprogver()
         Console.WriteLine("Result = {0}", ret.pver)
     End Sub
End Class


Snippet from the web site, http://www.domotiga.nl/wiki/Domotiga/XML-RPC:

system.pid returns process id of domotiga param: null

Example response:

<methodResponse>
<params>
<param>
<value><string>6876</string></value>
</param>
</params>
</methodResponse>


Regards,
John Jore

#1301 From: "charlescookuk" <chascook@...>
Date: Tue Jan 25, 2011 8:30 pm
Subject: Re: VB Client - Something I've done is wrong
charlescookuk
Send Email Send Email
 
Hi John: the code looks ok. By default the following XML-RPC request is sent for
a method with no parameters:

<?xml version="1.0" ?>
<methodCall>
   <methodName>system.pid</methodName>
   <params />
</methodCall>

However there is a boolean property on the proxy called UseEmptyParamsTag. If
you set this to false — the default is true — the following request is sent:

<?xml version="1.0" ?>
<methodCall>
   <methodName>system.pid</methodName>
</methodCall>

This is required for some XML-RPC server implementations.

BTW the return value should be a string.

:Charles


--- In XMLRPCNET@yahoogroups.com, "johnpeterjore" <john@...> wrote:
>
> After reading the FAQ, re-reading it, and re-reading it again a few times as
well as searching the yahoo groups, I still cant get my modifications to work (I
took the sum application as the starting point, and stripped it down to the code
below.)
>
> Best response I get back from the server is "Bad Request", the same result I
get if i browse to it using Chrome. I'm trying to communicate with a server with
these specifications http://www.domotiga.nl/wiki/Domotiga/XML-RPC, but no matter
what I do, it fails on "ret = proxy.sysprogver()" A PHP script is working, so
the server should be up and running correctly.
>
> Anyone know what I'm doing wrong? (I'm not a developer, so please be
gentle...)
>
>
> Imports CookComputing.XmlRpc
>
> Public Structure spvValue
>     Public pver As String
> End Structure
>
>
> <XmlRpcUrl("http://192.168.1.17:9009")> _
> Public Interface spvItf
>     Inherits IXmlRpcProxy
>     <XmlRpcMethod("system.pid")> Function sysprogver() As spvValue
> End Interface
>
>
> Public Class Form1
>     Private Sub Btn_Add_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Btn_Add.Click
>         Dim proxy As spvItf
>         proxy = CType(XmlRpcProxyGen.Create(GetType(spvItf)), spvItf)
>         Dim ret As spvValue
>         ret = proxy.sysprogver()
>         Console.WriteLine("Result = {0}", ret.pver)
>     End Sub
> End Class
>
>
> Snippet from the web site, http://www.domotiga.nl/wiki/Domotiga/XML-RPC:
>
> system.pid returns process id of domotiga param: null
>
> Example response:
>
> <methodResponse>
> <params>
> <param>
> <value><string>6876</string></value>
> </param>
> </params>
> </methodResponse>
>
>
> Regards,
> John Jore
>

#1302 From: "grahamsz" <graha.ms@...>
Date: Sun Jan 30, 2011 8:15 pm
Subject: Handling empty values in an response
grahamsz
Send Email Send Email
 
I have a service which I need to connect to that's giving me a lot of trouble
with the way it represents optional values.

Here are two dates that it returns.

           <member>
             <name>enabled</name>
            
<value><dateTime.iso8601>20110127T05:00:00</dateTime.iso8601></value>
           </member>

           <member>
             <name>expires</name>
             <value></value>
           </member>


The date called "enabled" is specified in this example, and the date called
"expires" is not specified.

If i try to map them both to a DateTime then it fails processing the expires
value with the exception "Object of type 'System.String' cannot be converted to
type 'System.DateTime').

I've tried using the nullable DateTime? for both objects - it gives the same
response. I've tried setting MappingAction.Ignore on the members but that
doesn't help.

The only thing I've found that works is to make them both be type object, but
that makes the client code a lot uglier.

(I also have the same problem with optional structs in the data, but this
variant is a little easier to explain)

Any suggestions on where I should look next?

thanks
Graham

#1303 From: "Scott" <scott.wheeler@...>
Date: Fri Feb 18, 2011 9:37 pm
Subject: TypeMismatch error Using XML-RPC.NET to connect to OpenERP via VB.NET
scott.wheeler
Send Email Send Email
 
Hi,

I'm making progress attaching to the OpenERP system using some of the code
samples so graciously posted. The following code is allowing me to login and get
the user ID but the subsequent call to create the partner is resulting in the
following XmlRpc TypeMisMatch error on the 'addPairFields' argument :

"fault response contains string value where integer expected [fault response :
struct mapped to type Fault : member faultCode mapped to type Int32]"

I'm new to this tool so I'm not quite sure if the error is being triggered by
something on the OpenERP side or if I'm passing an array of parameters
incorrectly.


Code:
Dim userId As Integer = 0
         Dim dbname As String = "myDB"
         Dim userName As String = "myNAME"
         Dim pwd As String = "myPWD"

         'Login to openerp
         Dim rpcClientLogin As IOpenErpLogin =
CType(XmlRpcProxyGen.Create(GetType(IOpenErpLogin)), IOpenErpLogin)
         userId = rpcClientLogin.login(dbname, userName, pwd)
         Console.WriteLine("Logged in userid {0}", userid)

         Dim rpcClient As IOpenErp =
CType(XmlRpcProxyGen.Create(GetType(IOpenErp)), IOpenErp)

         Dim addPairFields As New XmlRpcStruct()
         addPairFields.Add("title", "Monsieur")
         addPairFields.Add("name", "Fabien Pinckaers")
         addPairFields.Add("lang", "fr")
         addPairFields.Add("active", 0)

         'error occuring on this line....
         Dim resAdd As Integer = rpcClient.create(dbname, userId, pwd,
"res.partner", "create", addPairFields)

         Console.WriteLine("Added partner, record id = {0}", resAdd)



Any help greatly appreciated.

Thanks,
Scott

Messages 1274 - 1303 of 1417   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help