org.infolayer.soap
Class Soap_Invoke

java.lang.Object
  extended byorg.infolayer.soap.Soap_Invoke
All Implemented Interfaces:
SoapRequest

public class Soap_Invoke
extends java.lang.Object
implements SoapRequest

This class handles a single SOAP Execute request. An Execute request is basically an attempt to call a method inside the Infoalayer model in a way that looks more or less like "normal" SOAP. Specialities include the ability to add binary attachments for parameters of type FILE or BINARY. As usual, the results are stored in a private attribute for later output via the writeRespose() method.

Author:
pleumann

Constructor Summary
Soap_Invoke()
           
 
Method Summary
 void execute()
          Tries to find the method of interest in the model, then fetches the methods actual parameters and sees that they match the formal ones.
 void init(SoapHandler handler, SoapInboundMessage inbound, XmlPullParser parser)
          Initializes the SOAP Execute handler and builds a DOM for the method and its actual arguments.
 void writeResponse(SoapOutboundMessage response)
          Writes an HTTP response for the results that this request produced.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Soap_Invoke

public Soap_Invoke()
Method Detail

init

public void init(SoapHandler handler,
                 SoapInboundMessage inbound,
                 XmlPullParser parser)
          throws java.io.IOException,
                 XmlPullParserException
Initializes the SOAP Execute handler and builds a DOM for the method and its actual arguments.

Specified by:
init in interface SoapRequest
Throws:
java.io.IOException
XmlPullParserException

execute

public void execute()
             throws java.io.IOException,
                    XmlPullParserException
Tries to find the method of interest in the model, then fetches the methods actual parameters and sees that they match the formal ones. If everything is alright (including access rights), the method is invoked. Results are stored for later retrieval.

Specified by:
execute in interface SoapRequest
Throws:
java.io.IOException
XmlPullParserException

writeResponse

public void writeResponse(SoapOutboundMessage response)
                   throws java.io.IOException
Writes an HTTP response for the results that this request produced.

Specified by:
writeResponse in interface SoapRequest
Throws:
java.io.IOException