I’m trying to get a simple WCF application work with Java Client. Service exposes few simple operations using WSHttpBinding, which it does perfectly.
Now, due to some reason (probably due to incomplete WS-* specifications at Java side) it seems impossible to generate a Java Client for this WCF service hosted on remote system.
However, everything works fine when used with basicHttpBinding.
If you successfully use or have implemented WCF (wsHttpBinding) where it was interoperable with Java/Non WCF client?
What are you using in Java to generate the client? Not all frameworks are created equal. :) According to this post here, you will need to use WSIT.
We have seen issues related to WCF/Java. Basic binding in WCF creates WSDL ver 1.1 while other bindings use 1.2 if my memory servers me correctly.
We have also seen issues that can occur if you reuse the message contract.
Testing the WCF service from XML Spy is a good way to catch such errors.
Related
Currently I succeed to create an Ubuntu virtual machine and install Hadoop, Zookeeper and Accumulo.
Now I need to create a test ASP.NET MVC application that reads and writes data to the Accumulo.
I've been looking around for .NET clients or some kind of rest API but my searches where unsuccessful. Any snippet I could find was in Java.
So one of the options I am considering at the moment is to convert Java client into .NET library using IKVM.NET.
So my question are
Is there any .NET provider for Apache Accumulo?
If no provider, does it expose some kind of REST API to program against?
If no REST what is the endpoint that I could use (and documentation links if possible) to create .NET provider myself?
Is converting Java lib a good idea?
Accumulo has a couple of ways to connect through Thrift, which you should be able to use .NET.
In 1.5, there is something called Proxy, a separate service that handles connections, that handles connections and has a thrift interface.
There is some code for using Thrift against 1.4, but I don't think it is well documented. It's there somewhere, though!
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.
I’m new to the concept of web services and I’m currently working on a project where I need to retrieve some data from an external application via SOAP.
This application provides an RPC encoded WSDL. I’m currently finding it very difficult to create a client for this service in Java due to RPC being superseded.
The closest I’ve got so far is using JAX-RPC but every time I try to run the ws-compile programme I get an error which states “error code to large”.
I have researched on AXIS 2, and tried to compile it’s WSDL2JAVA but due to RPC encoding I keep getting exception on all the data binding methods.
I was wondering if I can have some advice or a guide on generating Java Clients from RPC encoded WSDLs. What are the steps? What should I consider before I even try to write the client?
I’m currently using netbeans 6.9.1
If you are trying to generate the client stub from the wsdl url, then follow this
Thank you
Do I have been writing a java application, application is a console application.
Now, I want my application to listen to request at a port coming from web application and process those request and affect DB data.
I am not sure how to do it in a simple java project. Can I use some java webservices, and how?
Socket programming in Java is quite nice - a Socket is an abstraction that listens for data coming in on a single port from a single web address or server and can also send out.
http://zerioh.tripod.com/ressources/sockets.html
Note that listening for data blocks program flow.
Most likely you're looking at learning Java Servlet programming. There are a lot of good resources to learn from.
However, from my experience something like Netty could serve you really well from both learning and actual application development perspectives. The site contains very reasonable example driven documentation, which takes user from non-blocking TCP/IP programming to HTTP support.
Yes , web service API (JAX-WS 2.0) is added to the Java SE 6. You can use these API to create a simple web service for the Java SE application.
See the section "Using JAX-WS 2.0 to Create a Simple Web Service" for the example .It shows how to create a standard web service end-point using JAX-WS 2.0 for the Java SE application.
Beside , this 5 minutes tutorial is very good at introducing JAX-WS .It includes the demo for implementing the web-service end-point and client and provide the eclipse project source code to download too. Please note that it misses the step to use wsgen to generate the service classes for the WebService end-point ,but it is not so difficult to figure out how to use wsgen
I need to "dive into JAX-WS programming".
So, I played around with Netbeans, after 20 or so erroneous attempts,
finally managed to let a web service client execute a web service.
I noticed, that a lot of code is generated, especially JAXB classes
for the web service response.
My current task is, to write a web service and web client completely
by hand.
Is JAXB required at all? Is is part of the standard anyway? What would happen without it?
EDIT:
Seems that the answer is given here
You can see Developing Web Services with Java 2 Platform, Enterprise Edition (J2EE) 1.4 Platform
I took a wsdl and used eclipse to generate the service, serviceLocator, ws interface, ws binding stub, ws proxy, and then the client code. I added a main method and was able to hit the webservice successfully.
I used this tutorial as a guide with the url below and no, there are no jaxb objects as I'm not pulling any objects back in the simple example I used. I was just hitting some methods that pulled back a boolean value.
http://px.pats.no/px/Eclipse_tutorial.html