i have develop web service in c# .net. declare methods as:
public interface iservicemeinmedicusapp { [operationcontract] [webinvoke(responseformat = webmessageformat.json, method = "post", bodystyle = webmessagebodystyle.wrappedrequest, uritemplate = "getparamn/value")] string getparamn(int value); }
i have java client generated according provided wsdl. in java client access web service methods calling equivalent java methods.
my question is: how web service , web client doing json serialization. access web service sending simple json format proper address? should provide him, kind of format should data in json , should sent?
what should provide him, kind of format should data in json , should sent?
it's either client generated wsdl, or manual solution. rest doesn't metadata, consumer won't know operations , 'data contracts' available.
getting java consume wcf wsdl , vice versa isn't straightforward, still easier manually creating strongly-typed rest client. please correct me if i'm wrong.
you can perhaps capture requests using fiddler, inspect client sends service. can extract data , url format show other developers want access service.
Comments
Post a Comment