|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.ksoap2.servlet.SoapServlet
public class SoapServlet
copy-paste seans interop server orb here as needed.... some design issues: - path and soapaction are not considered. soapaction is deprecated; for multiple paths, please use multiple servlets.
Constructor Summary | |
---|---|
SoapServlet()
|
Method Summary | |
---|---|
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
In order to filter requests, please overwrite doPost and call super for soap requests only |
SoapSerializationEnvelope |
getEnvelope()
|
void |
publishClass(java.lang.Class service,
java.lang.String namespace)
Publish all public methods of the given class |
void |
publishInstance(java.lang.String path,
java.lang.Object instance)
publish an instance by associating the instance with the given local path. |
void |
publishMethod(java.lang.Class service,
java.lang.String namespace,
java.lang.String name,
PropertyInfo[] parameters)
publish a method. |
void |
publishMethod(java.lang.Class service,
java.lang.String namespace,
java.lang.String name,
java.lang.String[] parameterNames)
convenience method; use this method if the paremeter types can be obtained via reflection |
void |
setEnvelope(SoapSerializationEnvelope envelope)
Please note: The classMap should not be set after publishing methods, because parameter type information may get lost! |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SoapServlet()
Method Detail |
---|
public void publishClass(java.lang.Class service, java.lang.String namespace)
public void publishInstance(java.lang.String path, java.lang.Object instance)
public void publishMethod(java.lang.Class service, java.lang.String namespace, java.lang.String name, PropertyInfo[] parameters)
public void publishMethod(java.lang.Class service, java.lang.String namespace, java.lang.String name, java.lang.String[] parameterNames)
public SoapSerializationEnvelope getEnvelope()
public void setEnvelope(SoapSerializationEnvelope envelope)
public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, java.io.IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |