hi,
I am using UniserverZ, laravel framework with mysqldatabase.
i am doing travel project using domestic and International api. i use controller// flightcontroller.php
i.e
for domestic airline i use function as - public function getFlightAvailability()
-
{
-
$rules = array(
-
'sectorFrom' => 'required',
-
'sectorTo' => 'required',
-
'trip_type' => 'required',
-
'flight_date' => 'required',
-
'nationality' => 'required'
-
);
-
-
$sectorFrom = Input::get('sectorFrom');
-
$sectorTo = Input::get('sectorTo');
-
$flight_date = Input::get('flight_date');
-
$trip_type = Input::get('trip_type');
-
$adults = Input::get('adults');
-
$children = Input::get('children');
-
-
// Create a new validator instance from our validation rules
-
$validator = Validator::make(Input::all(), $rules);
-
-
// If validation fails, we'll exit the operation now.
-
if ($validator->fails())
-
{
-
// Ooops.. something went wrong
-
return Redirect::back()->withInput()->withErrors($validator);
-
}
-
-
ini_set('soap.wsdl_cache_enabled',0);
-
ini_set('soap.wsdl_cache_ttl',0);
-
-
// Userid : BLKEYE PASSWORD : PASSWORD AGENCYID :PLZ004
-
-
// Userid : BLKEYE PASSWORD : BLEUS92219 AGENCYID :PLZ003
-
-
//Test http://116.66.198.19:800/usBookingService/UnitedSolutions?wsdl
-
-
//live http://116.90.239.74/us/UnitedSolutions?wsdl
-
-
$united_solutions = ServiceProviderSetting::find(2);
-
-
if(!empty($united_solutions->search) and $united_solutions->search == 1 )
-
{
-
try
-
{
-
$client = @new SoapClient("http://116.66.198.19:800/usBookingService/UnitedSolutions?wsdl", array(
-
"trace"=>1,
-
"location" =>"http://116.66.198.19:800/usBookingService/UnitedSolutions",
-
"uri" =>"http://booking.us.org/"));
-
-
$addRequest = new stdClass();
-
$addRequest->strUserId = "BLKEYE";
-
$addRequest->strPassword = "PASSWORD";
-
$addRequest->strAgencyId = "PLZ004";
-
$addRequest->strSectorFrom = $sectorFrom;
-
$addRequest->strSectorTo = $sectorTo;
-
$addRequest->strFlightDate = $flight_date;
-
$addRequest->strTripType = $trip_type;
-
$addRequest->strReturnDate = Input::get('return_date');
-
$addRequest->strNationality = Input::get('nationality');
-
$addRequest->intAdult = Input::get('adults');
-
$addRequest->intChild = Input::get('children');
-
-
-
$raw_flightavailability = $client->FlightAvailability($addRequest);
-
-
-
$flightavailability = new SimpleXMLElement($raw_flightavailability->return);
-
}
-
catch(SoapFault $exception)
-
{
-
$error = "Oops, we have some issue :<br/> Service temporarily unavailable. Please check back later.";
-
//$error = ($exception->getMessage());
-
-
return View::make("frontend.flightavail", compact('error'));
-
}
-
}
-
-
else
-
{
-
-
$error = "Domestic Search Unavailable at the moment.";
-
-
return View::make("frontend.flightavail", compact('error'));
-
}
-
-
-
return var_dump($raw_flightavailability);
-
-
$test = Input::get('backend');
-
-
if(!empty($test)) {
-
$slug = 'backend.flight_search';
-
}
-
else {
-
$slug = 'frontend';
-
}
-
-
// Redirect to the new blog post page
-
return View::make($slug.'.flightavail', compact('flightavailability','sectorFrom', 'sectorTo', 'flight_date', 'trip_type', 'adults', 'children'));
-
}
/**************************************************/
it send only message as
object(stdclass()432)....Invalid Credentials or Invalid Request Format in unsing api.
plz any boldy can help to solve
0 1136 Sign in to post your reply or Sign up for a free account.
Similar topics
by: Stephen Chell |
last post by:
Hi all,
I'm having problems importing an XML Signature element into a SOAP
envelope. I can create the signature without problem, but when I
import the signature element into the SOAP header,...
|
by: Michiel |
last post by:
Hello,
I am not sure this is the right place to ask. I tried the ZSI mailing
list, but got no response there.
My goal is to write some web services with ZSI to be used by a client
written in...
|
by: Eirik Brattbakk |
last post by:
Hi
I have some problems accessing a soap service made in c# using an
ATL/MFC client over SSL. I have tried both CSoapMSXMLInetClient and
CSoapWininetClient as template arguments with my stub...
|
by: Jonathan |
last post by:
Hi there, I am using a LOTUS/DOMINO Web Service in my ASP.Net
application and I am having quite a lot of problems. I have managed to
solve most of them but this one it really is giving me terrible...
|
by: Moshe Kravchik |
last post by:
Hi!
I have a following problem. I have a web service (written in ATL Server). It
has 2 function, lets name them getData and setData.
The getData returns a byte array, setData receives a byte...
|
by: Jonathan [sbrodolo] |
last post by:
Hi there, I am using a LOTUS/DOMINO Web Service in my ASP.Net application and
I am having quite a lot of problems. I have managed to solve most of them but
this one it really is giving me terrible...
|
by: ben |
last post by:
OK so there are a few things going on. I succesfully created a SOAP
webreference in VS IDE which when built works fine under small amounts
of load, however under heavy amounts of load we start to...
|
by: Jaroslaw Zabiello |
last post by:
I try to connect to web services (written in C#/.NET) with latest ZSI
2.0rc3 library. It just does not work.
from ZSI.ServiceProxy import ServiceProxy
wsdl =...
|
by: furrypop |
last post by:
Hi,
I'm trying to get the Perl SOAP::Lite examples to work on a Windows PC, running Apache 2.2.4.
Apache is definitely serving CGI scripts, as I've tested a dummy Hello World thing. I'm also...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |