本文整理汇总了Java中javax.xml.ws.FaultAction类的典型用法代码示例。如果您正苦于以下问题:Java FaultAction类的具体用法?Java FaultAction怎么用?Java FaultAction使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FaultAction类属于javax.xml.ws包,在下文中一共展示了FaultAction类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addOperationFaultExtension
import javax.xml.ws.FaultAction; //导入依赖的package包/类
@Override
public void addOperationFaultExtension(TypedXmlWriter fault, JavaMethod method, CheckedException ce) {
if (!enabled)
return;
Action a = method.getSEIMethod().getAnnotation(Action.class);
Class[] exs = method.getSEIMethod().getExceptionTypes();
if (exs == null)
return;
if (a != null && a.fault() != null) {
for (FaultAction fa : a.fault()) {
if (fa.className().getName().equals(ce.getExceptionClass().getName())) {
if (fa.value().equals(""))
return;
addAttribute(fault, fa.value());
return;
}
}
}
}
示例2: throwException
import javax.xml.ws.FaultAction; //导入依赖的package包/类
/**
*
* @param exceptionType
* @param exceptionChance
* @param apiKey
* @return
* returns java.lang.String
* @throws SoapWebServiceException
*/
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "throwException", targetNamespace = "http://exceptionthrower.development.soap.services.server.exampleproject.anythingworks.optimaize.com/", className = "com.optimaize.anythingworks.exampleproject.clientlib.soap.services.development.exceptionthrower.wsdl.ThrowException")
@ResponseWrapper(localName = "throwExceptionResponse", targetNamespace = "http://exceptionthrower.development.soap.services.server.exampleproject.anythingworks.optimaize.com/", className = "com.optimaize.anythingworks.exampleproject.clientlib.soap.services.development.exceptionthrower.wsdl.ThrowExceptionResponse")
@Action(input = "http://exceptionthrower.development.soap.services.server.exampleproject.anythingworks.optimaize.com/SoapExceptionThrower/throwExceptionRequest", output = "http://exceptionthrower.development.soap.services.server.exampleproject.anythingworks.optimaize.com/SoapExceptionThrower/throwExceptionResponse", fault = {
@FaultAction(className = SoapWebServiceException.class, value = "http://exceptionthrower.development.soap.services.server.exampleproject.anythingworks.optimaize.com/SoapExceptionThrower/throwException/Fault/SoapWebServiceException")
})
public String throwException(
@WebParam(name = "apiKey", targetNamespace = "")
String apiKey,
@WebParam(name = "exceptionType", targetNamespace = "")
String exceptionType,
@WebParam(name = "exceptionChance", targetNamespace = "")
int exceptionChance)
throws SoapWebServiceException
;
示例3: login
import javax.xml.ws.FaultAction; //导入依赖的package包/类
@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/DataIntegrationInterface/LoginRequest", fault =
{ @FaultAction(value="http://www.informatica.com/wsh/DataIntegrationInterface/login/Fault/Fault",
className=com.informatica.wsh.Fault.class) }, output="http://www.informatica.com/wsh/DataIntegrationInterface/LoginResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="param",
name="LoginReturn")
public String login(@WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="param", name="Login")
com.informatica.wsh.LoginRequest param, @WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="Context", name="Context", header=true, mode=Mode.OUT)
Holder<com.informatica.wsh.SessionHeader> Context)
throws com.informatica.wsh.Fault;
示例4: logout
import javax.xml.ws.FaultAction; //导入依赖的package包/类
@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/DataIntegrationInterface/LogoutRequest", fault =
{ @FaultAction(value="http://www.informatica.com/wsh/DataIntegrationInterface/logout/Fault/Fault",
className=com.informatica.wsh.Fault.class) }, output="http://www.informatica.com/wsh/DataIntegrationInterface/LogoutResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="param",
name="LogoutReturn")
public com.informatica.wsh.VoidResponse logout(@WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="param", name="Logout")
com.informatica.wsh.VoidRequest param, @WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="Context", name="Context", header=true)
com.informatica.wsh.SessionHeader Context)
throws com.informatica.wsh.Fault;
示例5: initializeDIServerConnection
import javax.xml.ws.FaultAction; //导入依赖的package包/类
@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/DataIntegrationInterface/InitializeDIServerConnectionRequest", fault =
{ @FaultAction(value="http://www.informatica.com/wsh/DataIntegrationInterface/initializeDIServerConnection/Fault/Fault",
className=com.informatica.wsh.Fault.class) }, output="http://www.informatica.com/wsh/DataIntegrationInterface/InitializeDIServerConnectionResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="param",
name="InitializeDIServerConnectionReturn")
public com.informatica.wsh.VoidResponse initializeDIServerConnection(@WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="param", name="InitializeDIServerConnection")
com.informatica.wsh.InitializeDIServerConnectionRequest param,
@WebParam(targetNamespace="http://www.informatica.com/wsh", partName="Context",
name="Context", header=true)
com.informatica.wsh.SessionHeader Context)
throws com.informatica.wsh.Fault;
示例6: deinitializeDIServerConnection
import javax.xml.ws.FaultAction; //导入依赖的package包/类
@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/DataIntegrationInterface/DeinitializeDIServerConnectionRequest", fault =
{ @FaultAction(value="http://www.informatica.com/wsh/DataIntegrationInterface/deinitializeDIServerConnection/Fault/Fault",
className=com.informatica.wsh.Fault.class) }, output="http://www.informatica.com/wsh/DataIntegrationInterface/DeinitializeDIServerConnectionResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="param",
name="DeinitializeDIServerConnectionReturn")
public com.informatica.wsh.VoidResponse deinitializeDIServerConnection(@WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="param", name="DeinitializeDIServerConnection")
com.informatica.wsh.VoidRequest param, @WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="Context", name="Context", header=true)
com.informatica.wsh.SessionHeader Context)
throws com.informatica.wsh.Fault;
示例7: startWorkflowLogFetch
import javax.xml.ws.FaultAction; //导入依赖的package包/类
@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/DataIntegrationInterface/StartWorkflowLogFetchRequest", fault =
{ @FaultAction(value="http://www.informatica.com/wsh/DataIntegrationInterface/startWorkflowLogFetch/Fault/Fault",
className=com.informatica.wsh.Fault.class) }, output="http://www.informatica.com/wsh/DataIntegrationInterface/StartWorkflowLogFetchResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="param",
name="StartWorkflowLogFetchReturn")
public int startWorkflowLogFetch(@WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="param", name="StartWorkflowLogFetch")
com.informatica.wsh.StartWorkflowLogFetchRequest param,
@WebParam(targetNamespace="http://www.informatica.com/wsh", partName="Context",
name="Context", header=true)
com.informatica.wsh.SessionHeader Context)
throws com.informatica.wsh.Fault;
示例8: startSessionLogFetch
import javax.xml.ws.FaultAction; //导入依赖的package包/类
@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/DataIntegrationInterface/StartSessionLogFetchRequest", fault =
{ @FaultAction(value="http://www.informatica.com/wsh/DataIntegrationInterface/startSessionLogFetch/Fault/Fault",
className=com.informatica.wsh.Fault.class) }, output="http://www.informatica.com/wsh/DataIntegrationInterface/StartSessionLogFetchResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="param",
name="StartSessionLogFetchReturn")
public int startSessionLogFetch(@WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="param", name="StartSessionLogFetch")
com.informatica.wsh.StartSessionLogFetchRequest param,
@WebParam(targetNamespace="http://www.informatica.com/wsh", partName="Context",
name="Context", header=true)
com.informatica.wsh.SessionHeader Context)
throws com.informatica.wsh.Fault;
示例9: getNextLogSegment
import javax.xml.ws.FaultAction; //导入依赖的package包/类
@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/DataIntegrationInterface/GetNextLogSegmentRequest", fault =
{ @FaultAction(value="http://www.informatica.com/wsh/DataIntegrationInterface/getNextLogSegment/Fault/Fault",
className=com.informatica.wsh.Fault.class) }, output="http://www.informatica.com/wsh/DataIntegrationInterface/GetNextLogSegmentResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="param",
name="GetNextLogSegmentReturn")
public com.informatica.wsh.LogSegment getNextLogSegment(@WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="param", name="GetNextLogSegment")
com.informatica.wsh.GetNextLogSegmentRequest param,
@WebParam(targetNamespace="http://www.informatica.com/wsh", partName="Context",
name="Context", header=true)
com.informatica.wsh.SessionHeader Context)
throws com.informatica.wsh.Fault;
示例10: pingDIServer
import javax.xml.ws.FaultAction; //导入依赖的package包/类
@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/DataIntegrationInterface/pingDIServerRequest", fault =
{ @FaultAction(value="http://www.informatica.com/wsh/DataIntegrationInterface/pingDIServer/Fault/Fault",
className=com.informatica.wsh.Fault.class) }, output="http://www.informatica.com/wsh/DataIntegrationInterface/pingDIServerResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="PingDIServerReturn",
name="PingDIServerReturn")
public com.informatica.wsh.EPingState pingDIServer(@WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="PingDIServer", name="PingDIServer")
com.informatica.wsh.PingDIServerRequest PingDIServer,
@WebParam(targetNamespace="http://www.informatica.com/wsh", partName="Context",
name="Context", header=true)
com.informatica.wsh.SessionHeader Context)
throws com.informatica.wsh.Fault;
示例11: getDIServerProperties
import javax.xml.ws.FaultAction; //导入依赖的package包/类
@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/DataIntegrationInterface/getDIServerPropertiesRequest", fault =
{ @FaultAction(value="http://www.informatica.com/wsh/DataIntegrationInterface/getDIServerProperties/Fault/Fault",
className=com.informatica.wsh.Fault.class) }, output="http://www.informatica.com/wsh/DataIntegrationInterface/getDIServerPropertiesResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="GetDIServerPropertiesReturn",
name="GetDIServerPropertiesReturn")
public com.informatica.wsh.DIServerProperties getDIServerProperties(@WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="GetDIServerProperties", name="GetDIServerProperties")
com.informatica.wsh.DIServiceInfo GetDIServerProperties,
@WebParam(targetNamespace="http://www.informatica.com/wsh", partName="Context",
name="Context", header=true)
com.informatica.wsh.SessionHeader Context)
throws com.informatica.wsh.Fault;
示例12: startWorkflow
import javax.xml.ws.FaultAction; //导入依赖的package包/类
@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/DataIntegrationInterface/startWorkflowRequest", fault =
{ @FaultAction(value="http://www.informatica.com/wsh/DataIntegrationInterface/startWorkflow/Fault/Fault",
className=com.informatica.wsh.Fault.class) }, output="http://www.informatica.com/wsh/DataIntegrationInterface/startWorkflowResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="StartWorkflowReturn",
name="StartWorkflowReturn")
public com.informatica.wsh.VoidResponse startWorkflow(@WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="StartWorkflow", name="StartWorkflow")
com.informatica.wsh.WorkflowRequest StartWorkflow,
@WebParam(targetNamespace="http://www.informatica.com/wsh", partName="Context",
name="Context", header=true)
com.informatica.wsh.SessionHeader Context)
throws com.informatica.wsh.Fault;
示例13: startWorkflowEx
import javax.xml.ws.FaultAction; //导入依赖的package包/类
@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/DataIntegrationInterface/startWorkflowExRequest", fault =
{ @FaultAction(value="http://www.informatica.com/wsh/DataIntegrationInterface/startWorkflowEx/Fault/Fault",
className=com.informatica.wsh.Fault.class) }, output="http://www.informatica.com/wsh/DataIntegrationInterface/startWorkflowExResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="StartWorkflowExReturn",
name="StartWorkflowExReturn")
public com.informatica.wsh.TypeStartWorkflowExResponse startWorkflowEx(@WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="StartWorkflowEx", name="StartWorkflowEx")
com.informatica.wsh.TypeStartWorkflowExRequest StartWorkflowEx,
@WebParam(targetNamespace="http://www.informatica.com/wsh", partName="Context",
name="Context", header=true)
com.informatica.wsh.SessionHeader Context)
throws com.informatica.wsh.Fault;
示例14: startWorkflowFromTask
import javax.xml.ws.FaultAction; //导入依赖的package包/类
@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/DataIntegrationInterface/startWorkflowFromTaskRequest", fault =
{ @FaultAction(value="http://www.informatica.com/wsh/DataIntegrationInterface/startWorkflowFromTask/Fault/Fault",
className=com.informatica.wsh.Fault.class) }, output="http://www.informatica.com/wsh/DataIntegrationInterface/startWorkflowFromTaskResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="StartWorkflowFromTaskReturn",
name="StartWorkflowFromTaskReturn")
public com.informatica.wsh.VoidResponse startWorkflowFromTask(@WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="StartWorkflowFromTask", name="StartWorkflowFromTask")
com.informatica.wsh.WorkflowRequest StartWorkflowFromTask,
@WebParam(targetNamespace="http://www.informatica.com/wsh", partName="Context",
name="Context", header=true)
com.informatica.wsh.SessionHeader Context)
throws com.informatica.wsh.Fault;
示例15: stopWorkflow
import javax.xml.ws.FaultAction; //导入依赖的package包/类
@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/DataIntegrationInterface/stopWorkflowRequest", fault =
{ @FaultAction(value="http://www.informatica.com/wsh/DataIntegrationInterface/stopWorkflow/Fault/Fault",
className=com.informatica.wsh.Fault.class) }, output="http://www.informatica.com/wsh/DataIntegrationInterface/stopWorkflowResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="StopWorkflowReturn",
name="StopWorkflowReturn")
public com.informatica.wsh.VoidResponse stopWorkflow(@WebParam(targetNamespace="http://www.informatica.com/wsh",
partName="StopWorkflow", name="StopWorkflow")
com.informatica.wsh.WorkflowRequest StopWorkflow,
@WebParam(targetNamespace="http://www.informatica.com/wsh", partName="Context",
name="Context", header=true)
com.informatica.wsh.SessionHeader Context)
throws com.informatica.wsh.Fault;