cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colbert Philippe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-7120) Can CXF REST sync and async WS compatible with JavaScript client?
Date Thu, 03 Nov 2016 17:13:59 GMT

    [ https://issues.apache.org/jira/browse/CXF-7120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15633497#comment-15633497
] 

Colbert Philippe commented on CXF-7120:
---------------------------------------

I understand what you are saying.   You are saying that the client can be written in any language.
  It's easily said but difficult to imagine in reality.

What I am saying is that your organization, Apache CXF, should provide code-snippets of dynamic
languages, such JavaScript, Python, clients of the web-service implemented in CXF.   The asynchronous
case of web-service is particularly hard to imagine in JavaScript or other dynamic languages.
 Your help would be greatly appreciated.

Here is an example I picked from your website.

/* Generated by WSDLToJava Compiler. */
package org.apache.hello_world_async_soap_http;
...
import java.util.concurrent.Future;
import javax.xml.ws.AsyncHandler;
import javax.xml.ws.Response;
...
public interface GreeterAsync {
 
  public Future<?> greetMeSometimeAsync(
    String requestType,
    AsyncHandler<org.myorg.types.GreetMeSometimeResponse> asyncHandler
  );
 
  public Response<org.myorg.types.GreetMeSometimeResponse> greetMeSometimeAsync(
     String requestType);
 
  public java.lang.String greetMeSometime(
     String requestType
  );
}

Can you give a code-snippet in JavaScript that will consume this service?

> Can CXF REST sync and async WS compatible with JavaScript client?
> -----------------------------------------------------------------
>
>                 Key: CXF-7120
>                 URL: https://issues.apache.org/jira/browse/CXF-7120
>             Project: CXF
>          Issue Type: Wish
>          Components: JAX-RS
>            Reporter: Colbert Philippe
>            Priority: Critical
>              Labels: async, asynchronous, javascript, jscript, perl, python, ruby, sync,
synchronous
>
> When writing a real web application the client is likely going to be written in JavaScript
in a web-browser and if the server uses CXF then it's in Java.   I think it's the case for
a vast majority of CXF users.
> 1)  QUESTION:  Can we write a synchronous web service using CXF JAX-RS (REST) in Java
and invoke it from JavaScript?   Are there any features that are not supported by JavaScript?
> 2)  QUESTION:  Can we write an asynchronous web service using CXF JAX-RS (REST) in Java
and invoke it from JavaScript?   Are there any features that are not supported by JavaScript?
> I think many of us would appreciate a chapter in the documentation that talks about scenarios
when using different languages as clients, JavaScript is one, but the client could as well
be in Python, Ruby, Perl.    You should recommend frameworks from other languages that have
been tested to work with CXF.    Please, cover both the synchronous and asynchronous case.
  A compatibility table should be given to out all client frameworks that have been tested
to work with CXF.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message