• 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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

 
Greenhorn
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();
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





 
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
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic