WCF and Java interoperability - java

What is supported out of the box with a Java Client talking to WCF service version 4.0.
What protocols, bindings and security features are not supported (limitations if any).

It all depends on the capabilities of the Java SOAP toolkit you are using (Metro, etc). As long as the Java side support SOAP you should be able to use BasicHttpBinding no problem - you will be able to use Transport security and maybe TransportWithMessageCredential
If the Java toolkit supports WS-Security then you should be able to use WSHTTPBinding with message security.
There are not many toolkits that support WS-ReliableMessaging and WS-AtomicTransaction so you are unlikely to be able to use these
WCF can be used to expose a RESTful service and all Java needs then is the ability to use HTTP and XML/Json. For this you would use webHttpBinding

WCF is a .NET framework for providing standards-compliant web services. If your WCF service is exposed over Http as SOAP or REST then, as far as your Java code is concerned, it's just a regular web service.

Related

How to create web client for wshttpbinding WCF service in eclipse

I am a .net developer.I had created a WCF service having wshttpbinding.I want to consume this in a java application using eclipse. please provide suggestion or any other way to create client for WCF service having wshttpbinding in Java.
Netbeans Eclipse does not provide drag and drop features for WCF services using wshttpbinding security. If you really want to create a client for the same, you have to write your own classes which can adhere to wshttpbinding security protocols
Besides, I hope the link below can help you tremendously :
http://www.codeproject.com/Articles/777036/Consuming-WCF-Service-in-Java-Client

SOAP/HTTP + WSDL as a contract. What about JAX-WS?

I'm a newbie to webservice, and I've read this chapter (and some other articles) to get an idea about SOAP. Sad, I couldn't find the next chapter about WSDL in java.net.
Anyway, let's suppose I need to implement SOAP 1.1/HTTP 1.1.
The used "contract" to exchange information is WSDL.
So, in order to create webservices provider :
What would be the role of JAX-WS?
Would it be needed or is it an alternative to WSDL?
If needed, shall we combine it with ( SOAP/HTTP + WSDL)?
What would be the role of JAX-WS in this combination?
Could it be replaced by JAX-RPC (or by something else)?
Is JAX-WS cross-platform or only specific to Java?
If moving to another platform, such as C or C++ or Python, would we be able to use JAX-WS if needed to be combined?
Talking C#,.Net... Is JAX-WS similar to WCF?
Thank in advance :)
SOAP and HTTP are message protocols. JAX-WS is the implementation in java for generating these messages. It handles all the low level details of converting java objects to SOAP messages, generating java classes based on WSDL and XSDs. JAX-WS is used for creating SOAP based as well as Rest based messages. It is the underlying technology that handles the messages on both client and server side. JAX-WS implementation is based on WSDL and SOAP standards. It is java specific.
I am not aware of what WCF is.
SOAP 1.1/HTTP 1.1.
SOAP(XML based Message protocol) over HTTP(Transport Protocol)
The used "contract" to exchange information is WSDL
Everyone wants to define their own way and framework to describe their webservice. So Microsoft has created contracts for WCF framework.The content of the WSDL document defines the contract of the web service for ex. service, data, fault, message contracts. RIP developers.
What would be the role of JAX-WS?
JAVA API for XML based web services. Use to create soap based webservice provider. It uses annotations.
Would it be needed or is it an alternative to WSDL?
JAX-ws is a framework or API.It is an alternative to WCF, you can say not WSDL. WSDL is a document which describes your webservice in XML format.
If needed, shall we combine it with ( SOAP/HTTP + WSDL)?
What would be the role of JAX-WS in this combination?
JAX-WS can implement SOAP/HTTP based webservice. USing JAX WS, you can generate WSDL which will describe your defined service implementation.
Could it be replaced by JAX-RPC (or by something else)?
yes, JAW-RS would also work.
Is JAX-WS cross-platform or only specific to Java?
JAX_WS is only specific to java. But you can design/implement webservice using JAX-ws which would be cross-platform.
If moving to another platform, such as C or C++ or Python, would we be able to use JAX-WS if needed to be combined?
You can use jax ws implemented webservice provider to interact with any other language based webservice client.
Talking C#,.Net... Is JAX-WS similar to WCF?
JAX-WS, WCF both are framewrok to implement webservice in java, .net respectively.
Note: You are quite confused between language, framework, protocol, implementation methods etc. Your questions are very ambiguous. Keep Learning.

How to know if a WCF is compatible with java (without having the code)

I have a WCF webservice that i should use from a java client.
I never worked with WCF or webservices, so how do i know first if it is written in a way compatible with java client(if i can know from the wsdl for example).
When generating the client from Eclipse. i get MyWcfServiceLocator and MyWcf. MyWcf has no methods
Thank you
You should be just working with the provided wsdl and the the endpoint associated for the same. You really need not bother about the server side implementation, it will definitely cater to the wsdl provided.
To enable non WCF clients the WCF service should expose the endpoint over basicHttpBinding which is the binding provided by microsoft for maximum interoperability. If the endpoint is exposed over wsHttpBinding (which is kind of a default IIRC) this could cause you some problems.

Web Services Interoperability

I have few fundamental questions
Question#1
With WCF you can expose a service as HTTP/TCP/MSMQ binding
Similar to this do we have any equivalent solution in Java platform for exposing service with different bindings
Question #2
i have worked on .NET 2.0 ASMX service and consumed the same using .NET client
What are interoperability aspects that we need to consider if I need to consume this service with Java client
Question #1:
WCF can expose service on multiple transports but only HTTP(S) is interoperable
Java APIs also can expose SOAP service over different transport. For example SOAP services can be exposed over JMS. JAX-WS has extensibility points to provide custom transports. It is all about APIs because SOAP is independent on the transport (in contrast to REST which works only over HTTP).
Question #2:
ASMX services can conform to WS-I Basic Profile 1.1 which is considered as interoperability minimum. I guess all Java SOAP APIs can consume these services.

What is the Java EE framework for web services?

I would like to build a server with web services using Java EE, but I don't know which is the best Java EE framework.
Important to me are interoperability, performance, security and changeability.
P.s.
My server will not be used for a website, but it will be used to distribute applications (for mobile).
JAX-WS, JAX-RS, JAXB
There are numerous java API for the web services. The varies depends on the data handling formats;
1. SOAP
2. RESTful web services, which is commonly used i.e. JAX-WS and JAX-RS
But mostly used web service is Restful...

Categories

Resources