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

  • SEARCH
  • Home
  • 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 6904489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:04:03+00:00 2026-05-27T08:04:03+00:00

One of our vendors sends us response codes after submitting information to their database.

  • 0

One of our vendors sends us response codes after submitting information to their database.

They send the response codes in xml format to a URL we specified (http://www.wecaref.com/retrieve_codes.php)

We have a sample of the xml structure but how do we get the values as they will be changing based on the outcome of the transactions?
xml structure is:-

<Message date="30/04/2010 17:21:26">
<Version>1.0</Version>
<OrderID>2010043017155067</OrderID>
<TransactionType>Purchase</TransactionType>
<PAN>4278XXXX4626</PAN>
</Message>

Kindly note that the values will be dynamic based on outcome of the transactions.

We have tried using SimpleXML but can only get this done with known values and passed as string.
We have tried the following but did not output any data.

//Get XML mesaage response
$xml_feed_url = 'http://www.wecaref/retrieve_codes.php';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $xml_feed_url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$xml = curl_exec($ch);
curl_close($ch);

$Message = new SimpleXMLElement($xml);
$orderid =  $Message->Message->OrderID;

echo "orderid is ".$orderid;

//End get XML Response

Please help.

  • 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-27T08:04:04+00:00Added an answer on May 27, 2026 at 8:04 am
    $orderid =  $Message->OrderID;
    

    A simple debug technique like var_dump will show you the above.

    docs :- http://www.php.net/manual/en/function.simplexml-load-string.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

One of our vendors provides a web service API to allow their customers to
I'm trying to test a proposition that one of our vendors presented to us
One of our providers are sometimes sending XML feeds that are tagged as UTF-8
I'm developing an API for use by one of our vendors to access data
I received a dbf file from one of our vendors. I need to export
Our company has a web service which I want to send XML files (stored
As part of one our system's we enable a user in the backoffice to
I just spent half an one our to find out what caused the Error-Message
One of our weblogic 8.1s has suddenly started logging giant amounts of logs and
One of our developers is continually writing code and putting it into version control

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.