You are here: nuSOAP + attributes? « PHP Programming Language « IT news, forums, messages
nuSOAP + attributes?

Posted by spoonlikesham on 11/10/05 12:07

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:email>eblack@yahoo.com</platformCore:email>
<platformCore:password>Cracker1</platformCore:password>
<platformCore:account>111111</platformCore:account>
<platformCore:role 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'=>'eblack@yahoo.com',
'password'=>'Cracker1',
'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:role internalId="14"></platformCore:role internalId="14">

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

Any suggestions?

Thanks,
Spoon

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация