Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 39703 invoked from network); 14 Nov 2006 05:27:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Nov 2006 05:27:28 -0000 Received: (qmail 99586 invoked by uid 500); 14 Nov 2006 05:27:29 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 99561 invoked by uid 500); 14 Nov 2006 05:27:29 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 99550 invoked by uid 99); 14 Nov 2006 05:27:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Nov 2006 21:27:29 -0800 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_10_20,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of amilasuriarachchi@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Nov 2006 21:27:16 -0800 Received: by nf-out-0910.google.com with SMTP id o63so134997nfa for ; Mon, 13 Nov 2006 21:26:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ZULMd8aurdg0tlDSZS7SF0f8OFccEYQBPBRDR33xJlv8mXEXudawcEJqaNVb1JbKOiwv4H6Bd62Hqby2v+uiOf6ymmc0n1tuKUQOo+yUsiy9XagnyyCQHCyIdirnGVGKyMi1ruSnyq9GRDS/RuM42HpTZ4yqnyEB10YKF8mP0Dg= Received: by 10.82.141.4 with SMTP id o4mr2681bud.1163482014268; Mon, 13 Nov 2006 21:26:54 -0800 (PST) Received: by 10.82.179.7 with HTTP; Mon, 13 Nov 2006 21:26:54 -0800 (PST) Message-ID: <60708f4b0611132126h67415fd1h4c95e42d7ad59a6b@mail.gmail.com> Date: Tue, 14 Nov 2006 10:56:54 +0530 From: "Amila Suriarachchi" To: axis-user@ws.apache.org Subject: Re: [Axis2] - WSDL2Java code generation using XMLBeans In-Reply-To: <8a0e6eb70611131700k657f059ck430a3dd34c404426@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_45870_24878416.1163482014236" References: <8a0e6eb70611131700k657f059ck430a3dd34c404426@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_45870_24878416.1163482014236 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline please use Axis2 1.1 which will be released soon or a nightly build. I tried GoogleSearch.wsdl with a the code in the repository. Codegeneration seems to be ok. But got the following exception when actually calling to the service. org.apache.axis2.AxisFault: HTTP Transport error : '411' - 'Length Required'; nested exception is: org.apache.axis2.AxisFault: HTTP Transport error : '411' - 'Length Required'; nested exception is: org.apache.axis2.AxisFault: HTTP Transport error : '411' - 'Length Required'; nested exception is: org.apache.axis2.AxisFault: HTTP Transport error : '411' - 'Length Required' at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke( CommonsHTTPTransportSender.java:225) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:670) at org.apache.axis2.description.OutInAxisOperationClient.send( OutInAxisOperation.java:365) at org.apache.axis2.description.OutInAxisOperationClient.execute( OutInAxisOperation.java:295) at googlesearch.GoogleSearchServiceStub.doSpellingSuggestion( GoogleSearchServiceStub.java:163) at googlesearch.GoogleSearchServiceTest.testdoSpellingSuggestion( GoogleSearchServiceTest.java:33) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java :31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86) Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '411' - 'Length Required'; nested exception is: org.apache.axis2.AxisFault: HTTP Transport error : '411' - 'Length Required' at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons (CommonsHTTPTransportSender.java:340) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke( CommonsHTTPTransportSender.java:205) ... 28 more Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '411' - 'Length Required' at org.apache.axis2.transport.http.SOAPOverHTTPSender.send( SOAPOverHTTPSender.java:144) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons (CommonsHTTPTransportSender.java:334) ... 29 more As I remember we have to set a parameter in the stub to overcome this problem but could not realy remember it. Amila. ------=_Part_45870_24878416.1163482014236 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline please use Axis2 1.1 which will be released soon or a nightly build.

I tried GoogleSearch.wsdl  with a the code in the repository. Codegeneration seems to be ok. But got the following exception when actually calling to the service.

org.apache.axis2.AxisFault: HTTP Transport error : '411' - 'Length Required'; nested exception is:
    org.apache.axis2.AxisFault: HTTP Transport error : '411' - 'Length Required'; nested exception is:
    org.apache.axis2.AxisFault: HTTP Transport error : '411' - 'Length Required'; nested exception is:
    org.apache.axis2.AxisFault: HTTP Transport error : '411' - 'Length Required'
    at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke (CommonsHTTPTransportSender.java:225)
    at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:670)
    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:365)
    at org.apache.axis2.description.OutInAxisOperationClient.execute (OutInAxisOperation.java:295)
    at googlesearch.GoogleSearchServiceStub.doSpellingSuggestion(GoogleSearchServiceStub.java:163)
    at googlesearch.GoogleSearchServiceTest.testdoSpellingSuggestion(GoogleSearchServiceTest.java :33)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25)
    at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '411' - 'Length Required'; nested exception is:
    org.apache.axis2.AxisFault: HTTP Transport error : '411' - 'Length Required'
    at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons (CommonsHTTPTransportSender.java:340)
    at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:205)
    ... 28 more
Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '411' - 'Length Required'
    at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:144)
    at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:334)
    ... 29 more

As I remember we have to set a parameter in the stub to overcome this problem but could not realy remember it.

Amila.
------=_Part_45870_24878416.1163482014236--