for THTTPRIO
on DoBeforeExecute
I changed Request manually

--- Nick <[EMAIL PROTECTED]> wrote:

> Hey there,
> 
> Thanks for that! :-)
> I compared the different between the D2007 and D2006
> and I can see the 
> D2007 is better, some calls  much simpler. ie
> D2007 ->     function  getUsageQuotaThisMonth:
> Int64; stdcall;
> D2006 ->     function  getUsageQuotaThisMonth(const
> parameters: 
> getUsageQuotaThisMonth):
> getUsageQuotaThisMonthResponse; stdcall;
> I got the D2006 one working, but would of been
> simplir if I had 2007 lol.
> 
> I got my other pas files working except when the
> parameter is an array, 
> I also just tried with the D2007 and also get an
> error when the 
> parameter is an array.
> Here is an example.
> 
> var
> param : Array_Of_KeywordRequest;  { decleared as  
> Array_Of_KeywordRequest = array of KeywordRequest; }
> begin
>   Setlength(param, 1);
>   param[0] := KeywordRequest.Create;
>   param[0].id := 0;
>   param[0].maxCpc := 5;
>   param[0].negative := false;
>   param[0].text := 'ipod';
>   param[0].type_ := Broad;
> res :=  ( Intf as TrafficEstimatorInterface
> ).estimateKeywordList(param);
> 
> it complies fine but when it runs it gets a soap
> error. Any call that 
> doesn't use an array as a param runs fine.
> 
> O.o
> 
> Jeremy North wrote:
> > Hi Nick,
> >
> > Here are two from D2007. Don't know if they are
> correct.
> >
> > Let me know if they are still wrong and I'll bug
> the right guy at
> > CodeGear about this.
> >
> > cheers,
> > Jeremy
> >
> > On 4/26/07, Nick <[EMAIL PROTECTED]> wrote:
> >> Right, I am trying to get an app written which in
> Delphi 2006 to do 
> >> with the
> >> Google Adwords API.
> >> The old method I did was
> >> Program sends data to my web server --> Web
> server handles all the 
> >> soap to
> >> Google --> Info is sent back to my program
> >> All done with indy.
> >>
> >> However I want to get away from that method and
> talk soap right to 
> >> Google.
> >> So, I fired up Delphi, created a new application.
> >> Then Imported one of the WSDL's from Google
> >> ( With project open (must be open), File, New,
> Other, Webservices, WSDL
> >> importer)
> >> And now I have my pas file.
> >> I put that in the uses section of my first form
> (at the top before the
> >> types)
> >>
> >> Now... what the heck do I do with it. I have
> spent the best part of 4 
> >> hours
> >> trying to figure this out and im getting
> no-where.
> >> Here is the WSDL location (of one of them)
> >>
>
https://adwords.google.com/api/adwords/v10/TrafficEstimatorService?wsdl
> >>
> >> I have also attached the generated pas file.
> >> O.o
> >>
> >> My brain hurts, and all I have got is  With
> >> GetInfoInterface(true,'',HTTPRIO1) do
> >> lol
> >>
> >> Cheers
> >>
> >> //
> >>
>
************************************************************************
> >> //
> >> // The types declared in this file were generated
> from data read from 
> >> the
> >> // WSDL File described below:
> >> // WSDL     :
> >>
>
https://adwords.google.com/api/adwords/v10/InfoService?wsdl
> >> // Encoding : UTF-8
> >> // Version  : 1.0
> >> // (24/04/2007 11:04:16 a.m. - 16.03.2006)
> >> //
> >>
>
************************************************************************
> >> //
> >>
> >> unit InfoService;
> >>
> >> interface
> >>
> >> uses InvokeRegistry, SOAPHTTPClient, Types,
> XSBuiltIns;
> >>
> >> type
> >>
> >>  //
> >>
>
************************************************************************
> >> //
> >>  // The following types, referred to in the WSDL
> document are not being
> >> represented
> >>  // in this file. They are either [EMAIL PROTECTED] of
> other types 
> >> represented or
> >> were referred
> >>  // to but never[!] declared in the document. The
> types from the latter
> >> category
> >>  // typically map to predefined/known XML or
> Borland types; however, 
> >> they
> >> could also
> >>  // indicate incorrect WSDL documents that failed
> to declare or import a
> >> schema type.
> >>  //
> >>
>
************************************************************************
> >> //
> >>  // !:string          -
> "http://www.w3.org/2001/XMLSchema";
> >>  // !:long            -
> "http://www.w3.org/2001/XMLSchema";
> >>  // !:int             -
> "http://www.w3.org/2001/XMLSchema";
> >>  // !:boolean         -
> "http://www.w3.org/2001/XMLSchema";
> >>  // !:date            -
> "http://www.w3.org/2001/XMLSchema";
> >>
> >>  getFreeUsageQuotaThisMonth = class;           {
> >> "https://adwords.google.com/api/adwords/v10"; }
> >>  getOperationsQuotaThisMonth = class;          {
> >> "https://adwords.google.com/api/adwords/v10"; }
> >>  getUsageQuotaThisMonth = class;               {
> >> "https://adwords.google.com/api/adwords/v10"; }
> >>  getUsageQuotaThisMonthResponse = class;       {
> >> "https://adwords.google.com/api/adwords/v10"; }
> >>  getUnitCountResponse = class;                 {
> >> "https://adwords.google.com/api/adwords/v10"; }
> >>  getUnitCountForMethodResponse = class;        {
> >> "https://adwords.google.com/api/adwords/v10"; }
> >>  getOperationsQuotaThisMonthResponse = class;   {
> >> "https://adwords.google.com/api/adwords/v10"; }
> >>  getOperationCountResponse = class;            {
> >> "https://adwords.google.com/api/adwords/v10"; }
> >>  getFreeUsageQuotaThisMonthResponse = class;   {
> >> "https://adwords.google.com/api/adwords/v10"; }
> >>  getMethodCostResponse = class;                {
> >> "https://adwords.google.com/api/adwords/v10"; }
> >>  ApiError             = class;                 {
> >> "https://adwords.google.com/api/adwords/v10"; }
> >>  ApiException         = class;                 {
> >> "https://adwords.google.com/api/adwords/v10"; }
> >>  getUnitCountForMethod = class;                {
> >> "https://adwords.google.com/api/adwords/v10"; }
> >>  getUnitCountForClients = class;               {
> >> "https://adwords.google.com/api/adwords/v10"; }
> >>  getUnitCount         = class;                 {
> >> "https://adwords.google.com/api/adwords/v10"; }
> >>  getOperationCount    = class;                 {
> >> "https://adwords.google.com/api/adwords/v10"; }
> >>  getMethodCost        = class;                 {
> >> "https://adwords.google.com/api/adwords/v10"; }
> >>  ClientUsageRecord    = class;                 {
> >> "https://adwords.google.com/api/adwords/v10"; }
> >>  useragent            = class;                 {
> >> "https://adwords.google.com/api/adwords/v10"[H] }
> >>  password             = class;                 {
> 
=== message truncated ===


Send instant messages to your online friends http://au.messenger.yahoo.com 
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

Reply via email to