Hi,
I am new to web services and have understood to use the axis.jar for
java web services.
I am using Tomcat 5.0 and J2SE 5.0 for trying the interfax api.
I am interested in using the interfax api but it doesn't work.
There is a simple tutorial provided in the axis file.
There I am trying to use the the interfax api.
So I have added Interfax.jar in the C:\Tomcat 5.0\webapps\axis\WEB-INF\lib directory.
I have also added the following method in the happyaxis.jsp file provided
as part of the axis file.
/**
* Test a fax print
*/
public void printFax(){
try {
long result;
// Create an instance of the Web Service Object
InterFaxSoapStub ifs = new InterFaxSoapStub(new URL("http://ws.interfax.net/DFS.asmx"),new Service(new QName("SendCharFax")));
// Invoke the SendCharFax method
result = ifs.sendCharFax("MyUserName","MyPassword","+442072112323","This is a sample fax from me","TXT");
if (result > 0)
// Positive returned value indicates that the fax was sent successfully.
// The return value is the Transaction ID.
System.out.println("Fax submitted properly. Transaction number: " + result);
else
// Negative returned value indicates sending failure.
// See error code definitions
System.out.println("Error sending fax!");
} catch (Exception e) {
System.out.println(e.toString());
}
}On top of this jsp file the following classes/packages are imported.
<%@ page contentType="text/html; charset=utf-8"
import="java.io.InputStream,
java.io.IOException,
javax.xml.parsers.SAXParser,
java.lang.reflect.*,
javax.xml.parsers.SAXParserFactory,
org.apache.axis.client.Service,
interfax.InterFaxSoapStub,
javax.xml.namespace.QName,
java.net.URL"
session="false" %>And then I have used the method (printFax()) as previously declared
somewhere in the jsp file.
Now the problem is that the Tomcat servlet engine doesn't find
the interfax.InterFaxSoapStub.
The Interfax.jar file is placed like this:
C:\Tomcat 5.0\webapps\axis\WEB-INF\lib\Interfax.jar
Now what is the problem?
Please help as I need to get it working urgently.
Thanks!

It still doesn't work.
This is very strange...