Hi,
I'm absolutely new to web service and have a kinda basic question about java .net interoperability. Hope this is the right place to ask.
I have this very simple java webservice:
package weird;
public class Weird {
public double getD(double d)
{
return d;
}
}
I have a java client and it works fine.
Then I used the .NET wsdl tool to create a C# proxy from the wsdl and I created a c#.net client to consume it.
I ended up having a client like this (which does work):
Weird q = new Weird();
double extraDouble;
bool extraBool;
q.getD(10, true, out extraDouble, out extraBool); // the getD signature is getD(double, bool, out double, out bool)
Console.WriteLine("10 is " + strangeDouble);
My question is:
Did I mess up somewhere that caused the proxy to have such a bizzare stub method for such an simple operation
of passing and returning a simple datatype (double)? since I expected .NET to have an intuitive way of doing thing.
I can see that the extraDouble is passed as reference to capture the return value,
but what on earth the 2 boolean variables are supposed to do there?
I'd greatly appreciate if anyone'd give me some explanation why this is the case; or that it is just the (dirty) way it works.
Thanks a lot.