gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-26 10:55:05 28 4
gpt4 key购买 nike

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

WebMethod.getSoapParameterStyle介绍

[英]The SOAP parameter style of this web method.
[中]此web方法的SOAP参数样式。

代码示例

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

/**
 * Whether this is a bare web param.
 *
 * @return Whether this is a bare web param.
 */
private boolean isBare() {
 return method.getSoapParameterStyle() == SOAPBinding.ParameterStyle.BARE;
}

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

/**
 * Whether this is a bare web result.
 *
 * @return Whether this is a bare web result.
 */
private boolean isBare() {
 return method.getSoapParameterStyle() == SOAPBinding.ParameterStyle.BARE;
}

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

/**
 * Whether this is a bare web result.
 *
 * @return Whether this is a bare web result.
 */
public boolean isBare() {
 return method.getSoapParameterStyle() == SOAPBinding.ParameterStyle.BARE;
}

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

/**
 * Whether this is a bare web param.
 *
 * @return Whether this is a bare web param.
 */
private boolean isBare() {
 return method.getSoapParameterStyle() == SOAPBinding.ParameterStyle.BARE;
}

代码示例来源: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

/**
 * This web parameter defines an implicit schema element if it is DOCUMENT binding style and either BARE or a header.
 *
 * @return Whether this web parameter is an implicit schema element.
 */
public boolean isImplicitSchemaElement() {
 return isHeader() || (method.getSoapBindingStyle() != SOAPBinding.Style.RPC && method.getSoapParameterStyle() == SOAPBinding.ParameterStyle.BARE);
}

代码示例来源: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-core

/**
 * This web result defines an implicit schema element if it is of DOCUMENT binding style and it is
 * either BARE or a header.
 *
 * @return Whether this web result is an implicit schema element.
 */
public boolean isImplicitSchemaElement() {
 return isHeader() || (method.getSoapBindingStyle() != SOAPBinding.Style.RPC && method.getSoapParameterStyle() == SOAPBinding.ParameterStyle.BARE);
}

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

SOAPBinding.ParameterStyle parameterStyle = getSoapParameterStyle();
if (parameterStyle == SOAPBinding.ParameterStyle.WRAPPED) {
 messages.add(new RequestWrapper(this));

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

ResponseWrapper responseWrapper = null;
if (bindingStyle == SOAPBinding.Style.DOCUMENT) {
 SOAPBinding.ParameterStyle parameterStyle = getSoapParameterStyle();
 if (parameterStyle == SOAPBinding.ParameterStyle.WRAPPED) {
  requestWrapper = new RequestWrapper(this);

代码示例来源: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

return new QName(webMethod.getRequestWrapper().getElementNamespace(), webMethod.getRequestWrapper().getElementName());
else if (webMethod.getSoapParameterStyle() == SOAPBinding.ParameterStyle.BARE) {
 Collection<WebParam> params = webMethod.getWebParameters();
 for (WebParam param : params) {

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

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.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

Collection<WebMessage> outParams = new ArrayList<WebMessage>();
boolean oneway = webMethod.isOneWay();
SOAPBinding.ParameterStyle parameterStyle = webMethod.getSoapParameterStyle();
SOAPBinding.Style soapBindingStyle = webMethod.getSoapBindingStyle();

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

int outParams = 0;
boolean oneway = webMethod.isOneWay();
SOAPBinding.ParameterStyle parameterStyle = webMethod.getSoapParameterStyle();
SOAPBinding.Style soapBindingStyle = webMethod.getSoapBindingStyle();

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