Ciao a tutti, ho un'urgenza immane pena licenziamento...
Ho un problema di questo tipo, devo fare un sito in php che si collega tramite nusoap a un WebService (wsdl), ora il problema è il seguente, al wsdl mi collego e lo stesso mi restituisce un messaggio soap.
Ora devo parserizzare l'xml all'interno del messaggio per poterlo inserire in una tabella ma non so come fare, ho provato a studiare il Domxml, ecc... ma tutti quanti parserizzano da un file, io invece non ho un file ma il risultato è all'interno del php.
Vi giro la risposta soap, se potete dirmi come tirare fuori i valori dai tag siete spettacolari..
Grazie
Frenk

SOAP response

HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=55A47F4BEAD5BB02F3B063505BB6F174; Path=/
Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
SOAPAction: ""
Content-Type: text/xml;charset=utf-8
Content-Length: 82799
Date: Thu, 03 Apr 2008 14:16:19 GMT
Server: Apache-Coyote/1.1

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><OTA_HotelAvailRS xmlns="http://www.opentravel.org/OTA/2003/05" EchoToken="55A47F4BEAD5BB02F3B063505BB6F174" Target="Test" TimeStamp="2008-04-03T16:16:19"><Success/><RoomStays><RoomStay RoomStayCandidateRPH="1"><RoomTypes><RoomType Quantity="1" RoomTypeCode="3"><RoomDescription><Text>Double</Text></RoomDescription></RoomType></RoomTypes><RatePlans><RatePlan RatePlanCode="551/-1" RatePlanName="Kuoni Private"/></RatePlans><RoomRates><RoomRate AvailabilityStatus="AvailableForSale" BookingCode="2" NumberOfUnits="1" RatePlanCode="551/-1" RoomTypeCode="3"><Rates><Rate EffectiveDate="2008-08-01" ExpireDate="2008-08-06"><Base AmountAfterTax="83.00"/></Rate></Rates><RoomRateDescription Name="1"/><Features><Feature><Description Name="CB"><Text/></Description></Feature></Features><Total AmountAfterTax="415.00" CurrencyCode="EUR"/></RoomRate></RoomRates><TimeSpan End="2008-08-01+00:00" Start="2008-08-06+00:00"/><CancelPenalties><CancelPenalty><Deadline AbsoluteDeadline="2008-08-01T18:00:00"/><AmountPercent BasisType="Nights" NmbrOfNights="1"/></CancelPenalty></CancelPenalties><BasicPropertyInfo ChainCode="KU" HotelCityCode="300" HotelCode="551" HotelName="AGUMAR"><Address><CityName>Madrid</CityName></Address><Award Rating="5"/></BasicPropertyInfo></RoomStay></RoomStays><Criteria><Criterion><RoomStayCandidates >
<RoomStayCandidate BedTypeCode="1" Quantity="1" RPH="1">
<GuestCounts>
<GuestCount Count="1"/>
<GuestCount Count="1"/>
</GuestCounts>
</RoomStayCandidate>
</RoomStayCandidates></Criterion></Criteria></OTA_HotelAvailRS></SOAP-ENV:Body></SOAP-ENV:Envelope>