Patent ID: 8543973

Claim:
A method for generating authentication code for web service resources by an Integrated Development Environment (IDE), comprising: obtaining, by the IDE, metadata of a first web service; obtaining, by the IDE, a first service definition from the metadata, wherein the first service definition defines a plurality of resources associated with the first web service, and wherein at least one of the plurality of resources is associated with a first resource method; receiving, from a user of the IDE and by the IDE, a selection of the first resource method, wherein the first resource method defines a first method for interacting with a first resource of the plurality of resources associated with the first web service; determining, by the IDE, a first authentication scheme for the first resource method, wherein the first authentication scheme defines an authentication mechanism required during execution of the first resource method to enable interaction with the first resource; and determining, by the IDE, a development language for generating a first authentication code; selecting, by the IDE, a language-specific code template from a plurality of language-specific code templates listed in the first authentication scheme based on the development language, wherein selecting the language-specific code template comprises: obtaining an artifact identifier for an artifact from the first authentication scheme, wherein the artifact corresponds to an authentication mechanism defined in the first authentication scheme; and selecting the language-specific code template from the first authentication scheme using the artifact identifier and the development language; and generating, by the IDE and in response to the selection, a first authentication code for the first resource method using the language-specific code template, wherein the first authentication code enables the user of the IDE executing the first resource method to interact with the first resource.