[LDTP-Dev] RPC error when trying to connect to cobra-winldtp

Thomas Andrews tandrews at grok.co.za
Mon Jan 13 10:43:09 PST 2014


Hi,

I get the following error when I try to connect from a linux machine to 
a windows machine:

xmlrpclib.Fault: <Fault 0: 'Request contains too many param elements 
based on method signature.'>


On the server (windows XP machine called xp-pc) I am doing this:

     CobraWinLDTP.exe

On the client (debian linux machine) I am doing this in a bash shell:

     export LDTP_SERVER_ADDR=xp-pc
then:
     python
     >>> from ldtp import *
     >>> getapplist()


The client can connect to port 4118 on the server no problem, but the 
server appears to somehow not understand the request from the client. I 
downloaded a copy of VisualUIAVerify, and it can see the windows 
programs running no problem.

I used wireshark to capture the RPC transaction from TCP/IP and this is 
what I got:

8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------
 From the client (Linux PC):

POST /RPC2 HTTP/1.1
Host: xp-vm:4118
Accept-Encoding: gzip
User-Agent: xmlrpclib.py/1.0.1 (by www.pythonware.com)
Content-Type: text/xml
Content-Length: 155
<?xml version='1.0'?>
<methodCall>
<methodName>getapplist</methodName>
<params>
<param>
<value><struct>
</struct></value>
</param>
</params>
</methodCall>

Then response from the server (windows PC):

HTTP/1.1 200 OK
Content-Length: 485
Content-Type: text/xml
Server: Microsoft-HTTPAPI/1.0
Date: Mon, 13 Jan 2014 16:41:16 GMT
<?xml version="1.0"?>
<methodResponse>
   <fault>
     <value>
       <struct>
         <member>
           <name>faultCode</name>
           <value>
             <i4>0</i4>
           </value>
         </member>
         <member>
           <name>faultString</name>
           <value>
             <string>Request contains too many param elements based on 
method signature.</string>
           </value>
         </member>
       </struct>
     </value>
   </fault>
</methodResponse>
8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------8<----------

So it looks to me like the RPC communication is fine.
I installed Cobra-winldtp using CobraWinLDTP-4.0.0.msi from 
http://code.google.com/p/cobra-winldtp/
On linux I have LDTP version  2.3.1-1 installed (Debian).

Can anyone help, please?

Many thanks,
Thomas


More information about the LDTP-dev mailing list