You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by Sabrina Leandro <sa...@gmail.com> on 2005/05/04 19:49:03 UTC

WS-A: ReplyTo Header Problem

Hi all,

I´m sorry for sending this email twice, but when I sent it the first
time, it got no reply, and I don´t know why. Isn´t someone developing
the WS-Addressing project? If so, could this person help me, please?

I´m having a problem setting the ReplyTo header on WS-Addressing.

I have downloaded the lattest version for WS-Addressing from the CVS.

When I send a message using the ReplyTo header, like this:
<soapenv:Envelope (..)>
<soapenv:Header>
<wsa:MessageID
soapenv:mustUnderstand="0">uuid:55fdf570-b9bb-11d9-a682-f52225e86969</wsa:MessageID>
<wsa:To soapenv:mustUnderstand="0">http://localhost:7580/axis/services/AddressedVersion</wsa:To>
<wsa:Action
soapenv:mustUnderstand="0">urn:getVersion</wsa:Action>
<wsa:From
soapenv:mustUnderstand="0"><wsa:Address>http://localhost:6080/</wsa:Address></wsa:From>
<wsa:ReplyTo
soapenv:mustUnderstand="0"><wsa:Address>http://localhost:6080/</wsa:Address></wsa:ReplyTo>
<wsa:FaultTo soapenv:mustUnderstand="0">
<wsa:Address>http://localhost:6080/</wsa:Address></wsa:FaultTo></soapenv:Header>
<soapenv:Body><ns1:getVersion
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="AddressedVersion"/></soapenv:Body>
</soapenv:Envelope>

I get the following Fault message:
<soapenv:Envelope (..)>
<soapenv:Header>
<wsa:MessageID
soapenv:mustUnderstand="0">uuid:560c4d50-b9bb-11d9-9040-b1d875cfdd9b</wsa:MessageID>
<wsa:To
soapenv:mustUnderstand="0">http://localhost:6080/</wsa:To>
<wsa:Action
soapenv:mustUnderstand="0">http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action>
<wsa:From
soapenv:mustUnderstand="0"><wsa:Address>http://localhost:7580/axis/services/AddressedVersion</wsa:Address></wsa:From>
<wsa:RelatesTo RelationshipType="wsa:Reply"
soapenv:mustUnderstand="0">uuid:55fdf570-b9bb-11d9-a682-f52225e86969</wsa:RelatesTo><wsa:RelatesTo
RelationshipType="wsa:Reply"
soapenv:mustUnderstand="0">uuid:55fdf570-b9bb-11d9-a682-f52225e86969</wsa:RelatesTo></soapenv:Header>
<soapenv:Body><soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>org.xml.sax.SAXParseException: The markup
in the document preceding the root element must be
well-formed.</faultstring>
<detail><ns1:stackTrace
xmlns:ns1="http://xml.apache.org/axis/">org.xml.sax.SAXParseException:
The markup in the document preceding the root element
must be well-formed.
	at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
	at
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
(.........)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
	at java.lang.Thread.run(Thread.java:534)
</ns1:stackTrace></detail></soapenv:Fault>
</soapenv:Body></soapenv:Envelope>

If I send a message without the ReplyTo header it is
received and replied normally (although, of course,
the  To header is set to anonymous).

Is this a bug? What can I do?

thanks for your help
Sabrina