So I’d like to connect a wpf c# client to a java backend via web services.
I have a few questions regarding this and I am a bit new to web services so please bear with me..
-
Would I be using a wcf web service or would it most likely be a java construct (and if so which one?)
-
Would I be using soap or rest? i know this is a big topic but I’m just looking for which one would most likely be used.
-
Lastly, would I be able to run java methods via my c#? for example say I have a method that lives on the server called called “Customer GetCustomer(int id);” … would i be able to call this method in my c# client? And how would the customer come back would it come back as xml and then I’d have to parse this xml and build a Customer object on the client side? meaning, would I have a duplicated class definition on both the server and client, or would I somehow share the same Customer reference?
Thanks in advance!
Expose a SOAP service from your Java backend, and access it using WCF. Easy and painless
SOAP is easier, and requires less work when you use WCF.
Yes. SOAP allows you to define ComplexTypes which would represent your classes, so the C# mappings would be pretty much the same as your Java ones.
I would recommend reading up about SOAP and WebServices in general, that should answer a lot of your questions.