Java Code Examples for com.sun.xml.internal.ws.model.JavaMethodImpl#getMEP()
The following examples show how to use
com.sun.xml.internal.ws.model.JavaMethodImpl#getMEP() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WSDLGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Generates the WSDL portType */ protected void generatePortType() { PortType portType = portDefinitions.portType().name(model.getPortTypeName().getLocalPart()); extension.addPortTypeExtension(portType); for (JavaMethodImpl method : model.getJavaMethods()) { Operation operation = portType.operation().name(method.getOperationName()); generateParameterOrder(operation, method); extension.addOperationExtension(operation, method); switch (method.getMEP()) { case REQUEST_RESPONSE: // input message generateInputMessage(operation, method); // output message generateOutputMessage(operation, method); break; case ONE_WAY: generateInputMessage(operation, method); break; default: break; } // faults for (CheckedExceptionImpl exception : method.getCheckedExceptions()) { QName messageName = new QName(model.getTargetNamespace(), exception.getMessageName()); FaultType paramType = operation.fault().message(messageName).name(exception.getMessageName()); extension.addOperationFaultExtension(paramType, method, exception); } } }
Example 2
Source File: WSDLGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Generates the parameterOrder for a PortType operation * @param operation The operation to generate the parameterOrder for * @param method The {@link JavaMethod} to generate the parameterOrder from */ protected void generateParameterOrder(Operation operation, JavaMethodImpl method) { if (method.getMEP() == MEP.ONE_WAY) return; if (isRpcLit(method)) generateRpcParameterOrder(operation, method); else generateDocumentParameterOrder(operation, method); }
Example 3
Source File: WSDLGenerator.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Generates the WSDL portType */ protected void generatePortType() { PortType portType = portDefinitions.portType().name(model.getPortTypeName().getLocalPart()); extension.addPortTypeExtension(portType); for (JavaMethodImpl method : model.getJavaMethods()) { Operation operation = portType.operation().name(method.getOperationName()); generateParameterOrder(operation, method); extension.addOperationExtension(operation, method); switch (method.getMEP()) { case REQUEST_RESPONSE: // input message generateInputMessage(operation, method); // output message generateOutputMessage(operation, method); break; case ONE_WAY: generateInputMessage(operation, method); break; default: break; } // faults for (CheckedExceptionImpl exception : method.getCheckedExceptions()) { QName messageName = new QName(model.getTargetNamespace(), exception.getMessageName()); FaultType paramType = operation.fault().message(messageName).name(exception.getMessageName()); extension.addOperationFaultExtension(paramType, method, exception); } } }
Example 4
Source File: WSDLGenerator.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Generates the parameterOrder for a PortType operation * @param operation The operation to generate the parameterOrder for * @param method The {@link JavaMethod} to generate the parameterOrder from */ protected void generateParameterOrder(Operation operation, JavaMethodImpl method) { if (method.getMEP() == MEP.ONE_WAY) return; if (isRpcLit(method)) generateRpcParameterOrder(operation, method); else generateDocumentParameterOrder(operation, method); }
Example 5
Source File: WSDLGenerator.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Generates the WSDL portType */ protected void generatePortType() { PortType portType = portDefinitions.portType().name(model.getPortTypeName().getLocalPart()); extension.addPortTypeExtension(portType); for (JavaMethodImpl method : model.getJavaMethods()) { Operation operation = portType.operation().name(method.getOperationName()); generateParameterOrder(operation, method); extension.addOperationExtension(operation, method); switch (method.getMEP()) { case REQUEST_RESPONSE: // input message generateInputMessage(operation, method); // output message generateOutputMessage(operation, method); break; case ONE_WAY: generateInputMessage(operation, method); break; default: break; } // faults for (CheckedExceptionImpl exception : method.getCheckedExceptions()) { QName messageName = new QName(model.getTargetNamespace(), exception.getMessageName()); FaultType paramType = operation.fault().message(messageName).name(exception.getMessageName()); extension.addOperationFaultExtension(paramType, method, exception); } } }
Example 6
Source File: WSDLGenerator.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Generates the parameterOrder for a PortType operation * @param operation The operation to generate the parameterOrder for * @param method The {@link JavaMethod} to generate the parameterOrder from */ protected void generateParameterOrder(Operation operation, JavaMethodImpl method) { if (method.getMEP() == MEP.ONE_WAY) return; if (isRpcLit(method)) generateRpcParameterOrder(operation, method); else generateDocumentParameterOrder(operation, method); }
Example 7
Source File: WSDLGenerator.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Generates the WSDL portType */ protected void generatePortType() { PortType portType = portDefinitions.portType().name(model.getPortTypeName().getLocalPart()); extension.addPortTypeExtension(portType); for (JavaMethodImpl method : model.getJavaMethods()) { Operation operation = portType.operation().name(method.getOperationName()); generateParameterOrder(operation, method); extension.addOperationExtension(operation, method); switch (method.getMEP()) { case REQUEST_RESPONSE: // input message generateInputMessage(operation, method); // output message generateOutputMessage(operation, method); break; case ONE_WAY: generateInputMessage(operation, method); break; default: break; } // faults for (CheckedExceptionImpl exception : method.getCheckedExceptions()) { QName messageName = new QName(model.getTargetNamespace(), exception.getMessageName()); FaultType paramType = operation.fault().message(messageName).name(exception.getMessageName()); extension.addOperationFaultExtension(paramType, method, exception); } } }
Example 8
Source File: WSDLGenerator.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Generates the parameterOrder for a PortType operation * @param operation The operation to generate the parameterOrder for * @param method The {@link JavaMethod} to generate the parameterOrder from */ protected void generateParameterOrder(Operation operation, JavaMethodImpl method) { if (method.getMEP() == MEP.ONE_WAY) return; if (isRpcLit(method)) generateRpcParameterOrder(operation, method); else generateDocumentParameterOrder(operation, method); }
Example 9
Source File: WSDLGenerator.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Generates the WSDL portType */ protected void generatePortType() { PortType portType = portDefinitions.portType().name(model.getPortTypeName().getLocalPart()); extension.addPortTypeExtension(portType); for (JavaMethodImpl method : model.getJavaMethods()) { Operation operation = portType.operation().name(method.getOperationName()); generateParameterOrder(operation, method); extension.addOperationExtension(operation, method); switch (method.getMEP()) { case REQUEST_RESPONSE: // input message generateInputMessage(operation, method); // output message generateOutputMessage(operation, method); break; case ONE_WAY: generateInputMessage(operation, method); break; default: break; } // faults for (CheckedExceptionImpl exception : method.getCheckedExceptions()) { QName messageName = new QName(model.getTargetNamespace(), exception.getMessageName()); FaultType paramType = operation.fault().message(messageName).name(exception.getMessageName()); extension.addOperationFaultExtension(paramType, method, exception); } } }
Example 10
Source File: WSDLGenerator.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Generates the parameterOrder for a PortType operation * @param operation The operation to generate the parameterOrder for * @param method The {@link JavaMethod} to generate the parameterOrder from */ protected void generateParameterOrder(Operation operation, JavaMethodImpl method) { if (method.getMEP() == MEP.ONE_WAY) return; if (isRpcLit(method)) generateRpcParameterOrder(operation, method); else generateDocumentParameterOrder(operation, method); }
Example 11
Source File: WSDLGenerator.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Generates the WSDL portType */ protected void generatePortType() { PortType portType = portDefinitions.portType().name(model.getPortTypeName().getLocalPart()); extension.addPortTypeExtension(portType); for (JavaMethodImpl method : model.getJavaMethods()) { Operation operation = portType.operation().name(method.getOperationName()); generateParameterOrder(operation, method); extension.addOperationExtension(operation, method); switch (method.getMEP()) { case REQUEST_RESPONSE: // input message generateInputMessage(operation, method); // output message generateOutputMessage(operation, method); break; case ONE_WAY: generateInputMessage(operation, method); break; default: break; } // faults for (CheckedExceptionImpl exception : method.getCheckedExceptions()) { QName messageName = new QName(model.getTargetNamespace(), exception.getMessageName()); FaultType paramType = operation.fault().message(messageName).name(exception.getMessageName()); extension.addOperationFaultExtension(paramType, method, exception); } } }
Example 12
Source File: WSDLGenerator.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Generates the parameterOrder for a PortType operation * @param operation The operation to generate the parameterOrder for * @param method The {@link JavaMethod} to generate the parameterOrder from */ protected void generateParameterOrder(Operation operation, JavaMethodImpl method) { if (method.getMEP() == MEP.ONE_WAY) return; if (isRpcLit(method)) generateRpcParameterOrder(operation, method); else generateDocumentParameterOrder(operation, method); }
Example 13
Source File: WSDLGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Generates the WSDL portType */ protected void generatePortType() { PortType portType = portDefinitions.portType().name(model.getPortTypeName().getLocalPart()); extension.addPortTypeExtension(portType); for (JavaMethodImpl method : model.getJavaMethods()) { Operation operation = portType.operation().name(method.getOperationName()); generateParameterOrder(operation, method); extension.addOperationExtension(operation, method); switch (method.getMEP()) { case REQUEST_RESPONSE: // input message generateInputMessage(operation, method); // output message generateOutputMessage(operation, method); break; case ONE_WAY: generateInputMessage(operation, method); break; default: break; } // faults for (CheckedExceptionImpl exception : method.getCheckedExceptions()) { QName messageName = new QName(model.getTargetNamespace(), exception.getMessageName()); FaultType paramType = operation.fault().message(messageName).name(exception.getMessageName()); extension.addOperationFaultExtension(paramType, method, exception); } } }
Example 14
Source File: WSDLGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Generates the parameterOrder for a PortType operation * @param operation The operation to generate the parameterOrder for * @param method The {@link JavaMethod} to generate the parameterOrder from */ protected void generateParameterOrder(Operation operation, JavaMethodImpl method) { if (method.getMEP() == MEP.ONE_WAY) return; if (isRpcLit(method)) generateRpcParameterOrder(operation, method); else generateDocumentParameterOrder(operation, method); }
Example 15
Source File: WSDLGenerator.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Generates the WSDL portType */ protected void generatePortType() { PortType portType = portDefinitions.portType().name(model.getPortTypeName().getLocalPart()); extension.addPortTypeExtension(portType); for (JavaMethodImpl method : model.getJavaMethods()) { Operation operation = portType.operation().name(method.getOperationName()); generateParameterOrder(operation, method); extension.addOperationExtension(operation, method); switch (method.getMEP()) { case REQUEST_RESPONSE: // input message generateInputMessage(operation, method); // output message generateOutputMessage(operation, method); break; case ONE_WAY: generateInputMessage(operation, method); break; default: break; } // faults for (CheckedExceptionImpl exception : method.getCheckedExceptions()) { QName messageName = new QName(model.getTargetNamespace(), exception.getMessageName()); FaultType paramType = operation.fault().message(messageName).name(exception.getMessageName()); extension.addOperationFaultExtension(paramType, method, exception); } } }
Example 16
Source File: WSDLGenerator.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Generates the parameterOrder for a PortType operation * @param operation The operation to generate the parameterOrder for * @param method The {@link JavaMethod} to generate the parameterOrder from */ protected void generateParameterOrder(Operation operation, JavaMethodImpl method) { if (method.getMEP() == MEP.ONE_WAY) return; if (isRpcLit(method)) generateRpcParameterOrder(operation, method); else generateDocumentParameterOrder(operation, method); }