I was looking for a basic confidence check - verifying that the Axis server 
instance was able to be 'pinged' by the generated test case. [so far the answer 
is 'no'].

I realize that for testing anything beyond the basic communication, that 
changes will be needed in the generated server, client and test code [establish 
couplings to the actual implementation code].


For now, I've decided to drop back to Axis 1.1 - modified the build.xml to use 
the older version's classpath, and have the Axis server sitting inside a 
different Tomcat directory tree.

-----Original Message-----
From: KHSergel [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 12, 2004 12:50 PM
To: [EMAIL PROTECTED]
Subject: Re: wsdl2java - are generated JUnit tests complete?


Hello,

the JUnit test cases should work without further modification, but will only
test the accessibility of the defined Operations and the proper return of the
expected returnClass.
To test if something usefull is returned is up to you.

hope it helps
khs
-----Ursprüngliche Nachricht-----
Von: Levitt, David Bookspan - Garden City <[EMAIL PROTECTED]>
An: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Datum: Freitag, 12. November 2004 16:41
Betreff: wsdl2java - are generated JUnit tests complete?


Should the JUnit test cases generated by WSDL2Java work without further
modification?

If not, what modifications are usually needed to produce a working test
case?


[environment: JDK 1.5; Axis 1.2RC1; Eclipse or Ant 1.6.2; WinXP]

--------------[Eclipse 3.0 JUnit 'Failure Trace'
window]-------------------------------------
AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.NumberFormatException: null
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:DLevitt

java.lang.NumberFormatException: null
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.ja
va:221)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.jav
a:128)
at
org.apache.axis.encoding.DeserializationContext.endElement(Deserializati
onContext.java:1077)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(
AbstractSAXParser.java:633)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEnd
Element(XMLNSDocumentScannerImpl.java:713)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$F
ragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:16
85)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s
canDocument(XMLDocumentFragmentScannerImpl.java:368)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML1
1Configuration.java:834)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML1
1Configuration.java:764)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.jav
a:148)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstr
actSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationCon
text.java:225)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstan
dChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:173)
at org.apache.axis.client.Call.invokeEngine(Call.java:2737)
at org.apache.axis.client.Call.invoke(Call.java:2720)
at org.apache.axis.client.Call.invoke(Call.java:2396)
at org.apache.axis.client.Call.invoke(Call.java:2319)
at org.apache.axis.client.Call.invoke(Call.java:1776)
at
com.vendor.realtime.services.tigerservice.TigerServiceSoapBindingStub.va
lidate(TigerServiceSoapBindingStub.java:165)
at
com.vendor.realtime.services.tigerservice.TigerWebServiceServiceTestCase
.test1TigerServiceValidate(TigerWebServiceServiceTestCase.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
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:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
stRunner.java:421)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun
ner.java:305)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu
nner.java:186)





It may work in practice, but does it work in theory?

Reply via email to