Jump to content

SOAP-PEAR problem please help!


victorsk

Recommended Posts

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

<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

<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.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.