• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 313
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
So it takes a day for light to pass through this glass? So this was yesterday's tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic