Problems connecting with AdSense v3 wsdl

36 views
Skip to first unread message

Michaël

unread,
Sep 20, 2010, 12:51:56 PM9/20/10
to AdSense API Forum
Hi,

We're several people trying to connect to the wsdl with no results
except an error.

I tried to access with OpenBlueDragon 1.4 (an open source alternative
for coldfusion), and talked with the developpers to check if it was
using the latest version of axis2 which is the case.

I got a

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

Then we tried to test the webservice with soapUI and got this

"Failed to import wsdl"
"Java.lang.nullpointer exception"

I tried this address
https://sandbox.google.com/api/adsense/v3/AccountService?wsdl
and that one
https://www.google.com/api/adsense/v3/AccountService?wsdl

If i change v3 to v2 everything works fine.

Here is a thread about my wonderings :
http://groups.google.com/group/openbd/browse_thread/thread/f57be595e7415a9a

Thank you for your help !

Michaël

Michaël

unread,
Sep 22, 2010, 9:38:15 AM9/22/10
to AdSense API Forum
Well, not too much help from here...

I tried to do it in JAVA only.

Axis2 installed I tried to "generate production stubs utilizing
Axis2's wsdl2java.sh: "

./wsdl2java.sh -p com.google.api.adsense.v3.AccountService -ap -uri
https://google.com/api/adsense/v3/AccountService?wsdl

And that gives me an error which is that one :


Using AXIS2_HOME: /home/administrateur/workspace/CanalBlog/axis2
Using JAVA_HOME: /usr/lib/jvm/java-6-sun/
Retrieving document at 'https://google.com/api/adsense/v3/
AccountService?wsdl'.
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
WSDL
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:
156)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: javax.wsdl.WSDLException: WSDLException:
faultCode=OTHER_ERROR: Unable to resolve imported document at 'https://
google.com/api/adsense/v3/AccountService?wsdl'.:
javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException: No name matching google.com
found
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:
288)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:
111)
... 2 more
Caused by: javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException: No name matching google.com
found
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:
174)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:
1623)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:
198)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:
192)
at
com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:
1074)
at
com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:
128)
at
com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:
529)
at
com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:
465)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:
884)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:
1120)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:
1147)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:
1131)
at
sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:
434)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:
166)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:
1049)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:
234)
at java.net.URL.openStream(URL.java:1010)
at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown
Source)
... 6 more
Caused by: java.security.cert.CertificateException: No name matching
google.com found
at sun.security.util.HostnameChecker.matchDNS(HostnameChecker.java:
210)
at sun.security.util.HostnameChecker.match(HostnameChecker.java:77)
at
com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:
264)
at
com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:
250)
at
com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:
1053)
... 19 more


Any help, any idea ?

Please ?

I'm really feeling alone on that one :/

Michaël

unread,
Sep 22, 2010, 9:38:25 AM9/22/10
to AdSense API Forum

Michaël

unread,
Sep 22, 2010, 9:41:09 AM9/22/10
to AdSense API Forum
Than I tried it with Sandbox


./wsdl2java.sh -p com.google.sandbox.api.adsense.v3.AccountService -ap
-uri https://sandbox.google.com/api/adsense/v3/AccountService?wsdl


And got that


Using AXIS2_HOME: /home/administrateur/workspace/CanalBlog/axis2
Using JAVA_HOME: /usr/lib/jvm/java-6-sun/
Retrieving document at 'https://sandbox.google.com/api/adsense/v3/
AccountService?wsdl'.
[WARN] Type {http://www.w3.org/2001/XMLSchema}Exception missing!
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
ResendVerificationEmailFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
AssociateAccountFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
AddSyndicationServiceFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
CreateAdSenseAccountFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
GetEntityTypeFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
GetBulkApprovalStatusFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
GetBulkAssociationStatusFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
CreateAccountFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
GetAssociationStatusFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
SetUsersPreferredLocaleFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
ChangeRevenueShareTierFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
AssociateExistingAccountFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
GetDeveloperSiteDataFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
GetSyndicationServiceFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
GetApprovalStatusFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
ResendVerificationEmailFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
AssociateAccountFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
AddSyndicationServiceFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
CreateAdSenseAccountFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
GetEntityTypeFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
GetBulkApprovalStatusFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
GetBulkAssociationStatusFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
CreateAccountFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
GetAssociationStatusFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
SetUsersPreferredLocaleFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
ChangeRevenueShareTierFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
AssociateExistingAccountFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
GetDeveloperSiteDataFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
GetSyndicationServiceFault.java file cannot be overwritten.
[INFO] The ./src/com/google/sandbox/api/adsense/v3/AccountService/
GetApprovalStatusFault.java file cannot be overwritten.

Michaël

unread,
Sep 22, 2010, 9:41:19 AM9/22/10
to AdSense API Forum
Than I tried it with Sandbox


./wsdl2java.sh -p com.google.sandbox.api.adsense.v3.AccountService -ap
-uri https://sandbox.google.com/api/adsense/v3/AccountService?wsdl


And got that


Using AXIS2_HOME: /home/administrateur/workspace/CanalBlog/axis2
Using JAVA_HOME: /usr/lib/jvm/java-6-sun/

Google AdSense API Support Team

unread,
Oct 4, 2010, 10:23:48 AM10/4/10
to AdSense API Forum
Hi there,

It seems like the issues you're getting are on the client end; that
is, you're retrieving the WSDLs correctly, but the SOAP library you're
using seems to be having trouble generating stubs from them.

I could try to give you a few hints, but I'm afraid that comes down to
how well your SOAP library can handle our WSDLs...

Cheers,
Sérgio

---
Sérgio Gomes
Developer Relations

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047

---
On Sep 22, 2:41 pm, Michaël <edriw...@gmail.com> wrote:
> Than I tried it with Sandbox
>
> ./wsdl2java.sh -p com.google.sandbox.api.adsense.v3.AccountService -ap
> -urihttps://sandbox.google.com/api/adsense/v3/AccountService?wsdl

Michael

unread,
Oct 5, 2010, 4:16:37 AM10/5/10
to adsen...@googlegroups.com
Hi,

Thanks for answering.
Seems like there's nobody out there. Not much (if any) help from google.

The SOAP library is in fault, no way to solve it so I got down to using XML directly.

Thank you very much.

Michaël

2010/10/4 Google AdSense API Support Team <adsenseapi-...@google.com>
--
You received this message because you are subscribed to the Google Groups "AdSense API Forum" group.
To post to this group, send email to adsen...@googlegroups.com.
To unsubscribe from this group, send email to adsense-api...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/adsense-api?hl=en.


Reply all
Reply to author
Forward
0 new messages