RE: [SOAP] SoapClient Help

[email protected] ("Thom Simmons")
Newsgroups php.soap
Message-ID <[email protected]>
I think I figured out what I need to do based upon your response, Adam.
I have a better understanding of the SoapVar function from seeing how
you set the xsi:type to KeywordReportJob.  Google, with v11, has changed
the entire process and I was thinking too narrow-mindedly.  Thanks a
lot!

On a side note, I am still interested on some more detailed info on best
practices for using SoapVar v. SoapParam and Native Soap in general.  I
will probably be writing some detailed documentation and complex
examples myself [once I get a solid foundation in Native PHP/SOAP] for
public consumption.  If anyone has any info they'd like to contribute to
my docs/examples, that'd be awesome.  I've got a (dv) server from
MediaTemple.net that I am going to setup a site for SOAP and Web
Services examples, tutorials, etc.  It will be covering PHP and Python
initially.

Again, thanks for the help and, should I only send replies to the
mailing list?


Thom Simmons
Web Developer and Systems Administrator
Spur Digital | Online Marketing Solutions
24 Greenway Plaza, Suite 1000
Houston, Texas 77046
713-586-6468
[email protected]

-----Original Message-----
From: Adam Maccabee Trachtenberg [mailto:[email protected]] 
Sent: Tuesday, December 11, 2007 4:20 PM
To: Thom Simmons
Cc: [email protected]
Subject: Re: [SOAP] SoapClient Help

On Mon, 10 Dec 2007, Thom Simmons wrote:

> I am trying to write a SoapClient to access Google Adwords v11 
> Reporting Service.

[snip]

> I need to know how I would go about creating the Job object with 
> SoapVar or if I should define a class and pass it as my params for the
client.
> I don't know exactly how all this works as I am still very new to the 
> native SOAP extension for PHP but I really need to learn it properly.
>
> Are there any better documentation or tutorials for the native SOAP 
> extension that use more complicated SOAP Envelopes?

Here is some sample code I wrote a *long* time ago (January, 2005) for
v2 of the service:

Code: http://www.trachtenberg.com/google-report.phps

My old blog post on the topic:
http://www.trachtenberg.com/blog/2005/01/29/using-the-google-adwords-api
-with-extsoap/

Note: I never used this in any meaningful way, it was just an experiment
to see what ext/soap code for the service would look like. It used to
work. I have no idea if it still works, and what changes you'd need to
make.

-adam

--
[email protected] | http://www.trachtenberg.com author of o'reilly's
"upgrading to php 5" and "php cookbook"
avoid the holiday rush, buy your copies today!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.