Hi

I am having big issues using BlueDragon to access Google Adsense API
v3.
http://code.google.com/apis/adsense/developer/adsense_api_samples.html

Here is my configuration

Ubuntu 10.04 LTS
JAVA 1.6.0_20
Tomcat 6.0.29

Using Joshua Cyr exemple (http://www.usefulconcept.com/index.cfm/
2007/4/30/Google-Adsense-API-Headers-with-ColdFusion)
I tried to use that code

<cfscript>
  myvar = CreateObject("webservice", "https://sandbox.google.com/api/
adsense/v3/AccountService?wsdl");
</cfscript>

And got this error message


ERROR: Missing <soap:fault> element inFault "associateAccountFault" in
operation "associateAccountFault", in binding associateAccount


Searching the web to solve this problem, I found some advices saying
that Google Adsense API v3 uses axis 1.4 and above.
Sources : http://groups.google.com/group/AdSense-API/msg/d2df5d230ec0a0a6

So I decided to try and install a more up-to-date version of Axis.

I followed the steps to install axis2 here
http://ws.apache.org/axis2/1_5_1/installationguide.html

And updated to Axis2 1.5.1

Finaly I tried to use these command lines
./wsdl2java.sh -uri 
https://sandbox.google.com/api/adsense/v3/AccountService?wsdl

And they seem to work fine (no error messages anymore)

But still, my code won't work.

I guess BluedDragon doesn't use the Axis version I just installed

At some point I used the V2 and got it working, but now I don't how.
It was 2 days ago and now I can't event get V2 to work !

I am getting the usual error

java.lang.NoClassDefFoundError: sun/tools/javac/Main
        at
com.naryx.tagfusion.cfm.xml.ws.dynws.WSDL2Java.compileOutput(Unknown
Source)

that has been a lot documented on the wab saying it's a problem of
JAVA_HOME and CLASSPATH setting but no matter what or where I set them
I can't get any of this working.

Here I am, stuck for several days.

Could you please help me ?

I have been using Coldfusion for a while now, but I am all new to
Ubuntu, Java AND BLueDragon so I'm really really lost now.

Could you check if the problem comes from BlueDragon or from me with
the axis version issue ?

Anybody coul give me a step by step explanation of what I should do to
make the v2 work at least (ie : access to WSDL2Java tool) ?


Thank you very much !


Michaël

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 official manual: http://www.openbluedragon.org/manual/
 Ready2Run CFML http://www.openbluedragon.org/openbdjam/

 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to