GDICommander 54 Posting Whiz in Training

Check gSOAP. You can generate web service client or server code.

http://www.cs.fsu.edu/~engelen/soap.html

Ancient Dragon commented: thanks for that link :) +36
GDICommander 54 Posting Whiz in Training

What are you trying to do with the Salary method of SalesReport? You want to modify the array passed as a parameter? Or you want to compute a total salary from the sales received? If you want to modify the array passed as a parameter, you're doing it with the code you already have...

Maybe you want to do this instead:

int SalesReport::Salary(int sales[])
{
    int arraysize = sizeof(sales);
    int i = 0;

    int total = 0;

    while (i <= arraysize)
    {
        total += (sales[i]* .09) + 200;
        i++;
    }

    return total;
}

...and the type conversion error will banish. For you information, sales is an "int array" (int[]) and you try to return an "int", so there is an incompatibility. Maybe you want to return the array (a pointer on it - int*), but I doubt that this is what you want.

For the "illegal elses", you need to put i++ at the same indent level of each line that follows "if" and "else if". But I suggest that you use a for loop and place the i increment inside, so you won't need to put i++ for each condition:

for (int i = 0; i <= arraysize; i++)
{
  //Do your conditions.
}

And for cout and endl, they belong to the std namespace, so you need to write std::cout and std::endl OR put at the beginning of your code:

using namespace std;

Hope this helps with your understanding of C++!

GDICommander 54 Posting Whiz in Training

I found the solution for my problem. I forgot to add the Xerces libraries to one of my test projects of my Visual Studio studio. I also added the /bin directory of Xerces in the PATH environment variable to be able to use the .dlls.

I hope that this may help someone in the future.

Salem commented: Nice - and good job :) +18
GDICommander 54 Posting Whiz in Training

This site helped me a lot to understand the design patterns:

http://sourcemaking.com/design_patterns