Consuming a soap webservice
Posted: Tue Jan 13, 2004 8:23 am
I am new to PHP. I have a php page that calls a webservice using soap, and returns a soap response, but I have no idea how to work with this.
The response is listed below. Any help greatly appreciated.
[Admin Edit: added line breaks to allow code to wrap, added code tags for clarity]
The response is listed below. Any help greatly appreciated.
[Admin Edit: added line breaks to allow code to wrap, added code tags for clarity]
Code: Select all
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Tue, 13 Jan 2004 07:46:32 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 3528
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<Get_ProfileResponse xmlns="ns.www.astromatchmaker.com">
<Get_ProfileResult>
<NewDataSet xmlns="">
<temp>
<Member_ID>1</Member_ID>
<Username>guest</Username>
<Password>123456</Password>
<City>Appleton</City>
<State_Provance>WI</State_Provance>
<Country>USA</Country>
<Email>guest@astro-matchmaker.com</Email>
<Birth_Date>19770426</Birth_Date>
<Birth_Time>11:50</Birth_Time>
<Birth_AMPM>AM</Birth_AMPM>
<Birth_City>Appleton</Birth_City>
<Birth_State_Provance>WI</Birth_State_Provance>
<Birth_Country>USA</Birth_Country>
<Seeking>MW</Seeking>
<Target_Age_Low>18</Target_Age_Low>
<Target_Age_High>99</Target_Age_High>
<Subscription_Code>NA</Subscription_Code>
<Zip_Code>54956</Zip_Code>
</temp>
<temp>
<Username>GUEST5</Username>
<Password>123456</Password>
<City>APPLETON</City>
<State_Provance>AL</State_Provance>
<Country>AFG</Country>
<Email>ASDF5@ASDF.COM</Email>
<Birth_Date>19020101</Birth_Date>
<Birth_Time>01:01</Birth_Time>
<Birth_AMPM>PM</Birth_AMPM>
<Birth_City>APPLETON</Birth_City>
<Birth_State_Provance>AL</Birth_State_Provance>
<Birth_Country>AFG</Birth_Country>
<Seeking>MW</Seeking>
<Target_Age_Low>28</Target_Age_Low>
<Target_Age_High>18</Target_Age_High>
<Subscription_Code>NA</Subscription_Code>
</temp>
<temp>
<Username>GUEST6</Username>
<Password>123456</Password>
<City>APPLETON</City>
<State_Provance>AL</State_Provance>
<Country>AFG</Country>
<Email>ASDF6@ASDF.COM</Email>
<Birth_Date>19020101</Birth_Date>
<Birth_Time>01:01</Birth_Time>
<Birth_AMPM>PM</Birth_AMPM>
<Birth_City>APPLETON</Birth_City>
<Birth_State_Provance>AL</Birth_State_Provance>
<Birth_Country>AFG</Birth_Country>
<Seeking>MW</Seeking>
<Target_Age_Low>28</Target_Age_Low>
<Target_Age_High>18</Target_Age_High>
<Subscription_Code>NA</Subscription_Code>
</temp>
<!-- snipped -->
</NewDataSet>
</Get_ProfileResult>
</Get_ProfileResponse>
</soap:Body>
</soap:Envelope>