axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: cvs commit: xml-axis/java/test/wsdl Java2WsdlAntTask.java Wsdl2javaTestSuite.xml
Date Wed, 05 Dec 2001 23:27:21 GMT
This new test case failed....

   <failure message="Test Sequence Failed=-3"
type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: Test
Sequence
Failed=-3
	at junit.framework.Assert.fail(Assert.java:51)
	at junit.framework.Assert.assertTrue(Assert.java:38)
	at
test.sequence.SequenceTestServiceTestCase.testSequenceTest(SequenceTestServiceTestCase.java:21)
	at java.lang.reflect.Method.invoke(Native Method)
	at junit.framework.TestCase.runTest(TestCase.java:166)
	at junit.framework.TestCase.runBare(TestCase.java:140)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:131)
	at junit.framework.TestSuite.runTest(TestSuite.java:173)
	at junit.framework.TestSuite.run(TestSuite.java:168)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:231)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:409)
</failure>

Thanks,
dims


--- scheu@apache.org wrote:
> scheu       01/12/05 14:04:06
> 
>   Modified:    java/src/org/apache/axis/wsdlgen Emitter.java Java2Wsdl.java
>                         Types.java
>                java/test/sequence SequenceTest.wsdl
>                         SequenceTestServiceTestCase.java
>                java/test/wsdl Wsdl2javaTestSuite.xml
>   Added:       java/test/wsdl Java2WsdlAntTask.java
>   Removed:     java/test/sequence SequenceTestSOAPBindingImpl.java
>   Log:
>   Added Java2Wsdl Ant Task
>   Modified SequenceTest to do wsdl->java->wsdl->java->test
>   Minor modifications of Java2Wsdl
>   
>   Enjoy
>   
>   Revision  Changes    Path
>   1.14      +5 -3      xml-axis/java/src/org/apache/axis/wsdlgen/Emitter.java
>   
>   Index: Emitter.java
>   ===================================================================
>   RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdlgen/Emitter.java,v
>   retrieving revision 1.13
>   retrieving revision 1.14
>   diff -u -r1.13 -r1.14
>   --- Emitter.java	2001/12/04 13:10:31	1.13
>   +++ Emitter.java	2001/12/05 22:04:06	1.14
>   @@ -352,7 +352,7 @@
>        private Binding writeBinding(Definition def, boolean add) throws Exception {
>            Binding binding = def.createBinding();
>            binding.setUndefined(false);
>   -        binding.setQName(new javax.wsdl.QName(intfNS, clsName + "SoapBinding"));
>   +        binding.setQName(new javax.wsdl.QName(intfNS, getServiceName() + "SoapBinding"));
>    
>            SOAPBinding soapBinding = new SOAPBindingImpl();
>            soapBinding.setStyle("rpc");
>   @@ -383,8 +383,10 @@
>            Port port = def.createPort();
>    
>            port.setBinding(binding);
>   -        port.setName(clsName + "Port");
>    
>   +        // Probably should use the end of the location Url
>   +        port.setName(getServiceName());
>   +
>            SOAPAddress addr = new SOAPAddressImpl();
>            addr.setLocationURI(locationUrl);
>    
>   @@ -404,7 +406,7 @@
>            PortType portType = def.createPortType();
>            portType.setUndefined(false);
>    
>   -        portType.setQName(new javax.wsdl.QName(intfNS, clsName + "PortType"));
>   +        portType.setQName(new javax.wsdl.QName(intfNS, getServiceName() + "PortType"));
>    
>            /** @todo should introduce allowInterfaces, to publish all methods from a
interface
> */
>            /** @todo if allowedMethods is specified always look for inherited methods
as well??
> */
>   
>   
>   
>   1.8       +1 -1      xml-axis/java/src/org/apache/axis/wsdlgen/Java2Wsdl.java
>   
>   Index: Java2Wsdl.java
>   ===================================================================
>   RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdlgen/Java2Wsdl.java,v
>   retrieving revision 1.7
>   retrieving revision 1.8
>   diff -u -r1.7 -r1.8
>   --- Java2Wsdl.java	2001/12/02 22:45:28	1.7
>   +++ Java2Wsdl.java	2001/12/05 22:04:06	1.8
>   @@ -114,7 +114,7 @@
>                    CLOptionDescriptor.ARGUMENT_REQUIRED,
>                    LOCATION_OPT,
>                    "service location"),
>   -        new CLOptionDescriptor("service name",
>   +        new CLOptionDescriptor("service",
>                    CLOptionDescriptor.ARGUMENT_REQUIRED,
>                    SERVICE_NAME_OPT,
>                    "service name"),
>   
>   
>   
>   1.8       +2 -1      xml-axis/java/src/org/apache/axis/wsdlgen/Types.java
>   
>   Index: Types.java
>   ===================================================================
>   RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdlgen/Types.java,v
>   retrieving revision 1.7
>   retrieving revision 1.8
>   diff -u -r1.7 -r1.8
>   --- Types.java	2001/12/05 19:45:41	1.7
>   +++ Types.java	2001/12/05 22:04:06	1.8
>   @@ -204,7 +204,8 @@
>                // Get the QName from the registry, or create our own.
>                qName = reg.getTypeQName(type);
>                if (qName == null) {
>   -                String ns = namespaces.getCreate(type.getName().substring(0,
> type.getName().lastIndexOf('.')));
>   +                String ns = namespaces.getCreate(
>   +                  type.getName().substring(0, type.getName().lastIndexOf('.')));
>                    String pre = namespaces.getCreatePrefix(ns);
>                    String localPart = type.getName().substring(type.getName().lastIndexOf('.')
+
> 1);
>                    localPart = localPart.replace('$', '_');
>   
>   
>   
>   1.2       +4 -4      xml-axis/java/test/sequence/SequenceTest.wsdl
>   
>   Index: SequenceTest.wsdl
>   ===================================================================
>   RCS file: /home/cvs/xml-axis/java/test/sequence/SequenceTest.wsdl,v
>   retrieving revision 1.1
>   retrieving revision 1.2
>   diff -u -r1.1 -r1.2
>   --- SequenceTest.wsdl	2001/11/13 18:38:17	1.1
>   +++ SequenceTest.wsdl	2001/12/05 22:04:06	1.2
>   @@ -40,7 +40,7 @@
>      </message>
>    
>      <!-- port type declns -->
>   -  <portType name="SequenceTest">
>   +  <portType name="SequenceTestPortType">
>        <operation name="testSequence">
>          <input message="tns:testSequenceRequest"/>
>          <output message="tns:testSequenceResponse"/>
>   @@ -48,7 +48,7 @@
>      </portType>
>    
>      <!-- binding declns -->
>   -  <binding name="SequenceTestSOAPBinding" type="tns:SequenceTest">
>   +  <binding name="SequenceTestSoapBinding" type="tns:SequenceTestPortType">
>        <soap:binding style="rpc"
>                      transport="http://schemas.xmlsoap.org/soap/http"/>
>        <operation name="testSequence">
>   @@ -67,8 +67,8 @@
>      </binding>
>    
>      <!-- service decln -->
>   -  <service name="SequenceTestService">
>   -    <port name="SequenceTest" binding="tns:SequenceTestSOAPBinding">
>   +  <service name="SequenceTest">
>   +    <port name="SequenceTest" binding="tns:SequenceTestSoapBinding">
>          <soap:address location="http://localhost:8080/axis/services/SequenceTest"/>
>        </port>
>      </service>
>   
>   
>   
>   1.2       +2 -1      xml-axis/java/test/sequence/SequenceTestServiceTestCase.java
>   
>   Index: SequenceTestServiceTestCase.java
>   ===================================================================
>   RCS file: /home/cvs/xml-axis/java/test/sequence/SequenceTestServiceTestCase.java,v
>   retrieving revision 1.1
>   retrieving revision 1.2
>   diff -u -r1.1 -r1.2
>   --- SequenceTestServiceTestCase.java	2001/11/13 18:38:18	1.1
>   +++ SequenceTestServiceTestCase.java	2001/12/05 22:04:06	1.2
>   @@ -12,7 +12,8 @@
>        }
>    
>        public void testSequenceTest() {
>   -        test.sequence.SequenceTest binding = new SequenceTestService().getSequenceTest();
>   +        test.sequence.SequenceTestPortType binding =
>   +            new SequenceTest().getSequenceTest();
>            assertTrue("binding is null", binding != null);
>            try {
>                int value = -3;
>   
>   
>   
>   1.30      +42 -0     xml-axis/java/test/wsdl/Wsdl2javaTestSuite.xml
>   
>   Index: Wsdl2javaTestSuite.xml
>   ===================================================================
>   RCS file: /home/cvs/xml-axis/java/test/wsdl/Wsdl2javaTestSuite.xml,v
>   retrieving revision 1.29
>   retrieving revision 1.30
>   diff -u -r1.29 -r1.30
>   --- Wsdl2javaTestSuite.xml	2001/12/05 21:41:42	1.29
>   +++ Wsdl2javaTestSuite.xml	2001/12/05 22:04:06	1.30
>   @@ -16,6 +16,11 @@
>          <classpath refid="test-classpath" />
>      </taskdef>
>    
>   +  <taskdef name="java2wsdl" 
>   +           classname="test.wsdl.Java2WsdlAntTask">
>   +      <classpath refid="test-classpath" />
>   +  </taskdef>
>   +
>      <target name="main">
>        <!-- Use this to check the classpath if the ANT Task fails... -->
>        <!--
>   @@ -48,6 +53,7 @@
>        </wsdl2java>
>    
>        <!-- Sequence Test -->
>   +    <!-- Generate Java From WSDL -->
> 
=== message truncated ===


=====
Davanum Srinivas - http://jguru.com/dims/

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

Mime
View raw message