NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
help please:


Joined: 05 Jun 2006
Posts: 3
Reply with quote
I'm trying access a web service, but I'm havubg trouble formulating the array for the inputs:

this is what the .asmx looks like:

<?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:Header>
<OGHeader transactionID="trn" timeStamp="2005-03-09T09:55:16.3618750-05:00" xmlns="http://webservices.micros.com">
<Origin eID="ID" systemType="TYPE"/>
<Destination eID="ID" systemType="TP"/>
</OGHeader>
</soap:Header>
<soap:Body>
<AvailabilityRequest xmlns:a="http://webservices.micros.com/Availability/" xmlns:hc="http://webservices.micros.com/HotelCommon/" sumOnly="f" xmlns="http://webservices.micros.com/ows/5.1/Available.wsdl">
<a:AvailRequestSegment aReqType="Rm" nOfRooms="1" rOccupancy="2" totalAdults="1" totalChildren="0">
<a:StayRange>
<hc:Start>2006-08-03</hc:StartDate>
<hc:End>2006-08-05</hc:EndDate>
</a:StayRange>
<a:RateCandidates>
<a:RateCandidate rateCode="WB"/>
</a:RateCandidates>
<a:RoomCandidates>
<a:RoomCandidate TypeCode="B20"/>
</a:RoomCandidates>
<a:HotelSearchCriteria>
<a:Criterion>
<a:HotelRef chainCode="CH" hotelCode="MNIB"/>
</a:Criterion>
</a:HotelSearchCriteria>
</a:AvailRequestSegment>
</AvailabilityRequest>
</soap:Body>
</soap:Envelope>

the xml is correct because I can dump the output from new soapclientw()

but i get a ['GDSError'] = 'System error' being returned

I think that it's because I am formulating the input incorrectly

Please help with an example parameter array: It seems like it might be a complex nested set of arrays

WL
View user's profileFind all posts by waynsleySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7881
Reply with quote
Do you use nusoap at all? If yes, please submit a code to replicate the problem.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
php nusoap code


Joined: 05 Jun 2006
Posts: 3
Reply with quote
$params= array(

"hotelCode"=>'MBIB',
'aReqType'=>'Rm',
"sumOnly"=>f,
'rateCode'=>"WEB",
'typeCode' =>'B20',
'StartDate'=>"2006-08-03",
'EndDate'=> "2006-08-05",
'roomTypeCode'=>"T21",
'chainCode => "CH",
'nOfRooms => 1,
'rOccupance => 2,
'totalAdults=>"1",
'totalChildren'=>0,
'rateCode'=>"WB",

);
View user's profileFind all posts by waynsleySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7881
Reply with quote
Heh, not much details, yet.
If you want somebody to help you, don't hesitate to provide as much details as would be sufficient for the others to undertand the problem.
Silly me, but I don't have an idea what is wrong with your code that I don't see.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
help please:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic