-
1. Re: Asynch Webservice and Routing
jplenhart Aug 20, 2007 10:34 AM (in response to jplenhart)To add a further clarification - we are embarking on attempting to integrate a bunch of other attributes to this use-case but for now just trying to get a simple end to end working right now.
We use JAX-WS 2.x for our webservices - wondering if it is possible to use the WSAdapter for JAX-WS based webservices?
Thanks,
Jason -
2. Re: Asynch Webservice and Routing
tfennelly Aug 20, 2007 12:59 PM (in response to jplenhart)So as far as exposing Webservice endpoints are concerned, we have the SOAPProcessor action, which is basically a back door into the JBossWS container. You deploy a webservice on JBossWS (can be bundled inside a .esb) and you can invoke it over any channel supported by the ESB (HTTP, JMS, FTP etc). The SOAPProcessor action is actually very simple at the moment. It just receives the SOAP payload from the listener and hooks it directly into the JBossWS endpoint. So at the moment we don't do any of the following within the SOAPProcessor:
1. Interpret the SOAP payload in any way => we don't pull out any WS-A info from the incoming message.
2. Provide any automation around Webservice endpoint generation e.g. we'd like to be able to auto-generate a webservice endpoint for exposing a backend EJB service etc. This way you might not have to manually create the webserive impl (jsr181 etc), as you do at the moment.
On the other side (consuming webservices), we have the SOAPClient action.
If you haven't already done so... check out these docs: http://wiki.jboss.org/wiki/Wiki.jsp?page=WebservicesSupport
There are a number of Webservice related quickstarts that you may have seen. The one that sounds most like your usecase is the webservice_bpel quickstart. There's a flash demo available online (on the wiki - link above) that walks through this quickstart. -
3. Re: Asynch Webservice and Routing
burrsutter Aug 21, 2007 1:31 AM (in response to jplenhart)Review the webservice_producer example and at @OneWay to the methods you wish to be "async". I've not tested it recently.
The WSDL is generated so that it has a request but no expected reply.
Please give that a try and tell us what you think.
Another thing to keep in mind, how will you get back to the "client" in a async mode? What kind of "client" is it? If my client is an ASP.NET application I can easily provide a "call back" WS. If my client is a VB.NET WinFrom app then that is a different animal. -
4. Re: Asynch Webservice and Routing
jplenhart Aug 21, 2007 9:40 AM (in response to jplenhart)You are a step ahead of me Burr ... I posted a separate post outlining how I might be able to get a message back. But I am not sure if I am on the right track:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=116635
Thanks,
Jason -
5. Re: Asynch Webservice and Routing
jplenhart Aug 21, 2007 2:09 PM (in response to jplenhart)The problem I have is routing the message back - I would need to reassociate a message that came back to the original message in the message store.
Cannot readily do this - even if I could change the UID - I still cannot determine where in the process I am. For example the 'DELIVERED' column would be for which leg of the trip?
I got something working with the current database - but I would not want to support it as I am not proud of my code that I strung together :-)
The use case we were trying to solve is a prominent one for us - there is not quick start for it so we really struggled end to end. I figure most folks would not have the blind sort of send-back from a service that I have. Most services that send a response would probably publish to a topic or something - not throw it on a queue for anyone to get. -
6. Re: Asynch Webservice and Routing
marklittle Aug 22, 2007 3:32 AM (in response to jplenhart)Any chance you can use the RelatesTo and MessageID parts of the Message header? They're there for correlation.
-
7. Re: Asynch Webservice and Routing
jplenhart Aug 22, 2007 8:32 AM (in response to jplenhart)Hi Mark,
The worked through it last nigh - and concluded that this type use case is best served by implementing in a BPEL process and correlating through the BPEL constructs of correlate and alias properties into that correlation.
Any thoughts,
Jason -
8. Re: Asynch Webservice and Routing
marklittle Aug 22, 2007 8:50 AM (in response to jplenhart)Yes, BPEL correlation sets will do it too.