Package org.jboss.ws.metadata.wsdl

Examples of org.jboss.ws.metadata.wsdl.WSDLBindingOperation


/*     */   private WSDLBindingMessageReference getBindingReference(WSDLInterfaceMessageReference reference)
/*     */   {
/* 346 */     WSDLInterfaceOperation wsdlOperation = reference.getWsdlOperation();
/* 347 */     WSDLInterface wsdlInterface = wsdlOperation.getWsdlInterface();
/* 348 */     WSDLBinding binding = wsdlInterface.getWsdlDefinitions().getBindingByInterfaceName(wsdlInterface.getName());
/* 349 */     WSDLBindingOperation bindingOperation = binding.getOperationByRef(wsdlOperation.getName());
/*     */     WSDLBindingMessageReference[] bindingReferences;
/*     */     WSDLBindingMessageReference[] bindingReferences;
/* 352 */     if ((reference instanceof WSDLInterfaceOperationInput))
/* 353 */       bindingReferences = bindingOperation.getInputs();
/*     */     else {
/* 355 */       bindingReferences = bindingOperation.getOutputs();
/*     */     }
/* 357 */     if (bindingReferences.length > 1) {
/* 358 */       throw new IllegalArgumentException("WSDl 1.1 only supports In-Only, and In-Out MEPS, more than reference input found");
/*     */     }
/* 360 */     if (bindingReferences.length == 1) {
View Full Code Here


/* 484 */     WSDLBindingOperation[] operations = binding.getOperations();
/* 485 */     Arrays.sort(operations);
/*     */
/* 487 */     for (int i = 0; i < operations.length; i++)
/*     */     {
/* 489 */       WSDLBindingOperation operation = operations[i];
/* 490 */       QName interfaceName = operation.getWsdlBinding().getInterfaceName();
/*     */
/* 492 */       WSDLInterface wsdlInterface = this.wsdl.getInterface(interfaceName);
/* 493 */       if (wsdlInterface == null)
/* 494 */         throw new WSException("WSDL Interface should not be null");
/* 495 */       WSDLInterfaceOperation interfaceOperation = wsdlInterface.getOperation(operation.getRef());
/*     */
/* 497 */       buffer.append("<operation name='" + interfaceOperation.getName().getLocalPart() + "'>");
/* 498 */       String soapAction = operation.getSOAPAction() != null ? operation.getSOAPAction() : "";
/* 499 */       appendUnknownExtensibilityElements(buffer, operation);
/* 500 */       buffer.append("<" + this.soapPrefix + ":operation soapAction=\"" + soapAction + "\"/>");
/*     */
/* 502 */       WSDLBindingOperationInput[] inputs = operation.getInputs();
/* 503 */       if (inputs.length != 1) {
/* 504 */         throw new WSException("WSDl 1.1 only supports In-Only, and In-Out MEPS.");
/*     */       }
/* 506 */       buffer.append("<input>");
/* 507 */       appendUnknownExtensibilityElements(buffer, inputs[0]);
/* 508 */       appendSOAPBinding(buffer, wsdlInterface, operation, inputs);
/* 509 */       buffer.append("</input>");
/*     */
/* 511 */       if (!"http://www.w3.org/2004/08/wsdl/in-only".equals(getBindingOperationPattern(operation)))
/*     */       {
/* 513 */         buffer.append("<output>");
/* 514 */         WSDLBindingOperationOutput[] outputs = operation.getOutputs();
/* 515 */         appendSOAPBinding(buffer, wsdlInterface, operation, outputs);
/* 516 */         buffer.append("</output>");
/*     */       }
/*     */
/* 520 */       WSDLInterfaceOperationOutfault[] faults = interfaceOperation.getOutfaults();
View Full Code Here

/*     */   }
/*     */
/*     */   protected void processOperation(WSDLInterface wsdlInterface, WSDLBinding wsdlBinding, OperationMetaData operation)
/*     */   {
/* 197 */     WSDLInterfaceOperation interfaceOperation = new WSDLInterfaceOperation(wsdlInterface, operation.getQName());
/* 198 */     WSDLBindingOperation bindingOperation = new WSDLBindingOperation(wsdlBinding);
/*     */
/* 200 */     interfaceOperation.setPattern(operation.isOneWay() ? "http://www.w3.org/2004/08/wsdl/in-only" : "http://www.w3.org/2004/08/wsdl/in-out");
/*     */
/* 203 */     bindingOperation.setRef(operation.getQName());
/* 204 */     bindingOperation.setSOAPAction(operation.getSOAPAction());
/*     */
/* 206 */     if (operation.getStyle() == Style.DOCUMENT)
/* 207 */       processOperationDOC(interfaceOperation, bindingOperation, operation);
/*     */     else {
/* 209 */       processOperationRPC(interfaceOperation, bindingOperation, operation);
View Full Code Here

/* 217 */       ServiceEndpointMethodMapping semm = new ServiceEndpointMethodMapping(seim);
/* 218 */       semm.setJavaMethodName(ToolsUtils.firstLetterLowerCase(opname));
/* 219 */       semm.setWsdlOperation(opname);
/* 220 */       semm.setWrappedElement(isWrapped());
/*     */
/* 222 */       WSDLBindingOperation bindingOperation = HeaderUtil.getWSDLBindingOperation(this.wsdlDefinitions, wiop);
/*     */
/* 224 */       if (isDocStyle())
/*     */       {
/* 226 */         constructDOCParameters(semm, wiop, bindingOperation);
/*     */       }
View Full Code Here

/*    */
/*    */ public class HeaderUtil
/*    */ {
/*    */   public static WSDLBindingOperation getWSDLBindingOperation(WSDLDefinitions wsdl, WSDLInterfaceOperation operation)
/*    */   {
/* 49 */     WSDLBindingOperation bindingOperation = null;
/*    */
/* 51 */     WSDLInterface wsdlInterface = operation.getWsdlInterface();
/* 52 */     QName operationName = operation.getName();
/*    */
/* 54 */     WSDLBinding binding = wsdl.getBindingByInterfaceName(wsdlInterface.getName());
View Full Code Here

/*     */
/* 276 */     for (int i = 0; i < len; i++)
/*     */     {
/* 278 */       WSDLInterfaceOperation op = ops[i];
/*     */
/* 280 */       WSDLBindingOperation bindingOperation = HeaderUtil.getWSDLBindingOperation(this.wsdl, op);
/*     */
/* 283 */       String returnType = null;
/*     */
/* 285 */       StringBuilder paramBuffer = new StringBuilder();
/*     */
View Full Code Here

      log.trace("processBindingOperation: " + srcOperationName);

      WSDLInterface destInterface = destBinding.getInterface();
      String namespaceURI = destInterface.getName().getNamespaceURI();

      WSDLBindingOperation destBindingOperation = new WSDLBindingOperation(destBinding);
      QName refQName = new QName(namespaceURI, srcOperationName);
      destBindingOperation.setRef(refQName);
      processUnknownExtensibilityElements(srcBindingOperation, destBindingOperation);
      destBinding.addOperation(destBindingOperation);

      String opName = srcOperationName;
      WSDLInterfaceOperation destIntfOperation = destInterface.getOperation(opName);

      // Process soap:operation@soapAction, soap:operation@style
      List<ExtensibilityElement> extList = srcBindingOperation.getExtensibilityElements();
      for (ExtensibilityElement extElement : extList)
      {
         if (extElement instanceof SOAPOperation)
         {
            SOAPOperation soapOp = (SOAPOperation)extElement;
            destBindingOperation.setSOAPAction(soapOp.getSoapActionURI());
         }
         else if (extElement instanceof SOAP12Operation)
         {
            SOAP12Operation soapOp = (SOAP12Operation)extElement;
            destBindingOperation.setSOAPAction(soapOp.getSoapActionURI());
         }
      }

      BindingInput srcBindingInput = srcBindingOperation.getBindingInput();
      if (srcBindingInput != null)
View Full Code Here

   }

   protected void processOperation(WSDLInterface wsdlInterface, WSDLBinding wsdlBinding, OperationMetaData operation)
   {
      WSDLInterfaceOperation interfaceOperation = new WSDLInterfaceOperation(wsdlInterface, operation.getQName());
      WSDLBindingOperation bindingOperation = new WSDLBindingOperation(wsdlBinding);

      interfaceOperation.setPattern(operation.isOneWay() ? Constants.WSDL20_PATTERN_IN_ONLY
            : Constants.WSDL20_PATTERN_IN_OUT);

      bindingOperation.setRef(operation.getQName());
      bindingOperation.setSOAPAction(operation.getSOAPAction());

      if (operation.getStyle() == Style.DOCUMENT)
         processOperationDOC(interfaceOperation, bindingOperation, operation);
      else
         processOperationRPC(interfaceOperation, bindingOperation, operation);
View Full Code Here

   }

   protected void processOperation(WSDLInterface wsdlInterface, WSDLBinding wsdlBinding, OperationMetaData operation)
   {
      WSDLInterfaceOperation interfaceOperation = new WSDLInterfaceOperation(wsdlInterface, operation.getQName());
      WSDLBindingOperation bindingOperation = new WSDLBindingOperation(wsdlBinding);

      interfaceOperation.setPattern(operation.isOneWay() ? Constants.WSDL20_PATTERN_IN_ONLY
            : Constants.WSDL20_PATTERN_IN_OUT);

      bindingOperation.setRef(operation.getQName());
      bindingOperation.setSOAPAction(operation.getSOAPAction());

      if (operation.getStyle() == Style.DOCUMENT)
         processOperationDOC(interfaceOperation, bindingOperation, operation);
      else
         processOperationRPC(interfaceOperation, bindingOperation, operation);
View Full Code Here

   private WSDLBindingMessageReference getBindingReference(WSDLInterfaceMessageReference reference)
   {
      WSDLInterfaceOperation wsdlOperation = reference.getWsdlOperation();
      WSDLInterface wsdlInterface = wsdlOperation.getWsdlInterface();
      WSDLBinding binding = wsdlInterface.getWsdlDefinitions().getBindingByInterfaceName(wsdlInterface.getName());
      WSDLBindingOperation bindingOperation = binding.getOperationByRef(wsdlOperation.getName());
      WSDLBindingMessageReference[] bindingReferences;

      if (reference instanceof WSDLInterfaceOperationInput)
         bindingReferences = bindingOperation.getInputs();
      else
         bindingReferences = bindingOperation.getOutputs();

      if (bindingReferences.length > 1)
         throw new IllegalArgumentException("WSDl 1.1 only supports In-Only, and In-Out MEPS, more than reference input found");

      if (bindingReferences.length == 1)
View Full Code Here

TOP

Related Classes of org.jboss.ws.metadata.wsdl.WSDLBindingOperation

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.