Hi,
I am new to using xml-rpc and I'm to run a call to a server running XML-RPC, but I seem to be getting the following error:
The server committed a protocol violation. Section=ResponseStatusLine
I have access to the server, but I am not able to change the app.config to
I am able to see that the request is being received by the server, but I am not able to get the proper response back from the server to my application.HTML Code:<httpWebRequest useUnsafeHeaderParsing="true" />
I am sending this:
The following is the response structure that should be returned:HTML Code:<?xml version="1.0" encoding="UTF-8"?> <methodCall> <methodName>ExecuteWorkflow</methodName> <params> <param> <value> <string>GetDeviceList</string> </value> </param> </params> </methodCall>
This is the code that I am running:HTML Code:<?xml version="1.0" encoding="UTF-8"?> <methodResponse> <params> <param> <value> <struct> <member> <name>id</name> <value> <i4>123</i4> </value> </member> <member> <name>payload</name> <value> <nil/> </value> </member> </struct> </value> </param> </params> </methodResponse>
Can anyone give any advice?Code:Public Interface ExecuteWorkflow Inherits IXmlRpcProxy <XmlRpcMethod("ExecuteWorkflow")> _ Function DoWorkflow(ByVal Workflow As String) End Interface Public Sub test() Dim appServer As ExecuteWorkflow = CType(XmlRpcProxyGen.Create(GetType(ExecuteWorkflow)), ExecuteWorkflow) appServer.Url = URL appServer.KeepAlive = False appServer.Expect100Continue = True appServer.ProtocolVersion = System.Net.HttpVersion.Version10 appServer.XmlEncoding = System.Text.Encoding.UTF8 MessageBox.Show(appServer.DoWorkflow("GetDeviceList")) End Sub




Reply With Quote
