This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes passing primitive data types via webservices using WSAD and VisualStudion .NET Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "passing primitive data types via webservices using WSAD and VisualStudion .NET" Watch "passing primitive data types via webservices using WSAD and VisualStudion .NET" New topic
Author

passing primitive data types via webservices using WSAD and VisualStudion .NET

Yair Ogen
Greenhorn

Joined: Feb 12, 2003
Posts: 29
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?


Regards,<br /> <br />Yair Ogen
Byron Estes
Ranch Hand

Joined: Feb 21, 2002
Posts: 313
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


Byron Estes<br />Sun Certified Enterprise Architect<br />Senior Consulant<br />Blackwell Consulting Services<br />Chicago, IL<br /><a href="http://www.bcsinc.com" target="_blank" rel="nofollow">www.bcsinc.com</a>
Byron Estes
Ranch Hand

Joined: Feb 21, 2002
Posts: 313
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,
Byron Estes
Ranch Hand

Joined: Feb 21, 2002
Posts: 313
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).
Byron Estes
Ranch Hand

Joined: Feb 21, 2002
Posts: 313
...char does not work as a primative. I think byte is supposed to work, but I had some problems with that one.
 
wood burning stoves
 
subject: passing primitive data types via webservices using WSAD and VisualStudion .NET
 
Similar Threads
== and .equals()
wrapper classes
oops concepts #2
is Date a datatype ????
type casting