Yes, this makes a lot of sense and is what I expected.
That's why I was confused when I saw the response message generated for the
roundtrip test.
I should have the skeleton stuff working this morning.
Rich Scheuerle
IBM WebSphere & Axis Web Services Development
512-838-5115 (IBM TL 678-5115)
Tom Jordahl
<tomj@macromedia. To: "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
com> cc:
Subject: RE: cvs commit:
xml-axis/java/test/wsdl/roundtrip RoundtripTestSe
10/14/2002 10:57 rviceTestCase.java
RoundtripTestSoapBindingImpl.java
AM
Please respond to
axis-dev
Rich,
The details element of a fault contains an element who's QName matches:
a) the part name of the fault, namespace of the fault from the binding for
RPC/enc
b) the element QName of the fault part for doc/lit
This QName of the fault messages are registered on a per-operation basis,
along with the fault class and XML type. (Per operation because the binding
can change the Namespace of a fault!!)
When a fault comes in, the details element is examined and if any of the
element QNames match one in the map of registered faults, we deserialize
the data. If the data is a complex type, the data IS the fault and we use
it as such, if it is a simple type, then we create a fault using the 'full'
constructor, passing in the deserialized object as the argument.
I hope this helps.
--
Tom Jordahl
Macromedia Server Development
-----Original Message-----
From: R J Scheuerle Jr [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 11:12 AM
To: [EMAIL PROTECTED]
Subject: RE: cvs commit: xml-axis/java/test/wsdl/roundtrip
RoundtripTestSe rviceTestCase.java RoundtripTestSoapBindingImpl.java
Looking at tcpmon and RoundtripTestServiceTestCase for
throwInvalidTickerException.
The Response message in tcpmon does contain the ticker symbol name "ABC".
However, the exception that is caught in RoundtripTestServiceTestCase has a
tickerSymbol of null. So apparently there is a problem in the client side
deserialization code.
Why is the exception java class name the element name ? Seems like this
could screw up a client who chose to use another class for
the exception.
Rich Scheuerle
IBM WebSphere & Axis Web Services Development
512-838-5115 (IBM TL 678-5115)
Tom Jordahl
<tomj@macromedia. To:
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
com> cc:
Subject: RE: cvs commit:
xml-axis/java/test/wsdl/roundtrip RoundtripTestSe
10/14/2002 09:03 rviceTestCase.java
RoundtripTestSoapBindingImpl.java
AM
Please respond to
axis-dev
Rich,
The wsdl/faults tests are working, why isn't this one?
--
Tom Jordahl
Macromedia Server Development
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 6:04 PM
To: [EMAIL PROTECTED]
Subject: cvs commit: xml-axis/java/test/wsdl/roundtrip
RoundtripTestServiceTestCase.java RoundtripTestSoapBindingImpl.java
scheu 2002/10/10 15:04:12
Modified: java/test/wsdl/roundtrip RoundtripTestServiceTestCase.java
RoundtripTestSoapBindingImpl.java
Log:
I tried running the roundtrip fault tests with checks to see if
the data is being flowed over the wire.
Apparently this is not working yet. Uncomment the asserts when
this is implemented.
Revision Changes Path
1.18 +6 -0
xml-axis/java/test/wsdl/roundtrip/RoundtripTestServiceTestCase.java
Index: RoundtripTestServiceTestCase.java
===================================================================
RCS file:
/home/cvs/xml-axis/java/test/wsdl/roundtrip/RoundtripTestServiceTestCase.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- RoundtripTestServiceTestCase.java 20 Aug 2002 15:29:01 -0000
1.17
+++ RoundtripTestServiceTestCase.java 10 Oct 2002 22:04:11 -0000
1.18
@@ -1249,6 +1249,9 @@
fail("Should have received an InvalidTickerSymbol
exception.");
} catch (InvalidTickerSymbol its) {
// Test was successful
+ //assertEquals("The expected and actual values did not
match.",
+ // its.getTickerSymbol(),
+ // "ABC");
} catch(RemoteException re) {
fail("Remote Exception caught: " + re);
}
@@ -1266,6 +1269,9 @@
fail("TRY: Should have received an InvalidTradeExchange
exception.");
} catch (InvalidTradeExchange ite) {
// Test was successful
+ //assertEquals("The expected and actual values did not
match.",
+ // ite.getTradeExchange(),
+ // "XYZ");
} catch (InvalidTickerSymbol its) {
fail("ITS: Should have received an InvalidTradeExchange
exception.");
} catch (InvalidCompanyId ici) {
1.15 +2 -2
xml-axis/java/test/wsdl/roundtrip/RoundtripTestSoapBindingImpl.java
Index: RoundtripTestSoapBindingImpl.java
===================================================================
RCS file:
/home/cvs/xml-axis/java/test/wsdl/roundtrip/RoundtripTestSoapBindingImpl.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- RoundtripTestSoapBindingImpl.java 25 Jul 2002 16:42:06 -0000
1.14
+++ RoundtripTestSoapBindingImpl.java 10 Oct 2002 22:04:11 -0000
1.15
@@ -678,7 +678,7 @@
public void throwInvalidTickerException()
throws InvalidTickerSymbol, RemoteException {
- throw new InvalidTickerSymbol("Invalid Ticker Symbol Received");
+ throw new InvalidTickerSymbol("ABC");
} // throwInvalidTickerSymbol
@@ -688,7 +688,7 @@
InvalidCompanyId,
RemoteException {
- throw new InvalidTradeExchange("Invalid Trade Exchange
Received");
+ throw new InvalidTradeExchange("XYZ");
} // throwInvalidTradeExchange