Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WCF being consumed by Linux client: what datatypes are safe to return?

Status
Not open for further replies.

DayLaborer

Programmer
Jan 3, 2006
347
US
I'm writing a WCF service that will called by a Linux client. Can I return "complex"/custom datatypes? For example, can I return a "BigFatobject" type that contains other objects like a String, an Image, and a Guid? I know, of course, I need to define these in the WCF's interface with the DataContract and DataMember tags. But once I do that, can I just return such complex objects and it will get translated?

If not, what types are safe? I have been Googling for the longest time and I cannot find a clear explanation of the "rules" on how to design my WCF service so it's appropriate for consumption by a Linux client...

Thanks,
Eliezer
 
...and a follow-up question to that one:

What "contract" do I need to provide to the owner of the Linux client in order to arrive at an understanding that my WCF services have an appropriate interface for their needs? I used to think it was sufficient to email them the WSDL alone, but I looked at my WSDL and didn't see any of the input parameters to my methods at all. So apparently, a WSDL will not be self-explanatory.

What is?

Thanks again,
Eliezer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top