gpt4 book ai didi

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

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

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

WebMethod.getMessages介绍

[英]The messages of this web method.
[中]此web方法的消息。

代码示例

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

/**
 * A set of the reference namespace for this method.
 *
 * @return A set of the reference namespace for this method.
 */
public Set<String> getReferencedNamespaces() {
 HashSet<String> namespaces = new HashSet<String>();
 Collection<WebMessage> messages = getMessages();
 for (WebMessage message : messages) {
  for (WebMessagePart part : message.getParts()) {
   namespaces.add(part.getParticleQName().getNamespaceURI());
  }
 }
 
 return namespaces;
}

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

/**
 * A set of the reference namespace for this method.
 *
 * @return A set of the reference namespace for this method.
 */
public Set<String> getReferencedNamespaces() {
 HashSet<String> namespaces = new HashSet<String>();
 Collection<WebMessage> messages = getMessages();
 for (WebMessage message : messages) {
  for (WebMessagePart part : message.getParts()) {
   namespaces.add(part.getParticleQName().getNamespaceURI());
  }
 }
 
 return namespaces;
}

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

messages = webMethod.getMessages();
 Collection<WebMethod> webMethods = ei.getWebMethods();
 for (WebMethod method : webMethods) {
  for (WebMessage webMessage : method.getMessages()) {
   if (webMessage.isFault() && !foundFaults.add(((WebFault) webMessage).getQualifiedName())) {
    continue;

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

messages = webMethod.getMessages();
  Collection<WebMethod> webMethods = ei.getWebMethods();
  for (WebMethod method : webMethods) {
   for (WebMessage webMessage : method.getMessages()) {
    if (webMessage.isFault() && !foundFaults.add(((WebFault) webMessage).getQualifiedName())) {
     continue;

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

public ValidationResult validateEndpointInterface(EndpointInterface ei) {
 ValidationResult result = new ValidationResult();
 String ns = ei.getTargetNamespace();
 if (ns == null || "".equals(ns)) {
  result.addError(ei, "Endpoint interface is in the empty namespace.");
 }
 for (WebMethod webMethod : ei.getWebMethods()) {
  for (WebMessage message : webMethod.getMessages()) {
   for (WebMessagePart messagePart : message.getParts()) {
    if (messagePart.isImplicitSchemaElement()) {
     ns = messagePart.getParticleQName().getNamespaceURI();
     if (ns == null || "".equals(ns)) {
      result.addError(webMethod, "A particle for a message part (message: " + message.getMessageName() + ", part: " + messagePart.getPartName() + ") of this web method is in the empty namespace.");
     }
    }
   }
  }
 }
 return result;
}

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

for (WebMessage webMessage : webMethod.getMessages()) {
 for (WebMessagePart messagePart : webMessage.getParts()) {
  if (messagePart.isImplicitSchemaElement()) {

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

for (WebMessage webMessage : webMethod.getMessages()) {
 for (WebMessagePart messagePart : webMessage.getParts()) {
  if (messagePart.isImplicitSchemaElement()) {

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

for (EndpointInterface ei : wsdlInfo.getEndpointInterfaces()) {
 for (WebMethod webMethod : ei.getWebMethods()) {
  for (WebMessage webMessage : webMethod.getMessages()) {
   if (webMessage instanceof RequestWrapper) {
    model.put("message", webMessage);

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

TreeSet<WebFault> unvisitedFaults = new TreeSet<WebFault>(new TypeDeclarationComparator());
for (WebMethod webMethod : ei.getWebMethods()) {
 for (WebMessage webMessage : webMethod.getMessages()) {
  if (webMessage instanceof RequestWrapper) {
   result.aggregate(validateRequestWrapper((RequestWrapper) webMessage, jaxwsBeans));

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

TreeSet<WebFault> unvisitedFaults = new TreeSet<WebFault>(new ClassDeclarationComparator());
for (WebMethod webMethod : ei.getWebMethods()) {
 for (WebMessage webMessage : webMethod.getMessages()) {
  if (webMessage instanceof RequestWrapper) {
   result.aggregate(validateRequestWrapper((RequestWrapper) webMessage, jaxwsBeans));

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

for (WebMessage webMessage : webMethod.getMessages()) {
 if (webMessage instanceof RequestWrapper) {
  RequestWrapper requestWrapper = (RequestWrapper) webMessage;

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

for (WebMessage webMessage : webMethod.getMessages()) {
 if (webMessage instanceof RequestWrapper) {
  RequestWrapper requestWrapper = (RequestWrapper) webMessage;

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

for (WebMessage webMessage : webMethod.getMessages()) {
 if (webMessage instanceof RequestWrapper) {
  javax.xml.ws.RequestWrapper annotation = webMethod.getAnnotation(javax.xml.ws.RequestWrapper.class);

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

for (EndpointInterface ei : wsdlInfo.getEndpointInterfaces()) {
 for (WebMethod webMethod : ei.getWebMethods()) {
  for (WebMessage webMessage : webMethod.getMessages()) {
   if (webMessage instanceof RequestWrapper) {
    model.put("message", webMessage);

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

for (WebMessage webMessage : webMethod.getMessages()) {
 if (oneway && webMessage.isOutput()) {
  result.addError(webMethod, "A one-way method cannot have any 'out' messages (i.e. non-void return values, thrown exceptions, " +

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

@Override
public void doFreemarkerGenerate() throws IOException, TemplateException {
 if (!isUpToDate()) {
  EnunciateFreemarkerModel model = getModel();
  //generate the rpc request/response beans.
  for (WsdlInfo wsdlInfo : model.getNamespacesToWSDLs().values()) {
   for (EndpointInterface ei : wsdlInfo.getEndpointInterfaces()) {
    for (WebMethod webMethod : ei.getWebMethods()) {
     for (WebMessage webMessage : webMethod.getMessages()) {
      if (webMessage instanceof RPCInputMessage) {
       model.put("message", webMessage);
       processTemplate(getRPCRequestBeanTemplateURL(), model);
      }
      else if (webMessage instanceof RPCOutputMessage) {
       model.put("message", webMessage);
       processTemplate(getRPCResponseBeanTemplateURL(), model);
      }
     }
    }
   }
  }
 }
 else {
  info("Skipping generation of XFire support classes as everything appears up-to-date....");
 }
 getEnunciate().setProperty("xfire-server.src.dir", getGenerateDir());
 getEnunciate().addArtifact(new FileArtifact(getName(), "xfire-server.src.dir", getGenerateDir()));
}

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

for (WebMessage webMessage : webMethod.getMessages()) {
 if (webMessage instanceof RequestWrapper) {
  model.put("message", webMessage);

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

for (WebMessage webMessage : webMethod.getMessages()) {
 if (webMessage instanceof RequestWrapper) {
  model.put("message", webMessage);

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

for (WebMethod webMethod : ei.getWebMethods()) {
 if (FacetFilter.accept(webMethod)) {
  for (WebMessage webMessage : webMethod.getMessages()) {
   if (webMessage instanceof RequestWrapper) {
    model.put("message", webMessage);

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

for (WebMessage webMessage : webMethod.getMessages()) {
 if (oneway && webMessage.isOutput()) {
  result.addError(webMethod.getPosition(), "A one-way method cannot have any 'out' messages (i.e. non-void return values, thrown exceptions, " +

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