You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Eoghan Glynn <eo...@gmail.com> on 2010/02/12 15:15:57 UTC

Re: CloseSequence was not recognized. (Does it exist in service WSDL?)

Hi Charles,

The CloseSequence protocol is new in WS-RM 1.1 (
http://docs.oasis-open.org/ws-rx/wsrm/200702)

CXF currently supports WS-RM 1.0 (http://schemas.xmlsoap.org/ws/2005/02/rm).

Hence the non-recognition of the CloseSequence message.

Is your client/message originator using WS-RM 1.1? Can it be configured to
use 1.0 instead?

Cheers,
Eoghan

On 12 February 2010 13:17, cmoulliard <cm...@gmail.com> wrote:

>
> Hi,
>
> I have configured CXF 2.2.5 with Apache Camel to process Web Services using
> the spec WS-RM. I receive this message in the log of the application server
> (Apache Felix Karaf) :
>
> ID: 5
> Address: /cxf/camel-example/incident
> Encoding: ISO-8859-1
> Content-Type: text/xml
> Headers: {content-type=[text/xml], Host=[localhost:8080],
> Content-Length=[618], User-Agent=[Jakarta Commons-HttpClient/3.1],
> accept-encoding=[gzip,deflate], Content-Type=[text/xml]}
> Payload: <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header
> xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsa:Action>
> http://docs.oasis-open.org/ws-rx/wsrm/200702/CloseSequence
> </wsa:Action><wsa:MessageID>uuid:af62b9a5-b5f3-4bef-a36b-edd13dd8059d</wsa:MessageID><wsa:To>
> http://localhost:8080/cxf/camel-example/incident</wsa:To></soapenv:Header>
>   <soapenv:Body
> xmlns:wsrm="http://docs.oasis-open.org/ws-rx/wsrm/200702
> "><wsrm:CloseSequence><wsrm:LastMsgNumber>1</wsrm:LastMsgNumber><wsrm:Identifier>soap:Client</wsrm:Identifier></wsrm:CloseSequence></soapenv:Body>
> </soapenv:Envelope>
> --------------------------------------
> 13:54:44,359 | WARN  | 17713715@qtp2-2  | PhaseInterceptorChain
>  |
> ache.cxf.common.logging.LogUtils  361 | Interceptor has thrown exception,
> unwinding now
> org.apache.cxf.interceptor.Fault: Message part
> {http://docs.oasis-open.org/ws-rx/wsrm/200702}CloseSequence<http://docs.oasis-open.org/ws-rx/wsrm/200702%7DCloseSequence>was not
> recognized.  (Does it exist in service WSDL?)
>        at
>
> org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:186)
>        at
>
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>        at
>
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
>        at
>
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)
>        at
>
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)
>        at
>
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
>        at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>        at
>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>        at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>        at org.mortbay.jetty.Server.handle(Server.java:324)
>        at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
>        at
>
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
>        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
>        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
>        at
>
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>        at
>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
>
> It seems that there is something missing in the WSDL but if I compare my
> wsdl with one provided with the example I don't see any difference.
>
> Any idea is welcome ?
>
> Regards,
>
> Charles
>
> -----
> Charles Moulliard
> SOA Architect
>
> My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
> --
> View this message in context:
> http://old.nabble.com/CloseSequence-was-not-recognized.--%28Does-it-exist-in-service-WSDL-%29-tp27563431p27563431.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>

Re: CloseSequence was not recognized. (Does it exist in service WSDL?)

Posted by cmoulliard <cm...@gmail.com>.
Many thanks for your help.


Eoghan Glynn-4 wrote:
> 
> Hi Charles,
> 
> Here's the schema type used by CXF for the CreateSequence message:
> 
>   <xs:complexType name="CreateSequenceType">
>     <xs:sequence>
>       <xs:element ref="wsrm:AcksTo"/>
>       <xs:element ref="wsrm:Expires" minOccurs="0"/>
>       <xs:element name="Offer" type="wsrm:OfferType" minOccurs="0"/>
>       <xs:any namespace="##other" processContents="lax" minOccurs="0"
> maxOccurs="unbounded">
>         <xs:annotation>
>           <xs:documentation>
> It is the authors intent that this extensibility be used to transfer a
> Security Token Reference as defined in WS-Security.
> </xs:documentation>
>         </xs:annotation>
>       </xs:any>
>     </xs:sequence>
> 
> Note the absence of an wsrm:Identifier element. Not sure why SoapUI is
> adding that <wsrm:Identifier>blah</wsrm:Identifier>, but that's what's
> cuasing the issue.
> 
> Cheers,
> Eoghan
> 
> On 12 February 2010 17:34, cmoulliard <cm...@gmail.com> wrote:
> 
>>
>> Here is the info. SOAPUI sends the tag <wsrm:Identifier/> without any
>> data.
>>
>> 18:08:01,296 | INFO  | 5457859@qtp1-0   | LoggingInInterceptor
>> |
>> interceptor.LoggingInInterceptor  160 | Inbound Message
>> ----------------------------
>> ID: 1
>> Address: /cxf/camel-example/incident
>> Encoding: ISO-8859-1
>> Content-Type: text/xml
>> Headers: {content-type=[text/xml], Host=[localhost:8080],
>> Content-Length=[778], User-Agent=[Jakarta Commons-HttpClient/3.1],
>> accept-encoding=[gzip,def
>> late], Content-Type=[text/xml]}
>> Payload: <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:38291af8-0d44-4a90-9892-f556a7a001b5</wsa:MessageI
>> D><wsa:To>http://localhost:8080/cxf/camel-example/incident
>> </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/addressi
>> ng"><wsa:Address>
>> http://www.w3.org/2005/08/addressing/anonymous?id=2e7dfecf-f888-45c6-8c21-5a10038ea9bc
>> </wsa:Address></wsrm:AcksTo><wsrm:Offer><wsrm:I
>>
>> dentifier>blah</wsrm:Identifier></wsrm:Offer></wsrm:CreateSequence></soapenv:Body>
>> </soapenv:Envelope>
>> --------------------------------------
>> 18:08:01,656 | INFO  | 5457859@qtp1-0   | RMSoapInterceptor
>>  |
>> cxf.ws.rm.soap.RMSoapInterceptor  460 | Updating service model info in ex
>> change
>> 18:08:02,531 | INFO  | 5457859@qtp1-0   | LoggingOutInterceptor
>>  |
>> ngOutInterceptor$LoggingCallback  160 | Outbound Message
>> ---------------------------
>> ID: 1
>> Encoding: ISO-8859-1
>> Content-Type: text/xml
>> Headers: {}
>> Payload: <soap:Envelope
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/
>> "><soap:Header><Action
>> xmlns="http://schemas.xmlsoap.org/ws/2004/08/addre
>> ssing">http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequenceResponse
>> </Action><MessageID
>> xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">urn
>> :uuid:0e03e2cf-b29c-4653-aa24-cef84ccb66e5</MessageID><RelatesTo
>> xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing
>> ">uuid:38291af8-0d44-4a90-9892
>> -f556a7a001b5</RelatesTo></soap:Header><soap:Body /></soap:Envelope>
>> --------------------------------------
>> 18:08:02,781 | INFO  | 5457859@qtp1-0   | LoggingInInterceptor
>> |
>> interceptor.LoggingInInterceptor  160 | Inbound Message
>> ----------------------------
>> ID: 2
>> Address: /cxf/camel-example/incident
>> Encoding: UTF-8
>> Content-Type: text/xml;charset=UTF-8
>> Headers: {content-type=[text/xml;charset=UTF-8], Host=[localhost:8080],
>> Content-Length=[1163],
>> SOAPAction=["http://reportincident.example.camel.apache
>> .org/ReportIncidentService/ReportIncidentRequest"], User-Agent=[Jakarta
>> Commons-HttpClient/3.1], accept-encoding=[gzip,deflate],
>> Content-Type=[text/xm
>> l;charset=UTF-8]}
>> Payload: <soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:rep="http://reportincident.example.camel.apache.org">
>>    <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"
>> xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"><wsa:Action>
>> http://reportinc
>> ident.example.camel.apache.org/ReportIncidentService/ReportIncidentRequest
>> </wsa:Action><wsa:MessageID>uuid:946a80d5-e8bb-49ad-b3da-d82ac7d23dc0</wsa:M
>> essageID><wsa:To>http://localhost:8080/cxf/camel-example/incident
>> </wsa:To><wsrm:Sequence><wsrm:Identifier/><wsrm:MessageNumber>1</wsrm:MessageNumber><
>> /wsrm:Sequence></soapenv:Header>
>>   <soapenv:Body>
>>      <rep:inputReportIncident>
>>         <incidentId>666</incidentId>
>>         <incidentDate>29-04-2009</incidentDate>
>>         <givenName>Charles</givenName>
>>         <familyName>Moulliard</familyName>
>>         <summary>This is a web service incident</summary>
>>         <details>This is an web service report incident,This is an web
>> service report incident.</details>
>>         cmoulliard@gmail.com
>>         <phone>+222 10 20 30 40</phone>
>>      </rep:inputReportIncident>
>>   </soapenv:Body>
>> </soapenv:Envelope>
>> --------------------------------------
>> 18:08:02,828 | ERROR | 5457859@qtp1-0   | AbstractRMInterceptor
>>  |
>> ache.cxf.common.logging.LogUtils  361 | Interceptor encountered a Sequenc
>> eFault: Reason: The value of wsrm:Identifier is not a known Sequence
>> identifier., code:
>> {http://schemas.xmlsoap.org/soap/envelope/}Client<http://schemas.xmlsoap.org/soap/envelope/%7DClient>
>> ,
>> subCode: {h
>> ttp://schemas.xmlsoap.org/ws/2005/02/rm}UnknownSequence<http://schemas.xmlsoap.org/ws/2005/02/rm%7DUnknownSequence>
>> .
>> 18:08:02,828 | WARN  | 5457859@qtp1-0   | PhaseInterceptorChain
>>  |
>> ache.cxf.common.logging.LogUtils  361 | Interceptor has thrown exception,
>>  unwinding now
>> org.apache.cxf.binding.soap.SoapFault: The value of wsrm:Identifier is
>> not
>> a
>> known Sequence identifier.
>>        at
>>
>> org.apache.cxf.ws.rm.soap.SoapFaultFactory.createSoap11Fault(SoapFaultFactory.java:78)
>>        at
>>
>> org.apache.cxf.ws.rm.soap.SoapFaultFactory.createFault(SoapFaultFactory.java:68)
>>        at
>>
>> org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:92)
>>        at
>>
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>>        at
>>
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
>>        at
>>
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)
>>        at
>>
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)
>>        at
>>
>> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
>>        at
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>>        at
>>
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>>        at
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>>        at org.mortbay.jetty.Server.handle(Server.java:324)
>>        at
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
>>        at
>>
>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
>>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
>>        at
>> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
>>        at
>> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
>>        at
>>
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>>        at
>>
>> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
>> Caused by: org.apache.cxf.ws.rm.SequenceFault: The value of
>> wsrm:Identifier
>> is not a known Sequence identifier.
>>        at
>>
>> org.apache.cxf.ws.rm.SequenceFaultFactory.createUnknownSequenceFault(SequenceFaultFactory.java:39)
>>        at
>> org.apache.cxf.ws.rm.Destination.acknowledge(Destination.java:103)
>>        at
>>
>> org.apache.cxf.ws.rm.RMInInterceptor.processSequence(RMInInterceptor.java:145)
>>        at
>> org.apache.cxf.ws.rm.RMInInterceptor.handle(RMInInterceptor.java:94)
>>        at
>>
>> org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:78)
>>         ... 16 more
>> 18:08:02,828 | WARN  | 5457859@qtp1-0   | ContextUtils
>> |
>> ache.cxf.common.logging.LogUtils  361 | WS-Addressing - failed to retriev
>> e Message Addressing Properties from context
>> 18:08:02,828 | WARN  | 5457859@qtp1-0   | ContextUtils
>> |
>> ache.cxf.common.logging.LogUtils  361 | WS-Addressing - failed to retriev
>> e Message Addressing Properties from context
>> 18:08:02,843 | WARN  | 5457859@qtp1-0   | RMOutInterceptor
>> |
>> ache.cxf.common.logging.LogUtils  361 | Not ensuring reliability for the
>> transmission of a runtime fault.
>> 18:08:02,843 | WARN  | 5457859@qtp1-0   | ContextUtils
>> |
>> ache.cxf.common.logging.LogUtils  361 | WS-Addressing - failed to retriev
>> e Message Addressing Properties from context
>> 18:08:02,843 | INFO  | 5457859@qtp1-0   | LoggingOutInterceptor
>>  |
>> ngOutInterceptor$LoggingCallback  160 | Outbound Message
>> ---------------------------
>> ID: 2
>> Encoding: UTF-8
>> Content-Type: text/xml
>> Headers: {}
>> Payload: <soap:Envelope
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/
>> "><soap:Header><SequenceFault
>> xmlns="http://schemas.xmlsoap.org/ws/2005/0
>> 2/rm <http://schemas.xmlsoap.org/ws/2005/0%0A2/rm>" xmlns:ns2="
>> http://schemas.xmlsoap.org/ws/2004/08/addressing"
>> xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm
>> "><FaultCode>UnknownSequence</F
>>
>> aultCode></SequenceFault></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>The
>> value of wsrm:Identifier is not a kno
>> wn Sequence
>> identifier.</faultstring></soap:Fault></soap:Body></soap:Envelope>
>> --------------------------------------
>> 18:08:04,671 | INFO  | 5457859@qtp1-0   | LoggingInInterceptor
>> |
>> interceptor.LoggingInInterceptor  160 | Inbound Message
>> ----------------------------
>> ID: 3
>> Address: /cxf/camel-example/incident
>> Encoding: ISO-8859-1
>> Content-Type: text/xml
>> Headers: {content-type=[text/xml], Host=[localhost:8080],
>> Content-Length=[552], User-Agent=[Jakarta Commons-HttpClient/3.1],
>> accept-encoding=[gzip,def
>> late], Content-Type=[text/xml]}
>> Payload: <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/TerminateSequence
>> </wsa:Action><wsa:MessageID>uuid:fc23c58f-2a1b-4f2c-89db-a660a8fc25c9</wsa:Messa
>> geID><wsa:To>http://localhost:8080/cxf/camel-example/incident
>> </wsa:To></soapenv:Header>
>>   <soapenv:Body
>> xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm
>> "><wsrm:TerminateSequence><wsrm:Identifier/></wsrm:TerminateSequence></soapenv:Bo
>> dy>
>> </soapenv:Envelope>
>> --------------------------------------
>> 18:08:04,671 | INFO  | 5457859@qtp1-0   | RMSoapInterceptor
>>  |
>> cxf.ws.rm.soap.RMSoapInterceptor  460 | Updating service model info in ex
>> change
>> 18:08:04,718 | INFO  | 5457859@qtp1-0   | LoggingOutInterceptor
>>  |
>> ngOutInterceptor$LoggingCallback  160 | Outbound Message
>> ---------------------------
>> ID: 3
>> Encoding: ISO-8859-1
>> Content-Type: text/xml
>> Headers: {}
>> Payload: <soap:Envelope
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/
>> "><soap:Header><MessageID
>> xmlns="http://schemas.xmlsoap.org/ws/2004/08/ad
>> dressing">urn:uuid:e7299b51-3fa3-4753-b540-177e189113fb</MessageID><To
>> xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing
>> ">http://schemas.xmlsoap
>> .org/ws/2004/08/addressing/role/anonymous</To><ReplyTo
>> xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"><Address>
>> http://schemas.xmlsoap.org/ws
>> /2004/08/addressing/role/none<http://schemas.xmlsoap.org/ws%0A/2004/08/addressing/role/none>
>> </Address></ReplyTo></soap:Header><soap:Body
>> /></soap:Envelope>
>> --------------------------------------
>> 18:08:04,734 | WARN  | 5457859@qtp1-0   | AbstractHTTPDestination
>>  |
>> ort.http.AbstractHTTPDestination  506 | Response object is null
>> 18:08:04,734 | WARN  | 5457859@qtp1-0   | PhaseInterceptorChain
>>  |
>> ache.cxf.common.logging.LogUtils  361 | Interceptor has thrown exception,
>>  unwinding now
>> org.apache.cxf.interceptor.Fault: Could not send Message.
>>        at
>>
>> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
>>         at
>>
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>>        at
>>
>> org.apache.cxf.ws.addressing.ContextUtils.rebaseResponse(ContextUtils.java:380)
>>
>> Regards,
>>
>> Charles
>>
>> Eoghan Glynn-4 wrote:
>> >
>> > Hi Charles,
>> >
>> > Can you capture the payload that SoapUI is sending?
>> >
>> > Cheers,
>> > Eoghan
>> >
>> > On 12 February 2010 17:11, cmoulliard <cm...@gmail.com> wrote:
>> >
>> >>
>> >> Hi Eoghan,
>> >>
>> >> Yes, the client SOAPUi allows to do that. I have a new error now :
>> >>
>> >> Console of the client
>> >> Fri Feb 12 18:07:57 CET 2010:INFO:StartSequence Request Sent:
>> >> 2e7dfecf-f888-45c6-8c21-5a10038ea9bc
>> >> Fri Feb 12 18:08:02 CET 2010:INFO:Sequence response Received, sequence
>> >> ID:
>> >>
>> >> on karaf
>> >>
>> >> 18:08:02,828 | WARN  | 5457859@qtp1-0   | PhaseInterceptorChain
>> >>  |
>> >> ache.cxf.common.logging.LogUtils  361 | Interceptor has thrown
>> exception,
>> >>  unwinding now
>> >> org.apache.cxf.binding.soap.SoapFault: The value of wsrm:Identifier is
>> >> not
>> >> a
>> >> known Sequence identifier.
>> >>        at
>> >>
>> >>
>> org.apache.cxf.ws.rm.soap.SoapFaultFactory.createSoap11Fault(SoapFaultFactory.java:78)
>> >>        at
>> >>
>> >>
>> org.apache.cxf.ws.rm.soap.SoapFaultFactory.createFault(SoapFaultFactory.java:68)
>> >>        at
>> >>
>> >>
>> org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:92)
>> >>         at
>> >>
>> >>
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>> >>        at
>> >>
>> >>
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
>> >>        at
>> >>
>> >>
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)
>> >>        at
>> >>
>> >>
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)
>> >>        at
>> >>
>> >>
>> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
>> >>        at
>> >>
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>> >>        at
>> >>
>> >>
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>> >>        at
>> >>
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>> >>        at org.mortbay.jetty.Server.handle(Server.java:324)
>> >>        at
>> >>
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
>> >>        at
>> >>
>> >>
>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
>> >>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
>> >>        at
>> >> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
>> >>        at
>> >> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
>> >>        at
>> >>
>> >>
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>> >>        at
>> >>
>> >>
>> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
>> >> Caused by: org.apache.cxf.ws.rm.SequenceFault: The value of
>> >> wsrm:Identifier
>> >> is not a known Sequence identifier.
>> >>        at
>> >>
>> >>
>> org.apache.cxf.ws.rm.SequenceFaultFactory.createUnknownSequenceFault(SequenceFaultFactory.java:39)
>> >>        at
>> >> org.apache.cxf.ws.rm.Destination.acknowledge(Destination.java:103)
>> >>        at
>> >>
>> >>
>> org.apache.cxf.ws.rm.RMInInterceptor.processSequence(RMInInterceptor.java:145)
>> >>        at
>> >> org.apache.cxf.ws.rm.RMInInterceptor.handle(RMInInterceptor.java:94)
>> >>        at
>> >>
>> >>
>> org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:78)
>> >>
>> >> Regards,
>> >>
>> >> Charles
>> >>
>> >>
>> >> Eoghan Glynn-4 wrote:
>> >> >
>> >> > Hi Charles,
>> >> >
>> >> > The CloseSequence protocol is new in WS-RM 1.1 (
>> >> > http://docs.oasis-open.org/ws-rx/wsrm/200702)
>> >> >
>> >> > CXF currently supports WS-RM 1.0
>> >> > (http://schemas.xmlsoap.org/ws/2005/02/rm).
>> >> >
>> >> > Hence the non-recognition of the CloseSequence message.
>> >> >
>> >> > Is your client/message originator using WS-RM 1.1? Can it be
>> configured
>> >> to
>> >> > use 1.0 instead?
>> >> >
>> >> > Cheers,
>> >> > Eoghan
>> >> >
>> >> > On 12 February 2010 13:17, cmoulliard <cm...@gmail.com> wrote:
>> >> >
>> >> >>
>> >> >> Hi,
>> >> >>
>> >> >> I have configured CXF 2.2.5 with Apache Camel to process Web
>> Services
>> >> >> using
>> >> >> the spec WS-RM. I receive this message in the log of the
>> application
>> >> >> server
>> >> >> (Apache Felix Karaf) :
>> >> >>
>> >> >> ID: 5
>> >> >> Address: /cxf/camel-example/incident
>> >> >> Encoding: ISO-8859-1
>> >> >> Content-Type: text/xml
>> >> >> Headers: {content-type=[text/xml], Host=[localhost:8080],
>> >> >> Content-Length=[618], User-Agent=[Jakarta Commons-HttpClient/3.1],
>> >> >> accept-encoding=[gzip,deflate], Content-Type=[text/xml]}
>> >> >> Payload: <soapenv:Envelope
>> >> >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
>> >> "><soapenv:Header
>> >> >> xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsa:Action>
>> >> >> http://docs.oasis-open.org/ws-rx/wsrm/200702/CloseSequence
>> >> >>
>> >>
>> </wsa:Action><wsa:MessageID>uuid:af62b9a5-b5f3-4bef-a36b-edd13dd8059d</wsa:MessageID><wsa:To>
>> >> >> http://localhost:8080/cxf/camel-example/incident
>> >> </wsa:To></soapenv:Header>
>> >> >>   <soapenv:Body
>> >> >> xmlns:wsrm="http://docs.oasis-open.org/ws-rx/wsrm/200702
>> >> >>
>> >>
>> "><wsrm:CloseSequence><wsrm:LastMsgNumber>1</wsrm:LastMsgNumber><wsrm:Identifier>soap:Client</wsrm:Identifier></wsrm:CloseSequence></soapenv:Body>
>> >> >> </soapenv:Envelope>
>> >> >> --------------------------------------
>> >> >> 13:54:44,359 | WARN  | 17713715@qtp2-2  | PhaseInterceptorChain
>> >> >>  |
>> >> >> ache.cxf.common.logging.LogUtils  361 | Interceptor has thrown
>> >> exception,
>> >> >> unwinding now
>> >> >> org.apache.cxf.interceptor.Fault: Message part
>> >> >>
>> >>
>> {http://docs.oasis-open.org/ws-rx/wsrm/200702}CloseSequence<http://docs.oasis-open.org/ws-rx/wsrm/200702%7DCloseSequence>
>> <http://docs.oasis-open.org/ws-rx/wsrm/200702%7DCloseSequence>
>> >> <http://docs.oasis-open.org/ws-rx/wsrm/200702%7DCloseSequence>was
>> >> >> not
>> >> >> recognized.  (Does it exist in service WSDL?)
>> >> >>        at
>> >> >>
>> >> >>
>> >>
>> org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:186)
>> >> >>        at
>> >> >>
>> >> >>
>> >>
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>> >> >>        at
>> >> >>
>> >> >>
>> >>
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
>> >> >>        at
>> >> >>
>> >> >>
>> >>
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)
>> >> >>        at
>> >> >>
>> >> >>
>> >>
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)
>> >> >>        at
>> >> >>
>> >> >>
>> >>
>> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
>> >> >>        at
>> >> >>
>> >>
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>> >> >>        at
>> >> >>
>> >> >>
>> >>
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>> >> >>        at
>> >> >>
>> >>
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>> >> >>        at org.mortbay.jetty.Server.handle(Server.java:324)
>> >> >>        at
>> >> >>
>> >>
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
>> >> >>        at
>> >> >>
>> >> >>
>> >>
>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
>> >> >>        at
>> org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
>> >> >>        at
>> >> >> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
>> >> >>        at
>> >> >> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
>> >> >>        at
>> >> >>
>> >> >>
>> >>
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>> >> >>        at
>> >> >>
>> >> >>
>> >>
>> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
>> >> >>
>> >> >> It seems that there is something missing in the WSDL but if I
>> compare
>> >> my
>> >> >> wsdl with one provided with the example I don't see any difference.
>> >> >>
>> >> >> Any idea is welcome ?
>> >> >>
>> >> >> Regards,
>> >> >>
>> >> >> Charles
>> >> >>
>> >> >> -----
>> >> >> Charles Moulliard
>> >> >> SOA Architect
>> >> >>
>> >> >> My Blog :  http://cmoulliard.blogspot.com/
>> >> >> http://cmoulliard.blogspot.com/
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://old.nabble.com/CloseSequence-was-not-recognized.--%28Does-it-exist-in-service-WSDL-%29-tp27563431p27563431.html
>> >> >> Sent from the cxf-user mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >> -----
>> >> Charles Moulliard
>> >> SOA Architect
>> >>
>> >> My Blog :  http://cmoulliard.blogspot.com/
>> >> http://cmoulliard.blogspot.com/
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/CloseSequence-was-not-recognized.--%28Does-it-exist-in-service-WSDL-%29-tp27563431p27566625.html
>> >> Sent from the cxf-user mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>>
>> -----
>> Charles Moulliard
>> SOA Architect
>>
>> My Blog :  http://cmoulliard.blogspot.com/
>> http://cmoulliard.blogspot.com/
>> --
>> View this message in context:
>> http://old.nabble.com/CloseSequence-was-not-recognized.--%28Does-it-exist-in-service-WSDL-%29-tp27563431p27566896.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
>>
> 
> 


-----
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: http://old.nabble.com/CloseSequence-was-not-recognized.--%28Does-it-exist-in-service-WSDL-%29-tp27563431p27567227.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: CloseSequence was not recognized. (Does it exist in service WSDL?)

Posted by Eoghan Glynn <eo...@gmail.com>.
Hi Charles,

Here's the schema type used by CXF for the CreateSequence message:

  <xs:complexType name="CreateSequenceType">
    <xs:sequence>
      <xs:element ref="wsrm:AcksTo"/>
      <xs:element ref="wsrm:Expires" minOccurs="0"/>
      <xs:element name="Offer" type="wsrm:OfferType" minOccurs="0"/>
      <xs:any namespace="##other" processContents="lax" minOccurs="0"
maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>
It is the authors intent that this extensibility be used to transfer a
Security Token Reference as defined in WS-Security.
</xs:documentation>
        </xs:annotation>
      </xs:any>
    </xs:sequence>

Note the absence of an wsrm:Identifier element. Not sure why SoapUI is
adding that <wsrm:Identifier>blah</wsrm:Identifier>, but that's what's
cuasing the issue.

Cheers,
Eoghan

On 12 February 2010 17:34, cmoulliard <cm...@gmail.com> wrote:

>
> Here is the info. SOAPUI sends the tag <wsrm:Identifier/> without any data.
>
> 18:08:01,296 | INFO  | 5457859@qtp1-0   | LoggingInInterceptor
> |
> interceptor.LoggingInInterceptor  160 | Inbound Message
> ----------------------------
> ID: 1
> Address: /cxf/camel-example/incident
> Encoding: ISO-8859-1
> Content-Type: text/xml
> Headers: {content-type=[text/xml], Host=[localhost:8080],
> Content-Length=[778], User-Agent=[Jakarta Commons-HttpClient/3.1],
> accept-encoding=[gzip,def
> late], Content-Type=[text/xml]}
> Payload: <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:38291af8-0d44-4a90-9892-f556a7a001b5</wsa:MessageI
> D><wsa:To>http://localhost:8080/cxf/camel-example/incident
> </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/addressi
> ng"><wsa:Address>
> http://www.w3.org/2005/08/addressing/anonymous?id=2e7dfecf-f888-45c6-8c21-5a10038ea9bc
> </wsa:Address></wsrm:AcksTo><wsrm:Offer><wsrm:I
>
> dentifier>blah</wsrm:Identifier></wsrm:Offer></wsrm:CreateSequence></soapenv:Body>
> </soapenv:Envelope>
> --------------------------------------
> 18:08:01,656 | INFO  | 5457859@qtp1-0   | RMSoapInterceptor
>  |
> cxf.ws.rm.soap.RMSoapInterceptor  460 | Updating service model info in ex
> change
> 18:08:02,531 | INFO  | 5457859@qtp1-0   | LoggingOutInterceptor
>  |
> ngOutInterceptor$LoggingCallback  160 | Outbound Message
> ---------------------------
> ID: 1
> Encoding: ISO-8859-1
> Content-Type: text/xml
> Headers: {}
> Payload: <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/
> "><soap:Header><Action
> xmlns="http://schemas.xmlsoap.org/ws/2004/08/addre
> ssing">http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequenceResponse
> </Action><MessageID
> xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">urn
> :uuid:0e03e2cf-b29c-4653-aa24-cef84ccb66e5</MessageID><RelatesTo
> xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing
> ">uuid:38291af8-0d44-4a90-9892
> -f556a7a001b5</RelatesTo></soap:Header><soap:Body /></soap:Envelope>
> --------------------------------------
> 18:08:02,781 | INFO  | 5457859@qtp1-0   | LoggingInInterceptor
> |
> interceptor.LoggingInInterceptor  160 | Inbound Message
> ----------------------------
> ID: 2
> Address: /cxf/camel-example/incident
> Encoding: UTF-8
> Content-Type: text/xml;charset=UTF-8
> Headers: {content-type=[text/xml;charset=UTF-8], Host=[localhost:8080],
> Content-Length=[1163],
> SOAPAction=["http://reportincident.example.camel.apache
> .org/ReportIncidentService/ReportIncidentRequest"], User-Agent=[Jakarta
> Commons-HttpClient/3.1], accept-encoding=[gzip,deflate],
> Content-Type=[text/xm
> l;charset=UTF-8]}
> Payload: <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:rep="http://reportincident.example.camel.apache.org">
>    <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"
> xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"><wsa:Action>
> http://reportinc
> ident.example.camel.apache.org/ReportIncidentService/ReportIncidentRequest
> </wsa:Action><wsa:MessageID>uuid:946a80d5-e8bb-49ad-b3da-d82ac7d23dc0</wsa:M
> essageID><wsa:To>http://localhost:8080/cxf/camel-example/incident
> </wsa:To><wsrm:Sequence><wsrm:Identifier/><wsrm:MessageNumber>1</wsrm:MessageNumber><
> /wsrm:Sequence></soapenv:Header>
>   <soapenv:Body>
>      <rep:inputReportIncident>
>         <incidentId>666</incidentId>
>         <incidentDate>29-04-2009</incidentDate>
>         <givenName>Charles</givenName>
>         <familyName>Moulliard</familyName>
>         <summary>This is a web service incident</summary>
>         <details>This is an web service report incident,This is an web
> service report incident.</details>
>         cmoulliard@gmail.com
>         <phone>+222 10 20 30 40</phone>
>      </rep:inputReportIncident>
>   </soapenv:Body>
> </soapenv:Envelope>
> --------------------------------------
> 18:08:02,828 | ERROR | 5457859@qtp1-0   | AbstractRMInterceptor
>  |
> ache.cxf.common.logging.LogUtils  361 | Interceptor encountered a Sequenc
> eFault: Reason: The value of wsrm:Identifier is not a known Sequence
> identifier., code: {http://schemas.xmlsoap.org/soap/envelope/}Client<http://schemas.xmlsoap.org/soap/envelope/%7DClient>
> ,
> subCode: {h
> ttp://schemas.xmlsoap.org/ws/2005/02/rm}UnknownSequence<http://schemas.xmlsoap.org/ws/2005/02/rm%7DUnknownSequence>
> .
> 18:08:02,828 | WARN  | 5457859@qtp1-0   | PhaseInterceptorChain
>  |
> ache.cxf.common.logging.LogUtils  361 | Interceptor has thrown exception,
>  unwinding now
> org.apache.cxf.binding.soap.SoapFault: The value of wsrm:Identifier is not
> a
> known Sequence identifier.
>        at
>
> org.apache.cxf.ws.rm.soap.SoapFaultFactory.createSoap11Fault(SoapFaultFactory.java:78)
>        at
>
> org.apache.cxf.ws.rm.soap.SoapFaultFactory.createFault(SoapFaultFactory.java:68)
>        at
>
> org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:92)
>        at
>
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>        at
>
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
>        at
>
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)
>        at
>
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)
>        at
>
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
>        at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>        at
>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>        at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>        at org.mortbay.jetty.Server.handle(Server.java:324)
>        at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
>        at
>
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
>        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
>        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
>        at
>
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>        at
>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
> Caused by: org.apache.cxf.ws.rm.SequenceFault: The value of wsrm:Identifier
> is not a known Sequence identifier.
>        at
>
> org.apache.cxf.ws.rm.SequenceFaultFactory.createUnknownSequenceFault(SequenceFaultFactory.java:39)
>        at
> org.apache.cxf.ws.rm.Destination.acknowledge(Destination.java:103)
>        at
>
> org.apache.cxf.ws.rm.RMInInterceptor.processSequence(RMInInterceptor.java:145)
>        at
> org.apache.cxf.ws.rm.RMInInterceptor.handle(RMInInterceptor.java:94)
>        at
>
> org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:78)
>         ... 16 more
> 18:08:02,828 | WARN  | 5457859@qtp1-0   | ContextUtils
> |
> ache.cxf.common.logging.LogUtils  361 | WS-Addressing - failed to retriev
> e Message Addressing Properties from context
> 18:08:02,828 | WARN  | 5457859@qtp1-0   | ContextUtils
> |
> ache.cxf.common.logging.LogUtils  361 | WS-Addressing - failed to retriev
> e Message Addressing Properties from context
> 18:08:02,843 | WARN  | 5457859@qtp1-0   | RMOutInterceptor
> |
> ache.cxf.common.logging.LogUtils  361 | Not ensuring reliability for the
> transmission of a runtime fault.
> 18:08:02,843 | WARN  | 5457859@qtp1-0   | ContextUtils
> |
> ache.cxf.common.logging.LogUtils  361 | WS-Addressing - failed to retriev
> e Message Addressing Properties from context
> 18:08:02,843 | INFO  | 5457859@qtp1-0   | LoggingOutInterceptor
>  |
> ngOutInterceptor$LoggingCallback  160 | Outbound Message
> ---------------------------
> ID: 2
> Encoding: UTF-8
> Content-Type: text/xml
> Headers: {}
> Payload: <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/
> "><soap:Header><SequenceFault
> xmlns="http://schemas.xmlsoap.org/ws/2005/0
> 2/rm <http://schemas.xmlsoap.org/ws/2005/0%0A2/rm>" xmlns:ns2="
> http://schemas.xmlsoap.org/ws/2004/08/addressing"
> xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm
> "><FaultCode>UnknownSequence</F
>
> aultCode></SequenceFault></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>The
> value of wsrm:Identifier is not a kno
> wn Sequence
> identifier.</faultstring></soap:Fault></soap:Body></soap:Envelope>
> --------------------------------------
> 18:08:04,671 | INFO  | 5457859@qtp1-0   | LoggingInInterceptor
> |
> interceptor.LoggingInInterceptor  160 | Inbound Message
> ----------------------------
> ID: 3
> Address: /cxf/camel-example/incident
> Encoding: ISO-8859-1
> Content-Type: text/xml
> Headers: {content-type=[text/xml], Host=[localhost:8080],
> Content-Length=[552], User-Agent=[Jakarta Commons-HttpClient/3.1],
> accept-encoding=[gzip,def
> late], Content-Type=[text/xml]}
> Payload: <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/TerminateSequence
> </wsa:Action><wsa:MessageID>uuid:fc23c58f-2a1b-4f2c-89db-a660a8fc25c9</wsa:Messa
> geID><wsa:To>http://localhost:8080/cxf/camel-example/incident
> </wsa:To></soapenv:Header>
>   <soapenv:Body
> xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm
> "><wsrm:TerminateSequence><wsrm:Identifier/></wsrm:TerminateSequence></soapenv:Bo
> dy>
> </soapenv:Envelope>
> --------------------------------------
> 18:08:04,671 | INFO  | 5457859@qtp1-0   | RMSoapInterceptor
>  |
> cxf.ws.rm.soap.RMSoapInterceptor  460 | Updating service model info in ex
> change
> 18:08:04,718 | INFO  | 5457859@qtp1-0   | LoggingOutInterceptor
>  |
> ngOutInterceptor$LoggingCallback  160 | Outbound Message
> ---------------------------
> ID: 3
> Encoding: ISO-8859-1
> Content-Type: text/xml
> Headers: {}
> Payload: <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/
> "><soap:Header><MessageID
> xmlns="http://schemas.xmlsoap.org/ws/2004/08/ad
> dressing">urn:uuid:e7299b51-3fa3-4753-b540-177e189113fb</MessageID><To
> xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing
> ">http://schemas.xmlsoap
> .org/ws/2004/08/addressing/role/anonymous</To><ReplyTo
> xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"><Address>
> http://schemas.xmlsoap.org/ws
> /2004/08/addressing/role/none<http://schemas.xmlsoap.org/ws%0A/2004/08/addressing/role/none>
> </Address></ReplyTo></soap:Header><soap:Body
> /></soap:Envelope>
> --------------------------------------
> 18:08:04,734 | WARN  | 5457859@qtp1-0   | AbstractHTTPDestination
>  |
> ort.http.AbstractHTTPDestination  506 | Response object is null
> 18:08:04,734 | WARN  | 5457859@qtp1-0   | PhaseInterceptorChain
>  |
> ache.cxf.common.logging.LogUtils  361 | Interceptor has thrown exception,
>  unwinding now
> org.apache.cxf.interceptor.Fault: Could not send Message.
>        at
>
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
>         at
>
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>        at
>
> org.apache.cxf.ws.addressing.ContextUtils.rebaseResponse(ContextUtils.java:380)
>
> Regards,
>
> Charles
>
> Eoghan Glynn-4 wrote:
> >
> > Hi Charles,
> >
> > Can you capture the payload that SoapUI is sending?
> >
> > Cheers,
> > Eoghan
> >
> > On 12 February 2010 17:11, cmoulliard <cm...@gmail.com> wrote:
> >
> >>
> >> Hi Eoghan,
> >>
> >> Yes, the client SOAPUi allows to do that. I have a new error now :
> >>
> >> Console of the client
> >> Fri Feb 12 18:07:57 CET 2010:INFO:StartSequence Request Sent:
> >> 2e7dfecf-f888-45c6-8c21-5a10038ea9bc
> >> Fri Feb 12 18:08:02 CET 2010:INFO:Sequence response Received, sequence
> >> ID:
> >>
> >> on karaf
> >>
> >> 18:08:02,828 | WARN  | 5457859@qtp1-0   | PhaseInterceptorChain
> >>  |
> >> ache.cxf.common.logging.LogUtils  361 | Interceptor has thrown
> exception,
> >>  unwinding now
> >> org.apache.cxf.binding.soap.SoapFault: The value of wsrm:Identifier is
> >> not
> >> a
> >> known Sequence identifier.
> >>        at
> >>
> >>
> org.apache.cxf.ws.rm.soap.SoapFaultFactory.createSoap11Fault(SoapFaultFactory.java:78)
> >>        at
> >>
> >>
> org.apache.cxf.ws.rm.soap.SoapFaultFactory.createFault(SoapFaultFactory.java:68)
> >>        at
> >>
> >>
> org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:92)
> >>         at
> >>
> >>
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
> >>        at
> >>
> >>
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
> >>        at
> >>
> >>
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)
> >>        at
> >>
> >>
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)
> >>        at
> >>
> >>
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
> >>        at
> >> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
> >>        at
> >>
> >>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> >>        at
> >> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> >>        at org.mortbay.jetty.Server.handle(Server.java:324)
> >>        at
> >> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
> >>        at
> >>
> >>
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
> >>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
> >>        at
> >> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
> >>        at
> >> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
> >>        at
> >>
> >>
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
> >>        at
> >>
> >>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
> >> Caused by: org.apache.cxf.ws.rm.SequenceFault: The value of
> >> wsrm:Identifier
> >> is not a known Sequence identifier.
> >>        at
> >>
> >>
> org.apache.cxf.ws.rm.SequenceFaultFactory.createUnknownSequenceFault(SequenceFaultFactory.java:39)
> >>        at
> >> org.apache.cxf.ws.rm.Destination.acknowledge(Destination.java:103)
> >>        at
> >>
> >>
> org.apache.cxf.ws.rm.RMInInterceptor.processSequence(RMInInterceptor.java:145)
> >>        at
> >> org.apache.cxf.ws.rm.RMInInterceptor.handle(RMInInterceptor.java:94)
> >>        at
> >>
> >>
> org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:78)
> >>
> >> Regards,
> >>
> >> Charles
> >>
> >>
> >> Eoghan Glynn-4 wrote:
> >> >
> >> > Hi Charles,
> >> >
> >> > The CloseSequence protocol is new in WS-RM 1.1 (
> >> > http://docs.oasis-open.org/ws-rx/wsrm/200702)
> >> >
> >> > CXF currently supports WS-RM 1.0
> >> > (http://schemas.xmlsoap.org/ws/2005/02/rm).
> >> >
> >> > Hence the non-recognition of the CloseSequence message.
> >> >
> >> > Is your client/message originator using WS-RM 1.1? Can it be
> configured
> >> to
> >> > use 1.0 instead?
> >> >
> >> > Cheers,
> >> > Eoghan
> >> >
> >> > On 12 February 2010 13:17, cmoulliard <cm...@gmail.com> wrote:
> >> >
> >> >>
> >> >> Hi,
> >> >>
> >> >> I have configured CXF 2.2.5 with Apache Camel to process Web Services
> >> >> using
> >> >> the spec WS-RM. I receive this message in the log of the application
> >> >> server
> >> >> (Apache Felix Karaf) :
> >> >>
> >> >> ID: 5
> >> >> Address: /cxf/camel-example/incident
> >> >> Encoding: ISO-8859-1
> >> >> Content-Type: text/xml
> >> >> Headers: {content-type=[text/xml], Host=[localhost:8080],
> >> >> Content-Length=[618], User-Agent=[Jakarta Commons-HttpClient/3.1],
> >> >> accept-encoding=[gzip,deflate], Content-Type=[text/xml]}
> >> >> Payload: <soapenv:Envelope
> >> >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> >> "><soapenv:Header
> >> >> xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsa:Action>
> >> >> http://docs.oasis-open.org/ws-rx/wsrm/200702/CloseSequence
> >> >>
> >>
> </wsa:Action><wsa:MessageID>uuid:af62b9a5-b5f3-4bef-a36b-edd13dd8059d</wsa:MessageID><wsa:To>
> >> >> http://localhost:8080/cxf/camel-example/incident
> >> </wsa:To></soapenv:Header>
> >> >>   <soapenv:Body
> >> >> xmlns:wsrm="http://docs.oasis-open.org/ws-rx/wsrm/200702
> >> >>
> >>
> "><wsrm:CloseSequence><wsrm:LastMsgNumber>1</wsrm:LastMsgNumber><wsrm:Identifier>soap:Client</wsrm:Identifier></wsrm:CloseSequence></soapenv:Body>
> >> >> </soapenv:Envelope>
> >> >> --------------------------------------
> >> >> 13:54:44,359 | WARN  | 17713715@qtp2-2  | PhaseInterceptorChain
> >> >>  |
> >> >> ache.cxf.common.logging.LogUtils  361 | Interceptor has thrown
> >> exception,
> >> >> unwinding now
> >> >> org.apache.cxf.interceptor.Fault: Message part
> >> >>
> >> {http://docs.oasis-open.org/ws-rx/wsrm/200702}CloseSequence<http://docs.oasis-open.org/ws-rx/wsrm/200702%7DCloseSequence>
> <http://docs.oasis-open.org/ws-rx/wsrm/200702%7DCloseSequence>
> >> <http://docs.oasis-open.org/ws-rx/wsrm/200702%7DCloseSequence>was
> >> >> not
> >> >> recognized.  (Does it exist in service WSDL?)
> >> >>        at
> >> >>
> >> >>
> >>
> org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:186)
> >> >>        at
> >> >>
> >> >>
> >>
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
> >> >>        at
> >> >>
> >> >>
> >>
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
> >> >>        at
> >> >>
> >> >>
> >>
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)
> >> >>        at
> >> >>
> >> >>
> >>
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)
> >> >>        at
> >> >>
> >> >>
> >>
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
> >> >>        at
> >> >>
> >> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
> >> >>        at
> >> >>
> >> >>
> >>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> >> >>        at
> >> >>
> >> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> >> >>        at org.mortbay.jetty.Server.handle(Server.java:324)
> >> >>        at
> >> >>
> >> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
> >> >>        at
> >> >>
> >> >>
> >>
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
> >> >>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
> >> >>        at
> >> >> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
> >> >>        at
> >> >> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
> >> >>        at
> >> >>
> >> >>
> >>
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
> >> >>        at
> >> >>
> >> >>
> >>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
> >> >>
> >> >> It seems that there is something missing in the WSDL but if I compare
> >> my
> >> >> wsdl with one provided with the example I don't see any difference.
> >> >>
> >> >> Any idea is welcome ?
> >> >>
> >> >> Regards,
> >> >>
> >> >> Charles
> >> >>
> >> >> -----
> >> >> Charles Moulliard
> >> >> SOA Architect
> >> >>
> >> >> My Blog :  http://cmoulliard.blogspot.com/
> >> >> http://cmoulliard.blogspot.com/
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://old.nabble.com/CloseSequence-was-not-recognized.--%28Does-it-exist-in-service-WSDL-%29-tp27563431p27563431.html
> >> >> Sent from the cxf-user mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >> -----
> >> Charles Moulliard
> >> SOA Architect
> >>
> >> My Blog :  http://cmoulliard.blogspot.com/
> >> http://cmoulliard.blogspot.com/
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/CloseSequence-was-not-recognized.--%28Does-it-exist-in-service-WSDL-%29-tp27563431p27566625.html
> >> Sent from the cxf-user mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
>
> -----
> Charles Moulliard
> SOA Architect
>
> My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
> --
> View this message in context:
> http://old.nabble.com/CloseSequence-was-not-recognized.--%28Does-it-exist-in-service-WSDL-%29-tp27563431p27566896.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>

Re: CloseSequence was not recognized. (Does it exist in service WSDL?)

Posted by cmoulliard <cm...@gmail.com>.
Here is the info. SOAPUI sends the tag <wsrm:Identifier/> without any data.

18:08:01,296 | INFO  | 5457859@qtp1-0   | LoggingInInterceptor             |
interceptor.LoggingInInterceptor  160 | Inbound Message
----------------------------
ID: 1
Address: /cxf/camel-example/incident
Encoding: ISO-8859-1
Content-Type: text/xml
Headers: {content-type=[text/xml], Host=[localhost:8080],
Content-Length=[778], User-Agent=[Jakarta Commons-HttpClient/3.1],
accept-encoding=[gzip,def
late], Content-Type=[text/xml]}
Payload: <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:38291af8-0d44-4a90-9892-f556a7a001b5</wsa:MessageI
D><wsa:To>http://localhost:8080/cxf/camel-example/incident</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/addressi
ng"><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous?id=2e7dfecf-f888-45c6-8c21-5a10038ea9bc</wsa:Address></wsrm:AcksTo><wsrm:Offer><wsrm:I
dentifier>blah</wsrm:Identifier></wsrm:Offer></wsrm:CreateSequence></soapenv:Body>
</soapenv:Envelope>
--------------------------------------
18:08:01,656 | INFO  | 5457859@qtp1-0   | RMSoapInterceptor                |
cxf.ws.rm.soap.RMSoapInterceptor  460 | Updating service model info in ex
change
18:08:02,531 | INFO  | 5457859@qtp1-0   | LoggingOutInterceptor            |
ngOutInterceptor$LoggingCallback  160 | Outbound Message
---------------------------
ID: 1
Encoding: ISO-8859-1
Content-Type: text/xml
Headers: {}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Action
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addre
ssing">http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequenceResponse</Action><MessageID
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">urn
:uuid:0e03e2cf-b29c-4653-aa24-cef84ccb66e5</MessageID><RelatesTo
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">uuid:38291af8-0d44-4a90-9892
-f556a7a001b5</RelatesTo></soap:Header><soap:Body /></soap:Envelope>
--------------------------------------
18:08:02,781 | INFO  | 5457859@qtp1-0   | LoggingInInterceptor             |
interceptor.LoggingInInterceptor  160 | Inbound Message
----------------------------
ID: 2
Address: /cxf/camel-example/incident
Encoding: UTF-8
Content-Type: text/xml;charset=UTF-8
Headers: {content-type=[text/xml;charset=UTF-8], Host=[localhost:8080],
Content-Length=[1163],
SOAPAction=["http://reportincident.example.camel.apache
.org/ReportIncidentService/ReportIncidentRequest"], User-Agent=[Jakarta
Commons-HttpClient/3.1], accept-encoding=[gzip,deflate],
Content-Type=[text/xm
l;charset=UTF-8]}
Payload: <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:rep="http://reportincident.example.camel.apache.org">
   <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"><wsa:Action>http://reportinc
ident.example.camel.apache.org/ReportIncidentService/ReportIncidentRequest</wsa:Action><wsa:MessageID>uuid:946a80d5-e8bb-49ad-b3da-d82ac7d23dc0</wsa:M
essageID><wsa:To>http://localhost:8080/cxf/camel-example/incident</wsa:To><wsrm:Sequence><wsrm:Identifier/><wsrm:MessageNumber>1</wsrm:MessageNumber><
/wsrm:Sequence></soapenv:Header>
   <soapenv:Body>
      <rep:inputReportIncident>
         <incidentId>666</incidentId>
         <incidentDate>29-04-2009</incidentDate>
         <givenName>Charles</givenName>
         <familyName>Moulliard</familyName>
         <summary>This is a web service incident</summary>
         <details>This is an web service report incident,This is an web
service report incident.</details>
         cmoulliard@gmail.com
         <phone>+222 10 20 30 40</phone>
      </rep:inputReportIncident>
   </soapenv:Body>
</soapenv:Envelope>
--------------------------------------
18:08:02,828 | ERROR | 5457859@qtp1-0   | AbstractRMInterceptor            |
ache.cxf.common.logging.LogUtils  361 | Interceptor encountered a Sequenc
eFault: Reason: The value of wsrm:Identifier is not a known Sequence
identifier., code: {http://schemas.xmlsoap.org/soap/envelope/}Client,
subCode: {h
ttp://schemas.xmlsoap.org/ws/2005/02/rm}UnknownSequence.
18:08:02,828 | WARN  | 5457859@qtp1-0   | PhaseInterceptorChain            |
ache.cxf.common.logging.LogUtils  361 | Interceptor has thrown exception,
 unwinding now
org.apache.cxf.binding.soap.SoapFault: The value of wsrm:Identifier is not a
known Sequence identifier.
        at
org.apache.cxf.ws.rm.soap.SoapFaultFactory.createSoap11Fault(SoapFaultFactory.java:78)
        at
org.apache.cxf.ws.rm.soap.SoapFaultFactory.createFault(SoapFaultFactory.java:68)
        at
org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:92)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
        at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
        at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)
        at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)
        at
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
        at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
Caused by: org.apache.cxf.ws.rm.SequenceFault: The value of wsrm:Identifier
is not a known Sequence identifier.
        at
org.apache.cxf.ws.rm.SequenceFaultFactory.createUnknownSequenceFault(SequenceFaultFactory.java:39)
        at
org.apache.cxf.ws.rm.Destination.acknowledge(Destination.java:103)
        at
org.apache.cxf.ws.rm.RMInInterceptor.processSequence(RMInInterceptor.java:145)
        at
org.apache.cxf.ws.rm.RMInInterceptor.handle(RMInInterceptor.java:94)
        at
org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:78)
        ... 16 more
18:08:02,828 | WARN  | 5457859@qtp1-0   | ContextUtils                     |
ache.cxf.common.logging.LogUtils  361 | WS-Addressing - failed to retriev
e Message Addressing Properties from context
18:08:02,828 | WARN  | 5457859@qtp1-0   | ContextUtils                     |
ache.cxf.common.logging.LogUtils  361 | WS-Addressing - failed to retriev
e Message Addressing Properties from context
18:08:02,843 | WARN  | 5457859@qtp1-0   | RMOutInterceptor                 |
ache.cxf.common.logging.LogUtils  361 | Not ensuring reliability for the
transmission of a runtime fault.
18:08:02,843 | WARN  | 5457859@qtp1-0   | ContextUtils                     |
ache.cxf.common.logging.LogUtils  361 | WS-Addressing - failed to retriev
e Message Addressing Properties from context
18:08:02,843 | INFO  | 5457859@qtp1-0   | LoggingOutInterceptor            |
ngOutInterceptor$LoggingCallback  160 | Outbound Message
---------------------------
ID: 2
Encoding: UTF-8
Content-Type: text/xml
Headers: {}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><SequenceFault
xmlns="http://schemas.xmlsoap.org/ws/2005/0
2/rm" xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"><FaultCode>UnknownSequence</F
aultCode></SequenceFault></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>The
value of wsrm:Identifier is not a kno
wn Sequence
identifier.</faultstring></soap:Fault></soap:Body></soap:Envelope>
--------------------------------------
18:08:04,671 | INFO  | 5457859@qtp1-0   | LoggingInInterceptor             |
interceptor.LoggingInInterceptor  160 | Inbound Message
----------------------------
ID: 3
Address: /cxf/camel-example/incident
Encoding: ISO-8859-1
Content-Type: text/xml
Headers: {content-type=[text/xml], Host=[localhost:8080],
Content-Length=[552], User-Agent=[Jakarta Commons-HttpClient/3.1],
accept-encoding=[gzip,def
late], Content-Type=[text/xml]}
Payload: <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/TerminateSequence</wsa:Action><wsa:MessageID>uuid:fc23c58f-2a1b-4f2c-89db-a660a8fc25c9</wsa:Messa
geID><wsa:To>http://localhost:8080/cxf/camel-example/incident</wsa:To></soapenv:Header>
   <soapenv:Body
xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"><wsrm:TerminateSequence><wsrm:Identifier/></wsrm:TerminateSequence></soapenv:Bo
dy>
</soapenv:Envelope>
--------------------------------------
18:08:04,671 | INFO  | 5457859@qtp1-0   | RMSoapInterceptor                |
cxf.ws.rm.soap.RMSoapInterceptor  460 | Updating service model info in ex
change
18:08:04,718 | INFO  | 5457859@qtp1-0   | LoggingOutInterceptor            |
ngOutInterceptor$LoggingCallback  160 | Outbound Message
---------------------------
ID: 3
Encoding: ISO-8859-1
Content-Type: text/xml
Headers: {}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><MessageID
xmlns="http://schemas.xmlsoap.org/ws/2004/08/ad
dressing">urn:uuid:e7299b51-3fa3-4753-b540-177e189113fb</MessageID><To
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap
.org/ws/2004/08/addressing/role/anonymous</To><ReplyTo
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"><Address>http://schemas.xmlsoap.org/ws
/2004/08/addressing/role/none</Address></ReplyTo></soap:Header><soap:Body
/></soap:Envelope>
--------------------------------------
18:08:04,734 | WARN  | 5457859@qtp1-0   | AbstractHTTPDestination          |
ort.http.AbstractHTTPDestination  506 | Response object is null
18:08:04,734 | WARN  | 5457859@qtp1-0   | PhaseInterceptorChain            |
ache.cxf.common.logging.LogUtils  361 | Interceptor has thrown exception,
 unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
        at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
        at
org.apache.cxf.ws.addressing.ContextUtils.rebaseResponse(ContextUtils.java:380)

Regards,

Charles

Eoghan Glynn-4 wrote:
> 
> Hi Charles,
> 
> Can you capture the payload that SoapUI is sending?
> 
> Cheers,
> Eoghan
> 
> On 12 February 2010 17:11, cmoulliard <cm...@gmail.com> wrote:
> 
>>
>> Hi Eoghan,
>>
>> Yes, the client SOAPUi allows to do that. I have a new error now :
>>
>> Console of the client
>> Fri Feb 12 18:07:57 CET 2010:INFO:StartSequence Request Sent:
>> 2e7dfecf-f888-45c6-8c21-5a10038ea9bc
>> Fri Feb 12 18:08:02 CET 2010:INFO:Sequence response Received, sequence
>> ID:
>>
>> on karaf
>>
>> 18:08:02,828 | WARN  | 5457859@qtp1-0   | PhaseInterceptorChain
>>  |
>> ache.cxf.common.logging.LogUtils  361 | Interceptor has thrown exception,
>>  unwinding now
>> org.apache.cxf.binding.soap.SoapFault: The value of wsrm:Identifier is
>> not
>> a
>> known Sequence identifier.
>>        at
>>
>> org.apache.cxf.ws.rm.soap.SoapFaultFactory.createSoap11Fault(SoapFaultFactory.java:78)
>>        at
>>
>> org.apache.cxf.ws.rm.soap.SoapFaultFactory.createFault(SoapFaultFactory.java:68)
>>        at
>>
>> org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:92)
>>         at
>>
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>>        at
>>
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
>>        at
>>
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)
>>        at
>>
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)
>>        at
>>
>> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
>>        at
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>>        at
>>
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>>        at
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>>        at org.mortbay.jetty.Server.handle(Server.java:324)
>>        at
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
>>        at
>>
>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
>>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
>>        at
>> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
>>        at
>> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
>>        at
>>
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>>        at
>>
>> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
>> Caused by: org.apache.cxf.ws.rm.SequenceFault: The value of
>> wsrm:Identifier
>> is not a known Sequence identifier.
>>        at
>>
>> org.apache.cxf.ws.rm.SequenceFaultFactory.createUnknownSequenceFault(SequenceFaultFactory.java:39)
>>        at
>> org.apache.cxf.ws.rm.Destination.acknowledge(Destination.java:103)
>>        at
>>
>> org.apache.cxf.ws.rm.RMInInterceptor.processSequence(RMInInterceptor.java:145)
>>        at
>> org.apache.cxf.ws.rm.RMInInterceptor.handle(RMInInterceptor.java:94)
>>        at
>>
>> org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:78)
>>
>> Regards,
>>
>> Charles
>>
>>
>> Eoghan Glynn-4 wrote:
>> >
>> > Hi Charles,
>> >
>> > The CloseSequence protocol is new in WS-RM 1.1 (
>> > http://docs.oasis-open.org/ws-rx/wsrm/200702)
>> >
>> > CXF currently supports WS-RM 1.0
>> > (http://schemas.xmlsoap.org/ws/2005/02/rm).
>> >
>> > Hence the non-recognition of the CloseSequence message.
>> >
>> > Is your client/message originator using WS-RM 1.1? Can it be configured
>> to
>> > use 1.0 instead?
>> >
>> > Cheers,
>> > Eoghan
>> >
>> > On 12 February 2010 13:17, cmoulliard <cm...@gmail.com> wrote:
>> >
>> >>
>> >> Hi,
>> >>
>> >> I have configured CXF 2.2.5 with Apache Camel to process Web Services
>> >> using
>> >> the spec WS-RM. I receive this message in the log of the application
>> >> server
>> >> (Apache Felix Karaf) :
>> >>
>> >> ID: 5
>> >> Address: /cxf/camel-example/incident
>> >> Encoding: ISO-8859-1
>> >> Content-Type: text/xml
>> >> Headers: {content-type=[text/xml], Host=[localhost:8080],
>> >> Content-Length=[618], User-Agent=[Jakarta Commons-HttpClient/3.1],
>> >> accept-encoding=[gzip,deflate], Content-Type=[text/xml]}
>> >> Payload: <soapenv:Envelope
>> >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
>> "><soapenv:Header
>> >> xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsa:Action>
>> >> http://docs.oasis-open.org/ws-rx/wsrm/200702/CloseSequence
>> >>
>> </wsa:Action><wsa:MessageID>uuid:af62b9a5-b5f3-4bef-a36b-edd13dd8059d</wsa:MessageID><wsa:To>
>> >> http://localhost:8080/cxf/camel-example/incident
>> </wsa:To></soapenv:Header>
>> >>   <soapenv:Body
>> >> xmlns:wsrm="http://docs.oasis-open.org/ws-rx/wsrm/200702
>> >>
>> "><wsrm:CloseSequence><wsrm:LastMsgNumber>1</wsrm:LastMsgNumber><wsrm:Identifier>soap:Client</wsrm:Identifier></wsrm:CloseSequence></soapenv:Body>
>> >> </soapenv:Envelope>
>> >> --------------------------------------
>> >> 13:54:44,359 | WARN  | 17713715@qtp2-2  | PhaseInterceptorChain
>> >>  |
>> >> ache.cxf.common.logging.LogUtils  361 | Interceptor has thrown
>> exception,
>> >> unwinding now
>> >> org.apache.cxf.interceptor.Fault: Message part
>> >>
>> {http://docs.oasis-open.org/ws-rx/wsrm/200702}CloseSequence<http://docs.oasis-open.org/ws-rx/wsrm/200702%7DCloseSequence>
>> <http://docs.oasis-open.org/ws-rx/wsrm/200702%7DCloseSequence>was
>> >> not
>> >> recognized.  (Does it exist in service WSDL?)
>> >>        at
>> >>
>> >>
>> org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:186)
>> >>        at
>> >>
>> >>
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>> >>        at
>> >>
>> >>
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
>> >>        at
>> >>
>> >>
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)
>> >>        at
>> >>
>> >>
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)
>> >>        at
>> >>
>> >>
>> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
>> >>        at
>> >>
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>> >>        at
>> >>
>> >>
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>> >>        at
>> >>
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>> >>        at org.mortbay.jetty.Server.handle(Server.java:324)
>> >>        at
>> >>
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
>> >>        at
>> >>
>> >>
>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
>> >>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
>> >>        at
>> >> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
>> >>        at
>> >> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
>> >>        at
>> >>
>> >>
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>> >>        at
>> >>
>> >>
>> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
>> >>
>> >> It seems that there is something missing in the WSDL but if I compare
>> my
>> >> wsdl with one provided with the example I don't see any difference.
>> >>
>> >> Any idea is welcome ?
>> >>
>> >> Regards,
>> >>
>> >> Charles
>> >>
>> >> -----
>> >> Charles Moulliard
>> >> SOA Architect
>> >>
>> >> My Blog :  http://cmoulliard.blogspot.com/
>> >> http://cmoulliard.blogspot.com/
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/CloseSequence-was-not-recognized.--%28Does-it-exist-in-service-WSDL-%29-tp27563431p27563431.html
>> >> Sent from the cxf-user mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>>
>> -----
>> Charles Moulliard
>> SOA Architect
>>
>> My Blog :  http://cmoulliard.blogspot.com/
>> http://cmoulliard.blogspot.com/
>> --
>> View this message in context:
>> http://old.nabble.com/CloseSequence-was-not-recognized.--%28Does-it-exist-in-service-WSDL-%29-tp27563431p27566625.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
>>
> 
> 


-----
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: http://old.nabble.com/CloseSequence-was-not-recognized.--%28Does-it-exist-in-service-WSDL-%29-tp27563431p27566896.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: CloseSequence was not recognized. (Does it exist in service WSDL?)

Posted by Eoghan Glynn <eo...@gmail.com>.
Hi Charles,

Can you capture the payload that SoapUI is sending?

Cheers,
Eoghan

On 12 February 2010 17:11, cmoulliard <cm...@gmail.com> wrote:

>
> Hi Eoghan,
>
> Yes, the client SOAPUi allows to do that. I have a new error now :
>
> Console of the client
> Fri Feb 12 18:07:57 CET 2010:INFO:StartSequence Request Sent:
> 2e7dfecf-f888-45c6-8c21-5a10038ea9bc
> Fri Feb 12 18:08:02 CET 2010:INFO:Sequence response Received, sequence ID:
>
> on karaf
>
> 18:08:02,828 | WARN  | 5457859@qtp1-0   | PhaseInterceptorChain
>  |
> ache.cxf.common.logging.LogUtils  361 | Interceptor has thrown exception,
>  unwinding now
> org.apache.cxf.binding.soap.SoapFault: The value of wsrm:Identifier is not
> a
> known Sequence identifier.
>        at
>
> org.apache.cxf.ws.rm.soap.SoapFaultFactory.createSoap11Fault(SoapFaultFactory.java:78)
>        at
>
> org.apache.cxf.ws.rm.soap.SoapFaultFactory.createFault(SoapFaultFactory.java:68)
>        at
>
> org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:92)
>         at
>
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>        at
>
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
>        at
>
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)
>        at
>
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)
>        at
>
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
>        at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>        at
>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>        at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>        at org.mortbay.jetty.Server.handle(Server.java:324)
>        at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
>        at
>
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
>        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
>        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
>        at
>
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>        at
>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
> Caused by: org.apache.cxf.ws.rm.SequenceFault: The value of wsrm:Identifier
> is not a known Sequence identifier.
>        at
>
> org.apache.cxf.ws.rm.SequenceFaultFactory.createUnknownSequenceFault(SequenceFaultFactory.java:39)
>        at
> org.apache.cxf.ws.rm.Destination.acknowledge(Destination.java:103)
>        at
>
> org.apache.cxf.ws.rm.RMInInterceptor.processSequence(RMInInterceptor.java:145)
>        at
> org.apache.cxf.ws.rm.RMInInterceptor.handle(RMInInterceptor.java:94)
>        at
>
> org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:78)
>
> Regards,
>
> Charles
>
>
> Eoghan Glynn-4 wrote:
> >
> > Hi Charles,
> >
> > The CloseSequence protocol is new in WS-RM 1.1 (
> > http://docs.oasis-open.org/ws-rx/wsrm/200702)
> >
> > CXF currently supports WS-RM 1.0
> > (http://schemas.xmlsoap.org/ws/2005/02/rm).
> >
> > Hence the non-recognition of the CloseSequence message.
> >
> > Is your client/message originator using WS-RM 1.1? Can it be configured
> to
> > use 1.0 instead?
> >
> > Cheers,
> > Eoghan
> >
> > On 12 February 2010 13:17, cmoulliard <cm...@gmail.com> wrote:
> >
> >>
> >> Hi,
> >>
> >> I have configured CXF 2.2.5 with Apache Camel to process Web Services
> >> using
> >> the spec WS-RM. I receive this message in the log of the application
> >> server
> >> (Apache Felix Karaf) :
> >>
> >> ID: 5
> >> Address: /cxf/camel-example/incident
> >> Encoding: ISO-8859-1
> >> Content-Type: text/xml
> >> Headers: {content-type=[text/xml], Host=[localhost:8080],
> >> Content-Length=[618], User-Agent=[Jakarta Commons-HttpClient/3.1],
> >> accept-encoding=[gzip,deflate], Content-Type=[text/xml]}
> >> Payload: <soapenv:Envelope
> >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> "><soapenv:Header
> >> xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsa:Action>
> >> http://docs.oasis-open.org/ws-rx/wsrm/200702/CloseSequence
> >>
> </wsa:Action><wsa:MessageID>uuid:af62b9a5-b5f3-4bef-a36b-edd13dd8059d</wsa:MessageID><wsa:To>
> >> http://localhost:8080/cxf/camel-example/incident
> </wsa:To></soapenv:Header>
> >>   <soapenv:Body
> >> xmlns:wsrm="http://docs.oasis-open.org/ws-rx/wsrm/200702
> >>
> "><wsrm:CloseSequence><wsrm:LastMsgNumber>1</wsrm:LastMsgNumber><wsrm:Identifier>soap:Client</wsrm:Identifier></wsrm:CloseSequence></soapenv:Body>
> >> </soapenv:Envelope>
> >> --------------------------------------
> >> 13:54:44,359 | WARN  | 17713715@qtp2-2  | PhaseInterceptorChain
> >>  |
> >> ache.cxf.common.logging.LogUtils  361 | Interceptor has thrown
> exception,
> >> unwinding now
> >> org.apache.cxf.interceptor.Fault: Message part
> >> {http://docs.oasis-open.org/ws-rx/wsrm/200702}CloseSequence<http://docs.oasis-open.org/ws-rx/wsrm/200702%7DCloseSequence>
> <http://docs.oasis-open.org/ws-rx/wsrm/200702%7DCloseSequence>was
> >> not
> >> recognized.  (Does it exist in service WSDL?)
> >>        at
> >>
> >>
> org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:186)
> >>        at
> >>
> >>
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
> >>        at
> >>
> >>
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
> >>        at
> >>
> >>
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)
> >>        at
> >>
> >>
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)
> >>        at
> >>
> >>
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
> >>        at
> >> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
> >>        at
> >>
> >>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> >>        at
> >> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> >>        at org.mortbay.jetty.Server.handle(Server.java:324)
> >>        at
> >> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
> >>        at
> >>
> >>
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
> >>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
> >>        at
> >> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
> >>        at
> >> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
> >>        at
> >>
> >>
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
> >>        at
> >>
> >>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
> >>
> >> It seems that there is something missing in the WSDL but if I compare my
> >> wsdl with one provided with the example I don't see any difference.
> >>
> >> Any idea is welcome ?
> >>
> >> Regards,
> >>
> >> Charles
> >>
> >> -----
> >> Charles Moulliard
> >> SOA Architect
> >>
> >> My Blog :  http://cmoulliard.blogspot.com/
> >> http://cmoulliard.blogspot.com/
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/CloseSequence-was-not-recognized.--%28Does-it-exist-in-service-WSDL-%29-tp27563431p27563431.html
> >> Sent from the cxf-user mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
>
> -----
> Charles Moulliard
> SOA Architect
>
> My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
> --
> View this message in context:
> http://old.nabble.com/CloseSequence-was-not-recognized.--%28Does-it-exist-in-service-WSDL-%29-tp27563431p27566625.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>

Re: CloseSequence was not recognized. (Does it exist in service WSDL?)

Posted by cmoulliard <cm...@gmail.com>.
Hi Eoghan,

Yes, the client SOAPUi allows to do that. I have a new error now :

Console of the client 
Fri Feb 12 18:07:57 CET 2010:INFO:StartSequence Request Sent:
2e7dfecf-f888-45c6-8c21-5a10038ea9bc
Fri Feb 12 18:08:02 CET 2010:INFO:Sequence response Received, sequence ID: 

on karaf 

18:08:02,828 | WARN  | 5457859@qtp1-0   | PhaseInterceptorChain            |
ache.cxf.common.logging.LogUtils  361 | Interceptor has thrown exception,
 unwinding now
org.apache.cxf.binding.soap.SoapFault: The value of wsrm:Identifier is not a
known Sequence identifier.
        at
org.apache.cxf.ws.rm.soap.SoapFaultFactory.createSoap11Fault(SoapFaultFactory.java:78)
        at
org.apache.cxf.ws.rm.soap.SoapFaultFactory.createFault(SoapFaultFactory.java:68)
        at
org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:92)
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
        at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
        at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)
        at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)
        at
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
        at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
Caused by: org.apache.cxf.ws.rm.SequenceFault: The value of wsrm:Identifier
is not a known Sequence identifier.
        at
org.apache.cxf.ws.rm.SequenceFaultFactory.createUnknownSequenceFault(SequenceFaultFactory.java:39)
        at
org.apache.cxf.ws.rm.Destination.acknowledge(Destination.java:103)
        at
org.apache.cxf.ws.rm.RMInInterceptor.processSequence(RMInInterceptor.java:145)
        at
org.apache.cxf.ws.rm.RMInInterceptor.handle(RMInInterceptor.java:94)
        at
org.apache.cxf.ws.rm.AbstractRMInterceptor.handleMessage(AbstractRMInterceptor.java:78)

Regards,

Charles


Eoghan Glynn-4 wrote:
> 
> Hi Charles,
> 
> The CloseSequence protocol is new in WS-RM 1.1 (
> http://docs.oasis-open.org/ws-rx/wsrm/200702)
> 
> CXF currently supports WS-RM 1.0
> (http://schemas.xmlsoap.org/ws/2005/02/rm).
> 
> Hence the non-recognition of the CloseSequence message.
> 
> Is your client/message originator using WS-RM 1.1? Can it be configured to
> use 1.0 instead?
> 
> Cheers,
> Eoghan
> 
> On 12 February 2010 13:17, cmoulliard <cm...@gmail.com> wrote:
> 
>>
>> Hi,
>>
>> I have configured CXF 2.2.5 with Apache Camel to process Web Services
>> using
>> the spec WS-RM. I receive this message in the log of the application
>> server
>> (Apache Felix Karaf) :
>>
>> ID: 5
>> Address: /cxf/camel-example/incident
>> Encoding: ISO-8859-1
>> Content-Type: text/xml
>> Headers: {content-type=[text/xml], Host=[localhost:8080],
>> Content-Length=[618], User-Agent=[Jakarta Commons-HttpClient/3.1],
>> accept-encoding=[gzip,deflate], Content-Type=[text/xml]}
>> Payload: <soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header
>> xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsa:Action>
>> http://docs.oasis-open.org/ws-rx/wsrm/200702/CloseSequence
>> </wsa:Action><wsa:MessageID>uuid:af62b9a5-b5f3-4bef-a36b-edd13dd8059d</wsa:MessageID><wsa:To>
>> http://localhost:8080/cxf/camel-example/incident</wsa:To></soapenv:Header>
>>   <soapenv:Body
>> xmlns:wsrm="http://docs.oasis-open.org/ws-rx/wsrm/200702
>> "><wsrm:CloseSequence><wsrm:LastMsgNumber>1</wsrm:LastMsgNumber><wsrm:Identifier>soap:Client</wsrm:Identifier></wsrm:CloseSequence></soapenv:Body>
>> </soapenv:Envelope>
>> --------------------------------------
>> 13:54:44,359 | WARN  | 17713715@qtp2-2  | PhaseInterceptorChain
>>  |
>> ache.cxf.common.logging.LogUtils  361 | Interceptor has thrown exception,
>> unwinding now
>> org.apache.cxf.interceptor.Fault: Message part
>> {http://docs.oasis-open.org/ws-rx/wsrm/200702}CloseSequence<http://docs.oasis-open.org/ws-rx/wsrm/200702%7DCloseSequence>was
>> not
>> recognized.  (Does it exist in service WSDL?)
>>        at
>>
>> org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:186)
>>        at
>>
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>>        at
>>
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
>>        at
>>
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)
>>        at
>>
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)
>>        at
>>
>> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
>>        at
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>>        at
>>
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>>        at
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>>        at org.mortbay.jetty.Server.handle(Server.java:324)
>>        at
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
>>        at
>>
>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
>>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
>>        at
>> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
>>        at
>> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
>>        at
>>
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>>        at
>>
>> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
>>
>> It seems that there is something missing in the WSDL but if I compare my
>> wsdl with one provided with the example I don't see any difference.
>>
>> Any idea is welcome ?
>>
>> Regards,
>>
>> Charles
>>
>> -----
>> Charles Moulliard
>> SOA Architect
>>
>> My Blog :  http://cmoulliard.blogspot.com/
>> http://cmoulliard.blogspot.com/
>> --
>> View this message in context:
>> http://old.nabble.com/CloseSequence-was-not-recognized.--%28Does-it-exist-in-service-WSDL-%29-tp27563431p27563431.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
>>
> 
> 


-----
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: http://old.nabble.com/CloseSequence-was-not-recognized.--%28Does-it-exist-in-service-WSDL-%29-tp27563431p27566625.html
Sent from the cxf-user mailing list archive at Nabble.com.