Package com.centeractive.ws

Examples of com.centeractive.ws.SoapBuilderException


      loadDefaultSchema(loadResoruce("soapEnvelope.xsd"));
      loadDefaultSchema(loadResoruce("soapEncoding.xsd"));
      loadDefaultSchema(loadResoruce("soapEnvelope12.xsd"));
      loadDefaultSchema(loadResoruce("soapEncoding12.xsd"));
    } catch (Exception e) {
      throw new SoapBuilderException(e);
    }
  }
View Full Code Here


    try {
      log.debug("Loading schema types from [" + wsdlUrl + "]");
      ArrayList<XmlObject> schemas = new ArrayList<XmlObject>(getSchemas(wsdlUrl, loader).values());
      return buildSchemaTypes(schemas);
    } catch (Exception e) {
      throw new SoapBuilderException(e);
    }
  }
View Full Code Here

      return sts;
      // return XmlBeans.typeLoaderUnion(new SchemaTypeLoader[] { sts,
      // XmlBeans.getBuiltinTypeSystem() });
    } catch (Exception e) {
      throw new SoapBuilderException(e);
    } finally {
      for (int c = 0; c < errorList.size(); c++) {
        log.warn("Error: " + errorList.get(c));
      }
View Full Code Here

            getSchemas(location, existing, loader, targetNS);
          }
        }
      }
    } catch (Exception e) {
      throw new SoapBuilderException(e);
    }
  }
View Full Code Here

            condition &= checkOperationInputName(operation);
            condition &= checkOperationOutputName(operation);
            if(condition) {
                found.add(SoapOperationImpl.create(builder, binding, operation));
                if(found.size() > 1) {
                    throw new SoapBuilderException("Operation not unique - found more than one operation");
                }
            }
        }
        if(found.isEmpty()) {
            throw new SoapBuilderException("Found no operations");
        }
        return found.iterator().next();
    }
View Full Code Here

    private WsdlParser(URL wsdlUrl) {
        try {
            this.wsdlUrl = wsdlUrl;
            this.soapFacade = new SoapLegacyFacade(wsdlUrl);
        } catch (WSDLException e) {
            throw new SoapBuilderException(e);
        }
    }
View Full Code Here

    public static WsdlParser parse(String wsdlUrl) {
        Preconditions.checkNotNull(wsdlUrl, "URL of the WSDL cannot be null");
        try {
            return new WsdlParser(new URL(wsdlUrl));
        } catch (MalformedURLException e) {
            throw new SoapBuilderException(e);
        }
    }
View Full Code Here

                        }
                        result.add(bindingName);
                    }
                }
                if(result.isEmpty()) {
                    throw new SoapBuilderException("Binding not found");
                }
                if(result.size() > 1) {
                    throw new SoapBuilderException("Found more than one binding " + result);
                }
                return result.iterator().next();
            }

            private void validate() {
                if (StringUtils.isBlank(localPart)) {
                    throw new SoapBuilderException("Specify at least localPart of the binding's QName");
                }
            }
        };
    }
View Full Code Here

    public BindingOperation getBindingOperation(SoapOperation op) {
        BindingOperation operation = binding.getBindingOperation(op.getOperationName(),
                op.getOperationInputName(), op.getOperationOutputName());
        if (operation == null) {
            throw new SoapBuilderException("Operation not found");
        }
        return operation;
    }
View Full Code Here

    @Override
    public String buildInputMessage(SoapOperation operation, SoapContext context) {
        try {
            return soapFacade.buildSoapMessageFromInput(binding, getBindingOperation(operation), context);
        } catch (Exception e) {
            throw new SoapBuilderException(e);
        }
    }
View Full Code Here

TOP

Related Classes of com.centeractive.ws.SoapBuilderException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.