Find Jobs
Hire Freelancers

Convert SOAP XML response into PHP Array

$10-30 USD

Completed
Posted about 3 years ago

$10-30 USD

Paid on delivery
Hi, I have to interact with a web service using PHP, XML and SOAP. I am getting a response from the web server but have limited XML and SOAP experience along with limited time. I know the solution should be relatively simple, just don't have the expertise. Web Service request is provided, just need help managing the response so I can make use of it in php. Will provide full code when project is awarded. simplified version of PHP based request is: $soapUrl = "[login to view URL]"; $xml_post_string = '<soapenv:Envelope xmlns:soapenv="[login to view URL]" xmlns:tem="[login to view URL]"> <soapenv:Header/> <soapenv:Body> <tem:DownloadLP> <tem:userName>UN</tem:userName> <tem:password>PwD</tem:password> </tem:DownloadLP> </soapenv:Body> </soapenv:Envelope> '; $headers = array( "Content-type: text/xml;charset=\"utf-8\"", "Accept: text/xml", "Cache-Control: no-cache", "Pragma: no-cache", "SOAPAction: [login to view URL]", "Content-length: ".strlen($xml_post_string), ); $url = $soapUrl; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); $response = curl_exec($ch); echo $response; A small snippet of the response is below, there are more fields but have included only a few for the example: <s:Envelope xmlns:s="[login to view URL]"> <s:Body> <DownloadLoadPlansResponse xmlns="[login to view URL]"> <DownloadLoadPlansResult xmlns:a="[login to view URL]" xmlns:i="[login to view URL]"> <a:AdditionalDetails i:nil="true"/> <a:IsSuccessful>true</a:IsSuccessful> <a:DataList> <a:DataObject> <a:Data> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;LXML messages="1" batchseq="80" created="2021.May.11 AD 10:50 AM"&gt; &lt;ShipperLoadPlan CreateDate="05/11/2021 10:48:33.075" ExecutionEvent="Accepted Load Modified" ExecutionEventID="AM"&gt;&lt;LoadNumber&gt;54310410&lt;/LoadNumber&gt;&lt;lLoadID&gt;54310410&lt;/lLoadID&gt;&lt;/ShipperLoadPlan&gt;&lt;/LXML&gt; </a:Data> <a:ID>3302</a:ID> </a:DataObject> <a:DataObject> <a:Data> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;LXML messages="1" batchseq="81" created="2021.May.11 AD 10:50 AM"&gt; &lt;ShipperLoadPlan CreateDate="05/12/2021 10:48:33.075" ExecutionEvent="Accepted Load Modified" ExecutionEventID="AM"&gt;&lt;LoadNumber&gt;54310411&lt;/LoadNumber&gt;&lt;lLoadID&gt;54310411&lt;/lLoadID&gt;&lt;/ShipperLoadPlan&gt;&lt;/LXML&gt; </a:Data> <a:ID>3302</a:ID> </a:DataObject> <a:DataObject> <a:Data> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;LXML messages="1" batchseq="82" created="2021.May.11 AD 10:50 AM"&gt; &lt;ShipperLoadPlan CreateDate="05/13/2021 10:48:33.075" ExecutionEvent="Accepted Load Modified" ExecutionEventID="AM"&gt;&lt;LoadNumber&gt;54310412&lt;/LoadNumber&gt;&lt;lLoadID&gt;54310412&lt;/lLoadID&gt;&lt;/ShipperLoadPlan&gt;&lt;/LXML&gt; </a:Data> <a:ID>3302</a:ID> </a:DataObject> </a:DataList> </DownloadLoadPlansResult> </DownloadLoadPlansResponse> </s:Body> </s:Envelope>
Project ID: 30197324

About the project

3 proposals
Remote project
Active 3 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi, I hope you are fine. I am a software engineer. And I have 5+ years of experience with Web and Mobile App development. Complete a lot of jobs on Freelancer with highly satisfied clients. I've gone through your project requirements And will be glad to assist you with that on top priority basis. Timely delivery and quality of work is my passion. If you want to work with me then feel free to contact me. You can see my different portfolios in below links: [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL]
$20 USD in 1 day
5.0 (4 reviews)
2.0
2.0

About the client

Flag of SOUTH AFRICA
Thornville, South Africa
5.0
3
Payment method verified
Member since Jul 22, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.