org.apache.axis.transport.http
Class QSWSDLHandler
- QSHandler
public class QSWSDLHandler
The QSWSDLHandler class is a handler which provides an AXIS service's WSDL
document when the query string "wsdl" (ignoring case) is encountered in an
AXIS servlet invocation.
- Curtiss Howard (code mostly from AxisServlet class)
- Doug Davis (dug@us.ibm.com)
- Steve Loughran
- Ian P. Springer, Sal Campana
protected String | getEndpointURL(MessageContext msgContext) - Returns the endpoint URL that should be used in the returned WSDL.
|
void | invoke(MessageContext msgContext) - Performs the action associated with this particular query string handler.
|
void | reportNoWSDL(HttpServletResponse res, PrintWriter writer, String moreDetailCode, AxisFault axisFault) - Report that we have no WSDL.
|
void | reportWSDL(Document doc, PrintWriter writer) - Report WSDL.
|
protected void | updateSoapAddressLocationURLs(Document wsdlDoc, MessageContext msgContext) - Updates the soap:address locations for all ports in the WSDL using the URL from the request as
the base portion for the updated locations, ensuring the WSDL returned to the client contains
the correct location URL.
|
getEndpointURL
protected String getEndpointURL(MessageContext msgContext)
throws AxisFault
Returns the endpoint URL that should be used in the returned WSDL.
msgContext
- the current Axis JAX-RPC message context
- the endpoint URL that should be used in the returned WSDL
AxisFault
- if we fail to obtain the ServiceDesc
for this service
invoke
public void invoke(MessageContext msgContext)
throws AxisFault
Performs the action associated with this particular query string handler.
- invoke in interface QSHandler
msgContext
- a MessageContext object containing message context
information for this query string handler.
AxisFault
- if an error occurs
reportNoWSDL
public void reportNoWSDL(HttpServletResponse res,
PrintWriter writer,
String moreDetailCode,
AxisFault axisFault)
Report that we have no WSDL.
res
- writer
- moreDetailCode
- optional name of a message to provide more detailaxisFault
- optional fault string, for extra info at debug time only
reportWSDL
public void reportWSDL(Document doc,
PrintWriter writer)
Report WSDL.
doc
- writer
-
updateSoapAddressLocationURLs
protected void updateSoapAddressLocationURLs(Document wsdlDoc,
MessageContext msgContext)
throws AxisFault
Updates the soap:address locations for all ports in the WSDL using the URL from the request as
the base portion for the updated locations, ensuring the WSDL returned to the client contains
the correct location URL.
wsdlDoc
- the WSDL as a DOM documentmsgContext
- the current Axis JAX-RPC message context
AxisFault
- if we fail to obtain the list of deployed service names from the server config
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.