Martin, Did you regenerate the stubs? using the wsdl2java from 1.3?
-- dims On 8/1/07, Martin Holzner <[EMAIL PROTECTED]> wrote: > With the latest 1.3, I get: > > Exception in thread "main" java.lang.NullPointerException > at > org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java: > 194) > at > testpack.AccountServiceStub.getAccountInfo(AccountServiceStub.java:278) > at Main.main(Main.java:89) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > a:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > Impl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) > > (after identical steps) > > -Martin > > -----Original Message----- > From: Davanum Srinivas [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 01, 2007 2:54 PM > To: Martin Holzner > Cc: axis-user@ws.apache.org > Subject: Re: axis2 and Google adwords WS: getting > "org.apache.axis2.AxisFault: Transport error: 415 Error: Unsupported > Media Type" > > Can you please try the 1.3-SNAPSHOT? > > http://people.apache.org/dist/axis2/nightly/ > > thanks, > dims > > On 8/1/07, Martin Holzner <[EMAIL PROTECTED]> wrote: > > Thanks for the quick reply! > > > > I tried > > AccountServiceStub accountService = new AccountServiceStub(); > > > > > accountService._getServiceClient().getOptions().setProperty(org.apache.a > > xis2.Constants.Configuration.CONTENT_TYPE, "text/xml"); > > GetAccountInfoResponseDocument resDoc = > > accountService.getAccountInfo(getAccountInfoDoc, > > userAgent, > > password, > > email, > > clientEmail, > > clientCustomerId, > > developerToken, > > applicationToken); > > > > > > with no apparent change. The log still shows: > > > > 2007/08/01 14:40:42:168 EDT [DEBUG] header - >> "POST > > /api/adwords/v10/AccountService HTTP/1.1[\r][\n]" > > 2007/08/01 14:40:42:168 EDT [DEBUG] HttpMethodBase - Adding Host > request > > header > > 2007/08/01 14:40:42:184 EDT [DEBUG] header - >> "Content-Type: > text/xml; > > charset=UTF-8[\r][\n]" > > 2007/08/01 14:40:42:184 EDT [DEBUG] header - >> "SOAPAction: > ""[\r][\n]" > > 2007/08/01 14:40:42:184 EDT [DEBUG] header - >> "User-Agent: > > Axis2[\r][\n]" > > 2007/08/01 14:40:42:184 EDT [DEBUG] header - >> "Host: > > adwords.google.com[\r][\n]" > > 2007/08/01 14:40:42:184 EDT [DEBUG] header - >> "Transfer-Encoding: > > chunked[\r][\n]" > > 2007/08/01 14:40:42:184 EDT [DEBUG] header - >> "[\r][\n]" > > 2007/08/01 14:40:42:481 EDT [DEBUG] content - >> "380[\r][\n]" > > 2007/08/01 14:40:42:481 EDT [DEBUG] content - >> "<?xml version='1.0' > > encoding='UTF-8'?><soapenv:Envelope > > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Heade > > r><useragent > > > xmlns="https://adwords.google.com/api/adwords/v10">Foo</useragent><passw > > ord > > > xmlns="https://adwords.google.com/api/adwords/v10">pwd</password><email > > > xmlns="https://adwords.google.com/api/adwords/v10">[EMAIL PROTECTED]</email>< > > clientEmail > > > xmlns="https://adwords.google.com/api/adwords/v10">[EMAIL > PROTECTED]</clientEmail> > > <clientCustomerId > > > xmlns="https://adwords.google.com/api/adwords/v10">abc</clientCustomerId > > ><developerToken > > > xmlns="https://adwords.google.com/api/adwords/v10">[EMAIL PROTECTED]</de > > veloperToken><applicationToken > > > xmlns="https://adwords.google.com/api/adwords/v10">tok</applicationToken > > ></soapenv:Header><soapenv:Body><getAccountInfo > > xmlns="https://adwords.google.com/api/adwords/v10" > > /></soapenv:Body></soapenv:Envelope>" > > 2007/08/01 14:40:42:481 EDT [DEBUG] content - >> "[\r][\n]" > > 2007/08/01 14:40:42:481 EDT [DEBUG] content - >> "0" > > 2007/08/01 14:40:42:481 EDT [DEBUG] content - >> "[\r][\n]" > > 2007/08/01 14:40:42:481 EDT [DEBUG] content - >> "[\r][\n]" > > 2007/08/01 14:40:42:481 EDT [DEBUG] EntityEnclosingMethod - Request > body > > sent > > 2007/08/01 14:40:42:762 EDT [DEBUG] header - << "HTTP/1.1 415 > > Unsupported Media Type[\r][\n]" > > 2007/08/01 14:40:42:777 EDT [DEBUG] header - << "Content-Type: > > text/html; charset=UTF-8[\r][\n]" > > 2007/08/01 14:40:42:777 EDT [DEBUG] header - << "Cache-control: > > private[\r][\n]" > > 2007/08/01 14:40:42:777 EDT [DEBUG] header - << "Content-Length: > > 167[\r][\n]" > > 2007/08/01 14:40:42:777 EDT [DEBUG] header - << "Date: Wed, 01 Aug > 2007 > > 18:40:42 GMT[\r][\n]" > > 2007/08/01 14:40:42:777 EDT [DEBUG] header - << "Server: > > GFE/1.3[\r][\n]" > > org.apache.axis2.AxisFault: Transport error: 415 Error: Unsupported > > Media Type > > > > > > I also tried to set > > org.apache.axis2.Constants.Configuration.CHARACTER_SET_ENCODING, ""); > > > > But that still sends a ";charset=" > > > > Any other ideas? > > > > Thanks, > > > > Martin > > > > > > -----Original Message----- > > From: Davanum Srinivas [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, August 01, 2007 2:21 PM > > To: axis-user@ws.apache.org > > Subject: Re: axis2 and Google adwords WS: getting > > "org.apache.axis2.AxisFault: Transport error: 415 Error: Unsupported > > Media Type" > > > > try skipping the UTF-8 in the http header that you send using: > > > > > accountService._getServiceClient().getOptions().setProperty(org.apache.a > > xis2.Constants.Configuration.CONTENT_TYPE > > ,"text/xml"); > > > > thanks, > > dims > > > > On 8/1/07, Martin Holzner <[EMAIL PROTECTED]> wrote: > > > > > > > > > axis2-1.2 (WinXP, java version "1.5.0_11") > > > > > > Steps to reproduce: > > > > > > * downloaded the wsdl from > > > https://sandbox.google.com/api/adwords/v10/AccountService?wsdl > > > (as AccountServiceV10.wsdl) > > > * ran command line: %AXIS2_HOME%\bin\wsdl2java -d xmlbeans > > -uri > > > ./AccountServiceV10.wsdl -g -sd -o . -p testpack > > > * wrote a java client > > > > > > GetAccountInfoDocument getAccountInfoDoc = > > > GetAccountInfoDocument.Factory.newInstance(); > > > GetAccountInfoDocument.GetAccountInfo getAccountInfo > > > = getAccountInfoDoc.addNewGetAccountInfo(); > > > > > > UseragentDocument userAgent = > > > UseragentDocument.Factory.newInstance(); > > > userAgent.setUseragent("Foo"); > > > > > > PasswordDocument password = > > > PasswordDocument.Factory.newInstance(); > > > password.setPassword("pwd"); > > > > > > DeveloperTokenDocument developerToken = > > > DeveloperTokenDocument.Factory.newInstance(); > > > > > > developerToken.setDeveloperToken("[EMAIL PROTECTED]"); > > > > > > EmailDocument email = > > > EmailDocument.Factory.newInstance(); > > > email.setEmail("[EMAIL PROTECTED]"); > > > > > > ClientEmailDocument clientEmail = > > > ClientEmailDocument.Factory.newInstance(); > > > clientEmail.setClientEmail("[EMAIL PROTECTED]"); > > > > > > ClientCustomerIdDocument clientCustomerId = > > > ClientCustomerIdDocument.Factory.newInstance(); > > > clientCustomerId.setClientCustomerId("abc"); > > > > > > ApplicationTokenDocument applicationToken = > > > ApplicationTokenDocument.Factory.newInstance(); > > > applicationToken.setApplicationToken("tok"); > > > > > > AccountServiceStub accountService = new AccountServiceStub(); > > > GetAccountInfoResponseDocument resDoc = > > > accountService.getAccountInfo(getAccountInfoDoc, > > > userAgent, > > > password, > > > email, > > > clientEmail, > > > clientCustomerId, > > > developerToken, > > > applicationToken); > > > > > > GetAccountInfoResponseDocument.GetAccountInfoResponse > > > accountResponse = resDoc.getGetAccountInfoResponse(); > > > System.out.println("BillingAddress: " + > > > accountResponse.getGetAccountInfoReturn().getBillingAddress()); > > > .... > > > > > > When I run this like: > > > C:\progs\java\jdk1.5.0_11\bin\java > > > > > > -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleL > > og > > > -Dorg.apache.commons.logging.simplelog.showdatetime=true > > > -Dorg.apache.commons.logging.simplelog.log.httpclient.wire=debug > > > > > > -Dorg.apache.commons.logging.simplelog.log.org.apache.commons.httpclient > > =debug > > > -Didea.launcher.port=7532 > > > "-Didea.launcher.bin.path=C:\Program > > > Files\JetBrains\IntelliJ IDEA 6.0\bin" -Dfile.encoding=windows-1252 > > > -classpath > > > > > > "C:\progs\java\jdk1.5.0_11\jre\lib\charsets.jar;C:\progs\java\jdk1.5.0_1 > > > 1\jre\lib\deploy.jar;C:\progs\java\jdk1.5.0_11\jre\lib\javaws.jar;C:\pro > > > gs\java\jdk1.5.0_11\jre\lib\jce.jar;C:\progs\java\jdk1.5.0_11\jre\lib\js > > > se.jar;C:\progs\java\jdk1.5.0_11\jre\lib\plugin.jar;C:\progs\java\jdk1.5 > > > .0_11\jre\lib\rt.jar;C:\progs\java\jdk1.5.0_11\jre\lib\ext\dnsns.jar;C:\ > > > progs\java\jdk1.5.0_11\jre\lib\ext\localedata.jar;C:\progs\java\jdk1.5.0 > > > _11\jre\lib\ext\sunjce_provider.jar;C:\progs\java\jdk1.5.0_11\jre\lib\ex > > > t\sunpkcs11.jar;C:\work\ca\playground\google\adwords\classes\test\Google > > > AdWords;C:\work\ca\playground\google\adwords\classes\production\GoogleAd > > > Words;C:\work\lib\axis2-1.2\lib\neethi-2.0.1.jar;C:\work\lib\axis2-1.2\l > > > ib\commons-logging-1.1.jar;C:\work\lib\axis2-1.2\lib\axis2-soapmonitor-1 > > > .2.jar;C:\work\lib\axis2-1.2\lib\axis2-adb-codegen-1.2.jar;C:\work\lib\a > > > xis2-1.2\lib\commons-httpclient-3.0.1.jar;C:\work\lib\axis2-1.2\lib\axis > > > 2-codegen-1.2.jar;C:\work\lib\axis2-1.2\lib\axis2-saaj-1.2.jar;C:\work\l > > > ib\axis2-1.2\lib\xalan-2.7.0.jar;C:\work\lib\axis2-1.2\lib\commons-codec > > > -1.3.jar;C:\work\lib\axis2-1.2\lib\axiom-impl-1.2.4.jar;C:\work\lib\axis > > > 2-1.2\lib\commons-io-1.2.jar;C:\work\lib\axis2-1.2\lib\jibx-run-1.1.4.ja > > > r;C:\work\lib\axis2-1.2\lib\commons-fileupload-1.1.1.jar;C:\work\lib\axi > > > s2-1.2\lib\stax-utils-20060915.jar;C:\work\lib\axis2-1.2\lib\jakarta-htt > > > pcore-4.0-alpha4.jar;C:\work\lib\axis2-1.2\lib\axis2-fastinfoset-1.2.jar > > > ;C:\work\lib\axis2-1.2\lib\jaxb-xjc-2.0.2.jar;C:\work\lib\axis2-1.2\lib\ > > > axis2-saaj-api-1.2.jar;C:\work\lib\axis2-1.2\lib\axis2-kernel-1.2.jar;C: > > > \work\lib\axis2-1.2\lib\axis2-java2wsdl-1.2.jar;C:\work\lib\axis2-1.2\li > > > b\jaxen-1.1-beta-10.jar;C:\work\lib\axis2-1.2\lib\axis2-json-1.2.jar;C:\ > > > work\lib\axis2-1.2\lib\xml-apis-1.3.03.jar;C:\work\lib\axis2-1.2\lib\axi > > > s2-jaxbri-1.2.jar;C:\work\lib\axis2-1.2\lib\axis2-xmlbeans-1.2.jar;C:\wo > > > rk\lib\axis2-1.2\lib\mail-1.4.jar;C:\work\lib\axis2-1.2\lib\XmlSchema-1. > > > 3.1.jar;C:\work\lib\axis2-1.2\lib\axis2-metadata-1.2.jar;C:\work\lib\axi > > > s2-1.2\lib\jaxb-impl-2.0.2.jar;C:\work\lib\axis2-1.2\lib\backport-util-c > > > oncurrent-2.2.jar;C:\work\lib\axis2-1.2\lib\xbean-2.2.0.jar;C:\work\lib\ > > > axis2-1.2\lib\jaxb-api-2.0.2.jar;C:\work\lib\axis2-1.2\lib\wsdl4j-1.6.2. > > > jar;C:\work\lib\axis2-1.2\lib\servletapi-2.3.jar;C:\work\lib\axis2-1.2\l > > > ib\wstx-asl-3.2.1.jar;C:\work\lib\axis2-1.2\lib\axiom-api-1.2.4.jar;C:\w > > > ork\lib\axis2-1.2\lib\axis2-jibx-1.2.jar;C:\work\lib\axis2-1.2\lib\geron > > > imo-spec-jms-1.1-rc4.jar;C:\work\lib\axis2-1.2\lib\axis2-spring-1.2.jar; > > > C:\work\lib\axis2-1.2\lib\jibx-bind-1.1.4.jar;C:\work\lib\axis2-1.2\lib\ > > > jettison-1.0-RC1.jar;C:\work\lib\axis2-1.2\lib\stax-api-1.0.1.jar;C:\wor > > > k\lib\axis2-1.2\lib\activation-1.1.jar;C:\work\lib\axis2-1.2\lib\annogen > > > -0.1.0.jar;C:\work\lib\axis2-1.2\lib\axis2-jaxws-1.2.jar;C:\work\lib\axi > > > s2-1.2\lib\woden-1.0-incubating-M7a.jar;C:\work\lib\axis2-1.2\lib\axiom- > > > dom-1.2.4.jar;C:\work\lib\axis2-1.2\lib\axis2-tools-1.2.jar;C:\work\lib\ > > > axis2-1.2\lib\xercesImpl-2.8.1.jar;C:\work\lib\axis2-1.2\lib\axis2-jaxws > > > -api-1.2.jar;C:\work\lib\axis2-1.2\lib\axis2-adb-1.2.jar;C:\work\ca\play > > ground\google\adwords\resources;C:\Program > > > Files\JetBrains\IntelliJ IDEA 6.0\lib\idea_rt.jar" > > > com.intellij.rt.execution.application.AppMain Main > > > > > > With this env: > > > 2007/08/01 13:06:37:165 EDT [DEBUG] HttpClient - Java version: > > 1.5.0_11 > > > 2007/08/01 13:06:37:165 EDT [DEBUG] HttpClient - Java vendor: Sun > > > Microsystems Inc. > > > 2007/08/01 13:06:37:165 EDT [DEBUG] HttpClient - Java class path: > > > > > > C:\progs\java\jdk1.5.0_11\jre\lib\charsets.jar;C:\progs\java\jdk1.5.0_11 > > > \jre\lib\deploy.jar;C:\progs\java\jdk1.5.0_11\jre\lib\javaws.jar;C:\prog > > > s\java\jdk1.5.0_11\jre\lib\jce.jar;C:\progs\java\jdk1.5.0_11\jre\lib\jss > > > e.jar;C:\progs\java\jdk1.5.0_11\jre\lib\plugin.jar;C:\progs\java\jdk1.5. > > > 0_11\jre\lib\rt.jar;C:\progs\java\jdk1.5.0_11\jre\lib\ext\dnsns.jar;C:\p > > > rogs\java\jdk1.5.0_11\jre\lib\ext\localedata.jar;C:\progs\java\jdk1.5.0_ > > > 11\jre\lib\ext\sunjce_provider.jar;C:\progs\java\jdk1.5.0_11\jre\lib\ext > > > \sunpkcs11.jar;C:\work\ca\playground\google\adwords\classes\test\GoogleA > > > dWords;C:\work\ca\playground\google\adwords\classes\production\GoogleAdW > > > ords;C:\work\lib\axis2-1.2\lib\neethi-2.0.1.jar;C:\work\lib\axis2-1.2\li > > > b\commons-logging-1.1.jar;C:\work\lib\axis2-1.2\lib\axis2-soapmonitor-1. > > > 2.jar;C:\work\lib\axis2-1.2\lib\axis2-adb-codegen-1.2.jar;C:\work\lib\ax > > > is2-1.2\lib\commons-httpclient-3.0.1.jar;C:\work\lib\axis2-1.2\lib\axis2 > > > -codegen-1.2.jar;C:\work\lib\axis2-1.2\lib\axis2-saaj-1.2.jar;C:\work\li > > > b\axis2-1.2\lib\xalan-2.7.0.jar;C:\work\lib\axis2-1.2\lib\commons-codec- > > > 1.3.jar;C:\work\lib\axis2-1.2\lib\axiom-impl-1.2.4.jar;C:\work\lib\axis2 > > > -1.2\lib\commons-io-1.2.jar;C:\work\lib\axis2-1.2\lib\jibx-run-1.1.4.jar > > > ;C:\work\lib\axis2-1.2\lib\commons-fileupload-1.1.1.jar;C:\work\lib\axis > > > 2-1.2\lib\stax-utils-20060915.jar;C:\work\lib\axis2-1.2\lib\jakarta-http > > > core-4.0-alpha4.jar;C:\work\lib\axis2-1.2\lib\axis2-fastinfoset-1.2.jar; > > > C:\work\lib\axis2-1.2\lib\jaxb-xjc-2.0.2.jar;C:\work\lib\axis2-1.2\lib\a > > > xis2-saaj-api-1.2.jar;C:\work\lib\axis2-1.2\lib\axis2-kernel-1.2.jar;C:\ > > > work\lib\axis2-1.2\lib\axis2-java2wsdl-1.2.jar;C:\work\lib\axis2-1.2\lib > > > \jaxen-1.1-beta-10.jar;C:\work\lib\axis2-1.2\lib\axis2-json-1.2.jar;C:\w > > > ork\lib\axis2-1.2\lib\xml-apis-1.3.03.jar;C:\work\lib\axis2-1.2\lib\axis > > > 2-jaxbri-1.2.jar;C:\work\lib\axis2-1.2\lib\axis2-xmlbeans-1.2.jar;C:\wor > > > k\lib\axis2-1.2\lib\mail-1.4.jar;C:\work\lib\axis2-1.2\lib\XmlSchema-1.3 > > > .1.jar;C:\work\lib\axis2-1.2\lib\axis2-metadata-1.2.jar;C:\work\lib\axis > > > 2-1.2\lib\jaxb-impl-2.0.2.jar;C:\work\lib\axis2-1.2\lib\backport-util-co > > > ncurrent-2.2.jar;C:\work\lib\axis2-1.2\lib\xbean-2.2.0.jar;C:\work\lib\a > > > xis2-1.2\lib\jaxb-api-2.0.2.jar;C:\work\lib\axis2-1.2\lib\wsdl4j-1.6.2.j > > > ar;C:\work\lib\axis2-1.2\lib\servletapi-2.3.jar;C:\work\lib\axis2-1.2\li > > > b\wstx-asl-3.2.1.jar;C:\work\lib\axis2-1.2\lib\axiom-api-1.2.4.jar;C:\wo > > > rk\lib\axis2-1.2\lib\axis2-jibx-1.2.jar;C:\work\lib\axis2-1.2\lib\geroni > > > mo-spec-jms-1.1-rc4.jar;C:\work\lib\axis2-1.2\lib\axis2-spring-1.2.jar;C > > > :\work\lib\axis2-1.2\lib\jibx-bind-1.1.4.jar;C:\work\lib\axis2-1.2\lib\j > > > ettison-1.0-RC1.jar;C:\work\lib\axis2-1.2\lib\stax-api-1.0.1.jar;C:\work > > > \lib\axis2-1.2\lib\activation-1.1.jar;C:\work\lib\axis2-1.2\lib\annogen- > > > 0.1.0.jar;C:\work\lib\axis2-1.2\lib\axis2-jaxws-1.2.jar;C:\work\lib\axis > > > 2-1.2\lib\woden-1.0-incubating-M7a.jar;C:\work\lib\axis2-1.2\lib\axiom-d > > > om-1.2.4.jar;C:\work\lib\axis2-1.2\lib\axis2-tools-1.2.jar;C:\work\lib\a > > > xis2-1.2\lib\xercesImpl-2.8.1.jar;C:\work\lib\axis2-1.2\lib\axis2-jaxws- > > > api-1.2.jar;C:\work\lib\axis2-1.2\lib\axis2-adb-1.2.jar;C:\work\ca\playg > > round\google\adwords\resources;C:\Program > > > Files\JetBrains\IntelliJ IDEA 6.0\lib\idea_rt.jar > > > > > > > > > I get this: > > > 2007/08/01 13:06:37:180 EDT [DEBUG] HttpClient - Operating system > > name: > > > Windows XP > > > 2007/08/01 13:06:37:180 EDT [DEBUG] HttpClient - Operating system > > > architecture: x86 > > > 2007/08/01 13:06:37:180 EDT [DEBUG] HttpClient - Operating system > > version: > > > 5.1 > > > 2007/08/01 13:06:37:290 EDT [DEBUG] HttpClient - SUN 1.5: SUN (DSA > > > key/parameter generation; DSA signing; SHA-1, MD5 digests; > > SecureRandom; > > > X.509 certificates; JKS keystore; PKIX CertPathValidator; PKIX > > > CertPathBuilder; LDAP, Collection CertStores) > > > 2007/08/01 13:06:37:290 EDT [DEBUG] HttpClient - SunRsaSign 1.5: Sun > > RSA > > > signature provider > > > 2007/08/01 13:06:37:290 EDT [DEBUG] HttpClient - SunJSSE 1.5: Sun > JSSE > > > provider(PKCS12, SunX509 key/trust factories, SSLv3, TLSv1) > > > 2007/08/01 13:06:37:290 EDT [DEBUG] HttpClient - SunJCE 1.5: SunJCE > > Provider > > > (implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, PBE, > > > Diffie-Hellman, HMAC) > > > 2007/08/01 13:06:37:290 EDT [DEBUG] HttpClient - SunJGSS 1.0: Sun > > (Kerberos > > > v5) > > > 2007/08/01 13:06:37:290 EDT [DEBUG] HttpClient - SunSASL 1.5: Sun > SASL > > > provider(implements client mechanisms for: DIGEST-MD5, GSSAPI, > > EXTERNAL, > > > PLAIN, CRAM-MD5; server mechanisms for: DIGEST-MD5, GSSAPI, > CRAM-MD5) > > > 2007/08/01 13:06:37:305 EDT [DEBUG] DefaultHttpParams - Set > parameter > > > http.useragent = Jakarta Commons-HttpClient/3.0.1 > > > 2007/08/01 13:06:37:305 EDT [DEBUG] DefaultHttpParams - Set > parameter > > > http.protocol.version = HTTP/1.1 > > > 2007/08/01 13:06:37:305 EDT [DEBUG] DefaultHttpParams - Set > parameter > > > http.connection-manager.class = class > > > org.apache.commons.httpclient.SimpleHttpConnectionManager > > > 2007/08/01 13:06:37:305 EDT [DEBUG] DefaultHttpParams - Set > parameter > > > http.protocol.cookie-policy = rfc2109 > > > 2007/08/01 13:06:37:305 EDT [DEBUG] DefaultHttpParams - Set > parameter > > > http.protocol.element-charset = US-ASCII > > > 2007/08/01 13:06:37:305 EDT [DEBUG] DefaultHttpParams - Set > parameter > > > http.protocol.content-charset = ISO-8859-1 > > > 2007/08/01 13:06:37:305 EDT [DEBUG] DefaultHttpParams - Set > parameter > > > http.method.retry-handler = > > > [EMAIL PROTECTED] > > > 2007/08/01 13:06:37:305 EDT [DEBUG] DefaultHttpParams - Set > parameter > > > http.dateparser.patterns = [EEE, dd MMM yyyy HH:mm:ss zzz, EEEE, > > dd-MMM-yy > > > HH:mm:ss zzz, EEE MMM d HH:mm:ss yyyy, EEE, dd-MMM-yyyy HH:mm:ss z, > > EEE, > > > dd-MMM-yyyy HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE dd-MMM-yyyy > > HH:mm:ss > > > z, EEE dd MMM yyyy HH:mm:ss z, EEE dd-MMM-yyyy HH-mm-ss z, EEE > > dd-MMM-yy > > > HH:mm:ss z, EEE dd MMM yy HH:mm:ss z, EEE,dd-MMM-yy HH:mm:ss z, > > > EEE,dd-MMM-yyyy HH:mm:ss z, EEE, dd-MM-yyyy HH:mm:ss z] > > > 2007/08/01 13:06:37:305 EDT [DEBUG] DefaultHttpParams - Set > parameter > > > http.socket.timeout = 60000 > > > 2007/08/01 13:06:37:305 EDT [DEBUG] DefaultHttpParams - Set > parameter > > > http.connection.timeout = 60000 > > > 2007/08/01 13:06:37:368 EDT [DEBUG] DefaultHttpParams - Set > parameter > > > http.socket.timeout = 30000 > > > 2007/08/01 13:06:37:430 EDT [DEBUG] HttpConnection - Open connection > > to > > > adwords.google.com:443 > > > 2007/08/01 13:06:38:258 EDT [DEBUG] header - >> "POST > > > /api/adwords/v10/AccountService HTTP/1.1[\r][\n]" > > > 2007/08/01 13:06:38:258 EDT [DEBUG] HttpMethodBase - Adding Host > > request > > > header > > > 2007/08/01 13:06:38:305 EDT [DEBUG] header - >> "Content-Type: > > text/xml; > > > charset=UTF-8[\r][\n]" > > > 2007/08/01 13:06:38:305 EDT [DEBUG] header - >> "SOAPAction: > > ""[\r][\n]" > > > 2007/08/01 13:06:38:305 EDT [DEBUG] header - >> "User-Agent: > > Axis2[\r][\n]" > > > 2007/08/01 13:06:38:305 EDT [DEBUG] header - >> "Host: > > > adwords.google.com[\r][\n]" > > > 2007/08/01 13:06:38:305 EDT [DEBUG] header - >> "Transfer-Encoding: > > > chunked[\r][\n]" > > > 2007/08/01 13:06:38:305 EDT [DEBUG] header - >> "[\r][\n]" > > > 2007/08/01 13:06:38:508 EDT [DEBUG] content - >> "380[\r][\n]" > > > 2007/08/01 13:06:38:524 EDT [DEBUG] content - >> "<?xml > version='1.0' > > > encoding='UTF-8'?><soapenv:Envelope > > > > > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Heade > > r><useragent > > > > > > xmlns="https://adwords.google.com/api/adwords/v10">Foo</useragent><passw > > ord > > > > > > xmlns="https://adwords.google.com/api/adwords/v10">pwd</password><email > > > > > > xmlns="https://adwords.google.com/api/adwords/v10">[EMAIL PROTECTED]</email>< > > clientEmail > > > > > > xmlns="https://adwords.google.com/api/adwords/v10">[EMAIL > PROTECTED]</clientEmail> > > <clientCustomerId > > > > > > xmlns="https://adwords.google.com/api/adwords/v10">abc</clientCustomerId > > ><developerToken > > > > > > xmlns="https://adwords.google.com/api/adwords/v10">[EMAIL PROTECTED]</de > > veloperToken><applicationToken > > > > > > xmlns="https://adwords.google.com/api/adwords/v10">tok</applicationToken > > ></soapenv:Header><soapenv:Body><getAccountInfo > > > xmlns="https://adwords.google.com/api/adwords/v10" > > > /></soapenv:Body></soapenv:Envelope>" > > > 2007/08/01 13:06:38:524 EDT [DEBUG] content - >> "[\r][\n]" > > > 2007/08/01 13:06:38:524 EDT [DEBUG] content - >> "0" > > > 2007/08/01 13:06:38:524 EDT [DEBUG] content - >> "[\r][\n]" > > > 2007/08/01 13:06:38:524 EDT [DEBUG] content - >> "[\r][\n]" > > > 2007/08/01 13:06:38:524 EDT [DEBUG] EntityEnclosingMethod - Request > > body > > > sent > > > 2007/08/01 13:06:38:649 EDT [DEBUG] header - << "HTTP/1.1 415 > > Unsupported > > > Media Type[\r][\n]" > > > 2007/08/01 13:06:38:664 EDT [DEBUG] header - << "Content-Type: > > text/html; > > > charset=UTF-8[\r][\n]" > > > 2007/08/01 13:06:38:664 EDT [DEBUG] header - << "Cache-control: > > > private[\r][\n]" > > > 2007/08/01 13:06:38:664 EDT [DEBUG] header - << "Content-Length: > > > 167[\r][\n]" > > > 2007/08/01 13:06:38:664 EDT [DEBUG] header - << "Date: Wed, 01 Aug > > 2007 > > > 17:06:38 GMT[\r][\n]" > > > 2007/08/01 13:06:38:664 EDT [DEBUG] header - << "Server: > > GFE/1.3[\r][\n]" > > > org.apache.axis2.AxisFault: Transport error: 415 Error: Unsupported > > Media > > > Type > > > at > > > > > > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Common > > sHTTPTransportSender.java:221) > > > at > > > org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452) > > > at > > > > > > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper > > ation.java:330) > > > at > > > > > > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO > > peration.java:294) > > > at > > > > > > testpack.AccountServiceStub.getAccountInfo(AccountServiceStub.java:310) > > > at Main.main(Main.java:85) > > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > > a:39) > > > at > > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > > Impl.java:25) > > > at java.lang.reflect.Method.invoke(Method.java:585) > > > at > > > com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) > > > Caused by: org.apache.axis2.AxisFault: Transport error: 415 Error: > > > Unsupported Media Type > > > at > > > > > > org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageW > > ithCommons(CommonsHTTPTransportSender.java:314) > > > at > > > > > > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Common > > sHTTPTransportSender.java:201) > > > ... 10 more > > > Caused by: org.apache.axis2.AxisFault: Transport error: 415 Error: > > > Unsupported Media Type > > > at > > > > > > org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1 > > 79) > > > at > > > org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73) > > > at > > > > > > org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageW > > ithCommons(CommonsHTTPTransportSender.java:305) > > > ... 11 more > > > Caused by: org.apache.axis2.AxisFault: Transport error: 415 Error: > > > Unsupported Media Type > > > at > > > > > > org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.jav > > a:320) > > > at > > > > > > org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1 > > 77) > > > ... 13 more > > > > > > Process finished with exit code 0 > > > > > > > > > I'm running out of ideas. Can anyone help? > > > > > > Thank you, > > > > > > - Martin > > > > > > > > > -- > > Davanum Srinivas :: http://davanum.wordpress.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > -- > Davanum Srinivas :: http://davanum.wordpress.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Davanum Srinivas :: http://davanum.wordpress.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]