Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 426319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:28:03+00:00 2026-05-12T19:28:03+00:00

I have a SOAP result set that the nuSoap extension has turned into a

  • 0

I have a SOAP result set that the nuSoap extension has turned into a nice array for me. I’m sure I could scratch out some long way of looping it for what I want – but it seems there must be a faster way to just loop through the specific data elements. Here is the array:

Array
(
    [xxxResult] => Array
    (
        [NewDataSet] => Array
        (
            [Table] => Array
            (
                [0] => Array
                (
                    [ID] => 472
                    [Name] => abc
                    [Weight] => 0.15
                    [AppID] => 5133356895445
                )

                [1] => Array
                (
                    [ID] => 7396
                    [Name] => def
                    [Weight] => 0.11
                    [AppID] => 51348575554
                )

            )

        )

    )

)

So what I want to do is simply loop through this such that I get:

<tr>
    <td>[ID]</td>
    <td>[Name]</td>
    <td>[Weight]</td>
    <td>[AppID]</td>
</tr>

…for each table row.

Seems there should be a quicker way than [xxxResult][NewDataSet][Table][0][ID] etc.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T19:28:04+00:00Added an answer on May 12, 2026 at 7:28 pm

    Like this?

    <?php
    
    $tables = $soapResult['xxxResult']['NewDataSet']['Table'];
    
    foreach ($tables as $table) {
    
    ?>
        <tr>
            <td><?php echo $table['ID']; ?></td>
            <td><?php echo $table['Name']; ?></td>
            <td><?php echo $table['Weight']; ?></td>
            <td><?php echo $table['AppID']; ?></td>
        </tr>
    <?php
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have a PHP Soap service that is running nusoap and I am
I have the following XML: <Result ID=1,New xmlns=http://schemas.microsoft.com/sharepoint/soap/> <ErrorCode>0x00000000</ErrorCode> <ID /> <z:row ows_ID=6 />
I Have an internal SOAP Web service that is being called from an external
I need to integrate an external SOAP Service into my system. I have only
I have an SOAP response that looks similar to this: <?xml version=1.0 encoding=UTF-8?> <soapenv:Envelope
I have an erlang project that makes a lot of concurrent SOAP requests to
So I have a simple webservice that has an input of a userid and
I have a WCF service set up to serve data through multiple endpoints (SOAP,
actually I have a service for search an employee.. that service gives me result
I have a temporary file with data that's returned as part of a SOAP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.