C# & Java Web Service Integration -


i have c# application should integrate java application , client recommends using web services. c# web service called java application. best option me use maintain data transformation between c# web service , client's java application , 1 let me send , receive complex data types:

  1. using asp web services
  2. using wcf (basichttp binding)
  3. using wcf (webhttp binding)

webhttpbinding (see here):

defines binding element used configure endpoints windows communication foundation (wcf) web services respond http requests instead of soap messages.

so more rest style http requests

basichttpbinding (see here):

represents binding windows communication foundation (wcf) service can use configure , expose endpoints able communicate asmx-based web services , clients , other services conform ws-i basic profile 1.1.

so depends on kind of services endpoints c# service exposing. if going expose rest style endpoints, use webhttpbinding. otherwise if exposing soap protocol based webservices asmx endpoint use option #1 or option #2

if exposing .asmx endpoint wsdl should available via request http://yourdomaine.com/serviceuri.asmx?wsdl (example :here). can provide wsdl apache cxf wsdl java (see here). description says:

wsdl2java takes wsdl document , generates annotated java code implement service. wsdl document must have valid porttype element, not need contain binding element or service element. using optional arguments can customize generated code. in addition, wsdl2java can generate ant based makefile build application.

see link full list of options use.

so, appropriate options generate necessary java classes data interchange (complex types) service invocation classes wrapped business services.

hope helps


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -