473,394 Members | 1,869 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

PHP5 SOAP Attributes (Redux)

I think something is not working as stated.
According to the php.net site, the XML:

<foo bar="blah">12345</foo>

should be represented as:
array('foo' => array('_' => 12345, 'bar' => 'blah'));

or equivalently,

$something['foo'] = array('_' => 12345, 'bar' => 'blah');

If I feed this into PHP5 SOAP and then do a getLastRequest(), I get:

<ns1:foo>
<item>
<key>_</key>
<value>12345</value>
</item>
<item>
<key>bar</key>
<value>blah</key>
</item>
</ns1:foo>

Which to me says that it is treating the 'bar' as an element not an
attribute.

Is the example on the php.net site wrong? Am I confused about something?

Any help would be appreciated.
-david-

Feb 10 '06 #1
1 1748
You are using RPC/encoded instead of RPC/literal, or something like
that.

See:
http://www-128.ibm.com/developerwork.../ws-whichwsdl/

Feb 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Henrik Brautaset Aronsen | last post by:
I am having problems converting from Pear SOAP to PHP5 SOAP, especially when it comes to complex types. I would be grateful for any help on how this should be translated: ...
0
by: Tristan Tarrant | last post by:
Dear all, we're having a problem with the SOAP extension provided by PHP5. Similar calls using the SOAP component of PEAR work. Tracing the request with a network analyzer this is what PHP5...
0
by: John | last post by:
Hi there, I am rather new to SOAP, and I am trying to use it in PHP5(already have it compiled in) . I am just wondering why the __soapCall() function doesn't seem to work when I create a...
2
by: administrator | last post by:
Hello I have a problem with Soap class in PHP5. I'm trying to connect to webservice (I have links, login, password etc.) Wsdl file, which the soapclient takes from webservice address forces the...
3
by: frustratedcoder | last post by:
I need to consume a web service written in Perl but there is no wsdl file for this service. The perl soap client that can call and consume this web service looks like this (if it helps) #!perl...
0
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project, it gives me following error: Custom tool error: Unable to import...
0
by: dex | last post by:
Hi, I'm trying use a webservice with PHP5 soap extension in WSDL mode. I generated the php classes using wsdl2php. The problem is that 'auth' member of loginRequest (witch is a complex type)...
0
by: israelekpo | last post by:
phpPaypalPro version 0.2.0 Released The second version of phpPaypalPro has been released. phpPaypalPro is an object-oriented framework developed in PHP5 to integrate easily with the Website...
0
by: kim123 | last post by:
I got to write a c# client will ask a SOAP::Lite server for a list of data. In the request I have to send the following attributes: string, string, array, string, string The SOAP:Lite server is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.