Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-3917

When we create the WSDL interface contract in the WebServicesBinding the Definitions that lead to it being created is left null

    XMLWordPrintableJSON

Details

    Description

      When the interface contract is created from a WSDLDefinition using the following piece of code from WebServiceBIndingProcessor

      PortType portType = getPortType(model);
      if (portType != null) {
      WSDLInterfaceContract interfaceContract = wsdlFactory.createWSDLInterfaceContract();
      WSDLInterface wsdlInterface = null;
      try

      { wsdlInterface = wsdlFactory.createWSDLInterface(portType, wsdlDefinition, resolver, context.getMonitor()); }

      catch (InvalidInterfaceException e)

      { warning(monitor, "InvalidInterfaceException", wsdlFactory, model.getName(), e.getMessage()); }

      interfaceContract.setInterface(wsdlInterface);
      interfaceContract.setCallbackInterface(wsdlInterface.getCallbackInterface());
      model.setBindingInterfaceContract(interfaceContract);
      }

      The wsdlDefinition is not set on the newly created wsdlInterface. This hasn't mattered until now but, due to TUSCANY-3915, we're looking to retrieve the binding interface contract and serialize out the WSDL that's found. If could be useful to be able to use the wsdlDefinition if one already exists rather than trying to generate a new one.

      Attachments

        Activity

          People

            Unassigned Unassigned
            simonslaws Simon Laws
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: