how to add interceptor for axis2 client
hi all I need to add interseptor in client code, which will be triggered before sending (pos/get)requests on server, it is possible in axis2? -- View this message in context: http://old.nabble.com/how-to-add-interceptor-for-axis2-client-tp27642627p27642627.html Sent from the Axis - User mailing list archive at Nabble.com.
Re: [Axis2] Session Management and WS-Addressing
Thanks for replying. Yes, I read that article. That is why I am stumped as to why my service doesn't response with the correct headers when the client calls it the first time with the correct WS-Addressing headers. Do I have to build the WS-Addressing headers by hand or should Axis2 build them for me automatically? When you deploy a service in SOAP session and when a client tries to access the service in the first time, Axis2 will generate serviceGroupId and send that to the client as a reference parameter in wsa:ReplyTo, as shown below: http://www.w3.org/2005/08/addressing/anonymous http://ws.apache.org/namespaces/axis2";> urn:uuid:65E9C56F702A398A8B11513011677354 If the client wants to live in the same session, he has to copy that reference parameter and send it back to the server when he invokes the service the second time. As long as a client sends the valid serviceGroupId, he can use the same session, and the service can maintain the session-related data. Unlike a request session, a SOAP session has a default timeout period, so if the client does not touch the service for 30 seconds, the session will expire, and if the client sends the old serviceGroupId, he will get an AxisFault too. - Original Message - From: Brian De Pradine To: axis-user@ws.apache.org Sent: Wednesday, January 17, 2007 7:52 AM Subject: Re: [Axis2] Session Management and WS-Addressing Hello, You may find the following link useful, [1] [1] http://www.developer.com/java/web/article.php/3620661 Cheers Brian DePradine Web Services Development IBM Hursley External +44 (0) 1962 816319 Internal 246319 If you can't find the time to do it right the first time, where will you find the time to do it again? "Tim, Jane and Chelsea Johnson" <[EMAIL PROTECTED]> wrote on 17/01/2007 00:54:12: > I am running the latest version of axis2 - 1.1.1. I am trying to use session > management via WS-Addressing. > In soapmonitor I can see the WS-Addressing headers going out on the request > to the server. But my service's response doesn't have any of the > WS-Addressing headers (specifically the groupID header). Addressing is > enabled globally via the entry in Axis2.xml. In service.xml I set scope for > the service to be "soapsession". > > This is what the client is sending. Is there something I need to add or > change to get the service to re-act with WS-Addressing headers. > > > http://www.w3.org/2005/08/addressing"; > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> > > http://localhost:8080/axis2/services/AiMessageServices > > http://www.w3. > org/2005/08/addressing/anonymous > > urn:uuid:F18B205BFF468A597911689950656872 > urn:login > > > > 124 > 2567 > SJPC120.y > 2003 > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
[Axis2] Session Management and WS-Addressing
I am running the latest version of axis2 - 1.1.1. I am trying to use session management via WS-Addressing. In soapmonitor I can see the WS-Addressing headers going out on the request to the server. But my service's response doesn't have any of the WS-Addressing headers (specifically the groupID header). Addressing is enabled globally via the entry in Axis2.xml. In service.xml I set scope for the service to be "soapsession". This is what the client is sending. Is there something I need to add or change to get the service to re-act with WS-Addressing headers. http://www.w3.org/2005/08/addressing"; xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> http://localhost:8080/axis2/services/AiMessageServices http://www.w3.org/2005/08/addressing/anonymous urn:uuid:F18B205BFF468A597911689950656872 urn:login 124 2567 SJPC120.y 2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Inference engines (semantic web services)
I haven't seen any attempts to develop inference engines from the direction of the SOAP community. But there are various (in progress) attempts to offer soap services on top of inference engines (for example the Jena (<http://jena.sourceforge.net/>)and Sesame developers (<http://www.openrdf.org/>)). You may want to query the email lists/forums for these. And also (if you haven't already) see the Semantic Web Services Interest Group activity <http://www.w3.org/2002/ws/swsig/>. [ I had a go at backing Axis with Sesame myself as part of the SWAD-E <http://www.w3.org/2001/sw/Europe/> project a year or so back. At that time we were prototyping a Thesaurus Web Service. The prototype is called DREFT (see <http://www.w3.org/2001/sw/Europe/reports/thes/8.7/>). We offered it as a SOAP web service (using Axis) and backed it with thesaurus data encoded in RDF (SKOS). We used Sesame's database storage, inferencing and query facilities for the rdf data. Some points to note: - Our prototype's WSDL is at <http://www.w3.org/2001/sw/Europe/reports/thes/api/wsdl/Service.wsdl> - we used an rdf/encoded configuration for the web service because we were very interested in the relationship between the RDF data model and the SOAP encoding data model for web service data serialisation (see report on this at <http://www.w3.org/2001/sw/Europe/reports/xml_graph_serialization_report/>) . - our DREFT demo is no longer live! But the software is downloadable (<http://www.w3.org/2001/sw/Europe/reports/thes/dreft/>). - Note also the impact of the SPARQL (RDF query) standard will be having - and the way that it can/will/might reside in practice alongside SOAP/REST services. There are some unanswered questions there. For example, one question I (regretfully) didn't get to investigate is to what extent is it possible to offer generic SPARQL querying of a semantic web service over SOAP. And also to investigate doc/literal configurations for a semantic web service ] HTH Nikki Rogers --On Sunday, August 28, 2005 09:03:51 AM +0200 Lars Nielsen Lind <[EMAIL PROTECTED]> wrote: Hi. Are there any inference engines when using Apache Axis web services from Linux server? Thanks, Lars Nielsen Lind -- NJ Rogers, Technical Researcher (Semantic Web Applications Developer) Institute for Learning and Research Technology (ILRT) Email:[EMAIL PROTECTED] Tel: +44(0)117 9287113 (Direct) Tel: +44(0)117 9287193 (Office)