Type mapping in Apache Axis

C

Christ@Mint

Hello everybody!

I have a great problem with the type mapping mechanism in Apache Axis.
I have read many tutorials and know, that I have to create a WSDL and
a WSDD file for deploying the webservice and using own data types. The
following sample programm comes from
"http://www.pankaj-k.net/axis4tag/WSWithJAXRPCAndAxis.ppt". Nearly all
steps made in this tutorial are easily to understand, but the problem
at last are two imports ("localhost", "BeanService"):

import localhost.*; <---- ???
import BeanService.*; <---- ???

public class AddFunction1Client
{
public static void main(String [] args) throws Exception
{
Complex a = new Complex();
Complex b = new Complex();
a.setR(10.0); a.setI(5.0);
b.setR(3.0); b.setI(2.0);
AddFunction1Service afs = new AddFunction1ServiceLocator();
AddFunction1 af = afs.getAddFunction1Service();
Complex ret = af.addComplex(a, b);
System.out.println("addComplex(a + b) =
(" + ret.getR() + ", " + ret.getI() + ")");
}
}

Can anyone tell me, where these packages/classes come from or what I
EXACTELY have to do for being able to use self-created data types with
Axis?

Thank you very much, I become desperate.... :-(
 
C

Christophe Vanfleteren

Christ@Mint said:
Hello everybody!

I have a great problem with the type mapping mechanism in Apache Axis.
I have read many tutorials and know, that I have to create a WSDL and
a WSDD file for deploying the webservice and using own data types. The
following sample programm comes from
"http://www.pankaj-k.net/axis4tag/WSWithJAXRPCAndAxis.ppt". Nearly all
steps made in this tutorial are easily to understand, but the problem
at last are two imports ("localhost", "BeanService"):

import localhost.*; <---- ???
import BeanService.*; <---- ???
Can anyone tell me, where these packages/classes come from or what I
EXACTELY have to do for being able to use self-created data types with
Axis?

Thank you very much, I become desperate.... :-(
Those are classes that are generated by the Java2WSDL tool that is included
with axis.
The Beanservice package holds the custom types that are used, the localhost
package holds the webservice interfaces.

When you read the userguide, you'll see examples that use custom datatypes.
(also check $AXISHOME/samples/userguide/example5)

mvg,
Christophe Vanfleteren
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top