You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Diefenbach Anne <Di...@fgan.de> on 2009/06/15 13:10:09 UTC

WSN2005 - Consumer throws SoapFault

Hi,

I have used the wsn-http-binding example to write a test application using
WS-Notification. Unfortunately, upon receiving a notification, my consumer
throws the following exception:

15.06.2009 12:39:22 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: "http://docs.oasis-open.org/wsn/b-2",
the namespace on the "Notify" element, is not a valid SOAP version.
	at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:94)
	at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:56)
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
	at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
	at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:278)
	at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:252)
	at
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
	at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
	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:505)
	at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
	at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
	at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

Try as I might, I have been unable to determine the exception's cause. Can
anyone help me?

My consumer's WSDL: 
http://www.nabble.com/file/p24032331/NotificationConsumer.wsdl
NotificationConsumer.wsdl 
I modified wsn-http-binding-su: 
http://www.nabble.com/file/p24032331/xbean.xml xbean.xml 
The log:  http://www.nabble.com/file/p24032331/servicemix.log servicemix.log 

I would be grateful for any hints.

Regards,

Anne
-- 
View this message in context: http://www.nabble.com/WSN2005---Consumer-throws-SoapFault-tp24032331p24032331.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


AW: WSN2005 - Consumer throws SoapFault

Posted by Diefenbach Anne <Di...@fgan.de>.
Hi,

I've gone back to the basics with this. Again, the setup is

CXF WSN consumer <--> SMX WSN broker (HTTP binding component) <--> CXF WSN producer

As I understand it, whether a service is exposed via HTTP binding component or CXF binding component is irrelevant insofar that if I have a client corresponding to the service's WSDL, I can invoke it. Right? Seeing as I can, in fact, use the broker's subscribe and notify operations. The problem arises if I ask the broker to act as a consumer to my CXF service. Because then - and only then - it sends the message without wrapping it in a SOAP envelope. Like this:

POST /WSNConsumer HTTP/1.1
Content-Type: text/xml;charset=UTF-8
Content-Length: 1008
User-Agent: Jakarta Commons-HttpClient/3.0
Host: localhost:9081

<?xml version='1.0' encoding='UTF-8'?>
<ns2:Notify xmlns="http://www.w3.org/2005/08/addressing" 
    xmlns:ns2="http://docs.oasis-open.org/wsn/b-2" 
    xmlns:ns3="http://docs.oasis-open.org/wsrf/bf-2" 
    xmlns:ns4="http://docs.oasis-open.org/wsrf/rp-2" 
    xmlns:ns5="http://docs.oasis-open.org/wsn/t-1">
    <ns2:NotificationMessage>
	<ns2:Topic Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple">
	    myTopic
	</ns2:Topic>
	<ns2:Message>
	    <ns7:myMessage xmlns:n7="myNamespace" />
	</ns2:Message>
    </ns2:NotificationMessage>
</ns2:Notify>

Naturally, my CXF service complains. So is there a possibility to configure the HTTP binding component so that it also uses SOAP when a service deployed to it acts as a consumer to an outside service?

Thank you for your help,

Anne

> -----Ursprüngliche Nachricht-----
> Von: Diefenbach Anne [mailto:Diefenbach@fgan.de]
> Gesendet: Montag, 15. Juni 2009 13:10
> An: users@servicemix.apache.org
> Betreff: WSN2005 - Consumer throws SoapFault
> 
> 
> Hi,
> 
> I have used the wsn-http-binding example to write a test application using
> WS-Notification. Unfortunately, upon receiving a notification, my consumer
> throws the following exception:
> 
> 15.06.2009 12:39:22 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
> INFO: Interceptor has thrown exception, unwinding now
> org.apache.cxf.binding.soap.SoapFault: "http://docs.oasis-open.org/wsn/b-
> 2",
> the namespace on the "Notify" element, is not a valid SOAP version.
> 	at
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessa
> ge(ReadHeadersInterceptor.java:94)
> 	at
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessa
> ge(ReadHeadersInterceptor.java:56)
> 	at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCha
> in.java:220)
> 	at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiation
> Observer.java:78)
> 	at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(Je
> ttyHTTPDestination.java:278)
> 	at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHT
> TPDestination.java:252)
> 	at
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandl
> er.java:70)
> 	at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
> 	at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCo
> llection.java:206)
> 	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:505)
> 	at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.jav
> a:842)
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> 	at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:39
> 5)
> 	at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java
> :450)
> 
> Try as I might, I have been unable to determine the exception's cause. Can
> anyone help me?
> 
> My consumer's WSDL:
> http://www.nabble.com/file/p24032331/NotificationConsumer.wsdl
> NotificationConsumer.wsdl
> I modified wsn-http-binding-su:
> http://www.nabble.com/file/p24032331/xbean.xml xbean.xml
> The log:  http://www.nabble.com/file/p24032331/servicemix.log
> servicemix.log
> 
> I would be grateful for any hints.
> 
> Regards,
> 
> Anne
> --
> View this message in context: http://www.nabble.com/WSN2005---Consumer-
> throws-SoapFault-tp24032331p24032331.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: AW: WSN2005 - Consumer throws SoapFault

Posted by Adu <ka...@gmail.com>.
Hi Anne,

I am facing the same issue in version 4.4.1. I am using the WSN HTTP binding 
example.
I am having a notification consumer as a external CXF web service and I get 
the same error in the web service log

Did you manage to solve it? Can you please explain how you solved it?

Adu





AW: WSN2005 - Consumer throws SoapFault

Posted by Diefenbach Anne <Di...@fgan.de>.
Hi Vivian,

thanks for your response. But I think my http namespace is defined:

<beans xmlns:http="http://servicemix.apache.org/http/1.0"...>

Is that what you were referring to?

Regards,

Anne

> -----Ursprüngliche Nachricht-----
> Von: Madesclair Vivian [mailto:vmadesclair@sopragroup.com]
> Gesendet: Montag, 15. Juni 2009 13:57
> An: users@servicemix.apache.org
> Betreff: RE: WSN2005 - Consumer throws SoapFault
> 
> Hi Anne,
> 
> I am a beginner on this, I just started studying servicemix, xml and all
> that a few weeks ago. But why isn't your http namespace defined in your
> xbean?
> I am just trying to help, I hope it is not stupid :S
> 
> Vivian
> 
> 
> -----Message d'origine-----
> De : Diefenbach Anne [mailto:Diefenbach@fgan.de]
> Envoyé : lundi 15 juin 2009 13:10
> À : users@servicemix.apache.org
> Objet : WSN2005 - Consumer throws SoapFault
> 
> 
> Hi,
> 
> I have used the wsn-http-binding example to write a test application using
> WS-Notification. Unfortunately, upon receiving a notification, my consumer
> throws the following exception:
> 
> 15.06.2009 12:39:22 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
> INFO: Interceptor has thrown exception, unwinding now
> org.apache.cxf.binding.soap.SoapFault: "http://docs.oasis-open.org/wsn/b-
> 2",
> the namespace on the "Notify" element, is not a valid SOAP version.
> 	at
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessa
> ge(ReadHeadersInterceptor.java:94)
> 	at
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessa
> ge(ReadHeadersInterceptor.java:56)
> 	at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCha
> in.java:220)
> 	at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiation
> Observer.java:78)
> 	at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(Je
> ttyHTTPDestination.java:278)
> 	at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHT
> TPDestination.java:252)
> 	at
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandl
> er.java:70)
> 	at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
> 	at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCo
> llection.java:206)
> 	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:505)
> 	at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.jav
> a:842)
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> 	at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:39
> 5)
> 	at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java
> :450)
> 
> Try as I might, I have been unable to determine the exception's cause. Can
> anyone help me?
> 
> My consumer's WSDL:
> http://www.nabble.com/file/p24032331/NotificationConsumer.wsdl
> NotificationConsumer.wsdl
> I modified wsn-http-binding-su:
> http://www.nabble.com/file/p24032331/xbean.xml xbean.xml The log:
> http://www.nabble.com/file/p24032331/servicemix.log servicemix.log
> 
> I would be grateful for any hints.
> 
> Regards,
> 
> Anne
> --
> View this message in context: http://www.nabble.com/WSN2005---Consumer-
> throws-SoapFault-tp24032331p24032331.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.


RE: WSN2005 - Consumer throws SoapFault

Posted by Madesclair Vivian <vm...@sopragroup.com>.
Hi Anne,

I am a beginner on this, I just started studying servicemix, xml and all that a few weeks ago. But why isn't your http namespace defined in your xbean?
I am just trying to help, I hope it is not stupid :S

Vivian


-----Message d'origine-----
De : Diefenbach Anne [mailto:Diefenbach@fgan.de] 
Envoyé : lundi 15 juin 2009 13:10
À : users@servicemix.apache.org
Objet : WSN2005 - Consumer throws SoapFault


Hi,

I have used the wsn-http-binding example to write a test application using WS-Notification. Unfortunately, upon receiving a notification, my consumer throws the following exception:

15.06.2009 12:39:22 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: "http://docs.oasis-open.org/wsn/b-2",
the namespace on the "Notify" element, is not a valid SOAP version.
	at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:94)
	at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:56)
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
	at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
	at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:278)
	at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:252)
	at
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
	at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
	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:505)
	at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
	at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
	at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

Try as I might, I have been unable to determine the exception's cause. Can anyone help me?

My consumer's WSDL: 
http://www.nabble.com/file/p24032331/NotificationConsumer.wsdl
NotificationConsumer.wsdl
I modified wsn-http-binding-su: 
http://www.nabble.com/file/p24032331/xbean.xml xbean.xml The log:  http://www.nabble.com/file/p24032331/servicemix.log servicemix.log 

I would be grateful for any hints.

Regards,

Anne
--
View this message in context: http://www.nabble.com/WSN2005---Consumer-throws-SoapFault-tp24032331p24032331.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


AW: AW: WSN2005 - Consumer throws SoapFault

Posted by Diefenbach Anne <Di...@fgan.de>.
Well, I have transferred to CXF binding... and receive another error. Now, a SoapFaultException occurs when I try to subscribe my consumer (something which did work with HTTP binding). The setup is still the following:

WSN consumer (CXF) <--> WSN broker (SMX) <--> WSN producer (CXF)

CXF thows the exception [1]. I have used HTTP tracer to capture the communication between consumer and broker, and the messages they exchange look like this (I've prettified the indentations):

Consumer (unprettified version at [2], in case the somewhat weird whitespace is at fault):

POST /Broker/ HTTP/1.1
Content-Type: application/soap+xml; charset=UTF-8
Accept: */*
User-Agent: Apache CXF 2.2.0.0-fuse
Cache-Control: no-cache
Pragma: no-cache
Host: localhost:8888
Connection: keep-alive
Content-Length: 1365

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Body>
	<ns6:Subscribe xmlns:ns2="http://www.w3.org/2005/08/addressing" 
	    xmlns:ns3="http://docs.oasis-open.org/wsrf/bf-2" 
	    xmlns:ns4="http://docs.oasis-open.org/wsn/t-1" 
	    xmlns:ns5="http://docs.oasis-open.org/wsn/br-2" 
	    xmlns:ns6="http://docs.oasis-open.org/wsn/b-2" 
	    xmlns:ns7="http://katastropheneinsatz.fgan.de" 
	    xmlns:ns8="http://docs.oasis-open.org/wsrf/r-2">
	    <ns6:ConsumerReference>
		<ns2:Address>http://localhost:9080/WSNConsumer</ns2:Address>
		<ns2:ReferenceParameters>
		    <wsa:ReferenceParameters xmlns:wsa="http://www.w3.org/2005/08/addressing">
		    </wsa:ReferenceParameters>
		</ns2:ReferenceParameters>
		<ns2:Metadata>
		    <wsaw:ServiceName xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl">
ns2:NotificationConsumerService</wsaw:ServiceName>
		    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
			<wsdl:import location="file:myPath/resources/NotificationConsumer.wsdl" namespace="http://katastropheneinsatz.fgan.de/wsn-consumer"/>
		    </wsdl:definitions>
		</ns2:Metadata>
	    </ns6:ConsumerReference>
	    <ns6:Filter>
		<ns6:TopicExpression Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple">EnvironmentReport</ns6:TopicExpression>
	    </ns6:Filter>
	</ns6:Subscribe>
    </soap:Body>
</soap:Envelope>

Broker:

HTTP/1.1 500 Internal Server Error
Content-Type: application/soap+xml; charset=UTF-8
Content-Length: 290
Server: Jetty(6.1.14)

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Body>
	<soap:Fault>
	    <soap:Code>
		<soap:Value>soap:Receiver</soap:Value>
	    </soap:Code>
	    <soap:Reason>
		<soap:Text xml:lang ="en">Fault occurred while processing.</soap:Text>
	    </soap:Reason>
	</soap:Fault>
    </soap:Body>
</soap:Envelope>

According to the log [3], the consumer reference is at fault. But this is the same reference I used with the HTTP binding component, which did work. And why is the SubscribeCreationFailedFault not propagated onwards to the consumer? It is one of the expected exceptions.

Regards,

Anne

[1]
Invoking subscribe...
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Fault occurred while processing.
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145)
	at $Proxy45.subscribe(Unknown Source)
	at org.oasis_open.docs.wsn.bw_2.NotificationConsumer_NotificationConsumerPort_Server.subscribe(NotificationConsumer_NotificationConsumerPort_Server.java:73)
	at org.oasis_open.docs.wsn.bw_2.NotificationConsumer_NotificationConsumerPort_Server.main(NotificationConsumer_NotificationConsumerPort_Server.java:137)
Caused by: org.apache.cxf.binding.soap.SoapFault: Fault occurred while processing.
	at org.apache.cxf.binding.soap.interceptor.Soap12FaultInInterceptor.handleMessage(Soap12FaultInInterceptor.java:104)
	at org.apache.cxf.binding.soap.interceptor.Soap12FaultInInterceptor.handleMessage(Soap12FaultInInterceptor.java:45)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
	at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:96)
	at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
	at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
	at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:633)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2066)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1944)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1869)
	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
	at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:595)
	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:466)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:299)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:251)
	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
	... 3 more

[2]
POST /Broker/ HTTP/1.1
Content-Type: application/soap+xml; charset=UTF-8
Accept: */*
User-Agent: Apache CXF 2.2.0.0-fuse
Cache-Control: no-cache
Pragma: no-cache
Host: localhost:8888
Connection: keep-alive
Content-Length: 1365

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Body><ns6:Subscribe xmlns:ns2="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://docs.oasis-open.org/wsrf/bf-2" xmlns:ns4="http://docs.oasis-open.org/wsn/t-1" xmlns:ns5="http://docs.oasis-open.org/wsn/br-2" xmlns:ns6="http://docs.oasis-open.org/wsn/b-2" xmlns:ns7="http://katastropheneinsatz.fgan.de" xmlns:ns8="http://docs.oasis-open.org/wsrf/r-2"><ns6:ConsumerReference><ns2:Address>http://localhost:9080/WSNConsumer</ns2:Address><ns2:ReferenceParameters><wsa:ReferenceParameters xmlns:wsa="http://www.w3.org/2005/08/addressing">
        
    </wsa:ReferenceParameters></ns2:ReferenceParameters><ns2:Metadata><wsaw:ServiceName xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl">ns2:NotificationConsumerService</wsaw:ServiceName><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"><wsdl:import location="file:myPath/resources/NotificationConsumer.wsdl" namespace="http://katastropheneinsatz.fgan.de/wsn-consumer"/></wsdl:definitions></ns2:Metadata></ns6:ConsumerReference><ns6:Filter><ns6:TopicExpression Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple">EnvironmentReport</ns6:TopicExpression></ns6:Filter></ns6:Subscribe></soap:Body></soap:Envelope>

[3]
15:27:56,190 | INFO  | main       | JBIContainer             | mix.jbi.container.JBIContainer  674 | ServiceMix JBI Container (ServiceMix) started
15:28:40,924 | INFO  | 21583340@qtp0-0 | ContextUtils             | cxf.ws.addressing.ContextUtils  266 | retrieving MAPs from context property javax.xml.ws.addressing.context.inbound
15:28:40,924 | INFO  | 21583340@qtp0-0 | ContextUtils             | he.cxf.common.logging.LogUtils  345 | WS-Addressing - failed to retrieve Message Addressing Properties from context
15:28:40,924 | INFO  | 21583340@qtp0-0 | MAPCodec                 | xf.ws.addressing.soap.MAPCodec  435 | Inbound WS-Addressing headers
15:28:40,940 | INFO  | 21583340@qtp0-0 | ContextUtils             | cxf.ws.addressing.ContextUtils  266 | retrieving MAPs from context property javax.xml.ws.addressing.context.inbound
15:28:40,940 | WARN  | 21583340@qtp0-0 | ContextUtils             | he.cxf.common.logging.LogUtils  345 | WS-Addressing - failed to retrieve Message Addressing Properties from context
15:28:40,940 | DEBUG | 21583340@qtp0-0 | CxfBcComponent           | emix.common.AsyncBaseLifeCycle  653 | Created correlation id: ID:128.7.5.56-121ee66e5e8-2:0
15:28:40,940 | DEBUG | 21583340@qtp0-0 | DeliveryChannelImpl      | .messaging.DeliveryChannelImpl  459 | SendSync ID:128.7.5.56-121ee66e5e8-2:0 in DeliveryChannel{servicemix-cxf-bc}
15:28:40,940 | DEBUG | 21583340@qtp0-0 | SedaFlow                 | emix.jbi.nmr.flow.AbstractFlow  118 | Called Flow send
15:28:40,940 | DEBUG | 21583340@qtp0-0 | DeliveryChannelImpl      | .messaging.DeliveryChannelImpl  706 | Waiting for exchange ID:128.7.5.56-121ee66e5e8-2:0 (509bfc) to be answered in DeliveryChannel{servicemix-cxf-bc} from sendSync
15:28:40,940 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-1 | SedaQueue                | .jbi.nmr.flow.seda.SedaQueue$1  132 | org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@30cefd dequeued exchange: InOut[
  id: ID:128.7.5.56-121ee66e5e8-2:0
  status: Active
  role: provider
  service: {http://servicemix.org/wsnotification}NotificationBroker
  endpoint: Broker
  operation: {http://docs.oasis-open.org/wsn/brw-2}Subscribe
  in: <?xml version="1.0" encoding="UTF-8"?><ns6:Subscribe xmlns:ns6="http://docs.oasis-open.org/wsn/b-2" xmlns:ns2="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://docs.oasis-open.org/wsrf/bf-2" xmlns:ns4="http://docs.oasis-open.org/wsn/t-1" xmlns:ns5="http://docs.oasis-open.org/wsn/br-2" xmlns:ns7="http://katastropheneinsatz.fgan.de" xmlns:ns8="http://docs.oasis-open.org/wsrf/r-2"><ns6:ConsumerReference><ns2:Address>http://localhost:9080/WSNConsumer</ns2:Address><ns2:ReferenceParameters><wsa:ReferenceParameters xmlns:wsa="http://www.w3.org/2005/08/addressing">
        
    </wsa:ReferenceParameters></ns2:ReferenceParameters><ns2:Metadata><wsaw:InterfaceName xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl">ns1:NotificationConsumer</wsaw:InterfaceName><wsaw:ServiceName xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" EndpointName="NotificationConsumerPort">ns2:NotificationConsumerService</wsaw:ServiceName><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"><wsdl:import location="file:C:/Dokumente und Einstellungen/Diefenbach/Eigene Dateien/SOA/Software/FUSE/Tests/WSNPubSub/WSNotification/resources/NotificationConsumer.wsdl" namespace="http://katastropheneinsatz.fgan.de/wsn-consumer"/></wsdl:definitions></ns2:Metadata></ns6:ConsumerReference><ns6:Filter><ns6:TopicExpression Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple">EnvironmentReport</ns6:TopicExpression></ns6:Filter></ns6:Subscribe>
]
15:28:40,940 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-1 | WSNComponent             | emix.common.AsyncBaseLifeCycle  561 | Received exchange: status: Active, role: provider
15:28:40,940 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-1 | WSNComponent             | emix.common.AsyncBaseLifeCycle  623 | Retrieved correlation id: ID:128.7.5.56-121ee66e5e8-2:0
15:28:41,002 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-1 | stractNotificationBroker | wsn.AbstractNotificationBroker  179 | Subscribe
15:28:41,205 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-1 | DeliveryChannelImpl      | .messaging.DeliveryChannelImpl  426 | Send ID:128.7.5.56-121ee66e5e8-2:0 in DeliveryChannel{servicemix-wsn2005}
15:28:41,205 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-1 | SedaFlow                 | emix.jbi.nmr.flow.AbstractFlow  118 | Called Flow send
15:28:41,205 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-2 | SedaQueue                | .jbi.nmr.flow.seda.SedaQueue$1  132 | org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@102d81c dequeued exchange: InOut[
  id: ID:128.7.5.56-121ee66e5e8-2:0
  status: Active
  role: consumer
  service: {http://servicemix.org/wsnotification}NotificationBroker
  endpoint: Broker
  operation: {http://docs.oasis-open.org/wsn/brw-2}Subscribe
  in: <?xml version="1.0" encoding="UTF-8"?><ns6:Subscribe xmlns:ns6="http://docs.oasis-open.org/wsn/b-2" xmlns:ns2="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://docs.oasis-open.org/wsrf/bf-2" xmlns:ns4="http://docs.oasis-open.org/wsn/t-1" xmlns:ns5="http://docs.oasis-open.org/wsn/br-2" xmlns:ns7="http://katastropheneinsatz.fgan.de" xmlns:ns8="http://docs.oasis-open.org/wsrf/r-2"><ns6:ConsumerReference><ns2:Address>http://localhost:9080/WSNConsumer</ns2:Address><ns2:ReferenceParameters><wsa:ReferenceParameters xmlns:wsa="http://www.w3.org/2005/08/addressing">
        
    </wsa:ReferenceParameters></ns2:ReferenceParameters><ns2:Metadata><wsaw:InterfaceName xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl">ns1:NotificationConsumer</wsaw:InterfaceName><wsaw:ServiceName xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" EndpointName="NotificationConsumerPort">ns2:NotificationConsumerService</wsaw:ServiceName><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"><wsdl:import location="file:C:/Dokumente und Einstellungen/Diefenbach/Eigene Dateien/SOA/Software/FUSE/Tests/WSNPubSub/WSNotification/resources/NotificationConsumer.wsdl" namespace="http://katastropheneinsatz.fgan.de/wsn-consumer"/></wsdl:definitions></ns2:Metadata></ns6:ConsumerReference><ns6:Filter><ns6:TopicExpression Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple">EnvironmentReport</ns6:TopicExpression></ns6:Filter></ns6:Subscribe>
  fault: <?xml version="1.0" encoding="UTF-8"?><ns4:SubscribeCreationFailedFault xmlns:ns4="http://docs.oasis-open.org/wsn/b-2" xmlns:ns2="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://docs.oasis-open.org/wsrf/bf-2" xmlns:ns5="http://docs.oasis-open.org/wsrf/rp-2" xmlns:ns6="http://docs.oasis-open.org/wsn/t-1" xmlns:ns7="http://docs.oasis-open.org/wsn/br-2"><ns3:Timestamp>2009-06-17T15:28:41.205+02:00</ns3:Timestamp><ns3:Description>Unable to resolve consumer reference endpoint</ns3:Description></ns4:SubscribeCreationFailedFault>
]
15:28:41,221 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-2 | DeliveryChannelImpl      | .messaging.DeliveryChannelImpl  723 | Notifying exchange ID:128.7.5.56-121ee66e5e8-2:0(509bfc) in DeliveryChannel{servicemix-cxf-bc} from processInboundSynchronousExchange
15:28:41,221 | DEBUG | 21583340@qtp0-0 | DeliveryChannelImpl      | .messaging.DeliveryChannelImpl  717 | Notified: ID:128.7.5.56-121ee66e5e8-2:0(509bfc) in DeliveryChannel{servicemix-cxf-bc} from sendSync
15:28:41,221 | DEBUG | 21583340@qtp0-0 | DeliveryChannelImpl      | .messaging.DeliveryChannelImpl  426 | Send ID:128.7.5.56-121ee66e5e8-2:0 in DeliveryChannel{servicemix-cxf-bc}
15:28:41,221 | DEBUG | 21583340@qtp0-0 | SedaFlow                 | emix.jbi.nmr.flow.AbstractFlow  118 | Called Flow send
15:28:41,221 | INFO  | 21583340@qtp0-0 | PhaseInterceptorChain    | xf.phase.PhaseInterceptorChain  258 | Interceptor has thrown exception, unwinding now null
15:28:41,221 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-3 | SedaQueue                | .jbi.nmr.flow.seda.SedaQueue$1  132 | org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@ce82cc dequeued exchange: InOut[
  id: ID:128.7.5.56-121ee66e5e8-2:0
  status: Done
  role: provider
  service: {http://servicemix.org/wsnotification}NotificationBroker
  endpoint: Broker
  operation: {http://docs.oasis-open.org/wsn/brw-2}Subscribe
  in: <?xml version="1.0" encoding="UTF-8"?><ns6:Subscribe xmlns:ns6="http://docs.oasis-open.org/wsn/b-2" xmlns:ns2="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://docs.oasis-open.org/wsrf/bf-2" xmlns:ns4="http://docs.oasis-open.org/wsn/t-1" xmlns:ns5="http://docs.oasis-open.org/wsn/br-2" xmlns:ns7="http://katastropheneinsatz.fgan.de" xmlns:ns8="http://docs.oasis-open.org/wsrf/r-2"><ns6:ConsumerReference><ns2:Address>http://localhost:9080/WSNConsumer</ns2:Address><ns2:ReferenceParameters><wsa:ReferenceParameters xmlns:wsa="http://www.w3.org/2005/08/addressing">
        
    </wsa:ReferenceParameters></ns2:ReferenceParameters><ns2:Metadata><wsaw:InterfaceName xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl">ns1:NotificationConsumer</wsaw:InterfaceName><wsaw:ServiceName xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" EndpointName="NotificationConsumerPort">ns2:NotificationConsumerService</wsaw:ServiceName><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"><wsdl:import location="file:C:/Dokumente und Einstellungen/Diefenbach/Eigene Dateien/SOA/Software/FUSE/Tests/WSNPubSub/WSNotification/resources/NotificationConsumer.wsdl" namespace="http://katastropheneinsatz.fgan.de/wsn-consumer"/></wsdl:definitions></ns2:Metadata></ns6:ConsumerReference><ns6:Filter><ns6:TopicExpression Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple">EnvironmentReport</ns6:TopicExpression></ns6:Filter></ns6:Subscribe>
  fault: <?xml version="1.0" encoding="UTF-8"?><ns4:SubscribeCreationFailedFault xmlns:ns4="http://docs.oasis-open.org/wsn/b-2" xmlns:ns2="http://www.w3.org/2005/08/addressing" xmlns:ns3="http://docs.oasis-open.org/wsrf/bf-2" xmlns:ns5="http://docs.oasis-open.org/wsrf/rp-2" xmlns:ns6="http://docs.oasis-open.org/wsn/t-1" xmlns:ns7="http://docs.oasis-open.org/wsn/br-2"><ns3:Timestamp>2009-06-17T15:28:41.205+02:00</ns3:Timestamp><ns3:Description>Unable to resolve consumer reference endpoint</ns3:Description></ns4:SubscribeCreationFailedFault>
]
15:28:41,221 | INFO  | 21583340@qtp0-0 | ContextUtils             | cxf.ws.addressing.ContextUtils  266 | retrieving MAPs from context property javax.xml.ws.addressing.context.outbound
15:28:41,221 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-3 | WSNComponent             | emix.common.AsyncBaseLifeCycle  561 | Received exchange: status: Done, role: provider
15:28:41,221 | INFO  | 21583340@qtp0-0 | ContextUtils             | he.cxf.common.logging.LogUtils  345 | WS-Addressing - failed to retrieve Message Addressing Properties from context
15:28:41,221 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-3 | WSNComponent             | emix.common.AsyncBaseLifeCycle  623 | Retrieved correlation id: ID:128.7.5.56-121ee66e5e8-2:0
15:28:41,237 | INFO  | 21583340@qtp0-0 | URIMappingInterceptor    | ptor.Soap12FaultOutInterceptor   49 | class org.apache.cxf.binding.soap.interceptor.Soap12FaultOutInterceptorapplication/soap+xml

> -----Ursprüngliche Nachricht-----
> Von: Freeman Fang [mailto:freeman.fang@gmail.com]
> Gesendet: Dienstag, 16. Juni 2009 03:46
> An: users@servicemix.apache.org
> Betreff: Re: AW: WSN2005 - Consumer throws SoapFault
> 
> Diefenbach Anne wrote:
> > Oh, one more thing - the
> >
> > <http:endpoint service="wsn-consumer:NotificationConsumerService"
> >                  endpoint="NotificationConsumerPort"
> >                  role="provider"
> >                  locationURI="http://localhost:9080/WSNConsumer"
> >
> wsdlResource="myPath/resources/NotificationConsumer.wsdl"
> >                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> >                  soap="true"/>
> >
> > wasn't there initially; I added it in my quest for a solution. It didn't
> appear to do any harm, so I kept it even if it didn't help. (The fact that
> NotificationConsumerService is a CXF service and as such, would probably
> need to be added to a CXF BC if at all, kinda slipped my mind there.)
> >
> > Also, I have looked for the wsn-cxf-binding example you mentioned, but
> couldn't find it. I downloaded the two latest snapshots from
> http://people.apache.org/repo/m2-snapshot-
> repository/org/apache/servicemix/apache-servicemix/3.3.1-SNAPSHOT/, but it
> wasn't there. Is there anywhere else I might look?
> >
> >
> You can download the 3.3.1 kit[1] which is during vote and not
> officially released(but will be released very soon...)
> [1]https://repository.apache.org/content/repositories/servicemix-staging-
> 016/org/apache/servicemix/apache-servicemix/3.3.1/
> Freeman
> > Regards,
> >
> > Anne
> >
> >
> >> -----Ursprüngliche Nachricht-----
> >> Von: Diefenbach Anne [mailto:Diefenbach@fgan.de]
> >> Gesendet: Montag, 15. Juni 2009 15:53
> >> An: users@servicemix.apache.org
> >> Betreff: AW: WSN2005 - Consumer throws SoapFault
> >>
> >> Hi Freeman,
> >>
> >> thanks for your answer. I wanted to have a consumer (and notification
> >> producer) external to the JBI environment, so I used CXF to build
> >> webservices from WSDL. (I just assumed that would be compatible with
> the
> >> broker's SOAP/HTTP binding...?) I used the wsn-http-binding example to
> >> provide me with a broker.
> >>
> >> CXF WS notification producer ---> SMX WSN broker ---> CXF WS
> notification
> >> consumer
> >>
> >> I don't use the PullPoint, I just want to be able to receive any
> >> notification the producer sends.
> >>
> >> Regards,
> >>
> >> Anne
> >>
> >>
> >>> -----Ursprüngliche Nachricht-----
> >>> Von: Freeman Fang [mailto:freeman.fang@gmail.com]
> >>> Gesendet: Montag, 15. Juni 2009 14:18
> >>> An: users@servicemix.apache.org
> >>> Betreff: Re: WSN2005 - Consumer throws SoapFault
> >>>
> >>> Hi,
> >>> Could you please explain how is the cxf stack trace come from? Given
> as
> >>> you said you are using wsn-http-binding example?
> >>> I think you may need take a look at wsn-cxf-binding example, which is
> >>> added recently and is in smx 3.2.4 snapshot and 3.3.1 snapshot.
> >>> Freeman
> >>>
> >>> Diefenbach Anne wrote:
> >>>
> >>>> Hi,
> >>>>
> >>>> I have used the wsn-http-binding example to write a test application
> >>>>
> >>> using
> >>>
> >>>> WS-Notification. Unfortunately, upon receiving a notification, my
> >>>>
> >>> consumer
> >>>
> >>>> throws the following exception:
> >>>>
> >>>> 15.06.2009 12:39:22 org.apache.cxf.phase.PhaseInterceptorChain
> >>>>
> >>> doIntercept
> >>>
> >>>> INFO: Interceptor has thrown exception, unwinding now
> >>>> org.apache.cxf.binding.soap.SoapFault: "http://docs.oasis-
> >>>>
> >>> open.org/wsn/b-2",
> >>>
> >>>> the namespace on the "Notify" element, is not a valid SOAP version.
> >>>> 	at
> >>>>
> >>>>
> >>
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessa
> >>
> >>> ge(ReadHeadersInterceptor.java:94)
> >>>
> >>>> 	at
> >>>>
> >>>>
> >>
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessa
> >>
> >>> ge(ReadHeadersInterceptor.java:56)
> >>>
> >>>> 	at
> >>>>
> >>>>
> >>
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCha
> >>
> >>> in.java:220)
> >>>
> >>>> 	at
> >>>>
> >>>>
> >>
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiation
> >>
> >>> Observer.java:78)
> >>>
> >>>> 	at
> >>>>
> >>>>
> >>
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(Je
> >>
> >>> ttyHTTPDestination.java:278)
> >>>
> >>>> 	at
> >>>>
> >>>>
> >>
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHT
> >>
> >>> TPDestination.java:252)
> >>>
> >>>> 	at
> >>>>
> >>>>
> >>
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandl
> >>
> >>> er.java:70)
> >>>
> >>>> 	at
> >>>>
> >>>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
> >>>
> >>>> 	at
> >>>>
> >>>>
> >>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCo
> >>
> >>> llection.java:206)
> >>>
> >>>> 	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:505)
> >>>
> >>>> 	at
> >>>>
> >>>>
> >>
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.jav
> >>
> >>> a:842)
> >>>
> >>>> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
> >>>> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> >>>> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> >>>> 	at
> >>>>
> >>>>
> >>
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:39
> >>
> >>> 5)
> >>>
> >>>> 	at
> >>>>
> >>>>
> >>
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java
> >>
> >>> :450)
> >>>
> >>>> Try as I might, I have been unable to determine the exception's
> cause.
> >>>>
> >>> Can
> >>>
> >>>> anyone help me?
> >>>>
> >>>> My consumer's WSDL:
> >>>> http://www.nabble.com/file/p24032331/NotificationConsumer.wsdl
> >>>> NotificationConsumer.wsdl
> >>>> I modified wsn-http-binding-su:
> >>>> http://www.nabble.com/file/p24032331/xbean.xml xbean.xml
> >>>> The log:  http://www.nabble.com/file/p24032331/servicemix.log
> >>>>
> >>> servicemix.log
> >>>
> >>>> I would be grateful for any hints.
> >>>>
> >>>> Regards,
> >>>>
> >>>> Anne
> >>>>
> >>>>
> >>> --
> >>> Freeman Fang
> >>> ------------------------
> >>> Open Source SOA: http://fusesource.com
> >>>
> >
> >
> >
> 
> 
> --
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com


Re: AW: WSN2005 - Consumer throws SoapFault

Posted by Freeman Fang <fr...@gmail.com>.
Diefenbach Anne wrote:
> Oh, one more thing - the
>
> <http:endpoint service="wsn-consumer:NotificationConsumerService"
>                  endpoint="NotificationConsumerPort"
>                  role="provider" 
>                  locationURI="http://localhost:9080/WSNConsumer"
>                  wsdlResource="myPath/resources/NotificationConsumer.wsdl"
>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>                  soap="true"/>
>
> wasn't there initially; I added it in my quest for a solution. It didn't appear to do any harm, so I kept it even if it didn't help. (The fact that NotificationConsumerService is a CXF service and as such, would probably need to be added to a CXF BC if at all, kinda slipped my mind there.)
>
> Also, I have looked for the wsn-cxf-binding example you mentioned, but couldn't find it. I downloaded the two latest snapshots from http://people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/apache-servicemix/3.3.1-SNAPSHOT/, but it wasn't there. Is there anywhere else I might look?
>
>   
You can download the 3.3.1 kit[1] which is during vote and not 
officially released(but will be released very soon...)
[1]https://repository.apache.org/content/repositories/servicemix-staging-016/org/apache/servicemix/apache-servicemix/3.3.1/
Freeman
> Regards,
>
> Anne
>
>   
>> -----Ursprüngliche Nachricht-----
>> Von: Diefenbach Anne [mailto:Diefenbach@fgan.de]
>> Gesendet: Montag, 15. Juni 2009 15:53
>> An: users@servicemix.apache.org
>> Betreff: AW: WSN2005 - Consumer throws SoapFault
>>
>> Hi Freeman,
>>
>> thanks for your answer. I wanted to have a consumer (and notification
>> producer) external to the JBI environment, so I used CXF to build
>> webservices from WSDL. (I just assumed that would be compatible with the
>> broker's SOAP/HTTP binding...?) I used the wsn-http-binding example to
>> provide me with a broker.
>>
>> CXF WS notification producer ---> SMX WSN broker ---> CXF WS notification
>> consumer
>>
>> I don't use the PullPoint, I just want to be able to receive any
>> notification the producer sends.
>>
>> Regards,
>>
>> Anne
>>
>>     
>>> -----Ursprüngliche Nachricht-----
>>> Von: Freeman Fang [mailto:freeman.fang@gmail.com]
>>> Gesendet: Montag, 15. Juni 2009 14:18
>>> An: users@servicemix.apache.org
>>> Betreff: Re: WSN2005 - Consumer throws SoapFault
>>>
>>> Hi,
>>> Could you please explain how is the cxf stack trace come from? Given as
>>> you said you are using wsn-http-binding example?
>>> I think you may need take a look at wsn-cxf-binding example, which is
>>> added recently and is in smx 3.2.4 snapshot and 3.3.1 snapshot.
>>> Freeman
>>>
>>> Diefenbach Anne wrote:
>>>       
>>>> Hi,
>>>>
>>>> I have used the wsn-http-binding example to write a test application
>>>>         
>>> using
>>>       
>>>> WS-Notification. Unfortunately, upon receiving a notification, my
>>>>         
>>> consumer
>>>       
>>>> throws the following exception:
>>>>
>>>> 15.06.2009 12:39:22 org.apache.cxf.phase.PhaseInterceptorChain
>>>>         
>>> doIntercept
>>>       
>>>> INFO: Interceptor has thrown exception, unwinding now
>>>> org.apache.cxf.binding.soap.SoapFault: "http://docs.oasis-
>>>>         
>>> open.org/wsn/b-2",
>>>       
>>>> the namespace on the "Notify" element, is not a valid SOAP version.
>>>> 	at
>>>>
>>>>         
>> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessa
>>     
>>> ge(ReadHeadersInterceptor.java:94)
>>>       
>>>> 	at
>>>>
>>>>         
>> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessa
>>     
>>> ge(ReadHeadersInterceptor.java:56)
>>>       
>>>> 	at
>>>>
>>>>         
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCha
>>     
>>> in.java:220)
>>>       
>>>> 	at
>>>>
>>>>         
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiation
>>     
>>> Observer.java:78)
>>>       
>>>> 	at
>>>>
>>>>         
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(Je
>>     
>>> ttyHTTPDestination.java:278)
>>>       
>>>> 	at
>>>>
>>>>         
>> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHT
>>     
>>> TPDestination.java:252)
>>>       
>>>> 	at
>>>>
>>>>         
>> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandl
>>     
>>> er.java:70)
>>>       
>>>> 	at
>>>>         
>>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
>>>       
>>>> 	at
>>>>
>>>>         
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCo
>>     
>>> llection.java:206)
>>>       
>>>> 	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:505)
>>>       
>>>> 	at
>>>>
>>>>         
>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.jav
>>     
>>> a:842)
>>>       
>>>> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
>>>> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>>>> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>>>> 	at
>>>>
>>>>         
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:39
>>     
>>> 5)
>>>       
>>>> 	at
>>>>
>>>>         
>> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java
>>     
>>> :450)
>>>       
>>>> Try as I might, I have been unable to determine the exception's cause.
>>>>         
>>> Can
>>>       
>>>> anyone help me?
>>>>
>>>> My consumer's WSDL:
>>>> http://www.nabble.com/file/p24032331/NotificationConsumer.wsdl
>>>> NotificationConsumer.wsdl
>>>> I modified wsn-http-binding-su:
>>>> http://www.nabble.com/file/p24032331/xbean.xml xbean.xml
>>>> The log:  http://www.nabble.com/file/p24032331/servicemix.log
>>>>         
>>> servicemix.log
>>>       
>>>> I would be grateful for any hints.
>>>>
>>>> Regards,
>>>>
>>>> Anne
>>>>
>>>>         
>>> --
>>> Freeman Fang
>>> ------------------------
>>> Open Source SOA: http://fusesource.com
>>>       
>
>
>   


-- 
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com


AW: WSN2005 - Consumer throws SoapFault

Posted by Diefenbach Anne <Di...@fgan.de>.
Oh, one more thing - the

<http:endpoint service="wsn-consumer:NotificationConsumerService"
                 endpoint="NotificationConsumerPort"
                 role="provider" 
                 locationURI="http://localhost:9080/WSNConsumer"
                 wsdlResource="myPath/resources/NotificationConsumer.wsdl"
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
                 soap="true"/>

wasn't there initially; I added it in my quest for a solution. It didn't appear to do any harm, so I kept it even if it didn't help. (The fact that NotificationConsumerService is a CXF service and as such, would probably need to be added to a CXF BC if at all, kinda slipped my mind there.)

Also, I have looked for the wsn-cxf-binding example you mentioned, but couldn't find it. I downloaded the two latest snapshots from http://people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/apache-servicemix/3.3.1-SNAPSHOT/, but it wasn't there. Is there anywhere else I might look?

Regards,

Anne

> -----Ursprüngliche Nachricht-----
> Von: Diefenbach Anne [mailto:Diefenbach@fgan.de]
> Gesendet: Montag, 15. Juni 2009 15:53
> An: users@servicemix.apache.org
> Betreff: AW: WSN2005 - Consumer throws SoapFault
> 
> Hi Freeman,
> 
> thanks for your answer. I wanted to have a consumer (and notification
> producer) external to the JBI environment, so I used CXF to build
> webservices from WSDL. (I just assumed that would be compatible with the
> broker's SOAP/HTTP binding...?) I used the wsn-http-binding example to
> provide me with a broker.
> 
> CXF WS notification producer ---> SMX WSN broker ---> CXF WS notification
> consumer
> 
> I don't use the PullPoint, I just want to be able to receive any
> notification the producer sends.
> 
> Regards,
> 
> Anne
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Freeman Fang [mailto:freeman.fang@gmail.com]
> > Gesendet: Montag, 15. Juni 2009 14:18
> > An: users@servicemix.apache.org
> > Betreff: Re: WSN2005 - Consumer throws SoapFault
> >
> > Hi,
> > Could you please explain how is the cxf stack trace come from? Given as
> > you said you are using wsn-http-binding example?
> > I think you may need take a look at wsn-cxf-binding example, which is
> > added recently and is in smx 3.2.4 snapshot and 3.3.1 snapshot.
> > Freeman
> >
> > Diefenbach Anne wrote:
> > > Hi,
> > >
> > > I have used the wsn-http-binding example to write a test application
> > using
> > > WS-Notification. Unfortunately, upon receiving a notification, my
> > consumer
> > > throws the following exception:
> > >
> > > 15.06.2009 12:39:22 org.apache.cxf.phase.PhaseInterceptorChain
> > doIntercept
> > > INFO: Interceptor has thrown exception, unwinding now
> > > org.apache.cxf.binding.soap.SoapFault: "http://docs.oasis-
> > open.org/wsn/b-2",
> > > the namespace on the "Notify" element, is not a valid SOAP version.
> > > 	at
> > >
> >
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessa
> > ge(ReadHeadersInterceptor.java:94)
> > > 	at
> > >
> >
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessa
> > ge(ReadHeadersInterceptor.java:56)
> > > 	at
> > >
> >
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCha
> > in.java:220)
> > > 	at
> > >
> >
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiation
> > Observer.java:78)
> > > 	at
> > >
> >
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(Je
> > ttyHTTPDestination.java:278)
> > > 	at
> > >
> >
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHT
> > TPDestination.java:252)
> > > 	at
> > >
> >
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandl
> > er.java:70)
> > > 	at
> > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
> > > 	at
> > >
> >
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCo
> > llection.java:206)
> > > 	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:505)
> > > 	at
> > >
> >
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.jav
> > a:842)
> > > 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
> > > 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> > > 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> > > 	at
> > >
> >
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:39
> > 5)
> > > 	at
> > >
> >
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java
> > :450)
> > >
> > > Try as I might, I have been unable to determine the exception's cause.
> > Can
> > > anyone help me?
> > >
> > > My consumer's WSDL:
> > > http://www.nabble.com/file/p24032331/NotificationConsumer.wsdl
> > > NotificationConsumer.wsdl
> > > I modified wsn-http-binding-su:
> > > http://www.nabble.com/file/p24032331/xbean.xml xbean.xml
> > > The log:  http://www.nabble.com/file/p24032331/servicemix.log
> > servicemix.log
> > >
> > > I would be grateful for any hints.
> > >
> > > Regards,
> > >
> > > Anne
> > >
> >
> >
> > --
> > Freeman Fang
> > ------------------------
> > Open Source SOA: http://fusesource.com


AW: WSN2005 - Consumer throws SoapFault

Posted by Diefenbach Anne <Di...@fgan.de>.
Hi Freeman,

thanks for your answer. I wanted to have a consumer (and notification producer) external to the JBI environment, so I used CXF to build webservices from WSDL. (I just assumed that would be compatible with the broker's SOAP/HTTP binding...?) I used the wsn-http-binding example to provide me with a broker.

CXF WS notification producer ---> SMX WSN broker ---> CXF WS notification consumer

I don't use the PullPoint, I just want to be able to receive any notification the producer sends.

Regards,

Anne

> -----Ursprüngliche Nachricht-----
> Von: Freeman Fang [mailto:freeman.fang@gmail.com]
> Gesendet: Montag, 15. Juni 2009 14:18
> An: users@servicemix.apache.org
> Betreff: Re: WSN2005 - Consumer throws SoapFault
> 
> Hi,
> Could you please explain how is the cxf stack trace come from? Given as
> you said you are using wsn-http-binding example?
> I think you may need take a look at wsn-cxf-binding example, which is
> added recently and is in smx 3.2.4 snapshot and 3.3.1 snapshot.
> Freeman
> 
> Diefenbach Anne wrote:
> > Hi,
> >
> > I have used the wsn-http-binding example to write a test application
> using
> > WS-Notification. Unfortunately, upon receiving a notification, my
> consumer
> > throws the following exception:
> >
> > 15.06.2009 12:39:22 org.apache.cxf.phase.PhaseInterceptorChain
> doIntercept
> > INFO: Interceptor has thrown exception, unwinding now
> > org.apache.cxf.binding.soap.SoapFault: "http://docs.oasis-
> open.org/wsn/b-2",
> > the namespace on the "Notify" element, is not a valid SOAP version.
> > 	at
> >
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessa
> ge(ReadHeadersInterceptor.java:94)
> > 	at
> >
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessa
> ge(ReadHeadersInterceptor.java:56)
> > 	at
> >
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorCha
> in.java:220)
> > 	at
> >
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiation
> Observer.java:78)
> > 	at
> >
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(Je
> ttyHTTPDestination.java:278)
> > 	at
> >
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHT
> TPDestination.java:252)
> > 	at
> >
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandl
> er.java:70)
> > 	at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
> > 	at
> >
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCo
> llection.java:206)
> > 	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:505)
> > 	at
> >
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.jav
> a:842)
> > 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
> > 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> > 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> > 	at
> >
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:39
> 5)
> > 	at
> >
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java
> :450)
> >
> > Try as I might, I have been unable to determine the exception's cause.
> Can
> > anyone help me?
> >
> > My consumer's WSDL:
> > http://www.nabble.com/file/p24032331/NotificationConsumer.wsdl
> > NotificationConsumer.wsdl
> > I modified wsn-http-binding-su:
> > http://www.nabble.com/file/p24032331/xbean.xml xbean.xml
> > The log:  http://www.nabble.com/file/p24032331/servicemix.log
> servicemix.log
> >
> > I would be grateful for any hints.
> >
> > Regards,
> >
> > Anne
> >
> 
> 
> --
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com


Re: WSN2005 - Consumer throws SoapFault

Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Could you please explain how is the cxf stack trace come from? Given as 
you said you are using wsn-http-binding example?
I think you may need take a look at wsn-cxf-binding example, which is 
added recently and is in smx 3.2.4 snapshot and 3.3.1 snapshot.
Freeman

Diefenbach Anne wrote:
> Hi,
>
> I have used the wsn-http-binding example to write a test application using
> WS-Notification. Unfortunately, upon receiving a notification, my consumer
> throws the following exception:
>
> 15.06.2009 12:39:22 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
> INFO: Interceptor has thrown exception, unwinding now
> org.apache.cxf.binding.soap.SoapFault: "http://docs.oasis-open.org/wsn/b-2",
> the namespace on the "Notify" element, is not a valid SOAP version.
> 	at
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:94)
> 	at
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:56)
> 	at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
> 	at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
> 	at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:278)
> 	at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:252)
> 	at
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
> 	at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
> 	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:505)
> 	at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> 	at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
> 	at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
>
> Try as I might, I have been unable to determine the exception's cause. Can
> anyone help me?
>
> My consumer's WSDL: 
> http://www.nabble.com/file/p24032331/NotificationConsumer.wsdl
> NotificationConsumer.wsdl 
> I modified wsn-http-binding-su: 
> http://www.nabble.com/file/p24032331/xbean.xml xbean.xml 
> The log:  http://www.nabble.com/file/p24032331/servicemix.log servicemix.log 
>
> I would be grateful for any hints.
>
> Regards,
>
> Anne
>   


-- 
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com