Hi, Thanks. The problem was because I was using the keyword endpoint: in my wsa address. Once I removed it, I don't get any errors while subscribing. Also I think CreatePullPoint is needed only if you want a pull option for the subscriber to collect data. For asynchronous notifications, I think just subscribe and publish are sufficient.
Thanks, Nithya bsnyder wrote: > > On Jan 24, 2008 12:36 PM, nvijayak <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I created a servlet in Jetty that will act as a notification consumer. >> The >> notification broker and producer are deployed in servicemix. I get the >> following error when I send the subscribe request to the broker. I saw >> some >> discussion on have external endpoints in this forum before but still not >> sure how to resolve this. Any help will be greatly appreciated. >> >> I am following the example in >> http://www.ibm.com/developerworks/library/gr-ws-not/ >> My servlet in Jetty is mapped to http://localhost:8080/test/foo. It has a >> doGet and doPost method. The doGet subscribes to the servicemix WSN >> broker >> and I would like for the broker to send notifications to the doPost >> method. >> >> Request sent by servlet: >> <?xml version="1.0" encoding="UTF-8"?> >> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" >> xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" >> xmlns:wsa="http://www.w3.org/2005/08/addressing"> >> <env:Body><wsnt:Subscribe> >> <wsnt:ConsumerReference> < >> wsa:Address> endpoint:http://localhost:8080/test/foo </wsa:Address> >> </wsnt:ConsumerReference> >> <wsnt:Filter> >> <wsnt:TopicExpression >> Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple">myTopic >> </wsnt:TopicExpression> >> </wsnt:Filter> >> </wsnt:Subscribe> >> </env:Body> >> </env:Envelope> >> >> I get the following response: >> WARN org.mortbay.log - /test/foo: java.io.IOException: Server >> returned HTTP response code: 500 for URL: http://localhost:8492/Broker/ >> >> In Servicemix window I see the following output: >> java.lang.Exception: >> org.apache.servicemix.wsn.jaxws.SubscribeCreationFailedFaul >> t: Unable to resolve consumer reference endpoint > > I'm certainly not an expert on WS-Notification but the first thing I > notice is that you're not sending a CreatePullPoint message before > sending the Subscribe request. The important part is that the > CreatePullPointResponse contains the address to use in the Subscribe > message. > > See an example of all the interation here: > > http://servicemix.apache.org/example-scenario.html > > The example messages are especially helpful in seeing the order of the > messages. > > Bruce > -- > perl -e 'print > unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*" > );' > > Apache ActiveMQ - http://activemq.org/ > Apache Camel - http://activemq.org/camel/ > Apache ServiceMix - http://servicemix.org/ > Apache Geronimo - http://geronimo.apache.org/ > > Blog: http://bruceblog.org/ > > -- View this message in context: http://www.nabble.com/Unable-to-resolve-endpoint-for-an-external-servlet-tp15072513s12049p15145772.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
