Welcome Guest, Not a member yet? Register   Sign In
Can I use XML-RPC class for this?
#1

[eluser]pickledegg2[/eluser]
I am looking at interfacing to a web service at a Telecoms supplier, and as I'm new to web services, I'm wondering whether I can use the XMLRPC CI class. I enclose an extract from the API word document that I have.

Can I create a request like the one below using the XMLRPC class? I imagine it would be a series of 'structs', and it would be good to be able to see the actual XML output of the class. I know there are various topics regarding this, but I have yet only managed to print out the array structure, not the raw XML data. (I can live without seeing the XML data though if I know its going to work.)

Many thanks.

Heres the example:

(New service without porting a number & using their existing phone)
This example is for a request for a new line of service in Portland, OR. The request indicates that the customer is using their own phone providing the ESN, Manufacturer, and Model. Both the manufacturer and model are populated by numerical ids using the W.O.P.S. Mirrored Structure.
Code:
<?xml version="1.0" encoding="utf-8" ?>
<ProvisionRequest  xmlns="http://tempuri.org/ProvisionRequest.xsd">
    <Credentials>
        <Token>100000</Token>
        <TokenKey>testpass</TokenKey>
    </Credentials>
    <NewService>
        <Location>
            <State>OR</State>
            <City>3673</City>
        </Location>
        <Service>
            <Plan>4</Plan>
            <Options>
                <Option>1</Option>
                <Option>9</Option>
            </Options>
        </Service>
        <Equipment>
            <Existing>
                <ESN>12345678911</ESN>
                <Manufacturer>12</Manufacturer>
                <Model>33</Model>
            </Existing>
        </Equipment>
    </NewService>    
        
</ProvisionRequest>
#2

[eluser]pickledegg2[/eluser]
Hmm, I'm looking at curl instead, there doesn't seem to be much community activity regarding XML-RPC

Undecided
#3

[eluser]dmorin[/eluser]
You need to find out what format the web service at the telcom is expecting. Most will use either SOAP or JSON for communications. It's more then likely that you will not be able to use the XML-RPC class.
#4

[eluser]Michael Wales[/eluser]
I doubt you will be able to use XML-RPC.

XML-RPC requires a server prepared to listen for the request. For example, a blog. You would develop an XML-RPC server capability within the controller that manages all of your posts. This way, when someone links to your blog (and they have trackbacks enabled), their blog will ping your XML-RPC server, and you can then do some stuff with that information (like list all of the blogs that have linked to this particular post).
#5

[eluser]pickledegg2[/eluser]
aah ok thanks a lot guys. I suspected after reading into it that XML-RPC is a sort of standard for accessing functions, and is not as flexible as I immediately thought. Suppose the best way to do it is to just ask them outright! but thanks to you guys at least I can focus my questions better.
#6

[eluser]esra[/eluser]
There are threads about Soap library integration.

http://ellislab.com/forums/viewthread/59710/

http://ellislab.com/forums/viewthread/55277/

http://ellislab.com/forums/viewthread/58935/




Theme © iAndrew 2016 - Forum software by © MyBB