Method Name


GenerateWords


Summary


Generates series of random words. Various types of words can be generated.


See Resources for examples of applications that access this web method.


Parameters


wordType

       Type: String

       Type of word to generate.

       Valid Types:

        Valid Word Types

       

numWords

       Type: Integer

       Number of words to include in the generated list..

            Valid values:

        Greater than zero (0).


Return Value


Type: String

String containing the list of generated words.


Example


URL


http://pfrandomtextwebservice.azurewebsites.net/TextGenerator.asmx/GenerateWords?wordType=Noun&numWords=10

       

C#


       //Test endpoint address for ServiceReference1:

       //     http://pfrandomtextwebservice.azurewebsites.net/textgenerator.asmx


       TestWebServiceApp.ServiceReference1.TextGeneratorSoapClient serviceClient = new  ServiceReference1.TextGeneratorSoapClient();


        public string GenerateWordsTest(string wordType, int numWords)

        {

string result = string.Empty;


result = serviceClient.GenerateWords(wordType, numWords);


return result;


        }