|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.owasp.webscarab.plugin.webservice.WebService
public class WebService
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_SOAP_ENCODING_STYLE
The default SOAP encoding to use. |
static java.lang.String |
SOAP_NS
|
static java.lang.String |
XSD_NS
|
static java.lang.String |
XSI_NS
|
| Constructor Summary | |
|---|---|
WebService(Framework framework)
Creates a new instance of WebService |
|
| Method Summary | |
|---|---|
void |
analyse(ConversationID id,
Request request,
Response response,
java.lang.String origin)
|
Value[] |
buildValues(OperationInfo operationInfo,
javax.wsdl.Message msg)
Builds and adds parameters to the supplied info object given a SOAP Message definition (from WSDL) |
Value |
constructValue(java.lang.String name,
QName typeName)
|
protected Schema |
createSchemaFromTypes(javax.wsdl.Definition wsdlDefinition)
Creates a schema based on the types defined by a WSDL document |
void |
flush()
called to instruct the plugin to flush any memory-only state to the store. |
javax.wsdl.Definition |
getDefinition(ConversationID id)
|
WebServiceModel |
getModel()
|
java.lang.String |
getPluginName()
The plugin name |
java.lang.Object |
getScriptableObject()
|
Hook[] |
getScriptingHooks()
|
java.lang.String |
getStatus()
called to determine what the current status of the plugin is |
javax.wsdl.Definition |
getWSDL(java.lang.String location)
|
Response |
invokeOperation(OperationInfo operation,
Value[] values)
|
boolean |
isBusy()
called to test whether the plugin is able to be stopped |
boolean |
isModified()
called to determine whether the data stored within the plugin has been modified and should be saved |
boolean |
isRunning()
|
void |
run()
starts the plugin running |
void |
selectWSDL(javax.wsdl.Definition definition)
|
void |
setSession(java.lang.String type,
java.lang.Object store,
java.lang.String session)
informs the plugin that the Session has changed |
boolean |
stop()
called to suspend or stop the plugin |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_SOAP_ENCODING_STYLE
public static final java.lang.String SOAP_NS
public static final java.lang.String XSD_NS
public static final java.lang.String XSI_NS
| Constructor Detail |
|---|
public WebService(Framework framework)
| Method Detail |
|---|
public WebServiceModel getModel()
public javax.wsdl.Definition getWSDL(java.lang.String location)
throws java.net.MalformedURLException,
java.io.IOException,
org.xml.sax.SAXException,
javax.wsdl.WSDLException
java.net.MalformedURLException
java.io.IOException
org.xml.sax.SAXException
javax.wsdl.WSDLException
public void analyse(ConversationID id,
Request request,
Response response,
java.lang.String origin)
analyse in interface Plugin
public void flush()
throws StoreException
Plugin
flush in interface PluginStoreException - if there is any problem saving the session datapublic java.lang.String getPluginName()
Plugin
getPluginName in interface Pluginpublic java.lang.Object getScriptableObject()
getScriptableObject in interface Pluginpublic Hook[] getScriptingHooks()
getScriptingHooks in interface Pluginpublic java.lang.String getStatus()
Plugin
getStatus in interface Pluginpublic boolean isBusy()
Plugin
isBusy in interface Pluginpublic boolean isModified()
Plugin
isModified in interface Pluginpublic boolean isRunning()
isRunning in interface Pluginpublic void run()
Plugin
run in interface java.lang.Runnablerun in interface Plugin
public void setSession(java.lang.String type,
java.lang.Object store,
java.lang.String session)
throws StoreException
Plugin
setSession in interface PluginStoreExceptionpublic boolean stop()
Plugin
stop in interface Plugin
public javax.wsdl.Definition getDefinition(ConversationID id)
throws javax.wsdl.WSDLException,
org.xml.sax.SAXException
javax.wsdl.WSDLException
org.xml.sax.SAXException
public void selectWSDL(javax.wsdl.Definition definition)
throws javax.wsdl.WSDLException
javax.wsdl.WSDLException
public Value[] buildValues(OperationInfo operationInfo,
javax.wsdl.Message msg)
operationInfo - The component to build message text formsg - The SOAP Message definition that has parts to defined parameters for
public Value constructValue(java.lang.String name,
QName typeName)
public Response invokeOperation(OperationInfo operation,
Value[] values)
throws java.net.MalformedURLException,
java.io.IOException
java.net.MalformedURLException
java.io.IOExceptionprotected Schema createSchemaFromTypes(javax.wsdl.Definition wsdlDefinition)
wsdlDefinition - The WSDL4J instance of a WSDL definition.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||