File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


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
Author

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

ramesh mer
Greenhorn

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();
ln.setZipCodeList("Hawaii");
LatLonListZipCodeResponse ls1=ns.latLonListZipCode(ln);
System.out.println("hiiiiiiii"+ls1.getListLatLonOut());
}


}




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"
class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
<parameter name="PROTOCOL" locked="false">HTTP/1.0</parameter>
</transportSender>

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

http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl

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?
thanks
chandu





 
GeeCON Prague 2014
 
subject: org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required