Connecting Openfire to a WebService Through a plugin

HI ,

hi , i have been trying to connect openfire to our webservice throuth a plugin. currently we have created a plugin which is capable of posting the user sent chat messages to twitter and Bologer , we have used packet PacketInterceptor Class to capture user sent chat messages and then we post the body of the massage to twitter and blogger… we need to get the same task done throuth webservice. that is when a chat message is received , that massage will be passed to webservice throuth openfire plugin and that webservice will update the twitter or blogger service. really appreciate any help