List<String> parameterOrder = _operation.getParameterOrdering(); if ( parameterOrder != null ) { if ( !parameterOrder.contains( responseParam.getName().getLocalPart() ) ) {
if ( input != null ) { Message in = input.getMessage(); List<Object> paramOrdering = op.getParameterOrdering(); List<Part> inParts = in.getOrderedParts( paramOrdering );
@Override protected void initializeWSDLOperation(InterfaceInfo intf, OperationInfo o, Method method) { method = ((JaxWsServiceConfiguration)jaxWsConfiguration).getDeclaredMethod(method); o.setProperty(Method.class.getName(), method); o.setProperty(METHOD, method); initializeWrapping(o, method); // rpc out-message-part-info class mapping Operation op = (Operation)o.getProperty(WSDLServiceBuilder.WSDL_OPERATION); initializeClassInfo(o, method, op == null ? null : CastUtils.cast(op.getParameterOrdering(), String.class)); bindOperation(o, method); sendEvent(Event.INTERFACE_OPERATION_BOUND, o, method); }
pw); DOMUtils.printAttribute(Constants.ATTR_PARAMETER_ORDER, StringUtils.getNMTokens(operation.getParameterOrdering()), pw);
protected void initializeWSDLOperation(InterfaceInfo intf, OperationInfo o, Method method) { // rpc out-message-part-info class mapping Operation op = (Operation)o.getProperty(WSDLServiceBuilder.WSDL_OPERATION); if (initializeClassInfo(o, method, op == null ? null : CastUtils.cast(op.getParameterOrdering(), String.class))) { bindOperation(o, method); o.setProperty(ReflectionServiceFactoryBean.METHOD, method); sendEvent(Event.INTERFACE_OPERATION_BOUND, o, method); } else { LOG.log(Level.WARNING, "NO_METHOD_FOR_OP", o.getName()); } }
protected void initializeWSDLOperation(InterfaceInfo intf, OperationInfo o, Method method) { // rpc out-message-part-info class mapping Operation op = (Operation)o.getProperty(WSDLServiceBuilder.WSDL_OPERATION); if (initializeClassInfo(o, method, op == null ? null : CastUtils.cast(op.getParameterOrdering(), String.class))) { bindOperation(o, method); o.setProperty(ReflectionServiceFactoryBean.METHOD, method); sendEvent(Event.INTERFACE_OPERATION_BOUND, o, method); } else { LOG.log(Level.WARNING, "NO_METHOD_FOR_OP", o.getName()); } }
protected void initializeWSDLOperation(InterfaceInfo intf, OperationInfo o, Method method) { // rpc out-message-part-info class mapping Operation op = (Operation)o.getProperty(WSDLServiceBuilder.WSDL_OPERATION); if (initializeClassInfo(o, method, op == null ? null : CastUtils.cast(op.getParameterOrdering(), String.class))) { bindOperation(o, method); o.setProperty(ReflectionServiceFactoryBean.METHOD, method); sendEvent(Event.INTERFACE_OPERATION_BOUND, o, method); } else { LOG.log(Level.WARNING, "NO_METHOD_FOR_OP", o.getName()); } }
/** * The method extracts list of parts for the given soapbind:body, * binding operation, message, and style. * * @param op an operation. * @param m a message. * @param body a SOAP body. * @param style an operation style. * @return list of parts for the given soapbind:body, * binding operation, message, and style. */ static public List getParts( Operation op, Message m, SOAPBody body, String style) { // if null, get parts from message if (body.getParts() == null) // if rpc style is used, try to use partOrder attribute from operation if (WSIConstants.ATTRVAL_SOAP_BIND_STYLE_RPC.equals(style)) return m.getOrderedParts(op.getParameterOrdering()); else return m.getOrderedParts(null); else // converse parts name to parts objects return m.getOrderedParts(body.getParts()); }
/** * The method extracts list of parts for the given soapbind:body, * binding operation, message, and style. * * @param op an operation. * @param m a message. * @param body a SOAP body. * @param style an operation style. * @return list of parts for the given soapbind:body, * binding operation, message, and style. */ static public List getParts( Operation op, Message m, SOAPBody body, String style) { // if null, get parts from message if (body.getParts() == null) // if rpc style is used, try to use partOrder attribute from operation if (WSIConstants.ATTRVAL_SOAP_BIND_STYLE_RPC.equals(style)) return m.getOrderedParts(op.getParameterOrdering()); else return m.getOrderedParts(null); else // converse parts name to parts objects return m.getOrderedParts(body.getParts()); }
@Override protected void initializeWSDLOperation(InterfaceInfo intf, OperationInfo o, Method method) { method = ((JaxWsServiceConfiguration)jaxWsConfiguration).getDeclaredMethod(method); o.setProperty(Method.class.getName(), method); o.setProperty(METHOD, method); initializeWrapping(o, method); // rpc out-message-part-info class mapping Operation op = (Operation)o.getProperty(WSDLServiceBuilder.WSDL_OPERATION); initializeClassInfo(o, method, op == null ? null : CastUtils.cast(op.getParameterOrdering(), String.class)); bindOperation(o, method); sendEvent(Event.INTERFACE_OPERATION_BOUND, o, method); }
public void visit(Operation obj, Object parent, WSDLTraversalContext ctx) if (obj.getParameterOrdering() == null) List parts = obj.getParameterOrdering();
public void visit(Operation obj, Object parent, WSDLTraversalContext ctx) if (obj.getParameterOrdering() == null) List parts = obj.getParameterOrdering();
List parameterOrder = operation.getParameterOrdering();
pw); DOMUtils.printAttribute(Constants.ATTR_PARAMETER_ORDER, StringUtils.getNMTokens(operation.getParameterOrdering()), pw);
List<String> porderList = CastUtils.cast((List<?>)op.getParameterOrdering()); opInfo.setParameterOrdering(porderList); this.copyExtensors(opInfo, op.getExtensibilityElements());
List<String> porderList = CastUtils.cast((List<?>)op.getParameterOrdering()); opInfo.setParameterOrdering(porderList); this.copyExtensors(opInfo, op.getExtensibilityElements());
List<String> porderList = CastUtils.cast((List<?>)op.getParameterOrdering()); opInfo.setParameterOrdering(porderList); this.copyExtensors(opInfo, op.getExtensibilityElements());
@SuppressWarnings("unchecked") public void processMethod(JavaMethod method, Operation operation) throws ToolException { List<String> parameterOrder = operation.getParameterOrdering(); Message inputMessage = operation.getInput() == null ? null : operation.getInput().getMessage(); Message outputMessage = operation.getOutput() == null ? null : operation.getOutput().getMessage(); if (inputMessage == null) { LOG.log(Level.WARNING, "NO_INPUT_MESSAGE", new Object[] {operation.getName(), operation.getInput().getName()}); } ParameterProcessor paramProcessor = new ParameterProcessor(env); method.clear(); paramProcessor.process(method, inputMessage, outputMessage, isRequestResponse(operation), parameterOrder); isWrapperStyle(operation); addWebMethodAnnotation(method); addWrapperAnnotation(method, operation); addWebResultAnnotation(method); addSOAPBindingAnnotation(method); if (!method.isOneWay() && method.getJAXWSBinding().isEnableAsyncMapping()) { addAsyncMethod(method); } }
List<String> paramOrder = (List<String>)wsdlOperation.getParameterOrdering(); if (paramOrder != null)
List<String> paramOrder = (List<String>)wsdlOperation.getParameterOrdering(); if (paramOrder != null)