Method Name


GenerateSentences


Summary


Web method that generates a set of random sentences.


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


Parameters


minNumSentences

       Type: Integer

       Minimum number of sentences to generate.

       Valid Values:

        Integer greater than zero (0)...


maxNumSentences

       Type: Integer

       Minimum number of sentences to generate..

       Valid Values:

        Integer greater than or equal to minNumSentences.

       


Return Value


Type: String

String containing the list of generated sentences.


Example


URL


http://pfrandomtextwebservice.azurewebsites.net/TextGenerator.asmx/GenerateSentences?minNumSentences=3&maxNumSentences=5

       

C#


       //Test endpoint address for ServiceReference1:

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


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


       public string GenerateSentences(int minNumSentences, int maxNumSentences)

        {

string result = string.Empty;


result = serviceClient.GenerateSentences(minNumSentences, maxNumSentences);


return result;


        }