/**
|
* MessagingInsertTestCase.java
|
* <p>
|
* This file was auto-generated from WSDL
|
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
*/
|
|
package WebServiceClient;
|
|
public class MessagingInsertTestCase extends junit.framework.TestCase {
|
public MessagingInsertTestCase(String name) {
|
super(name);
|
}
|
|
public void testMessagingInsertSoap12WSDL() throws Exception {
|
javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
|
java.net.URL url = new java.net.URL(new MessagingInsertLocator().getMessagingInsertSoap12Address() + "?WSDL");
|
javax.xml.rpc.Service service = serviceFactory.createService(url, new MessagingInsertLocator().getServiceName());
|
assertTrue(service != null);
|
}
|
|
public void test1MessagingInsertSoap12SMSMessageAccept() throws Exception {
|
MessagingInsertSoap12Stub binding;
|
try {
|
binding = (MessagingInsertSoap12Stub) new MessagingInsertLocator().getMessagingInsertSoap12();
|
} catch (javax.xml.rpc.ServiceException jre) {
|
if (jre.getLinkedCause() != null) jre.getLinkedCause().printStackTrace();
|
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
|
}
|
assertNotNull("binding is null", binding);
|
|
// Time out after a minute
|
binding.setTimeout(60000);
|
|
// Test operation
|
binding.SMSMessageAccept(new String(), new javax.xml.rpc.holders.IntHolder(), new javax.xml.rpc.holders.StringHolder());
|
// TBD - validate results
|
}
|
|
public void testMessagingInsertSoapWSDL() throws Exception {
|
javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
|
java.net.URL url = new java.net.URL(new MessagingInsertLocator().getMessagingInsertSoapAddress() + "?WSDL");
|
javax.xml.rpc.Service service = serviceFactory.createService(url, new MessagingInsertLocator().getServiceName());
|
assertTrue(service != null);
|
}
|
|
public void test2MessagingInsertSoapSMSMessageAccept() throws Exception {
|
MessagingInsertSoap_BindingStub binding;
|
try {
|
binding = (MessagingInsertSoap_BindingStub) new MessagingInsertLocator().getMessagingInsertSoap();
|
} catch (javax.xml.rpc.ServiceException jre) {
|
if (jre.getLinkedCause() != null) jre.getLinkedCause().printStackTrace();
|
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
|
}
|
assertNotNull("binding is null", binding);
|
|
// Time out after a minute
|
binding.setTimeout(60000);
|
|
// Test operation
|
binding.SMSMessageAccept(new String(), new javax.xml.rpc.holders.IntHolder(), new javax.xml.rpc.holders.StringHolder());
|
// TBD - validate results
|
}
|
|
}
|