gpt4 book ai didi

org.codehaus.enunciate.contract.jaxws.WebMethod.getSoapUse()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 11:27:05 34 4
gpt4 key购买 nike

本文整理了Java中org.codehaus.enunciate.contract.jaxws.WebMethod.getSoapUse()方法的一些代码示例,展示了WebMethod.getSoapUse()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebMethod.getSoapUse()方法的具体详情如下:
包路径:org.codehaus.enunciate.contract.jaxws.WebMethod
类名称:WebMethod
方法名:getSoapUse

WebMethod.getSoapUse介绍

[英]The SOAP binding use of this web method.
[中]SOAP绑定使用此web方法。

代码示例

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

/**
 * Determine whether this web method is doc/lit wrapped.
 *
 * @return Whether this web method is doc/lit wrapped.
 */
public boolean isDocLitWrapped() {
 return getSoapBindingStyle() == SOAPBinding.Style.DOCUMENT &&
  getSoapUse() == SOAPBinding.Use.LITERAL &&
  getSoapParameterStyle() == SOAPBinding.ParameterStyle.WRAPPED;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

/**
 * Determine whether this web method is doc/lit wrapped.
 *
 * @return Whether this web method is doc/lit wrapped.
 */
public boolean isDocLitWrapped() {
 return getSoapBindingStyle() == SOAPBinding.Style.DOCUMENT &&
  getSoapUse() == SOAPBinding.Use.LITERAL &&
  getSoapParameterStyle() == SOAPBinding.ParameterStyle.WRAPPED;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-csharp

/**
 * Gets the client-side package for the type, type declaration, package, or their string values.
 *
 * @param list The arguments.
 * @return The string value of the client-side package.
 */
public Object exec(List list) throws TemplateModelException {
 if (list.size() < 1) {
  throw new TemplateModelException("The responseDocumentQName method method must have a web method as a parameter.");
 }
 TemplateModel from = (TemplateModel) list.get(0);
 Object unwrapped = BeansWrapper.getDefaultInstance().unwrap(from);
 if (!(unwrapped instanceof WebMethod)) {
  throw new TemplateModelException("A web method must be provided.");
 }
 WebMethod webMethod = (WebMethod) unwrapped;
 if (webMethod.getSoapBindingStyle() != SOAPBinding.Style.DOCUMENT || webMethod.getSoapUse() != SOAPBinding.Use.LITERAL) {
  throw new TemplateModelException("No response document qname available for a " + webMethod.getSoapBindingStyle() + "/" + webMethod.getSoapUse() + " web method.");
 }
 if (webMethod.getResponseWrapper() != null) {
  return new QName(webMethod.getResponseWrapper().getElementNamespace(), webMethod.getResponseWrapper().getElementName());
 }
 else if (webMethod.getSoapParameterStyle() == SOAPBinding.ParameterStyle.BARE) {
  WebResult wr = webMethod.getWebResult();
  if (!wr.isHeader()) {
   return new QName(wr.getTargetNamespace(), wr.getElementName());
  }
 }
 return null;
}

代码示例来源:origin: org.codehaus.enunciate/enunciate-csharp

if (webMethod.getSoapBindingStyle() != SOAPBinding.Style.DOCUMENT || webMethod.getSoapUse() != SOAPBinding.Use.LITERAL) {
 throw new TemplateModelException("No request document qname available for a " + webMethod.getSoapBindingStyle() + "/" + webMethod.getSoapUse() + " web method.");

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

sbAnnotation.setStyle(webMethod.getSoapBindingStyle() == SOAPBinding.Style.DOCUMENT ? SOAPBindingAnnotation.STYLE_DOCUMENT : SOAPBindingAnnotation.STYLE_RPC);
sbAnnotation.setParameterStyle(webMethod.getSoapParameterStyle() == SOAPBinding.ParameterStyle.BARE ? SOAPBindingAnnotation.PARAMETER_STYLE_BARE : SOAPBindingAnnotation.PARAMETER_STYLE_WRAPPED);
sbAnnotation.setUse(webMethod.getSoapUse() == SOAPBinding.Use.ENCODED ? SOAPBindingAnnotation.USE_ENCODED : SOAPBindingAnnotation.USE_LITERAL);
this.generatedAnnotations.method2SOAPBinding.put(methodKey, sbAnnotation);

代码示例来源:origin: org.codehaus.enunciate/enunciate-xfire-client

sbAnnotation.setStyle(webMethod.getSoapBindingStyle() == SOAPBinding.Style.DOCUMENT ? SOAPBindingAnnotation.STYLE_DOCUMENT : SOAPBindingAnnotation.STYLE_RPC);
sbAnnotation.setParameterStyle(webMethod.getSoapParameterStyle() == SOAPBinding.ParameterStyle.BARE ? SOAPBindingAnnotation.PARAMETER_STYLE_BARE : SOAPBindingAnnotation.PARAMETER_STYLE_WRAPPED);
sbAnnotation.setUse(webMethod.getSoapUse() == SOAPBinding.Use.ENCODED ? SOAPBindingAnnotation.USE_ENCODED : SOAPBindingAnnotation.USE_LITERAL);
this.generatedAnnotations.method2SOAPBinding.put(methodKey, sbAnnotation);

代码示例来源:origin: org.codehaus.enunciate/enunciate-core

if (webMethod.getSoapUse() == SOAPBinding.Use.ENCODED) {
 result.addError(webMethod, "Enunciate doesn't support ENCODED-use web methods.");

代码示例来源:origin: org.codehaus.enunciate/enunciate-full

if (webMethod.getSoapUse() == SOAPBinding.Use.ENCODED) {
 result.addError(webMethod.getPosition(), "Enunciate doesn't support ENCODED-use web methods.");

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com