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.... :-(
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.... :-(