org.systinet.wasp.webservice
Interface XMLService

All Known Subinterfaces:
XMLService

Deprecated. use ReqRespListener or OnewayListener

public interface XMLService

This interface is used by service implementation which services clients on the XML protocol (like SOAP) level. For instance:

 public class MyXmlService implements XMLService
 {
     public void process(Message message)
             throws MessageProcessingException, TokenizerException, IOException
     {
         MessagePart part = message.getBody();
         Tokenizer reader = part.getTokenizer();
         byte state;
         while((state = reader.next()) != Tokenizer.END_DOCUMENT) {
             if(state == Tokenizer.CONTENT)
                 ... = reader.readContent();
             ...
         }

         message.initOutput(false);
         part = message.createBody();
         TokenWriter writer = part.getContentTokenWriter();
         writer... ;
         ...
     }
 }

 Registry.publish("/MyXmlService", new MyXmlService());

Since:
4.5
Component:
Core

Method Summary
 void process(Message message)
          Deprecated. Processes incoming message and returns reply using supplied Message instance
 

Method Detail

process

public void process(Message message)
             throws MessageProcessingException,
                    TokenizerException,
                    java.io.IOException
Deprecated. 
Processes incoming message and returns reply using supplied Message instance

Throws:
MessageProcessingException - if there is an error during parsing message
TokenizerException - if the XML being parsed is invalid
java.io.IOException - when some I/O error occurs