Bugfix and continued implementation of soap client

This commit is contained in:
Ziver Koc 2013-02-06 17:44:56 +00:00
parent a64464593a
commit 7bbec55626
6 changed files with 112 additions and 18 deletions

View file

@ -21,24 +21,34 @@
******************************************************************************/
package zutil.test;
import java.util.logging.Level;
import javassist.CannotCompileException;
import javassist.NotFoundException;
import javax.wsdl.WSDLException;
import zutil.log.CompactLogFormatter;
import zutil.log.LogUtil;
import zutil.net.http.soap.SOAPClientFactory;
import zutil.net.ws.WSInterface;
public class SOAPClientTest {
public static void main(String[] args) throws InstantiationException, IllegalAccessException, CannotCompileException, NotFoundException, WSDLException{
LogUtil.setGlobalLevel(Level.ALL);
LogUtil.setFormatter("", new CompactLogFormatter());
TestClient intf = SOAPClientFactory.getClient(TestClient.class);
System.out.println("GenClass: "+intf.getClass().getName());
intf.m();
intf.c();
}
public interface TestClient extends WSInterface{
public void m();
public void c();
}
}

View file

@ -110,7 +110,7 @@ public class SOAPTest {
@WSParamName(value="otherParam1", optional=true) int param1,
@WSParamName(value="otherParam2", optional=true) int param2) throws Exception{
System.out.println("Executing method: exceptionMethod()");
throw new Exception("Ziver is the fizle");
throw new Exception("This is an Exception");
}
@WSReturnName("stringArray")