Tabnine Logo
WSDLModeler
Code IndexAdd Tabnine to your IDE (free)

How to use
WSDLModeler
in
com.sun.tools.ws.processor.modeler.wsdl

Best Java code snippets using com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler (Showing top 20 results out of 315)

origin: com.sun.xml.ws/jaxws-tools

@Override
protected boolean isConflictingServiceClassName(String name) {
  return conflictsWithSEIClass(name) || conflictsWithJAXBClass(name) || conflictsWithExceptionClass(name);
}
origin: org.glassfish.metro/webservices-tools

@Override
protected boolean isConflictingExceptionClassName(String name) {
  return conflictsWithSEIClass(name) || conflictsWithJAXBClass(name);
}
origin: com.sun.xml.ws/jaxws-tools

if (!applyOperationNameCustomization()) {
  return null;
Message inputMessage = getInputMessage();
Request request = new Request(inputMessage, errReceiver);
request.setErrorReceiver(errReceiver);
info.operation.setUse(SOAPUse.LITERAL);
info.operation.setWSDLPortTypeOperation(info.portTypeOperation);
SOAPBody soapRequestBody = getSOAPRequestBody();
if ((StyleAndUse.DOC_LITERAL == styleAndUse) && (soapRequestBody.getNamespace() != null)) {
  warning(soapRequestBody, ModelerMessages.WSDLMODELER_WARNING_R_2716("soapbind:body", info.bindingOperation.getName()));
Message outputMessage = null;
if (isRequestResponse) {
  soapResponseBody = getSOAPResponseBody();
  if (isOperationDocumentLiteral(styleAndUse) && (soapResponseBody.getNamespace() != null)) {
    warning(soapResponseBody, ModelerMessages.WSDLMODELER_WARNING_R_2716("soapbind:body", info.bindingOperation.getName()));
  outputMessage = getOutputMessage();
  response = new Response(outputMessage, errReceiver);
}else{
if (!validateMimeParts(getMimeParts(info.bindingOperation.getInput())) ||
    !validateMimeParts(getMimeParts(info.bindingOperation.getOutput()))) {
  return null;
if (!validateBodyParts(info.bindingOperation)) {
  if (isOperationDocumentLiteral(styleAndUse)) {
origin: com.sun.xml.ws/jaxws-tools

QName portQName = getQNameOf(wsdlPort);
Port port = new Port(portQName, wsdlPort);
setDocumentationIfPresent(port, wsdlPort.getDocumentation());
    (SOAPAddress) getExtensionOfType(wsdlPort, SOAPAddress.class);
if (soapAddress == null) {
  if(options.isExtensionMode()){
    warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_NO_SOAP_ADDRESS(wsdlPort.getName()));
  }else{
    warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT_NO_ADDRESS(wsdlPort.getName()));
    return false;
QName bindingName = getQNameOf(binding);
PortType portType = binding.resolvePortType(document);
    getQNameOf(wsdlPort));
port.setProperty(
    ModelProperties.PROPERTY_WSDL_PORT_TYPE_NAME,
    getQNameOf(portType));
port.setProperty(
    ModelProperties.PROPERTY_WSDL_BINDING_NAME,
    bindingName);
boolean isProvider = isProvider(wsdlPort);
if (_bindingNameToPortMap.containsKey(bindingName) && !isProvider) {
      (SOAPBinding) getExtensionOfType(binding, SOAPBinding.class);
origin: com.sun.xml.ws/jaxws-tools

List<MessagePart> bodyParts = getBodyParts(body, message);
  headerParts = getHeaderPartsFromMessage(message, isInput);
  mimeParts = getMimeContentParts(message, info.bindingOperation.getInput());
} else {
  headerParts = getHeaderPartsFromMessage(message, isInput);
  mimeParts = getMimeContentParts(message, info.bindingOperation.getOutput());
    if (mimeParts.contains(mPart) || headerParts.contains(mPart) || boundToFault(mPart.getName())) {
        warning(mPart, ModelerMessages.WSDLMODELER_WARNING_BINDING_OPERATION_MULTIPLE_PART_BINDING(info.bindingOperation.getName(), mPart.getName()));
      } else {
        error(mPart, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_MULTIPLE_PART_BINDING(info.bindingOperation.getName(), mPart.getName()));
if (isOperationDocumentLiteral(styleAndUse) && bodyParts.size() > 1) {
  if (options.isExtensionMode()) {
    warning(message, ModelerMessages.WSDLMODELER_WARNING_OPERATION_MORE_THAN_ONE_PART_IN_MESSAGE(info.portTypeOperation.getName()));
  } else {
    error(message, ModelerMessages.WSDLMODELER_INVALID_OPERATION_MORE_THAN_ONE_PART_IN_MESSAGE(info.portTypeOperation.getName()));
origin: javaee/metro-jax-ws

buildJAXBModel(document);
            : document.getDefinitions().getName());
Model model = new Model(modelName, document.getDefinitions());
model.setJAXBModel(getJAXBModelBuilder().getJAXBModel());
setDocumentationIfPresent(model,
    document.getDefinitions().getDocumentation());
     iter.hasNext();
      ) {
    processService((com.sun.tools.ws.wsdl.document.Service) iter.next(),
        model, document);
  warning(model.getEntity(), ModelerMessages.WSDLMODELER_WARNING_NO_SERVICE_DEFINITIONS_FOUND());
origin: javaee/metro-jax-ws

  receiver.reset();
WSDLModeler wsdlModeler = new WSDLModeler(options, receiver,forest);
Model wsdlModel = wsdlModeler.buildModel();
if (wsdlModel == null) {
  listener.message(WsdlMessages.PARSING_PARSE_FAILED());
origin: javaee/metro-jax-ws

if (!applyOperationNameCustomization()) {
  return null;
Message inputMessage = getInputMessage();
Request request = new Request(inputMessage, errReceiver);
request.setErrorReceiver(errReceiver);
info.operation.setUse(SOAPUse.LITERAL);
info.operation.setWSDLPortTypeOperation(info.portTypeOperation);
SOAPBody soapRequestBody = getSOAPRequestBody();
if ((StyleAndUse.DOC_LITERAL == styleAndUse) && (soapRequestBody.getNamespace() != null)) {
  warning(soapRequestBody, ModelerMessages.WSDLMODELER_WARNING_R_2716("soapbind:body", info.bindingOperation.getName()));
Message outputMessage = null;
if (isRequestResponse) {
  soapResponseBody = getSOAPResponseBody();
  if (isOperationDocumentLiteral(styleAndUse) && (soapResponseBody.getNamespace() != null)) {
    warning(soapResponseBody, ModelerMessages.WSDLMODELER_WARNING_R_2716("soapbind:body", info.bindingOperation.getName()));
  outputMessage = getOutputMessage();
  response = new Response(outputMessage, errReceiver);
}else{
if (!validateMimeParts(getMimeParts(info.bindingOperation.getInput())) ||
    !validateMimeParts(getMimeParts(info.bindingOperation.getOutput()))) {
  return null;
if (!validateBodyParts(info.bindingOperation)) {
  if (isOperationDocumentLiteral(styleAndUse)) {
origin: javaee/metro-jax-ws

QName portQName = getQNameOf(wsdlPort);
Port port = new Port(portQName, wsdlPort);
setDocumentationIfPresent(port, wsdlPort.getDocumentation());
    (SOAPAddress) getExtensionOfType(wsdlPort, SOAPAddress.class);
if (soapAddress == null) {
  if(options.isExtensionMode()){
    warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_NO_SOAP_ADDRESS(wsdlPort.getName()));
  }else{
    warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT_NO_ADDRESS(wsdlPort.getName()));
    return false;
QName bindingName = getQNameOf(binding);
PortType portType = binding.resolvePortType(document);
    getQNameOf(wsdlPort));
port.setProperty(
    ModelProperties.PROPERTY_WSDL_PORT_TYPE_NAME,
    getQNameOf(portType));
port.setProperty(
    ModelProperties.PROPERTY_WSDL_BINDING_NAME,
    bindingName);
boolean isProvider = isProvider(wsdlPort);
if (_bindingNameToPortMap.containsKey(bindingName) && !isProvider) {
      (SOAPBinding) getExtensionOfType(binding, SOAPBinding.class);
origin: javaee/metro-jax-ws

List<MessagePart> bodyParts = getBodyParts(body, message);
  headerParts = getHeaderPartsFromMessage(message, isInput);
  mimeParts = getMimeContentParts(message, info.bindingOperation.getInput());
} else {
  headerParts = getHeaderPartsFromMessage(message, isInput);
  mimeParts = getMimeContentParts(message, info.bindingOperation.getOutput());
    if (mimeParts.contains(mPart) || headerParts.contains(mPart) || boundToFault(mPart.getName())) {
        warning(mPart, ModelerMessages.WSDLMODELER_WARNING_BINDING_OPERATION_MULTIPLE_PART_BINDING(info.bindingOperation.getName(), mPart.getName()));
      } else {
        error(mPart, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_MULTIPLE_PART_BINDING(info.bindingOperation.getName(), mPart.getName()));
if (isOperationDocumentLiteral(styleAndUse) && bodyParts.size() > 1) {
  if (options.isExtensionMode()) {
    warning(message, ModelerMessages.WSDLMODELER_WARNING_OPERATION_MORE_THAN_ONE_PART_IN_MESSAGE(info.portTypeOperation.getName()));
  } else {
    error(message, ModelerMessages.WSDLMODELER_INVALID_OPERATION_MORE_THAN_ONE_PART_IN_MESSAGE(info.portTypeOperation.getName()));
origin: javaee/metro-jax-ws

buildJAXBModel(document);
            : document.getDefinitions().getName());
Model model = new Model(modelName, document.getDefinitions());
model.setJAXBModel(getJAXBModelBuilder().getJAXBModel());
setDocumentationIfPresent(model,
    document.getDefinitions().getDocumentation());
     iter.hasNext();
      ) {
    processService((com.sun.tools.ws.wsdl.document.Service) iter.next(),
        model, document);
  warning(model.getEntity(), ModelerMessages.WSDLMODELER_WARNING_NO_SERVICE_DEFINITIONS_FOUND());
origin: com.sun.xml.ws/jaxws-tools

@Override
protected boolean isConflictingExceptionClassName(String name) {
  return conflictsWithSEIClass(name) || conflictsWithJAXBClass(name);
}
origin: org.glassfish.metro/webservices-tools

  receiver.reset();
WSDLModeler wsdlModeler = new WSDLModeler(options, receiver,forest);
Model wsdlModel = wsdlModeler.buildModel();
if (wsdlModel == null) {
  listener.message(WsdlMessages.PARSING_PARSE_FAILED());
origin: org.glassfish.metro/webservices-tools

if (!applyOperationNameCustomization()) {
  return null;
Message inputMessage = getInputMessage();
Request request = new Request(inputMessage, errReceiver);
request.setErrorReceiver(errReceiver);
info.operation.setUse(SOAPUse.LITERAL);
info.operation.setWSDLPortTypeOperation(info.portTypeOperation);
SOAPBody soapRequestBody = getSOAPRequestBody();
if ((StyleAndUse.DOC_LITERAL == styleAndUse) && (soapRequestBody.getNamespace() != null)) {
  warning(soapRequestBody, ModelerMessages.WSDLMODELER_WARNING_R_2716("soapbind:body", info.bindingOperation.getName()));
Message outputMessage = null;
if (isRequestResponse) {
  soapResponseBody = getSOAPResponseBody();
  if (isOperationDocumentLiteral(styleAndUse) && (soapResponseBody.getNamespace() != null)) {
    warning(soapResponseBody, ModelerMessages.WSDLMODELER_WARNING_R_2716("soapbind:body", info.bindingOperation.getName()));
  outputMessage = getOutputMessage();
  response = new Response(outputMessage, errReceiver);
}else{
if (!validateMimeParts(getMimeParts(info.bindingOperation.getInput())) ||
    !validateMimeParts(getMimeParts(info.bindingOperation.getOutput()))) {
  return null;
if (!validateBodyParts(info.bindingOperation)) {
  if (isOperationDocumentLiteral(styleAndUse)) {
origin: javaee/metro-jax-ws

QName portQName = getQNameOf(wsdlPort);
Port port = new Port(portQName, wsdlPort);
setDocumentationIfPresent(port, wsdlPort.getDocumentation());
    (SOAPAddress) getExtensionOfType(wsdlPort, SOAPAddress.class);
if (soapAddress == null) {
  if(options.isExtensionMode()){
    warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_NO_SOAP_ADDRESS(wsdlPort.getName()));
  }else{
    warning(wsdlPort, ModelerMessages.WSDLMODELER_WARNING_IGNORING_NON_SOAP_PORT_NO_ADDRESS(wsdlPort.getName()));
    return false;
QName bindingName = getQNameOf(binding);
PortType portType = binding.resolvePortType(document);
    getQNameOf(wsdlPort));
port.setProperty(
    ModelProperties.PROPERTY_WSDL_PORT_TYPE_NAME,
    getQNameOf(portType));
port.setProperty(
    ModelProperties.PROPERTY_WSDL_BINDING_NAME,
    bindingName);
boolean isProvider = isProvider(wsdlPort);
if (_bindingNameToPortMap.containsKey(bindingName) && !isProvider) {
      (SOAPBinding) getExtensionOfType(binding, SOAPBinding.class);
origin: org.glassfish.metro/webservices-tools

List<MessagePart> bodyParts = getBodyParts(body, message);
  headerParts = getHeaderPartsFromMessage(message, isInput);
  mimeParts = getMimeContentParts(message, info.bindingOperation.getInput());
} else {
  headerParts = getHeaderPartsFromMessage(message, isInput);
  mimeParts = getMimeContentParts(message, info.bindingOperation.getOutput());
    if (mimeParts.contains(mPart) || headerParts.contains(mPart) || boundToFault(mPart.getName())) {
        warning(mPart, ModelerMessages.WSDLMODELER_WARNING_BINDING_OPERATION_MULTIPLE_PART_BINDING(info.bindingOperation.getName(), mPart.getName()));
      } else {
        error(mPart, ModelerMessages.WSDLMODELER_INVALID_BINDING_OPERATION_MULTIPLE_PART_BINDING(info.bindingOperation.getName(), mPart.getName()));
if (isOperationDocumentLiteral(styleAndUse) && bodyParts.size() > 1) {
  if (options.isExtensionMode()) {
    warning(message, ModelerMessages.WSDLMODELER_WARNING_OPERATION_MORE_THAN_ONE_PART_IN_MESSAGE(info.portTypeOperation.getName()));
  } else {
    error(message, ModelerMessages.WSDLMODELER_INVALID_OPERATION_MORE_THAN_ONE_PART_IN_MESSAGE(info.portTypeOperation.getName()));
origin: com.sun.xml.ws/jaxws-tools

buildJAXBModel(document);
            : document.getDefinitions().getName());
Model model = new Model(modelName, document.getDefinitions());
model.setJAXBModel(getJAXBModelBuilder().getJAXBModel());
setDocumentationIfPresent(model,
    document.getDefinitions().getDocumentation());
     iter.hasNext();
      ) {
    processService((com.sun.tools.ws.wsdl.document.Service) iter.next(),
        model, document);
  warning(model.getEntity(), ModelerMessages.WSDLMODELER_WARNING_NO_SERVICE_DEFINITIONS_FOUND());
origin: javaee/metro-jax-ws

@Override
protected boolean isConflictingServiceClassName(String name) {
  return conflictsWithSEIClass(name) || conflictsWithJAXBClass(name) || conflictsWithExceptionClass(name);
}
origin: javaee/metro-jax-ws

@Override
protected boolean isConflictingExceptionClassName(String name) {
  return conflictsWithSEIClass(name) || conflictsWithJAXBClass(name);
}
origin: javaee/metro-jax-ws

  receiver.reset();
WSDLModeler wsdlModeler = new WSDLModeler(options, receiver,forest);
Model wsdlModel = wsdlModeler.buildModel();
if (wsdlModel == null) {
  listener.message(WsdlMessages.PARSING_PARSE_FAILED());
com.sun.tools.ws.processor.modeler.wsdlWSDLModeler

Javadoc

The WSDLModeler processes a WSDL to create a Model.

Most used methods

  • <init>
  • addAsyncOperations
  • applyOperationNameCustomization
  • applyPortMethodCustomization
  • applyWrapperStyleCustomization
  • boundToFault
  • buildJAXBModel
  • buildModel
  • conflictsWithExceptionClass
  • conflictsWithJAXBClass
  • conflictsWithSEIClass
  • createAsyncOperation
  • conflictsWithSEIClass,
  • createAsyncOperation,
  • createJavaExceptionFromLiteralType,
  • createJavaInterfaceForPort,
  • createJavaInterfaceForProviderPort,
  • createJavaMethodForAsyncOperation,
  • createJavaMethodForOperation,
  • createRpcLitRequestParameters,
  • enableMimeContent,
  • error

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now