How to neglect the extra data form xml document
Posted: Sat Oct 28, 2006 5:19 am
Finally I been able to send request and get response from web service problem was with the soap file that i was using. It was not correct one and created problems.
I send request to web service and in response it sends me some result like this:
I don't have problem in parsing xml but at the start you will see some extra data its creating problems. I don't know how to overcome this issue. 2nd for response i don't have to go to some page instead when i call following php code i get response. Can i parse data directly form the variable or i need to put it into a file.
If its not possible this way then can i fetch data form array at http://208.109.22.111/ticketchest/nutest.php
I send request to web service and in response it sends me some result like this:
I don't have problem in parsing xml but at the start you will see some extra data its creating problems. I don't know how to overcome this issue. 2nd for response i don't have to go to some page instead when i call following php code i get response. Can i parse data directly form the variable or i need to put it into a file.
If its not possible this way then can i fetch data form array at http://208.109.22.111/ticketchest/nutest.php
Code: Select all
$result = $soapclient->call('GetVenueList',$param,$namespace,$soapAction);
$data = $soapclient->response;Code: Select all
ResponseCode: 200 (OK)
Date:Thu, 29 Sep 2005 14:47:21 GMT
Server:Microsoft-IIS/6.0
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:3252
<?xml version="1.0" encoding="utf-16"?>
<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>
<SearchProductionsResponse xmlns="http://www.eventinventory.com/webservices/">
<SearchProductionsResult>
<ROOT xmlns="">
<METHODINFO>
<channelName>TicketSearch</channelName>
<methodName>SearchProductions</methodName>
<parameters>?APPCLIENT_ID= b594ba1ff1bc4ef19a52b1d7e8775434&EventID= 162&VenueID=&MarketAreaID=&PostalCode=&StartDate=&NumberOfDays=</parameters>
<processTime type="milliseconds">3847.5063</processTime>
</METHODINFO>
<DATA xmlns:sql="urn:schemas-microsoft-com:xml-sql">
<row ProductionID="238349" EventID="358" EventDate="2005-09-30T19:05:00" VenueID="515" OpponentID="162" EventName="Houston Astros" VenueName="Minute Maid Park" OpponentName="Chicago Cubs" HomeAway="away" />
<row ProductionID="238350" EventID="358" EventDate="2005-10-01T18:05:00" VenueID="515" OpponentID="162" EventName="Houston Astros" VenueName="Minute Maid Park" OpponentName="Chicago Cubs" HomeAway="away" />
<row ProductionID="238351" EventID="358" EventDate="2005-10-02T13:05:00" VenueID="515" OpponentID="162" EventName="Houston Astros" VenueName="Minute Maid Park" OpponentName="Chicago Cubs" HomeAway="away" />
</DATA>
</ROOT>
</SearchProductionsResult>
</SearchProductionsResponse>
</soap:Body>
</soap:Envelope>