Fatal Error

I have written a servlet that posts an xml document to a sequence but I am getting 2 errors. One at Tomcat level and the other is at the mediator level.

The first is at the tomcat level:

Server returned HTTP response code: 400 for URL: http://localhost:8080/orchestra
tor/OrchestratorGateway?xbd.sequence.uri=http://localhost:8080/orchestrator/Sequ
ences/UpdateSequence.xml


The second one is at the Mediator level:

2003-05-27 11:22:36,345 FATAL - Public ID: null, System ID: null@(line, column):
(1, 1), org.xml.sax.SAXParseException: The markup in the document preceding the
root element must be well-formed.
2003-05-27 11:22:36,345 ERROR - SagSequencer - com.softwareag.xbridge.exceptions
.XException MessageSAXParser.parse: org.xml.sax.SAXException: Public ID: null, S
ystem ID: null@(line, column): (1, 1), org.xml.sax.SAXParseException: The markup
in the document preceding the root element must be well-formed.
2003-05-27 11:22:36,345 ERROR - SagSequencer - Sequencer detected Error processi
ng
com.softwareag.xbridge.exceptions.XException: com.softwareag.xbridge.exceptions.
XException com.softwareag.xbridge.exceptions.XException MessageSAXParser.parse:
org.xml.sax.SAXException: Public ID: null, System ID: null@(line, column): (1, 1
), org.xml.sax.SAXParseException: The markup in the document preceding the root
element must be well-formed.
at com.softwareag.xbridge.infrastructure.MessageSAXParser.parse(Unknown
Source)
at com.softwareag.xbridge.infrastructure.Message.setPayload(Unknown Sour
ce)
at com.softwareag.xbridge.gateways.HttpGatewayImpl.httpReceive(Unknown S
ource)
at com.softwareag.xbridge.gateways.HttpGatewayImpl.modify(Unknown Source
)
at com.softwareag.xbridge.infrastructure.ModifierProxy.modify(Unknown So
urce)
at com.softwareag.xbridge.sequencer.KeywordSTEP.execute(Unknown Source)
at com.softwareag.xbridge.sequencer.SequencerImpl.execute(Unknown Source
)
at com.softwareag.xbridge.sequencer.SequencerImpl.dispatch(Unknown Sourc
e)
at com.softwareag.xbridge.infrastructure.DispatcherImpl$MessageDispatche
r.perform(Unknown Source)
at com.softwareag.xbridge.util.WorkerThread.run(Unknown Source)



I am using the following:
Mediator 7.2.1
Tomcat 4
JDK 1.3.1

Please find attached the servlet I am using. Below is the update sequence I am usinf and an exmaple of the xml document I am constructing in my servlet to be posted.










"<?xml version="1.0" encoding="UTF-8"?><B
ranchIssuer>SiteA8<Ser
ialNumber>888<Produ
ctQty>88200<Recip
ient>82003-5-26Defect</Order
>"


Thanks for your assistance :mad:

The HTTP PUT to store the document into Tamino does not respond with a body. The payload being returned to the client has to be XML but it is empty after the HTTP PUT. What you could do it use a SagPayloadSetter step after the SagHttpGateway step to return some response document. If the HTTP PUT fails an on_error will be triggered and this too could use SagPayloadSetter to return some failure document.

Hope this helps.

Stuart Fyffe-Collins
Software AG (UK) Ltd.