Return-Path: X-Original-To: apmail-axis-c-user-archive@www.apache.org Delivered-To: apmail-axis-c-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 63AF411276 for ; Mon, 24 Mar 2014 15:20:40 +0000 (UTC) Received: (qmail 77018 invoked by uid 500); 24 Mar 2014 15:20:40 -0000 Delivered-To: apmail-axis-c-user-archive@axis.apache.org Received: (qmail 74099 invoked by uid 500); 24 Mar 2014 15:20:25 -0000 Mailing-List: contact c-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache AXIS C User List" Delivered-To: mailing list c-user@axis.apache.org Received: (qmail 72546 invoked by uid 500); 24 Mar 2014 15:20:20 -0000 Delivered-To: apmail-ws-axis-c-user@ws.apache.org Received: (qmail 72213 invoked by uid 99); 24 Mar 2014 15:20:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Mar 2014 15:20:18 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of scarleton@gmail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-ob0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Mar 2014 15:20:12 +0000 Received: by mail-ob0-f176.google.com with SMTP id wp18so5912095obc.35 for ; Mon, 24 Mar 2014 08:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=2Omy8w8v8EzGPwBelht9klx0PRZPyHKcz/6cIFzl1Zw=; b=p+7uAIymapj3phRqMLHz0dlj5PNSf0t4Ezk3VC/Ntbb8OymAQKL7CCHjLLrM8OP2pb xrPUWRQmxK50Z8TY6ESZIrpNMzPuU1E9n5166DI0UHVvVexAP+NsjaYaQIKxQjuyMw4z bZ+mSB+LU5bzRCR1jTkjQXF0HYoQ3sAtZlCAE/ug0/b7S11AeUv4+Y+eewFSAxTLdWeL DN5VdApFxVQIwhP/cWnFiy/923iGKWvFLyNgZSsKwr+FUQPPu7fxqMGEIYuyDyg18Md6 XKy9Jmrt2c9lxW0k7qKwJZ+BDiB4Ra2/PcXBH4al5F8dgeLdUolsGml471gnqPtP7Hc7 PXDw== MIME-Version: 1.0 X-Received: by 10.183.3.102 with SMTP id bv6mr27431948obd.18.1395674390456; Mon, 24 Mar 2014 08:19:50 -0700 (PDT) Received: by 10.76.99.139 with HTTP; Mon, 24 Mar 2014 08:19:50 -0700 (PDT) Date: Mon, 24 Mar 2014 11:19:50 -0400 Message-ID: Subject: RESTful support From: Sam Carleton To: Apache AXIS C User List Content-Type: multipart/alternative; boundary=001a1134a45c44375904f55bc463 X-Virus-Checked: Checked by ClamAV on apache.org --001a1134a45c44375904f55bc463 Content-Type: text/plain; charset=UTF-8 I have been using Axis2/C for years with SOAP interface. I need to start looking at adding a RESTful interface to my application. From what I read on the web site, I can simply change the service.xml. But I have also seen some emails about when will 1.7 be release that fixes RESTful support. Is there RESTful support? If so, can I use my existing SOAP code and change the service.xml? If I can, how do I do it? Here is one example of my soap interfaces: service.xml: urn:mmpp:cartManager/getSlideImage I am thinking I want to use something like this: GET getNextSlideImage/{time} Here is the WSDL request/responce for the operation: --001a1134a45c44375904f55bc463 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I have been using Axis2/C for years with SOAP interface.= =C2=A0 I need to start looking at adding a RESTful interface to my applicat= ion.=C2=A0 From what I read on the web site, I can simply change the servic= e.xml.=C2=A0 But I have also seen some emails about when will 1.7 be releas= e that fixes RESTful support.

Is there RESTful support?=C2=A0 If so, can I use my existing SOAP code = and change the service.xml?=C2=A0 If I can, how do I do it?=C2=A0 Here is o= ne example of my soap interfaces:

service.xml:

=C2=A0=C2=A0= =C2=A0 <operation name=3D"getSlideImage" mep=3D"http://www.w3.org/2004/08/wsdl/i= n-out">
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <parameter name=3D"wsamapping"&= gt;urn:mmpp:cartManager/getSlideImage</parameter>
=C2=A0=C2=A0=C2= =A0 </operation>

I am thinking I want to use something like th= is:

=C2=A0=C2=A0=C2=A0 <operation name=3D"getNextSlideImage&= quot;>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <parameter name=3D"RESTMethod"&= gt;GET</parameter>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <parameter na= me=3D"RESTLocation">getNextSlideImage/{time}</parameter>=
=C2=A0=C2=A0=C2=A0 </operation>

Here is the WSDL request/r= esponce for the operation:

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <xsd:element name=3D"getSlideIma= ge">
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <xsd:complexT= ype>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <xsd:s= equence>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 <xsd:element name=3D"time" type=3D"xsd:string"= ; nillable=3D"true"></xsd:element>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </xsd:sequence>= ;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </xsd:complexType>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </xsd:element>

=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 <xsd:element name=3D"getSlideImageResponse">= ;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <xsd:complexType>
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <xsd:sequence>=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <xsd:= element name=3D"out" type=3D"tns:imageDTO" nillable=3D&= quot;true"></xsd:element>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 </xsd:sequence>
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 </xsd:complexType>
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 </xsd:element>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <xsd:complexType name=3D"imageDT= O">
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <xsd:sequence&= gt;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <xsd:eleme= nt name=3D"folderId" type=3D"xsd:string" />
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <xsd:element name=3D= "imageId" type=3D"xsd:string" />
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <xsd:element name= =3D"time" type=3D"xsd:string"/>
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 </xsd:sequence>
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 </xsd:complexType>
--001a1134a45c44375904f55bc463--