Welcome Guest, Not a member yet? Register   Sign In
XML-RPC with CI - Advice
#1

[eluser]nevsie[/eluser]
As a pre warning! I am relatively new to CI although learning quick... And basic knowledge of XML-RPC, although to be honest i thought it wouldn;t be comlpicated due to the nature of how it works... Anyway...

First off...
Is there a way to view the request you have created before it is sent to the XML_RPC server? This would allow me to see what i was doing with the processed request and probably understand things better, yet i cannot see a logical way to view the posted request?

Secondly... And more specifically...
i know the server address and want to pass:
Code:
&lt;?xml version="1.0" encoding="utf-8" ?&gt;<StartConn><ApNa>DummyNameText</ApNa></StartConn>

So logically the methodname is "startConn" and the request would be an array with string "<ApNa>DummyNameText</ApNa>" or am i really way off the mark?



Really any help here would be appreciated. And please treat me like an idiot when it comes to this! N
#2

[eluser]gtech[/eluser]
download a copy of wireshark, it allows you to sniff packets across the network and is quite easy to use. you will see the xml being sent from the client to the server.

if you want an understanding of how xmlrpc is built up take a look at the spec:

[url="http://www.xmlrpc.com/spec"]XML RPC SPEC[/url]

hope this helps.
#3

[eluser]nevsie[/eluser]
Hi and thanks for your reply... i will certainly have a look at wireshark in the morning...

I have looked through the spec on numerous occasions and completely understand the logic of its construction. However, it is how i implement this within CI and in relation to the API i am connecting to... I believe the API is not what you would call standards based! I will play with wireshark in the morning and come back with requests if i get too lost!
Thanks, N




Theme © iAndrew 2016 - Forum software by © MyBB