Hi

I am new to axis2, when i am trying to run code from the following URL

http://www.onjava.com/pub/a/onjava/2005/07/27/axis2.html?page=1

When i compile the java client, it says that it can't find OM Libraries
import org.apache.axiom.om.OMAbstractFactory;
                          ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:2: package
org.apache.axiom.om does not exist
import org.apache.axiom.om.OMElement;
                          ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:3: package
org.apache.axiom.om does not exist
import org.apache.axiom.om.OMFactory;
                          ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:4: package
org.apache.axiom.om does not exist
import org.apache.axiom.om.OMNamespace;
                          ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:5: package
org.apache.axis2.addressing does not exist
import org.apache.axis2.addressing.EndpointReference;
                                  ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:6: package
org.apache.axis2.client does not exist
import org.apache.axis2.client.Options;
                              ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:7: package
org.apache.axis2.client does not exist
import org.apache.axis2.client.ServiceClient;
                              ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:25: cannot
find symbol
symbol  : class OMElement
location: class Scenario1Client
   public static OMElement createPayLoad() {
                 ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12: cannot
find symbol
symbol  : class ServiceClient
location: class Scenario1Client
       ServiceClient client = new ServiceClient();
       ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:12: cannot
find symbol
symbol  : class ServiceClient
location: class Scenario1Client
       ServiceClient client = new ServiceClient();
                                  ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14: cannot
find symbol
symbol  : class Options
location: class Scenario1Client
       Options opts = new Options();
       ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:14: cannot
find symbol
symbol  : class Options
location: class Scenario1Client
       Options opts = new Options();
                          ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:16: cannot
find symbol
symbol  : class EndpointReference
location: class Scenario1Client
       opts.setTo(new EndpointReference("
http://127.0.0.1:8080/axis2/services/MyService";));
                      ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:20: cannot
find symbol
symbol  : class OMElement
location: class Scenario1Client
       OMElement res = client.sendReceive(createPayLoad());
       ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:26: cannot
find symbol
symbol  : class OMFactory
location: class Scenario1Client
       OMFactory fac = OMAbstractFactory.getOMFactory();
       ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:26: cannot
find symbol
symbol  : variable OMAbstractFactory
location: class Scenario1Client
       OMFactory fac = OMAbstractFactory.getOMFactory();
                       ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:27: cannot
find symbol
symbol  : class OMNamespace
location: class Scenario1Client
       OMNamespace omNs = fac.createOMNamespace("
http://ws.apache.org/axis2/xsd";, "ns1");
       ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:28: cannot
find symbol
symbol  : class OMElement
location: class Scenario1Client
       OMElement method = fac.createOMElement("echo", omNs);
       ^
/root/Desktop/invoking-
web-services-using-apache-axis2.zip_FILES/Scenario1Client.java:29: cannot
find symbol
symbol  : class OMElement
location: class Scenario1Client
       OMElement value = fac.createOMElement("value", omNs);
       ^
19 errors

Can anyone tell me where I can download this API, I am using
tomcat6.0.13and axis2
1.2 war files on fedora. Someone suggested that I should install axis2
source, will that solve the problem.

Thanks

Reply via email to