Discussion:
addressing client response Failed to correlate message
Tóth Csaba
2018-10-30 11:22:18 UTC
Permalink
Hello!

I tried to write a we client. I need to send addressing info (its
already working), but it cant parse the response:
the error:
    WARN org.apache.cxf.ws.addressing.soap.MAPCodec - Failed to
correlate message, aborting dispatch.

And the proxy response object is become null.

At the response there is an addressing: "<To>" but its pointed to the
server's address. ( I dont know its right value or not)

How can I fix this warning, or turn off the addressing handling only for
the responses?

Thanx
Csaba
Colm O hEigeartaigh
2018-10-30 14:22:01 UTC
Permalink
What do the request and response messages look like?

Colm.
Post by Tóth Csaba
Hello!
I tried to write a we client. I need to send addressing info (its
WARN org.apache.cxf.ws.addressing.soap.MAPCodec - Failed to
correlate message, aborting dispatch.
And the proxy response object is become null.
At the response there is an addressing: "<To>" but its pointed to the
server's address. ( I dont know its right value or not)
How can I fix this warning, or turn off the addressing handling only for
the responses?
Thanx
Csaba
--
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com
Tóth Csaba
2018-10-30 14:52:18 UTC
Permalink
Hello!
Request header:

    <soap:Header>
        <Action soap:mustUnderstand="true"
xmlns="http://www.w3.org/2005/08/addressing">urn:hl7-org:v3:PRPA_IN201305UV02</Action>
        <MessageID
xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:acdd5cd4-1b7d-4027-b8a5-5b269c488d56</MessageID>
        <To soap:mustUnderstand="true"
xmlns="http://www.w3.org/2005/08/addressing">http://localhost:8085/mesa/test</To>
        <ReplyTo xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://schemas.xmlsoap.org/ws/2003/03/addressing/role/anonymous</Address>
        </ReplyTo>
        <From xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://schemas.xmlsoap.org/ws/2003/03/addressing/role/anonymous</Address>
        </From>
    </soap:Header>


Response header:

    <env:Header>
<wsa:To>http://localhost:8085/mesa/test</wsa:To>
<wsa:Action>urn:hl7-org:v3:PRPA_IN201306UV02</wsa:Action>
<wsa:MessageID>uuid:1.2.3.4.5.11312R1</wsa:MessageID>
<wsa:RelatesTo>uuid:d00e3a83-7d95-499e-a1b5-c8da600bbbf2.1</wsa:RelatesTo>
    </env:Header>

Thanx
Csaba
Post by Colm O hEigeartaigh
What do the request and response messages look like?
Colm.
Post by Tóth Csaba
Hello!
I tried to write a we client. I need to send addressing info (its
WARN org.apache.cxf.ws.addressing.soap.MAPCodec - Failed to
correlate message, aborting dispatch.
And the proxy response object is become null.
At the response there is an addressing: "<To>" but its pointed to the
server's address. ( I dont know its right value or not)
How can I fix this warning, or turn off the addressing handling only for
the responses?
Thanx
Csaba
Colm O hEigeartaigh
2018-10-31 10:49:05 UTC
Permalink
Here you can see that the "RelatesTo" ID returned by the service does not
match the original "MessageID" sent by the client, and so CXF throws an
exception as expected.

Colm.
Post by Tóth Csaba
Hello!
<soap:Header>
<Action soap:mustUnderstand="true"
xmlns="http://www.w3.org/2005/08/addressing
">urn:hl7-org:v3:PRPA_IN201305UV02</Action>
<MessageID
xmlns="http://www.w3.org/2005/08/addressing
">urn:uuid:acdd5cd4-1b7d-4027-b8a5-5b269c488d56</MessageID>
<To soap:mustUnderstand="true"
xmlns="http://www.w3.org/2005/08/addressing">
http://localhost:8085/mesa/test</To>
<ReplyTo xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://schemas.xmlsoap.org/ws/2003/03/addressing/role/anonymous
</Address>
</ReplyTo>
<From xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://schemas.xmlsoap.org/ws/2003/03/addressing/role/anonymous
</Address>
</From>
</soap:Header>
<env:Header>
<wsa:To>http://localhost:8085/mesa/test</wsa:To>
<wsa:Action>urn:hl7-org:v3:PRPA_IN201306UV02</wsa:Action>
<wsa:MessageID>uuid:1.2.3.4.5.11312R1</wsa:MessageID>
<wsa:RelatesTo>uuid:d00e3a83-7d95-499e-a1b5-c8da600bbbf2.1</wsa:RelatesTo>
</env:Header>
Thanx
Csaba
Post by Colm O hEigeartaigh
What do the request and response messages look like?
Colm.
Post by Tóth Csaba
Hello!
I tried to write a we client. I need to send addressing info (its
WARN org.apache.cxf.ws.addressing.soap.MAPCodec - Failed to
correlate message, aborting dispatch.
And the proxy response object is become null.
At the response there is an addressing: "<To>" but its pointed to the
server's address. ( I dont know its right value or not)
How can I fix this warning, or turn off the addressing handling only for
the responses?
Thanx
Csaba
--
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com
Tóth Csaba
2018-10-31 12:31:16 UTC
Permalink
This post might be inappropriate. Click to display it.
Daniel Kulp
2018-11-01 18:31:47 UTC
Permalink
You likely will need to write an interceptor for the client that removes all the WS-Addressing headers from the response prior to the correlation being done.

Dan
Post by Tóth Csaba
Hello!
Thanx, Ok.
I understand, But, I dont have any control of the service. So If the service dont send the correct message Id back, I cant do nothing.
I'd like to turn off the response side addressing features. (I send out a message and I'd like to get response even if the addressing is incorrect)
(but still in the request side i need the addressing thing, because the service check it)
Thanx.
Csaba
Ps: I use sync webservices.
Post by Colm O hEigeartaigh
Here you can see that the "RelatesTo" ID returned by the service does not
match the original "MessageID" sent by the client, and so CXF throws an
exception as expected.
Colm.
Post by Tóth Csaba
Hello!
<soap:Header>
<Action soap:mustUnderstand="true"
xmlns="http://www.w3.org/2005/08/addressing
">urn:hl7-org:v3:PRPA_IN201305UV02</Action>
<MessageID
xmlns="http://www.w3.org/2005/08/addressing
">urn:uuid:acdd5cd4-1b7d-4027-b8a5-5b269c488d56</MessageID>
<To soap:mustUnderstand="true"
xmlns="http://www.w3.org/2005/08/addressing">
http://localhost:8085/mesa/test</To>
<ReplyTo xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://schemas.xmlsoap.org/ws/2003/03/addressing/role/anonymous
</Address>
</ReplyTo>
<From xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://schemas.xmlsoap.org/ws/2003/03/addressing/role/anonymous
</Address>
</From>
</soap:Header>
<env:Header>
<wsa:To>http://localhost:8085/mesa/test</wsa:To>
<wsa:Action>urn:hl7-org:v3:PRPA_IN201306UV02</wsa:Action>
<wsa:MessageID>uuid:1.2.3.4.5.11312R1</wsa:MessageID>
<wsa:RelatesTo>uuid:d00e3a83-7d95-499e-a1b5-c8da600bbbf2.1</wsa:RelatesTo>
</env:Header>
Thanx
Csaba
Post by Colm O hEigeartaigh
What do the request and response messages look like?
Colm.
Post by Tóth Csaba
Hello!
I tried to write a we client. I need to send addressing info (its
WARN org.apache.cxf.ws.addressing.soap.MAPCodec - Failed to
correlate message, aborting dispatch.
And the proxy response object is become null.
At the response there is an addressing: "<To>" but its pointed to the
server's address. ( I dont know its right value or not)
How can I fix this warning, or turn off the addressing handling only for
the responses?
Thanx
Csaba
--
Daniel Kulp
***@apache.org <mailto:***@apache.org> - http://dankulp.com/blog <http://dankulp.com/blog>
Talend Community Coder - http://talend.com <http://coders.talend.com/>
Tóth Csaba
2018-11-02 16:29:40 UTC
Permalink
Hello!
Thanx. I wrote an interceptor what clear the SoapHeader, and put before
the MAPCodec interceptor.  And Its working.

thanx
Csaba
Post by Daniel Kulp
You likely will need to write an interceptor for the client that removes all the WS-Addressing headers from the response prior to the correlation being done.
Dan
Post by Tóth Csaba
Hello!
Thanx, Ok.
I understand, But, I dont have any control of the service. So If the service dont send the correct message Id back, I cant do nothing.
I'd like to turn off the response side addressing features. (I send out a message and I'd like to get response even if the addressing is incorrect)
(but still in the request side i need the addressing thing, because the service check it)
Thanx.
Csaba
Ps: I use sync webservices.
Post by Colm O hEigeartaigh
Here you can see that the "RelatesTo" ID returned by the service does not
match the original "MessageID" sent by the client, and so CXF throws an
exception as expected.
Colm.
Post by Tóth Csaba
Hello!
<soap:Header>
<Action soap:mustUnderstand="true"
xmlns="http://www.w3.org/2005/08/addressing
">urn:hl7-org:v3:PRPA_IN201305UV02</Action>
<MessageID
xmlns="http://www.w3.org/2005/08/addressing
">urn:uuid:acdd5cd4-1b7d-4027-b8a5-5b269c488d56</MessageID>
<To soap:mustUnderstand="true"
xmlns="http://www.w3.org/2005/08/addressing">
http://localhost:8085/mesa/test</To>
<ReplyTo xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://schemas.xmlsoap.org/ws/2003/03/addressing/role/anonymous
</Address>
</ReplyTo>
<From xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://schemas.xmlsoap.org/ws/2003/03/addressing/role/anonymous
</Address>
</From>
</soap:Header>
<env:Header>
<wsa:To>http://localhost:8085/mesa/test</wsa:To>
<wsa:Action>urn:hl7-org:v3:PRPA_IN201306UV02</wsa:Action>
<wsa:MessageID>uuid:1.2.3.4.5.11312R1</wsa:MessageID>
<wsa:RelatesTo>uuid:d00e3a83-7d95-499e-a1b5-c8da600bbbf2.1</wsa:RelatesTo>
</env:Header>
Thanx
Csaba
Post by Colm O hEigeartaigh
What do the request and response messages look like?
Colm.
Post by Tóth Csaba
Hello!
I tried to write a we client. I need to send addressing info (its
WARN org.apache.cxf.ws.addressing.soap.MAPCodec - Failed to
correlate message, aborting dispatch.
And the proxy response object is become null.
At the response there is an addressing: "<To>" but its pointed to the
server's address. ( I dont know its right value or not)
How can I fix this warning, or turn off the addressing handling only for
the responses?
Thanx
Csaba
Loading...