-1

Further extending the question:

C# List<object>

public class SampleInformation
{
    public string Nutrient { get; set; }
    public decimal NutrientTotal { get; set; }
    public int NoSamples { get; set; }
    public decimal Average { get; set; }
    public decimal StandardDeviation { get; set; }
    public decimal CoVariance { get; set; }
    public decimal PSD { get { return Average + StandardDeviation } }
    public decimal NSD { get { return Average - StandardDeviation } }
}

The above class calculates average, SD, CoVar, etc. The above class gaves me output as:

Nutrient | Average | # Samples | SD | CoVar

I would like to extend the above to and bind it to a list

Nutrient | Average | # Samples | SD | CoVar | Item1 | Item2 | ...
XXX | Average | # Samples | SD | CoVar | Value for XXX for item 1 | Value for XXX for item 2 | ...
yyy | Average | # Samples | SD | CoVar | Value for YYY for item 1 | Value for YYY for item 2 | ...

Any quick help ?


The soap action is not necessarily required to call a web service...it depends on the implementation of operation selection algorithm (could, for instance, use the makeup of the request body). However, if the generated eclipse code is using annotations, you should be able to specify the desired soap action for the method in question using the @WebMethod annotation 'action' attribute, as in @WebMethod(action="MyAction"). You can find a bit of documentation at this address: http://pic.dhe.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=%2Fcom.ibm.websphere.wsfep.multiplatform.doc%2Finfo%2Fae%2Fae%2Frwbs_jaxwsannotations.html If this does not help, please post the relevant code to provide additional context.

4

1 に答える 1

0

次の方法で SampleInformation オブジェクトのリストを作成します。

List<SampleInformation> sampleList = new List<SampleInformation>(); //Creates the list
SampleInformation sample = new SampleInformation(); //Your object
sampleList.Add(sample); //Add your object to the list

これはあなたが探しているものですか?

于 2012-05-28T06:23:25.727 に答える