First I would like to clarify a few things:
- Within your code I see the usage of two different object models (OM),
DOM for the xml object and JDOM for the accessor. This does not
hurt but you should be aware of the resulting effects.
Declaring the OM for the xml object defines how the object parses,
writes and holds the xml objects data, e.g. when you choose DOM the
xml object contains a DOM-tree underneath, uses a parser to create the
DOM-tree from an external representation and uses an DOM-writer for
generating the external representation.
Declaring the OM for the accessor defines the OM that will be used
for creating xml objects from Tamino responses. So, the xml objects
returned from a TResponse have the OM of the accessor.
So, where and which OM did you exchange?
- Your XML-String contains a “<<” which I think is a typo.
However, running your test on my machine (with the most actual
developing version!) does not fail and the xml output is this:
<?xml version="1.0" encoding="utf-8"?>
200
0
1
8888880
which seems to be ok. Could you please verify that with the result
from your xmlObject.writeTo( stw );
As you see an empty element is given with the short cut form:
which is semanticaly identical to
Unfortunatly this form (the later) caused problems within Tamino
and the API also preferred this form when writing DOM.
This has been fixed in Tamino XML Server Version 3.1.2.1.
I think that MSXML3 generates the short cut form, so that the
problem dos not occur.
I recommend using the latest Tamino XML Server Version and also
the latest API version (packaged within the server version or
community download)
Regards,
Stefan
#webMethods#API-Management#webMethods-Tamino-XML-Server-APIs