Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Yair Ogen
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Byron Estes
Ranch Hand
Posts: 313
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 313
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 313
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 313
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...char does not work as a primative. I think byte is supposed to work, but I had some problems with that one.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic