Amila,

google search does not support HTTP chunking. So u need to switch the
http version to HTTP 1.0. Even after that there is another problem
which is missing xsi:type's on the soap request...

-- dims

On 11/14/06, Amila Suriarachchi <[EMAIL PROTECTED]> wrote:
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.



--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to