Monday, April 2, 2012

SoapClient Error in Cake1.2 . Do I need to enable anything in Cake1.2 ?

Hi Everyone;

Background:
Actually I'm calling soap-services provided at
https://pilot.prove-uru.co.uk:8443/URUWS/URU10a.asmx?WSDL.Here, I have
written the code in normal php (non cake) and that is working. However
the same code is not working in Cake 1.2.
Technically, I've created a component and put the same code into it
and I'm calling it from within controller. And it is not working and
getting below error.

Error:
SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://pilot.prove-
uru.co.uk:8443/URUWS/URU10a.asmx?WSDL' : failed to load external
entity "https://pilot.prove-uru.co.uk:8443/URUWS/URU10a.asmx?WSDL"

My Question: Do I need to enable anything in Cake1.2 ?

Controller Code:
$Option = array('login'=>xabcx,'password'=>xxxxxx,'trace'=>true);

try {
$SpClient = @new SoapClient('https://pilot.prove-uru.co.uk:8443/
URUWS/URU10a.asmx?WSDL
',$Option); //This is the Error
Line...............

if($SpClient) {
$Address = $SpClient ->AddressLookupUK(array('address' =>
$QueryAddress,'AccountName' => $this->AccName,'Password' => $this-
>PassWd));
$Address = (array) $Address->AddressLookupUKResult-
>URUAddressFixed;
foreach( $Address as $Add) {
$AllAddress[] = (array) $Add;
}
return $AllAddress;
}
}
catch(Exception $e)
{
print_r($e->getMessage());
}

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: