public class WsUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_TRANSPORT_LOG_PROPERTY |
static String |
ENDPOINT_ADDRESS_PARAM_NAME |
static String |
SCHEMA_IMPORT_LOCATION_PARAM_NAME |
String |
SCHEMA_IMPORT_NAMESPACE_PARAM_NAME |
static String |
SCHEMA_INCLUDE_LOCATION_PARAM_NAME |
static String |
WSDL_IMPORT_LOCATION_PARAM_NAME |
String |
WSDL_IMPORT_NAMESPACE_PARAM_NAME |
static String |
WSDL_INCLUDE_LOCATION_PARAM_NAME |
Constructor and Description |
---|
WsUtil() |
Modifier and Type | Method and Description |
---|---|
void |
configureHandlerChain(ServiceReferenceDescriptor serviceRef,
javax.xml.rpc.Service service,
Iterator ports,
ClassLoader loader) |
void |
configureJAXWSClientHandlers(Service svcClass,
ServiceReferenceDescriptor desc) |
void |
configureJAXWSServiceHandlers(WebServiceEndpoint ep,
String bindingId,
com.sun.xml.ws.api.WSBinding bindingObj) |
javax.xml.rpc.Service |
createConfiguredService(ServiceReferenceDescriptor desc) |
javax.xml.rpc.handler.HandlerInfo |
createHandlerInfo(WebServiceHandler handler,
ClassLoader loader) |
void |
doPostConstruct(Class impl,
Object implObj) |
void |
doPreDestroy(WebServiceEndpoint ep,
ClassLoader loader) |
void |
generateFinalWsdl(URL wsdlFileUrl,
WebService webService,
WebServerInfo wsi,
File finalWsdlFile)
Transform the deployed WSDL document for a given webservice by
replacing the ENDPOINT ADDRESS for each port with the actual
endpoint address on which it will be listening.
|
void |
generateFinalWsdl(URL wsdlFileUrl,
WebService webService,
WebServerInfo wsi,
OutputStream outputStream) |
Collection |
getAllPorts(com.sun.xml.rpc.spi.model.Model model) |
static Logger |
getDefaultLogger() |
static LocalStringManagerImpl |
getDefaultStringManager() |
Method |
getInvMethod(com.sun.xml.rpc.spi.runtime.Tie webServiceTie,
javax.xml.rpc.handler.MessageContext context) |
boolean |
getMtom(WebServiceEndpoint ep) |
com.sun.xml.rpc.spi.model.Port |
getPortFromModel(com.sun.xml.rpc.spi.model.Model model,
QName portName)
Find a Port object within the JAXRPC Model.
|
Collection |
getSEIsFromGeneratedService(Class generatedServiceInterface) |
com.sun.xml.rpc.spi.model.Service |
getServiceForPort(com.sun.xml.rpc.spi.model.Model model,
QName thePortName)
Find a Service in which a particular port is defined.
|
static SOAPMessage |
getSOAPFault(String protocol,
String faultString) |
WebServerInfo |
getWebServerInfoForDAS() |
String |
getWsdlDir(BundleDescriptor bundle) |
Collection |
getWsdlsAndSchemas(File pkgedWsdl) |
void |
getWsdlsAndSchemas(File wsdl,
ArrayList<com.sun.xml.ws.api.server.SDDocumentSource> cumulative) |
Collection |
getWsdlsAndSchemas(URL pkgedWsdl)
This implementation is similar to #getWsdlsAndSchemas(File pkgedWsdl, except that this works on URL which makes
it easy when the wsdl is loaded from the archive.
|
boolean |
handleGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
WebServiceEndpoint endpoint)
Serve up the FINAL wsdl associated with this web service.
|
boolean |
isJAXWSbasedService(WebService ws) |
boolean |
isWsdlContent(String uri,
BundleDescriptor bundle)
All wsdl files and wsdl imported files live under a well-known
wsdl directory.
|
boolean |
portsEqual(com.sun.xml.rpc.spi.model.Port port,
QName candidatePortName)
Logic for matching a port qname with a Port object from
the JAXRPC-RI Model.
|
URL |
privilegedGetServiceRefWsdl(ServiceReferenceDescriptor desc)
Accessing wsdl URL might involve file system access, so wrap
operation in a doPrivileged block.
|
static void |
raiseException(javax.servlet.http.HttpServletResponse resp,
String binding,
String faultString) |
void |
throwSOAPFaultException(String faultString,
javax.xml.rpc.handler.MessageContext msgContext)
Convenience method for throwing a SOAP fault exception.
|
void |
throwSOAPFaultException(String faultString,
SOAPMessage soapMessage) |
void |
updateServletEndpointRuntime(WebServiceEndpoint endpoint) |
void |
validateEjbEndpoint(WebServiceEndpoint ejbEndpoint) |
public static final String CLIENT_TRANSPORT_LOG_PROPERTY
public static final String ENDPOINT_ADDRESS_PARAM_NAME
public final String WSDL_IMPORT_NAMESPACE_PARAM_NAME
public static final String WSDL_IMPORT_LOCATION_PARAM_NAME
public static final String WSDL_INCLUDE_LOCATION_PARAM_NAME
public final String SCHEMA_IMPORT_NAMESPACE_PARAM_NAME
public static final String SCHEMA_IMPORT_LOCATION_PARAM_NAME
public static final String SCHEMA_INCLUDE_LOCATION_PARAM_NAME
public boolean handleGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, WebServiceEndpoint endpoint) throws IOException
IOException
public boolean isWsdlContent(String uri, BundleDescriptor bundle)
uri
- module uripublic String getWsdlDir(BundleDescriptor bundle)
public void generateFinalWsdl(URL wsdlFileUrl, WebService webService, WebServerInfo wsi, File finalWsdlFile) throws Exception
Exception
public void generateFinalWsdl(URL wsdlFileUrl, WebService webService, WebServerInfo wsi, OutputStream outputStream) throws Exception
Exception
public javax.xml.rpc.handler.HandlerInfo createHandlerInfo(WebServiceHandler handler, ClassLoader loader) throws Exception
Exception
public URL privilegedGetServiceRefWsdl(ServiceReferenceDescriptor desc) throws Exception
Exception
public boolean isJAXWSbasedService(WebService ws)
public javax.xml.rpc.Service createConfiguredService(ServiceReferenceDescriptor desc) throws Exception
Exception
public void configureHandlerChain(ServiceReferenceDescriptor serviceRef, javax.xml.rpc.Service service, Iterator ports, ClassLoader loader) throws Exception
Exception
public Collection getSEIsFromGeneratedService(Class generatedServiceInterface) throws Exception
Exception
public com.sun.xml.rpc.spi.model.Port getPortFromModel(com.sun.xml.rpc.spi.model.Model model, QName portName)
public com.sun.xml.rpc.spi.model.Service getServiceForPort(com.sun.xml.rpc.spi.model.Model model, QName thePortName)
public boolean portsEqual(com.sun.xml.rpc.spi.model.Port port, QName candidatePortName)
public Collection getAllPorts(com.sun.xml.rpc.spi.model.Model model)
public Method getInvMethod(com.sun.xml.rpc.spi.runtime.Tie webServiceTie, javax.xml.rpc.handler.MessageContext context) throws Exception
Exception
public void throwSOAPFaultException(String faultString, javax.xml.rpc.handler.MessageContext msgContext)
public void throwSOAPFaultException(String faultString, SOAPMessage soapMessage) throws javax.xml.rpc.soap.SOAPFaultException
public static void raiseException(javax.servlet.http.HttpServletResponse resp, String binding, String faultString)
public static SOAPMessage getSOAPFault(String protocol, String faultString)
public WebServerInfo getWebServerInfoForDAS()
public static Logger getDefaultLogger()
public static LocalStringManagerImpl getDefaultStringManager()
public void validateEjbEndpoint(WebServiceEndpoint ejbEndpoint)
public void updateServletEndpointRuntime(WebServiceEndpoint endpoint)
public Collection getWsdlsAndSchemas(File pkgedWsdl) throws Exception
Exception
public Collection getWsdlsAndSchemas(URL pkgedWsdl) throws Exception
pkgedWsdl
- URLException
public void getWsdlsAndSchemas(File wsdl, ArrayList<com.sun.xml.ws.api.server.SDDocumentSource> cumulative) throws Exception
Exception
public void doPreDestroy(WebServiceEndpoint ep, ClassLoader loader)
public void configureJAXWSServiceHandlers(WebServiceEndpoint ep, String bindingId, com.sun.xml.ws.api.WSBinding bindingObj)
public void configureJAXWSClientHandlers(Service svcClass, ServiceReferenceDescriptor desc)
public boolean getMtom(WebServiceEndpoint ep)
Copyright © 2019. All rights reserved.