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>


Messages In This Thread
Can I use XML-RPC class for this? - by El Forum - 09-17-2007, 02:51 AM
Can I use XML-RPC class for this? - by El Forum - 09-18-2007, 07:15 AM
Can I use XML-RPC class for this? - by El Forum - 09-18-2007, 07:45 AM
Can I use XML-RPC class for this? - by El Forum - 09-18-2007, 07:49 AM
Can I use XML-RPC class for this? - by El Forum - 09-18-2007, 09:38 AM
Can I use XML-RPC class for this? - by El Forum - 09-18-2007, 03:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB