Forum Discussion

jjmierwa's avatar
jjmierwa
New Contributor
13 years ago

WS-RM problems

I've got a problem with a CXF based web service that I'm trying to isolate where I'm selecting ws-rm version 1.0 and WS-A version 200508 from the soapUI request interface. When I send the request, CXF excepts with the following:

WARNING: Interceptor for {http://schemas.xmlsoap.org/ws/2005/02/rm/wsdl}SequenceAbstractService#{http://schemas.xmlsoap.org/ws/2005/02/rm}CreateSequence has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Unmarshalling Error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'wsa:Address'. One of '{"http://schemas.xmlsoap.org/ws/2004/08/addressing":Address}' is expected.


When I look at the create message that was sent, the wsa:Address inside the wsrm:acksTo is using the wsa namespace of http://www.w3.org/2005/08/addressing. When I look at the spec for ws-rm version 1, it uses a wsa namespace of http://schemas.xmlsoap.org/ws/2004/08/addressing. Does anyone know what controls the use of the wsa version that is used inside of wsrm?

The RM message in question is below.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Action>http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence</wsa:Action>
<wsa:MessageID>uuid:bd0e91a4-aca4-4532-bce3-57dd0c5ea37a</wsa:MessageID>
<wsa:To>http://localhost:8084/FilingQueriesWS/FilingQueriesService</wsa:To>
</soapenv:Header>
<soapenv:Body xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm">
<wsrm:CreateSequence>
<wsrm:AcksTo xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous?id=cba60a1a-9459-4bb8-bc5f-78c88bcf3184</wsa:Address>
</wsrm:AcksTo>
<wsrm:Offer>
<wsrm:Identifier>blah</wsrm:Identifier>
</wsrm:Offer>
</wsrm:CreateSequence>
</soapenv:Body>
</soapenv:Envelope>
No RepliesBe the first to reply