Nav

WSDL Operation Filtering

Introduction

For a particular ServiceDefinition, the developer is able to filter out (that is, hide from the connector user) individual operations that are declared in the WSDL file.

This filtering is necessary in order to exclude login/logout operations from the operations dropdown exposed to the application developer.

Implementation

The set of excluded operations must be listed in the ServiceDefinition, so the operations that should be off-limits to the application developer are effectively ignored by DevKit in the metadata key retrieval process.


         
      
1
2
3
4
5
6
7
8
9
10
11
12
@WsdlServiceRetriever
    public ServiceDefinition getServiceDefinition() {
           ServiceDefinition service = new DefaultServiceDefinition(
                          "ServiceId", "tshirt", "tshirt.wsdl","TshirtService","TshirtServicePort");

           service.setExclusions(Arrays.asList("login", "logout"));

            // Exclusions can also be set as:
            // service.excludeOperation("myUnwantedOp");

            return service;
    }

Metadata keys that match the excluded operations are removed before metadata keys are returned through invocation of getMetaDataKeys().

See Also

Recall the basics of metadata retrieval from here

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.

+