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 8414639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:13:03+00:00 2026-06-10T01:13:03+00:00

I am newbie to web services. I have used WSDL2Java wizard of Axis2 to

  • 0

I am newbie to web services. I have used WSDL2Java wizard of Axis2 to generate the stub code, so now I have a large number of generated classes (around 50 interfaces and 50 classes) and a bit confused.

Please help me to clarify.

how to create the XML file and send it as a SOAP request to send and receive the response?
I have tried to follow the following code, in line 4 I used “null” but it asked for the “configure contex”, also I am not sure how to do the line 8 afterwards for example I could not find “xsd.EchoStringReturnDocument” in my code.

 try {           org.apache.axis2.userguide.Axis2SampleDocLitServiceStub stub
4              = new org.apache.axis2.userguide.Axis2SampleDocLitServiceStub(null,
                 "http://localhost:8080/axis2/services/Axis2SampleDocLitService");
             //implementing the callback online
            org.apache.axis2.userguide.Axis2SampleDocLitServiceCallbackHandler callback =
            new org.apache.axis2.userguide.Axis2SampleDocLitServiceCallbackHandler() {
8                       public void receiveResultechoString(
                      org.apache.axis2.userguide.xsd.EchoStringReturnDocument resDoc) {
                       System.out.println(resDoc.getEchoStringReturn());
                       }
            };
        org.apache.axis2.userguide.xsd.EchoStringParamDocument reqDoc = 
          org.apache.axis2.userguide.xsd.EchoStringParamDocument.Factory.newInstance();
           reqDoc.setEchoStringParam("Axis2 Echo");
           stub.startechoString(reqDoc, callback);
        } catch (java.rmi.RemoteException e) {
          e.printStackTrace();
       }

What I am using : Axis2, Eclipse, JSP, Struts2

Any other understandable method is greatly appreciated.

Thanks in advance,
😀

  • 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-10T01:13:04+00:00Added an answer on June 10, 2026 at 1:13 am

    Since you are using axis 2, it will be easy for you to follow the same path for now.

    http://people.apache.org/~ruchithf/hw-axis2/

    I’ll suggest reading about JAX-WS and JAXB as well.

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

Sidebar

Related Questions

I am a newbie in web services. I have a JAX-WS service which I
i am newbie to java/eclipse and also to creating web services.Now i am trying
.NET newbie here. I have an MVC3 web application EF 4.1 Code First and
I am a newbie to web-services. What is a good way to learn web-services
I'm a web services newbie and I've tried to learn it looking for tutorials
i am a newbie on web development, so i have some problems first of
I am a complete newbie to web services and I am working alone. My
I'm a java intermediate developer, python newbie and web-services uber newbie. As a learning
As a newbie in the world of web development, I have a handful of
(MSSQL newbie alert) I have a number of databases on my machine, some were

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.