Java 클라이언트로 웹 서비스를 호출하려고합니다. 은 WSDL은 다음과 같습니다 http://pastebin.com/m13124baJava에서 웹 서비스를 호출 할 때 "org.apache.axis2.AxisFault : unknown"
내 클라이언트 : 나는 클라이언트를 실행하면
public class Client{
public static void main(java.lang.String args[]){
try{
CompileAndExecuteServiceInterfaceStub stub =
new CompileAndExecuteServiceInterfaceStub
("http://192.168.1.3:8080/axis2/services/CompileAndExecuteServiceInterface");
Compile comp = new Compile();
comp.setArgs0("Test");
comp.setArgs1("public class Test { public static void main(String[] args) { System.out.println(\"Hello\");}}");
String[] classpath = {};
comp.setArgs2(classpath);
stub.compile(comp);
} catch(Exception e){
e.printStackTrace();
}
}
}
이제 다음과 같은 오류가 발생 : 나는에 서버의 비즈니스 로직을 시도
org.apache.axis2.AxisFault: unknown
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:517)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at de.dax.compileandexecuteclient.CompileAndExecuteServiceInterfaceStub.compile(CompileAndExecuteServiceInterfaceStub.java:184)
at de.dax.compileandexecuteclient.Client.main(Client.java:17)</blockquote>
내 로컬 컴퓨터에서 작동하며 작동합니다. 이 서비스는 파일과 폴더를 만듭니다. 웹 서비스에서 그렇게 할 수 있습니까? 또한 간단한 "Hello World"웹 서비스를 작성하여 서버에 배포했습니다. 이것은 잘 동작했다.
정말 클래스 패스를 비어있게 설정 하시겠습니까? –