Class WebServiceSamplerGui

    • Constructor Detail

      • WebServiceSamplerGui

        public WebServiceSamplerGui()
    • Method Detail

      • getLabelResource

        public String getLabelResource()
        Description copied from interface: JMeterGUIComponent
        Get the component's resource name, which getStaticLabel uses to derive the component's label in the local language. The resource name is fixed, and does not vary with the selected language. Normally this method should be overriden in preference to overriding getStaticLabel(). However where the resource name is not available or required, getStaticLabel() may be overridden instead.
        Specified by:
        getLabelResource in interface JMeterGUIComponent
        Returns:
        the resource name
      • createTestElement

        public TestElement createTestElement()
        Description copied from interface: JMeterGUIComponent
        JMeter test components are separated into a model and a GUI representation. The model holds the data and the GUI displays it. The GUI class is responsible for knowing how to create and initialize with data the model class that it knows how to display, and this method is called when new test elements are created.
        Specified by:
        createTestElement in interface JMeterGUIComponent
        Returns:
        the Test Element object that the GUI component represents.
        See Also:
        JMeterGUIComponent.createTestElement()
      • configureFromWSDL

        public void configureFromWSDL()
        configure the sampler from the WSDL. If the WSDL did not include service node, it will use the original URL minus the querystring. That may not be correct, so we should probably add a note. For Microsoft webservices it will work, since that's how IIS works.
      • browseWSDL

        public String[] browseWSDL​(String url,
                                   boolean silent)
        The method uses WSDLHelper to get the information from the WSDL. Since the logic for getting the description is isolated to this method, we can easily replace it with a different WSDL driver later on.
        Parameters:
        url - URL to the WSDL
        silent - flag whether errors parsing the WSDL should be shown to the user. If true errors will be silently ignored
        Returns:
        array of web methods