SOAP-PEAR problem please help!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
victorsk
Forum Commoner
Posts: 43
Joined: Thu Apr 19, 2007 6:55 pm

SOAP-PEAR problem please help!

Post by victorsk »

Hi everybody,

I am working with SOAP-PEAR and run on a nasty problem I don't know answer to. First I explain what I know how to do. I am trying to construct a soap request and I know how to do this if XML has this structure:

Case 1

Code: Select all

<parent>
    <child1>string</child1>
    <child2>string</child2>
    <child3>string</child3>
</parent>
In this case, I construct an Array("root" => new Soap_Value("child1", "string", "value"))....

Now my problem is that I don't know how to create an array() or some other data if XML structure is like this:

Case 2

Code: Select all

<parent child1="value1" child2="value2" child3="value3" />
Could somebody please tell me how I can construct a SOAP request with SOAP-PEAR for that structure in Case 2? I just can't find a way to formulate it using arrays or some other data type :-\

Your help will greatly be appreciated.

Thank you,
Victor.
victorsk
Forum Commoner
Posts: 43
Joined: Thu Apr 19, 2007 6:55 pm

[SOLVED] Re: SOAP-PEAR problem please help!

Post by victorsk »

Did some research and it should be XML_Serializer()
Amanda1998
Forum Newbie
Posts: 23
Joined: Tue Dec 13, 2011 10:25 am

Re: SOAP-PEAR problem please help!

Post by Amanda1998 »

I see that.. good that you have it... :drunk:
http://www.phpfreaks.com/forums/index.p ... c=350260.0
Post Reply