Hi, I'm trying to pass primitive data types such as int and double from WSAD written in Java, and receiving the input in c# at the Visual Studio .NEt platform. besides String and bollean data types I get an error regarding the data type which references to an unknown data type. does any body know why other primitive data types are not applicable?
Yair, Did you build a java bean proxy and test your WSAD webservice using the Universal Test Client? If so, did everything work up to that point? If not, give that a try first to eliminate potential issues prior to calling/receipt in another platform. Byron
How did you build the proxy in .NET? Did you use WSDL.EXE? How did you get that to work given that the wsdl produced by WSAD is broken up into multiple files? Did you manually put them together? Regards,
I had an opportunity to test a WSAD webservice by calling it from a .NET ASP Web Application. My WSAD webservice returned a value object ("complex" data type) which included a String and an int. I compiled the proxy using the MS WSDL.exe utility. Only "trick" was to make sure you give it all the wsdl file fragments generated by WSAD including any xsd files you have for a complex data type. Now, to be clear, I generated vb not C#...if I get a chance maybe I'll create a C# version and see if that has any problems. When I ran it, the .NET client/website had no problem reading the WSAD webservice. I've played with passing various return types including (primatives: boolean, int, double, float, short and objects: String, user defined complex data types....I've also used arrays of Strings and ints as return values).