cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbenmansour <nizar.ben.mans...@gmail.com>
Subject Where is the TerminateSequence message?
Date Fri, 30 Aug 2013 09:41:27 GMT
Hi ,
Accorging to Ws-Reliablemessaging (February 2005) at the end of the
conversation the client must send
a TermianteSequence to the server indicating that the RM Source will not be
sending any more messages.
But i discovered that Apache CXF does not send that message.
Any help?
Here is my source code :

public final class Client {

	private Client() {
	}

	@SuppressWarnings("unused")
	public static void main(String args[]) throws Exception {
		try {

			SpringBusFactory bf = new SpringBusFactory();
			URL busFile = Client.class.getResource("client.xml");
			Bus bus = bf.createBus(busFile.toString());
			BusFactory.setDefaultBus(bus);

//			bus.getOutInterceptors().add(new MessageLossSimulator());
			GreeterService service;
			if (args.length != 0 && args[0].length() != 0) {
				File wsdlFile = new File(args[0]);
				URL wsdlURL;
				if (wsdlFile.exists()) {
					wsdlURL = wsdlFile.toURI().toURL();
				} else {
					wsdlURL = new URL(args[0]);
				}
				service = new GreeterService(wsdlURL);
			} else {
				service = new GreeterService();
			}
			Greeter port = service.getGreeterPort();

			String[] names = new String[] { "Anne", "Bill", "Chris", "Daisy" };
//			System.out.println("Invoking greetMeOneWay...");
//			port.greetMeOneWay("nizar");
//			System.out.println("No response as method is OneWay\n");
			// System.exit(565);
			 for (int i = 0; i < names.length; i++) {
			 System.out.println("Invoking greetMeOneWay...");
			 port.greetMeOneWay(names[i]);
			 System.out.println("No response as method is OneWay\n");
			 }

			// allow aynchronous resends to occur
			Thread.sleep(30 * 1000);

			if (port instanceof Closeable) {
				((Closeable) port).close();
			}
		
			bus.shutdown(true);

		} catch (UndeclaredThrowableException ex) {
			ex.getUndeclaredThrowable().printStackTrace();
		} catch (Throwable ex) {
			ex.printStackTrace();
		} finally {
			System.out.println("Exit");
			System.exit(0);
		}
	}
}

and here is the log conversation:


août 30, 2013 10:35:54 AM
org.springframework.context.support.AbstractApplicationContext
prepareRefresh
INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@7cdc58:
startup date [Fri Aug 30 10:35:54 GMT+01:00 2013]; root of context hierarchy
août 30, 2013 10:35:55 AM org.apache.cxf.bus.spring.BusApplicationContext
getConfigResources
INFO: Loaded configuration file
file:/D:/Work/TestingGwtSpringWs/TestingWsReliable/build/classes/demo/ws_rm/client/client.xml.
août 30, 2013 10:35:55 AM
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from URL
[file:/D:/Work/TestingGwtSpringWs/TestingWsReliable/build/classes/demo/ws_rm/client/client.xml]
août 30, 2013 10:35:55 AM
org.springframework.beans.factory.support.DefaultListableBeanFactory
preInstantiateSingletons
INFO: Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1596170:
defining beans
[cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,cxf.config0,{http://cxf.apache.org/hello_world_soap_http}GreeterPort.http-conduit];
root of factory hierarchy
août 30, 2013 10:35:56 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service
{http://cxf.apache.org/hello_world_soap_http}GreeterService from WSDL:
file:hello_world_rm.wsdl
Invoking greetMeOneWay...
août 30, 2013 10:35:56 AM
org.apache.cxf.ws.addressing.impl.MAPAggregatorImpl
setUpDecoupledDestination
INFO: creating decoupled endpoint: http://localhost:9990/decoupled_endpoint
août 30, 2013 10:35:56 AM org.eclipse.jetty.server.Server doStart
INFO: jetty-8.1.7.v20120910
août 30, 2013 10:35:56 AM org.eclipse.jetty.server.AbstractConnector doStart
INFO: Started SelectChannelConnector@localhost:9990
août 30, 2013 10:35:57 AM org.apache.cxf.ws.rm.Proxy invoke
INFO: Sending out-of-band RM protocol message
{http://schemas.xmlsoap.org/ws/2005/02/rm}CreateSequence.
août 30, 2013 10:35:57 AM
org.apache.cxf.services.SequenceAbstractService.SequenceAbstractSoapPort.SequenceAbstractPortType
INFO: Outbound Message
---------------------------
ID: 1
Address: http://localhost:9000/SoapContext/GreeterPort
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml
Headers: {Accept=[*/*], Connection=[Keep-Alive],
SOAPAction=["http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence"]}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Action
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence</Action><MessageID
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">urn:uuid:d597671f-77a7-42a1-83af-eaad4619c3e5</MessageID><To
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://localhost:9000/SoapContext/GreeterPort</To><ReplyTo
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"><Address>http://localhost:9990/decoupled_endpoint</Address></ReplyTo></soap:Header><soap:Body><CreateSequence
xmlns="http://schemas.xmlsoap.org/ws/2005/02/rm"
xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing"><AcksTo><ns2:Address>http://localhost:9990/decoupled_endpoint</ns2:Address></AcksTo><Expires>PT0S</Expires><Offer><Identifier>urn:uuid:f8a25446-aa8c-4f30-a881-9b6320d851ae</Identifier><Expires>PT0S</Expires></Offer></CreateSequence></soap:Body></soap:Envelope>
--------------------------------------
août 30, 2013 10:35:57 AM
org.apache.cxf.services.GreeterService.GreeterPort.Greeter
INFO: Inbound Message
----------------------------
ID: 2
Address: http://localhost:9990/decoupled_endpoint
Response-Code: 200
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml; charset=UTF-8
Headers: {Accept=[*/*], Cache-Control=[no-cache], connection=[keep-alive],
Content-Length=[997], content-type=[text/xml; charset=UTF-8],
Host=[localhost:9990], Pragma=[no-cache], User-Agent=[Apache CXF 2.7.6]}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Action
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequenceResponse</Action><MessageID
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">urn:uuid:29d9e18d-fc33-475d-b027-e09a9ca48c50</MessageID><To
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://localhost:9990/decoupled_endpoint</To><RelatesTo
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">urn:uuid:d597671f-77a7-42a1-83af-eaad4619c3e5</RelatesTo></soap:Header><soap:Body><CreateSequenceResponse
xmlns="http://schemas.xmlsoap.org/ws/2005/02/rm"
xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing"><Identifier>urn:uuid:936f7b4b-612e-4b28-8ed5-7e355be51500</Identifier><Expires>P0Y0M0DT0H0M0S</Expires><Accept><AcksTo><ns2:Address>http://localhost:9000/SoapContext/GreeterPort</ns2:Address></AcksTo></Accept></CreateSequenceResponse></soap:Body></soap:Envelope>
--------------------------------------
août 30, 2013 10:35:57 AM org.apache.cxf.ws.rm.soap.RMSoapInterceptor
updateServiceModelInfo
INFO: Updating service model info in exchange
août 30, 2013 10:35:57 AM
org.apache.cxf.services.GreeterService.GreeterPort.Greeter
INFO: Outbound Message
---------------------------
ID: 3
Address: http://localhost:9000/SoapContext/GreeterPort
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml
Headers: {Accept=[*/*], Connection=[Keep-Alive], SOAPAction=[""]}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Action
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://cxf.apache.org/hello_world_soap_http/Greeter/greetMeOneWayRequest</Action><MessageID
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">urn:uuid:347cb2dc-5420-478e-8533-c478cfad08c6</MessageID><To
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://localhost:9000/SoapContext/GreeterPort</To><wsrm:Sequence
soap:mustUnderstand="1"
xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"><wsrm:Identifier>urn:uuid:936f7b4b-612e-4b28-8ed5-7e355be51500</wsrm:Identifier><wsrm:MessageNumber>1</wsrm:MessageNumber></wsrm:Sequence></soap:Header><soap:Body><greetMeOneWay
xmlns="http://cxf.apache.org/hello_world_soap_http/types"><requestType>Anne</requestType></greetMeOneWay></soap:Body></soap:Envelope>
--------------------------------------
No response as method is OneWay

Invoking greetMeOneWay...
août 30, 2013 10:35:57 AM
org.apache.cxf.services.GreeterService.GreeterPort.Greeter
INFO: Outbound Message
---------------------------
ID: 4
Address: http://localhost:9000/SoapContext/GreeterPort
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml
Headers: {Accept=[*/*], Connection=[Keep-Alive], SOAPAction=[""]}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Action
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://cxf.apache.org/hello_world_soap_http/Greeter/greetMeOneWayRequest</Action><MessageID
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">urn:uuid:b07b6949-e233-4801-9939-632c41860f55</MessageID><To
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://localhost:9000/SoapContext/GreeterPort</To><wsrm:Sequence
soap:mustUnderstand="1"
xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"><wsrm:Identifier>urn:uuid:936f7b4b-612e-4b28-8ed5-7e355be51500</wsrm:Identifier><wsrm:MessageNumber>2</wsrm:MessageNumber></wsrm:Sequence></soap:Header><soap:Body><greetMeOneWay
xmlns="http://cxf.apache.org/hello_world_soap_http/types"><requestType>Bill</requestType></greetMeOneWay></soap:Body></soap:Envelope>
--------------------------------------
No response as method is OneWay

Invoking greetMeOneWay...
août 30, 2013 10:35:57 AM
org.apache.cxf.services.GreeterService.GreeterPort.Greeter
INFO: Outbound Message
---------------------------
ID: 5
Address: http://localhost:9000/SoapContext/GreeterPort
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml
Headers: {Accept=[*/*], Connection=[Keep-Alive], SOAPAction=[""]}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Action
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://cxf.apache.org/hello_world_soap_http/Greeter/greetMeOneWayRequest</Action><MessageID
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">urn:uuid:23ab3d34-7669-4227-b1f2-ff0f885e3698</MessageID><To
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://localhost:9000/SoapContext/GreeterPort</To><wsrm:Sequence
soap:mustUnderstand="1"
xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"><wsrm:Identifier>urn:uuid:936f7b4b-612e-4b28-8ed5-7e355be51500</wsrm:Identifier><wsrm:MessageNumber>3</wsrm:MessageNumber></wsrm:Sequence></soap:Header><soap:Body><greetMeOneWay
xmlns="http://cxf.apache.org/hello_world_soap_http/types"><requestType>Chris</requestType></greetMeOneWay></soap:Body></soap:Envelope>
--------------------------------------
No response as method is OneWay

Invoking greetMeOneWay...
août 30, 2013 10:35:57 AM
org.apache.cxf.services.GreeterService.GreeterPort.Greeter
INFO: Outbound Message
---------------------------
ID: 6
Address: http://localhost:9000/SoapContext/GreeterPort
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml
Headers: {Accept=[*/*], Connection=[Keep-Alive], SOAPAction=[""]}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Action
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://cxf.apache.org/hello_world_soap_http/Greeter/greetMeOneWayRequest</Action><MessageID
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">urn:uuid:8e9ea65b-73d1-44a8-81ac-50c181e45096</MessageID><To
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://localhost:9000/SoapContext/GreeterPort</To><wsrm:Sequence
soap:mustUnderstand="1"
xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"><wsrm:Identifier>urn:uuid:936f7b4b-612e-4b28-8ed5-7e355be51500</wsrm:Identifier><wsrm:MessageNumber>4</wsrm:MessageNumber></wsrm:Sequence></soap:Header><soap:Body><greetMeOneWay
xmlns="http://cxf.apache.org/hello_world_soap_http/types"><requestType>Daisy</requestType></greetMeOneWay></soap:Body></soap:Envelope>
--------------------------------------
No response as method is OneWay

août 30, 2013 10:35:59 AM
org.apache.cxf.services.GreeterService.GreeterPort.Greeter
INFO: Inbound Message
----------------------------
ID: 7
Address: http://localhost:9990/decoupled_endpoint
Response-Code: 200
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml; charset=UTF-8
Headers: {Accept=[*/*], Cache-Control=[no-cache], connection=[keep-alive],
Content-Length=[798], content-type=[text/xml; charset=UTF-8],
Host=[localhost:9990], Pragma=[no-cache],
SOAPAction=["http://schemas.xmlsoap.org/ws/2005/02/rm/SequenceAcknowledgement"],
User-Agent=[Apache CXF 2.7.6]}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Action
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2005/02/rm/SequenceAcknowledgement</Action><MessageID
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">urn:uuid:b8b59ec9-69d2-4bab-99e0-1dae075eccdb</MessageID><To
xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://localhost:9990/decoupled_endpoint</To><wsrm:SequenceAcknowledgement
xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"><wsrm:Identifier>urn:uuid:936f7b4b-612e-4b28-8ed5-7e355be51500</wsrm:Identifier><wsrm:AcknowledgementRange
Lower="1"
Upper="4"/></wsrm:SequenceAcknowledgement></soap:Header><soap:Body/></soap:Envelope>
--------------------------------------
août 30, 2013 10:35:59 AM org.apache.cxf.ws.rm.soap.RMSoapInterceptor
updateServiceModelInfo
INFO: Updating service model info in exchange
août 30, 2013 10:36:27 AM org.eclipse.jetty.server.handler.ContextHandler
doStop
INFO: stopped o.e.j.s.h.ContextHandler{,null}
août 30, 2013 10:36:27 AM
org.springframework.context.support.AbstractApplicationContext doClose
INFO: Closing org.apache.cxf.bus.spring.BusApplicationContext@7cdc58:
startup date [Fri Aug 30 10:35:54 GMT+01:00 2013]; root of context hierarchy
août 30, 2013 10:36:27 AM
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
destroySingletons
INFO: Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1596170:
defining beans
[cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,cxf.config0,{http://cxf.apache.org/hello_world_soap_http}GreeterPort.http-conduit];
root of factory hierarchy
Exit




--
View this message in context: http://cxf.547215.n5.nabble.com/Where-is-the-TerminateSequence-message-tp5733333.html
Sent from the cxf-user mailing list archive at Nabble.com.

Mime
View raw message