Debes agregarle el   'stream_context' al SoaP, algo asi, es un ejemplo con 
otro codigo:


$opts = array( 'ssl' => array('verify_peer' => false, 'verify_peer_name' => 
false) );

if (!isset($this->soap_client)) 
{ $this->soap_client = new SoapClient($this->WSDL, array( 'soap_version' => 
$this->soap_version, 'location' => $this->URL, 'trace' => 1, 'exceptions' 
=> 0, 'stream_context' => stream_context_create($opts) ));

El lunes, 3 de mayo de 2010 a la(s) 3:07:48 p.m. UTC-3, gonmede escribió:

> Thanks Joshua for your help. I think you are headed on the right
> direction.
>
> The application is hosted on a dedicated server, and that's why I
> supposed anything had changed, but a couple of minutes ago I found out
> that if I run the script from my local computer (connecting to my
> servers mysql server in order to have the information updated on
> production) everything works fine, so I think the problem has to be on
> my server (or its network).
>
> I'll contact the administrators and post if I find the solution to
> this problem in case it is useful for someone in the future.
>
> GM
>
> On 3 mayo, 14:53, "Joshua J. Kugler" <jos...@eeinternet.com> wrote:
> > On Monday 03 May 2010, gonmede elucidated thus:
> >
> >
> >
> > > Dear all,
> > > I have a script running on my server enveryday (a cronjob). This
> > > script updates the information from adwords to my server and my
> > > clientes have access to some statistics.
> >
> > > Until April 30th the script worked fine, but since May 1st I haven't
> > > been able to execute the script. I usually takes about 6 or 7 minutes
> > > to complete the execution, but now I keep getting this error:
> >
> > > SoapFault Object
> > > (
> > >     [message:protected] => Could not connect to host
> > >     [string:private] =>
> > >     [code:protected] => 0
> > >     [file:protected] => (path to apility v200')/src/Google/Api/Ads/
> > > Common/Lib/AdsSoapClient.php
> > >     [line:protected] => 159
> > >     [trace:private] => Array (.....)
> > >     [faultstring] => Could not connect to host
> > >     [faultcode] => HTTP
> > > )
> >
> > Did anything change in your local network settings?  Did you network
> > admins change any of the firewall settings?  Any new outoing
> > restrictions?  If it connects sometimes, and not others, it sounds like
> > a local network problem.  Of course, if other people start complaining
> > about the same thing, then I suppose I'm way off base. :)
> >
> > j
> >
> > --
> > Joshua Kugler
> > Part-Time System Admin/Programmerhttp://www.eeinternet.com
> > PGP Key:http://pgp.mit.edu/ ID 0x73B13B6A
> >
> > --
> > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> > Also find us on our blog and discussion 
> group:http://adwordsapi.blogspot.comhttp://
> groups.google.com/group/adwords-api
> > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> >
> > You received this message because you are subscribed to the Google
> > Groups "AdWords API Forum" group.
> > To post to this group, send email to adwor...@googlegroups.com
> > To unsubscribe from this group, send email to
> > adwords-api...@googlegroups.com
> > For more options, visit this group athttp://
> groups.google.com/group/adwords-api?hl=en
>
> -- 
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> http://adwordsapi.blogspot.com
> http://groups.google.com/group/adwords-api
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> You received this message because you are subscribed to the Google
> Groups "AdWords API Forum" group.
> To post to this group, send email to adwor...@googlegroups.com
> To unsubscribe from this group, send email to
> adwords-api...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/adwords-api?hl=en
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b3dcd3b5-09b6-43be-bb10-3c703e94a0e2n%40googlegroups.com.

Reply via email to