I have a WCF web service method that returns a List<> object and also has an out variable in its method signature as in code below. Will this work with a Java client? I am trying to create Java compatible web services. My concern is the out variable as I know the return type of List<> will be accepted by Java since ‘Contract’ class is simply a class with integer or string properties.
List<Contract> GetContractsWithcount(out int totalCount, string contractSearchText, int startRowIndex, int maximumRows)
The short answer is the out keyword won’t work in Java but see the following link for an example of a workaround that may work.
Does Java have something like C#'s ref and out keywords?