]
Ondra Chaloupka updated JBTM-3031:
----------------------------------
Git Pull Request:
Error messages for XTS registration is unprecise and hardly tracable
--------------------------------------------------------------------
Key: JBTM-3031
URL:
https://issues.jboss.org/browse/JBTM-3031
Project: JBoss Transaction Manager
Issue Type: Bug
Components: XTS
Affects Versions: 5.8.2.Final
Reporter: Ondra Chaloupka
Assignee: Ondra Chaloupka
Based on the changes made for JBTM-2928 : Provide WS-AT Integration with .NET we
discussed with [~f_marchioni] there are gaps in understandability of error messages and
it's hard to be traced.
The point is to report the XTS WS-AT register errors in better way.
Here is some of the points
{code}
Francesco Marchioni: In the test testAlreadyRegisteredProtocolIdentifierException
Francesco Marchioni: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<Action
xmlns="http://www.w3.org/2005/08/addressing">http://docs.oas...
<MessageID
xmlns="http://www.w3.org/2005/08/addressing">testAlreadyRegi...
<To
xmlns="http://www.w3.org/2005/08/addressing">http://localhos...
<ReplyTo
xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://localhost:8080/ws-c11/RegistrationResponseService</Address>
</ReplyTo>
<FaultTo
xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://localhost:8080/ws-c11/CoordinationFaultService</Address>
</FaultTo>
<wsarj:InstanceIdentifier
xmlns:wsarj="http://schemas.arjuna.com/ws/2005/10/wsarj"
xmlns="http://www.w3.org/2005/08/addressing"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
wsa:IsReferenceParameter="1">identifier</wsarj:InstanceIdentifier>
</soap:Header>
<soap:Body>
<Register
xmlns="http://docs.oasis-open.org/ws-tx/wscoor/2006/06"
xmlns:ns2="http://www.w3.org/2005/08/addressing">
<
ProtocolIdentifier>http://wsc.example.org/already-registered-protocol-...
<ParticipantProtocolService>
<ns2:Address>http://wsc.example.org/protocol-participant-service</ns2:Address>
<ns2:ReferenceParameters>
<wsarj:InstanceIdentifier
xmlns:wsarj="http://schemas.arjuna.com/ws/2005/10/wsarj"
xmlns:wsa="http://www.w3.org/2005/08/addressing">participant...
</ns2:ReferenceParameters>
<ns2:Metadata>
<wsam:ServiceName
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
xmlns:wsc="http://wsc.example.org/"
EndpointName="ProtocolParticipantEndpoint">wsc:ProtocolParticipantService</wsam:ServiceName>
</ns2:Metadata>
</ParticipantProtocolService>
</Register>
</soap:Body>
</soap:Envelope><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<Action
xmlns="http://www.w3.org/2005/08/addressing">http://schemas....
<MessageID
xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:e4953f...
<To
xmlns="http://www.w3.org/2005/08/addressing">http://localhos...
<RelatesTo
xmlns="http://www.w3.org/2005/08/addressing">testAlreadyRegi...
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode
xmlns:wscoor="http://docs.oasis-open.org/ws-tx/wscoor/2006/06"&...
<faultstring>Sender</faultstring>
<detail>
<wscoor:CannotRegister
xmlns:wscoor="http://docs.oasis-open.org/ws-tx/wscoor/2006/06"&...:
Participant already registered</wscoor:CannotRegister>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
Francesco Marchioni: The Exception message seem not correct: It's "Participant
already registered"
{code}
{code}
Francesco Marchioni: RegistrationServiceTest there's one similar
Francesco Marchioni: <soap:Header>
<Action
xmlns="http://www.w3.org/2005/08/addressing">http://schemas....
<MessageID
xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:ff6387...
<To
xmlns="http://www.w3.org/2005/08/addressing">http://localhos...
<RelatesTo
xmlns="http://www.w3.org/2005/08/addressing">testUnknownCoor...
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode
xmlns:wscoor="http://docs.oasis-open.org/ws-tx/wscoor/2006/06"&...
<faultstring>Sender</faultstring>
<detail>
<wscoor:InvalidParameters
xmlns:wscoor="http://docs.oasis-open.org/ws-tx/wscoor/2006/06"&...:
Invalid protocol identifier</wscoor:InvalidParameters>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
Francesco Marchioni: It says "invalid protocol identifier" for a test of
unknownCoordinationType
{code}