Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8657499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:32:08+00:00 2026-06-12T15:32:08+00:00

I am writing a SOAP service client using axis2. I generated the client code

  • 0

I am writing a SOAP service client using axis2. I generated the client code with wsdl2java, then I try to

Request req = new Request();
req.setParameter("XXX");

ServiceStub stub = new ServiceStub();                                     
stub.remoteService(req);            

At runtime, I get an AxisFault: Content length must be specified

Any idea of what’s going wrong or how to specify content length?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:32:09+00:00Added an answer on June 12, 2026 at 3:32 pm

    I believe the Axis2 will include the content-length value in the HTTP header if you disable the chunking by default

    As per the XML RPC specifications:

    Header requirements

    The format of the URI in the first line of the header is not specified. For example, it could be empty, a single slash, if the server is only handling XML-RPC calls. However, if the server is handling a mix of incoming HTTP requests, we allow the URI to help route the request to the code that handles XML-RPC requests. (In the example, the URI is /RPC2, telling the server to route the request to the “RPC2” responder.)

    A User-Agent and Host must be specified.

    The Content-Type is text/xml.

    The Content-Length must be specified and must be correct.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing some code to talk to a web service via WSDL-SOAP. I'm using
So I'm writing a Ruby client for a SOAP web service, and I've figured
I have been writing a SOAP client application in C++ on Ubuntu using OpenSSL
I'm writing a SOAP service using python and soaplib. I need to get IP
I am writing a soap request over SSL using Savon and HTTPi, a Ruby
I am writing a RIA service, which is also exposed using SOAP. One of
I am writing a WCF client to a SOAP service that returns a mime
I am writing a WCF client for a third-party SOAP service (on a Java
I've been tasked with writing a SOAP web-service in .Net to be middleware between
I am writing a multithreaded C++ (Linux) SOAP client to interface with the Betfair

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.