wood burning stoves 2.0*
The moose likes Web Services and the fly likes org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required" Watch "org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required" New topic

org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required

ramesh mer

Joined: Aug 31, 2012
Posts: 1
package gov.weather.graphical.xml.dwmlgen.wsdl.ndfdxml_wsdl;

import gov.weather.graphical.xml.dwmlgen.wsdl.ndfdxml_wsdl.NdfdXMLStub.LatLonListCityNames;
import gov.weather.graphical.xml.dwmlgen.wsdl.ndfdxml_wsdl.NdfdXMLStub.LatLonListCityNamesResponse;
import gov.weather.graphical.xml.dwmlgen.wsdl.ndfdxml_wsdl.NdfdXMLStub.LatLonListZipCode;
import gov.weather.graphical.xml.dwmlgen.wsdl.ndfdxml_wsdl.NdfdXMLStub.LatLonListZipCodeResponse;
import gov.weather.graphical.xml.dwmlgen.wsdl.ndfdxml_wsdl.NdfdXMLStub.NDFDgenByDay;
import gov.weather.graphical.xml.dwmlgen.wsdl.ndfdxml_wsdl.NdfdXMLStub.NDFDgenByDayResponse;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.rmi.RemoteException;
import java.util.Date;

import org.apache.axis2.client.Options;

import com.ibm.wsdl.extensions.http.HTTPConstants;

public class ClientApp {
@SuppressWarnings({ "unused", "static-access" })
public static void main(String args[]) throws RemoteException

//Options.setProperty(HTTPConstants.CHUNKED, false);
NdfdXMLStub ns=new NdfdXMLStub();

LatLonListZipCode ln=new LatLonListZipCode();
LatLonListZipCodeResponse ls1=ns.latLonListZipCode(ln);


when i am try to excuting that time , i am getting this error

i tried with Problems with chunking when calling a ws using invoke and set as like this axis2.xml
<transportSender name="http"
<parameter name="PROTOCOL" locked="false">HTTP/1.0</parameter>

after setting this one it seems same error.
i am using this wsdl url


creating service and client is same machine its working but i tried accessing remote
http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl url that time only getting the error

please help me anyone?

wood burning stoves
subject: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required