nuSOAP + attributes?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • spoonlikesham@gmail.com

    nuSOAP + attributes?

    I've never used SOAP before, so am more than a little foggy on it. Just
    doing a project where it's basically the only way, and due to
    limitations on the server, I have to use nuSOAP (unless there's a
    better option that runs as a class...). Anyway, I've got it talking to
    the server happily.. Just not passing attributes. This is what I need,
    in straight SOAP XML stuff...

    <platformCore:e mail>eblack@yah oo.com</platformCore:em ail>
    <platformCore:p assword>Cracker 1</platformCore:pa ssword>
    <platformCore:a ccount>111111</platformCore:ac count>
    <platformCore:r ole internalId="3"/>

    And as far as I can see nuSOAP is called by

    $foo->call('login',$ array);

    or similar. This is working. The bit I'm having trouble with is setting
    the internalId attribute on the role.

    array(
    'email'=>'eblac k@yahoo.com',
    'password'=>'Cr acker1',
    'account'=> '111111',
    'role'=> array('name'=>' role', 'value'=>'') //need to add the
    internalId attribute
    //'role internalID="14" ' => '' // outputs XML like
    );

    Something like that. I've tried so many things, and get various errors
    back.. basically no dice though. It's talking, but rejecting me if I
    don't have an internalID or something else isnt right in the SOAP XML.

    For reference the second option above (commented out one) outputs
    something like this in XML (I assume...)

    <platformCore:r ole internalId="14" ></platformCore:ro le internalId="14" >

    And it falls over at the whitespace in the closing tag. The first
    option just achieves nothing ;).

    Any suggestions?

    Thanks,
    Spoon

Working...