我编写了一个JAVA文件:Provider1Appointment.java;其代码如下:
import java.io.StringReader;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.input.SAXBuilder;
import org.jdom.output.XMLOutputter;
import org.jdom.output.Format;
public class Provider1Appointment implements Appointment
{
public Provider1Appointment()
{
}
~~~~~~~~~
}
然后写了一个Appointment.java;如下:
public interface Appointment
{
String getProviderDetails();
String getAppointmentSlots(String inputReq);
String reserveAppointment(String inputReq);
}
将其编译后的CLASS文件放在了axis目录下,在改目录下,DOS环境中编译第一个java文件都是可以的,但是当我将第一个JAVA文件改JWS文件后放在AXIS下,查看WSDL是却出现了如下错误,请问这是什么错误啊?
AXIS error
Sorry, something seems to have gone wrong... here are the details:
Fault - Error while compiling: C:\tomcat-provider1\webapps\axis\WEB-INF\jwsClasses\Provider1Appointment.java
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.compileError
faultSubcode:
faultString: Error while compiling: C:\tomcat-provider1\webapps\axis\WEB-INF\jwsClasses\Provider1Appointment.java
faultActor:
faultNode:
faultDetail:
{}Errors:Error compiling C:\tomcat-provider1\webapps\axis\WEB-INF\jwsClasses\Provider1Appointment.java:
Line 8, column -1: 找不到符号
Line 0, column 0:
1 错误
------解决方案--------------------
up
------解决方案--------------------
Appointment编译后放在axis/web-inf/classes下,一般不建议使用JWS方式。