dims 2002/12/24 16:02:48
Modified: java/test/wsdl/interop4/groupG/mime/rpc
MimeRPCInteropTestCase.java
Log:
Trying to interop with "http://soap.systinet.net:6060/R4MIMERPCService/" details at
http://www.whitemesa.net/r4/interop4.html. we are not sending stuff correctly.
Revision Changes Path
1.2 +15 -4
xml-axis/java/test/wsdl/interop4/groupG/mime/rpc/MimeRPCInteropTestCase.java
Index: MimeRPCInteropTestCase.java
===================================================================
RCS file:
/home/cvs/xml-axis/java/test/wsdl/interop4/groupG/mime/rpc/MimeRPCInteropTestCase.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MimeRPCInteropTestCase.java 23 Dec 2002 22:27:44 -0000 1.1
+++ MimeRPCInteropTestCase.java 25 Dec 2002 00:02:48 -0000 1.2
@@ -8,6 +8,7 @@
package test.wsdl.interop4.groupG.mime.rpc;
import java.util.Arrays;
+import java.net.URL;
public class MimeRPCInteropTestCase extends junit.framework.TestCase {
public MimeRPCInteropTestCase(java.lang.String name) {
@@ -17,7 +18,7 @@
public void test1MimeRPCSoapPortEchoAttachment() throws Exception {
test.wsdl.interop4.groupG.mime.rpc.AttachmentsPortType binding;
try {
- binding = new
test.wsdl.interop4.groupG.mime.rpc.MimeRPCInteropLocator().getMimeRPCSoapPort();
+ binding = new
test.wsdl.interop4.groupG.mime.rpc.MimeRPCInteropLocator().getMimeRPCSoapPort(url);
} catch (javax.xml.rpc.ServiceException jre) {
if (jre.getLinkedCause() != null)
jre.getLinkedCause().printStackTrace();
@@ -36,7 +37,7 @@
public void test2MimeRPCSoapPortEchoAttachments() throws Exception {
test.wsdl.interop4.groupG.mime.rpc.AttachmentsPortType binding;
try {
- binding = new
test.wsdl.interop4.groupG.mime.rpc.MimeRPCInteropLocator().getMimeRPCSoapPort();
+ binding = new
test.wsdl.interop4.groupG.mime.rpc.MimeRPCInteropLocator().getMimeRPCSoapPort(url);
} catch (javax.xml.rpc.ServiceException jre) {
if (jre.getLinkedCause() != null)
jre.getLinkedCause().printStackTrace();
@@ -60,7 +61,7 @@
public void test3MimeRPCSoapPortEchoAttachmentAsBase64() throws Exception {
test.wsdl.interop4.groupG.mime.rpc.AttachmentsPortType binding;
try {
- binding = new
test.wsdl.interop4.groupG.mime.rpc.MimeRPCInteropLocator().getMimeRPCSoapPort();
+ binding = new
test.wsdl.interop4.groupG.mime.rpc.MimeRPCInteropLocator().getMimeRPCSoapPort(url);
} catch (javax.xml.rpc.ServiceException jre) {
if (jre.getLinkedCause() != null)
jre.getLinkedCause().printStackTrace();
@@ -78,7 +79,7 @@
public void test4MimeRPCSoapPortEchoBase64AsAttachment() throws Exception {
test.wsdl.interop4.groupG.mime.rpc.AttachmentsPortType binding;
try {
- binding = new
test.wsdl.interop4.groupG.mime.rpc.MimeRPCInteropLocator().getMimeRPCSoapPort();
+ binding = new
test.wsdl.interop4.groupG.mime.rpc.MimeRPCInteropLocator().getMimeRPCSoapPort(url);
} catch (javax.xml.rpc.ServiceException jre) {
if (jre.getLinkedCause() != null)
jre.getLinkedCause().printStackTrace();
@@ -94,4 +95,14 @@
assertTrue(Arrays.equals(input, output));
}
+ public static URL url = null;
+
+ public static void main(String[] args) throws Exception {
+ if (args.length == 1) {
+ url = new URL(args[0]);
+ } else {
+ url = new URL(new
test.wsdl.interop4.groupG.mime.rpc.MimeRPCInteropLocator().getMimeRPCSoapPortAddress());
+ }
+ junit.textui.TestRunner.run(new
junit.framework.TestSuite(MimeRPCInteropTestCase.class));
+ } // main
}