Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to generate a STUB

Posted on 2010-11-21
1
Medium Priority
?
725 Views
Last Modified: 2012-05-10
The target ant-wsdl2java is generating skeleton, I am looking for stub. It is generating the classes
CalculatorServiceSkeleton.java
CalculatorServiceMesageReceiverInOut

and many other classes based on the wsdl.
I am looking for stub generation to call the service from client side.
The process I followed is
1. Wrote the service class
2. Wrote the services.xml
3. Compile the class and made an .aar archive out of it.
4. Generated the wsdl from the Class using java2wsdlBuild target.

5. Ran ant-wsdl2java target to generate the stub.

Where I am going wrong I am not sure.
<target name="declare">
        <taskdef name="codegen" classname="org.apache.axis2.tool.ant.AntCodegenTask" classpathref="axis2.classpath"/>
    </target>
	
    <target name="ant-wsdl2java" depends="build-aar, declare">
        <codegen wsdlfilename="${dist.dir}/calculatorservice.wsdl" output="." serverside="true" generateservicexml="true"/>
    </target>

Open in new window

<target name="java2wsdlBuild" depends="compile">
        <taskdef name="java2wsdl" classname="org.apache.axis2.tool.ant.Java2WSDLTask" classpathref="axis2.classpath"/>
        <java2wsdl className="calculator.CalculatorService" classpath="${classes.dir}" outputfilename="calculatorservice.wsdl" outputlocation="${dist.dir}" targetNamespace="http://calculator.service/" schemaTargetNamespace="http://calculator.service/xsd">
            <classpath>
                <pathelement path="${axis2.classpath}"/>
                <pathelement location="${classes.dir}"/>
            </classpath>
        </java2wsdl>
    </target>

Open in new window

0
Comment
Question by:prsubject
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
prsubject earned 0 total points
ID: 34184996
Got the answer

    <target name="ant-wsdl2java" depends="build-aar, declare">
        <codegen wsdlfilename="${dist.dir}/calculatorservice.wsdl"
                        output="."
                       serverside="false" --> Here earlier I mentioned the value as true
                       generateservicexml="true"/>
    </target>
0

Featured Post

RHCE - Red Hat OpenStack Prep Course

This course will provide in-depth training so that students who currently hold the EX200 & EX210 certifications can sit for the EX310 exam. Students will learn how to deploy & manage a full Red Hat environment with Ceph block storage, & integrate Ceph into other OpenStack service

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question