• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic