Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi everyone,
I'm having problem with the return value of a web service. This web service has been written in Java and uses XFire to handle SAOP. To validate the return of the query, we've written an application in Java wich works perfectly, and a PHP script, but this one is not working properly.
Here's the return value of the web service:
[syntax="xml"]
<?xml version='1.0' encoding='UTF-8'?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<searchResponse xmlns="http://localhost:8080/WebApp/services/flights">
<out xmlns="">
<ns1:SearchObject xmlns:ns1="http://search.ws.synopsis.com">
<attributes xmlns="http://search.ws.synopsis.com">
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_0</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_1</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_2</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_3</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_4</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_5</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_6</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_7</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_8</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_9</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_10</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_11</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_12</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_13</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_14</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_15</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_16</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_17</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_18</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_19</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_20</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_21</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_22</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_23</ns2:string>
<ns2:string xmlns:ns2="http://localhost:8080/WebApp/services/flights">Passenger_24</ns2:string>
</attributes>
<name xmlns="http://search.ws.synopsis.com">FLIGHT_0</name>
</ns1:SearchObject>
[...]
</out>
</searchResponse>
</soap:Body>
</soap:Envelope>
Code: Select all
stdClass Object ( [SearchObject] => Array (
[0] => stdClass Object ( [name] => FLIGHT_0 )
[...] ) )Code: Select all
stdClass Object ( [SearchObject] => Array (
[0] => stdClass Object (
[name] => FLIGHT_0
[attributes] => array([...]))
[...] ) )feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]