Hi Christian,
You're correct.  The v1.3 spec does state that the Notify wsa:Action
should be as you specified below.  Please open a bug so that this can be
fixed.
-Vinh
  

-----Original Message-----
From: crapp [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 10, 2008 10:43 PM
To: [email protected]
Subject: Re: Howto adjust value for wsa:Action?


Hello,

The WS-Notification standard states the wsa:Action attribute must be set
to 'http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/Notify'.
As of this we can not change the client which sends it correctly.
I resolved the problem by overwriting the class NotifyHandler and call
the super constructor with the correct action uri.

public class NotifyHandler extends AbstractMessageHandler {
        //
        // Response message never changes, so we use a static value
        //
        private static final Element _NOTIFY_RESPONSE = XmlUtils
        
.createElement(WsnConstants.NOTIFY_RESPONSE_QNAME);

        public NotifyHandler() {
                super(WsnConstants.CONSUMER_URI + "/Notify",
WsnConstants.NOTIFY_QNAME);
        }
...


crapp wrote:
> 
> Hello,
> 
> Our consumer receives WS-Notifications via Muse and Axis2. The 
> producer sends the notifications with the wsa:action attribute set to 
> 'http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/Notify'
> 
> Our MUSE implementation currently listens for the wsa:action set to 
>
'http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/NotifyRequest'
.
> 
> I saw that in the WSDL and in the services.xml this wsa:action needs 
> to be set. I did that, re-generated the sources of the client from 
> WSDL and compiled them. Now I am getting the below error on my 
> consumer. What else do I need to do to change the wsa:action attribute

> value on the consumer side?a
> 
> INFO: There was an error while processing a request:
> 
> [ID = 'NoMessageContent'] The NotificationMessage XML does not have a 
> Message element. All messages must have a message payload associated 
> with them.
> 
>        
> org.apache.muse.ws.notification.impl.SimpleNotificationMessage.<init>(
> SimpleNotificationMess
> age.java:117)
>        
> org.apache.muse.ws.notification.impl.NotificationMessageSerializer.fro
> mXML(NotificationMessa
> geSerializer.java:46)
>        
> org.apache.muse.core.serializer.ArraySerializer.fromXML(ArraySerialize
> r.java:126)
>        
>
org.apache.muse.core.routing.ReflectionMessageHandler.fromXML(Reflection
MessageHandler.java:
> 132)
>        
> org.apache.muse.core.SimpleResource.invoke(SimpleResource.java:368)
>        
> org.apache.muse.core.routing.SimpleResourceRouter.invoke(SimpleResourc
> eRouter.java:290)
>        
> org.apache.muse.core.platform.axis2.AxisIsolationLayer.invoke(AxisIsol
> ationLayer.java:136)
>        
> org.apache.muse.core.platform.axis2.AxisIsolationLayer.handleRequest(A
> xisIsolationLayer.java
> :88)
>         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> ava:39)
>        
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
>         java.lang.reflect.Method.invoke(Method.java:597)
>        
> org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLo
> gic(RawXMLINOutMessage
> Receiver.java:88)
>        
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(Ab
> stractInOutSyncMessage
> Receiver.java:39)
>
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
>         18 more...
> ------------------------------------------
> 
> 
> Regards,
> Christian Rapp
> 

--
View this message in context:
http://www.nabble.com/Howto-adjust-value-for-wsa%3AAction--tp17749755p17
770458.html
Sent from the Muse User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to