本文整理匯總了Java中javax.xml.ws.Action.input方法的典型用法代碼示例。如果您正苦於以下問題:Java Action.input方法的具體用法?Java Action.input怎麽用?Java Action.input使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類javax.xml.ws.Action
的用法示例。
在下文中一共展示了Action.input方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setWsaActions
import javax.xml.ws.Action; //導入方法依賴的package包/類
private void setWsaActions(MetadataReader metadataReader) {
Action action = (metadataReader != null)? metadataReader.getAnnotation(Action.class, seiMethod):seiMethod.getAnnotation(Action.class);
if(action != null) {
inputAction = action.input();
outputAction = action.output();
}
//@Action(input) =="", get it from @WebMethod(action)
WebMethod webMethod = (metadataReader != null)? metadataReader.getAnnotation(WebMethod.class, seiMethod):seiMethod.getAnnotation(WebMethod.class);
soapAction = "";
if (webMethod != null )
soapAction = webMethod.action();
if(!soapAction.equals("")) {
//non-empty soapAction
if(inputAction.equals(""))
// set input action to non-empty soapAction
inputAction = soapAction;
else if(!inputAction.equals(soapAction)){
//both are explicitly set via annotations, make sure @Action == @WebMethod.action
//http://java.net/jira/browse/JAX_WS-1108
//throw new WebServiceException("@Action and @WebMethod(action=\"\" does not match on operation "+ method.getName());
}
}
}
示例2: getInputAction
import javax.xml.ws.Action; //導入方法依賴的package包/類
private String getInputAction() {
String inputAction = null;
Action action = getAnnoAction();
if (action != null) {
inputAction = action.input();
}
if (log.isDebugEnabled()) {
log.debug("getInputAction: " + inputAction);
}
return inputAction;
}