Return-Path: X-Original-To: apmail-axis-java-user-archive@www.apache.org Delivered-To: apmail-axis-java-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 F3235FD8C for ; Fri, 3 May 2013 13:42:29 +0000 (UTC) Received: (qmail 6827 invoked by uid 500); 3 May 2013 13:42:28 -0000 Delivered-To: apmail-axis-java-user-archive@axis.apache.org Received: (qmail 6534 invoked by uid 500); 3 May 2013 13:42:28 -0000 Mailing-List: contact java-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@axis.apache.org Delivered-To: mailing list java-user@axis.apache.org Received: (qmail 6517 invoked by uid 99); 3 May 2013 13:42:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 May 2013 13:42:27 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of RManz@amadeus.com designates 195.245.230.163 as permitted sender) Received: from [195.245.230.163] (HELO mail1.bemta3.messagelabs.com) (195.245.230.163) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 May 2013 13:42:20 +0000 Received: from [195.245.230.131:40815] by server-3.bemta-3.messagelabs.com id 02/82-28331-7AEB3815; Fri, 03 May 2013 13:41:59 +0000 X-Env-Sender: RManz@amadeus.com X-Msg-Ref: server-16.tower-78.messagelabs.com!1367588519!28601109!1 X-Originating-IP: [193.23.186.180] X-StarScan-Received: X-StarScan-Version: 6.8.6.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 5182 invoked from network); 3 May 2013 13:41:59 -0000 Received: from mucsmtp2.amadeus.net (HELO mucsmtp2.amadeus.net) (193.23.186.180) by server-16.tower-78.messagelabs.com with RC4-SHA encrypted SMTP; 3 May 2013 13:41:59 -0000 In-Reply-To: <1367587808.94581.YahooMailNeo@web162802.mail.bf1.yahoo.com> References: <1366837865.5208.YahooMailNeo@web162802.mail.bf1.yahoo.com> <1366990793.99217.YahooMailNeo@web162801.mail.bf1.yahoo.com> , <1367587808.94581.YahooMailNeo@web162802.mail.bf1.yahoo.com> To: java-user@axis.apache.org MIME-Version: 1.0 Subject: Re: ReST with Axis2 X-KeepSent: 700310AB:23970C5F-00257B60:004B2AD3; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.1 FP2 March 18, 2010 Message-ID: From: Roman Manz Date: Fri, 3 May 2013 13:41:53 +0000 X-MIMETrack: S/MIME Sign by Notes Client on Roman Manz/MUC/AMADEUS(Release 8.5.1 FP2|March 18, 2010) at 03-05-2013 15:41:54, Serialize by Notes Client on Roman Manz/MUC/AMADEUS(Release 8.5.1 FP2|March 18, 2010) at 03-05-2013 15:41:54, Serialize complete at 03-05-2013 15:41:54, S/MIME Sign failed at 03-05-2013 15:41:54: The cryptographic key was not found, Serialize by Router on MUCSMTP2/MUC/AMAEXTMAIL(Release 8.5.3FP2 HF23|July 24, 2012) at 05/03/2013 01:41:59 PM, Serialize complete at 05/03/2013 01:41:59 PM Content-Type: multipart/alternative; boundary="=_alternative 004B3F5BC1257B60_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 004B3F5BC1257B60_= Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Hello Jack, you are completely right, looking forward, many thanks! Have a good weekend Roman From: Jack Sprat To: "java-user@axis.apache.org" Date: 03-05-13 15:30 Subject: Re: ReST with Axis2 I think Roman asked the question to use Axis2 with ReST. Roman - I was finally able to get a ReST web service request working with=20 Axis2 thanks to the help of Kishanthan. I need to test a bit more and=20 will reply with more information. Thanks, J =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F From: Martin Gainty To: "java-user@axis.apache.org" =20 Sent: Thursday, May 2, 2013 6:30 PM Subject: RE: ReST with Axis2 you're probably better off implementing a technology which supports REST=20 e.g. JAX-RS http://www.ibm.com/developerworks/web/library/wa-jaxrs/ Martin=20 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=20 Verzicht und Vertraulichkeitanmerkung/Note de d=E9ni et de confidentialit=E9 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene=20 Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte = Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht=20 dient lediglich dem Austausch von Informationen und entfaltet keine=20 rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von=20 E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F To: java-user@axis.apache.org Subject: Re: ReST with Axis2 From: RManz@amadeus.com Date: Thu, 2 May 2013 14:37:18 +0000 Hello Kishanthan,=20 I also play with this and I wonder if there is a document that describes=20 restful service implementations, preferably both wsdl1.1 and wsdl2.0. I am = happy for everything you have!=20 Many thanks=20 Roman=20 From: Kishanthan Thangarajah =20 To: "java-dev@axis.apache.org" , Jack=20 Sprat =20 Cc: "axis-user@ws.apache.org" =20 Date: 26-04-13 23:05=20 Subject: Re: ReST with Axis2=20 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F On Fri, Apr 26, 2013 at 9:09 PM, Jack Sprat wrote: = The ReST request looks like this: https://www.example.com/test2/services/TestService/echo?echoRequest=3Dping If this is the URL format that you are going to use with REST requests,=20 then you don't need wsdl 2.0. These kind of REST URL are supported by=20 default in axis2, with wsdl 1.1.=20 For example, if one of the method (say : add) takes two parameter as input = then the URL would be like,=20 https://www.example.com/services/CalculaterService/add?val1=3D23&val2=3D54 With wsdl 2.0 you can use URL format=20 like, https://www.example.com/test2/services/TestService/echo/ping, which=20 is equivalent to what you have mentioned, which is the true RESTful way=20 IMO.=20 So can you first try with normal approach and see?=20 The response returned is blank: =20 Can anyone tell me what may be wrong? =20 Not sure on why this is not working, but I can have look at this. Can you=20 create a jira and attach your service archive, which causes this behavior? = =20 Thanks,=20 Kishanthan.=20 Is ReST with Axis2 and WSDL 2.0 possible? I am trying to justify using=20 Axis2 here but will lose the fight if it will not work for ReST requests. Please feel free to contact me off-list. Thank you.=20 ----- Original Message ----- From: Jack Sprat To: "axis-user@ws.apache.org" Cc: Sent: Wednesday, April 24, 2013 5:11 PM Subject: ReST with Axis2 I've been struggling with Axis2 and ReST for a few days and hope someone=20 can help. I have created a version 2.0 WSDL for a very simple service and can=20 generate the code stubs using the wsdl2java command. In the WSDL I have 2 = bindings - 1 for HTTP and 1 for SOAP. SOAP requests work fine. All ReST=20 requests come back with a blank response. The AxisServlet class gets the=20 ReST request correctly as I see the query string captured in debug mode. =20 When the service class is called the request is blank. I can see this=20 while debugging. Do I need to do anything different in my service class for ReST requests? = What am I missing? Any help is GREATLY appreciated. I've included the WSDL below. Test WSDL 2.0 web service. Test WSDL 2.0 web service Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org For additional commands, e-mail: java-user-help@axis.apache.org IMPORTANT - CONFIDENTIALITY NOTICE - This e-mail is intended only for=20 the use of the individual or entity shown above as addressees. It may=20 contain information which is privileged, confidential or otherwise=20 protected from disclosure under applicable laws. If the reader of this=20 transmission is not the intended recipient, you are hereby notified that=20 any dissemination, printing, distribution, copying, disclosure or the=20 taking of any action in reliance on the contents of this information is=20 strictly prohibited. If you have received this transmission in error,=20 please immediately notify us by reply e-mail or using the address below=20 and delete the message and any attachments from your system.=20 Amadeus Data Processing GmbH=20 Gesch=E4ftsf=FChrer: Eberhard Haag=20 Sitz der Gesellschaft: Erding=20 HR M=FCnchen 48 199=20 Berghamer Strasse 6=20 85435 Erding=20 Germany --=_alternative 004B3F5BC1257B60_= Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Hello Jack,

you are completely right, looking fo= rward, many thanks!

Have a good weekend
Roman



From:     =    Jack Sprat <rexclaimer2@= yahoo.com>
To:     &n= bsp;  "java-user@axis.apache= .org" <java-user@axis.apache.org>
Date:     =    03-05-13 15:30
Subject:   &nbs= p;    Re: ReST with Axis2




I think Roman asked the question to use Axis2 with ReST.

Roman - I was finally able to get a ReST web service request working with Axis2 thanks to the help of Kishanthan.  I need to test a bit more and will reply with more information.

Thanks,
J


=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F
From: Martin Gainty <mgainty@hotmail.com>
To: "java-user@axis.apache.org" <java-user@axis.apache.org>
Sent: Thursday, May 2, 2013 6:30 PM
Subject: RE: ReST with Axis2




you're probably better off implementing a technology which supports REST e.g. JAX-RS

http://www.ibm.com/developerworks/web/library/wa-ja= xrs/

Martin
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
Verzicht und Vertraulichkeitanmerkung/Note de d=E9ni et de confidentialit= =E9

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaeng= er sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitu= ng oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirk= ung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftu= ng fuer den Inhalt uebernehmen.


=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F
To: java-user@axis.apache.org
Subject: Re: ReST with Axis2
From: RManz@amadeus.com
Date: Thu, 2 May 2013 14:37:18 +0000

Hello Kishanthan,

I also play with this and I wonder if there is a document that describes restful service implementations, preferably both wsdl1.1 and wsdl2.0. I am happy for everything you have!

Many thanks
Roman



From:        Kishanthan Thangarajah <kshanth2101@gma= il.com>
To:        "java-dev@axis.apache.org" <jav= a-dev@axis.apache.org>, Jack Sprat <rexclaimer2@yahoo.com>
Cc:        "axis-user@ws.apache.org" <axis= -user@ws.apache.org>
Date:        26-04-13 23:05
Subject:        Re: ReST with Axis2
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F






On Fri, Apr 26, 2013 at 9:09 PM, Jack Sprat <rexclaimer2@yahoo.com> wrote:
The ReST request looks like this:
https://www.example.com/test2/se= rvices/TestService/echo?echoRequest=3Dping

If this is the URL format that you are going to use with REST requests, then you don't need wsdl 2.0. These kind of REST URL are supported by default in axis2, with wsdl 1.1.

For example, if one of the method (say : add) takes two parameter as input then the URL would be like, 
https://www.example.com/services/CalculaterService/add?val1=3D23&v= al2=3D54

With wsdl 2.0 you can use URL format like, https://www.example.com/tes= t2/services/TestService/echo/ping, which is equivalent to what you have mentioned, which is the true RESTf= ul way IMO.

So can you first try with normal approach and see?



The response returned is blank:
<test:echoResponse xmlns:test=3D"
http://ws.example.com/test"; />

Can anyone tell me what may be wrong? 

Not sure on why this is not working, but I can have look at this. Can you create a jira and attach your service archive, which causes this behav= ior?  

Thanks,
Kishanthan.

Is ReST with Axis2 and WSDL 2.0 possible?  I am trying to justify using Axis2 here but will lose the fight if it will not work for ReST reque= sts.

Please feel free to contact me off-list.

Thank you.



----- Original Message -----
From: Jack Sprat <rexclaimer2@yahoo.com>
To: "axis-user@ws.apache.org" <axis-user@ws.apache.org>
Cc:
Sent: Wednesday, April 24, 2013 5:11 PM
Subject: ReST with Axis2

I've been struggling with Axis2 and ReST for a few days and hope someone can help.

I have created a version 2.0 WSDL for a very simple service and can generate the code stubs using the wsdl2java command.  In the WSDL I have 2 bindings - 1 for HTTP and 1 for SOAP.  SOAP requests work fine.  All ReST requests come back with a blank response.  The AxisServlet class gets the ReST request correctly as I see the query string captured in debug mode.  When the service class is called the request is blank.=   I can see this while debugging.

Do I need to do anything different in my service class for ReST requests?&n= bsp; What am I missing?  Any help is GREATLY appreciated.

I've included the WSDL below.


<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<wsdl:description xmlns:wsdl=3D"
http://www.w3.org/ns/wsdl";
    xmlns:wsoap=3D"
http://www.w3.org/ns/wsdl/soap";
    xmlns:soap=3D"
http://www.w3.org/2003/05/soa= p-envelope";
    xmlns:wsdlx=3D"
http://www.w3.org/ns/wsdl-exten= sions";
    xmlns:tns=3D"
http://ws.example.com/test";
    targetNamespace=3D"
http://ws.example.com/test<= /a>";>

    <wsdl:documentation>Test WSDL 2.0 web service.<= /wsdl:documentation>

    <!-- Define all types used in SOAP request/response here. -->
    <wsdl:types>
        <xsd:schema attributeFormDefault= =3D"qualified" elementFormDefault=3D"qualified" xmlns:xsd=3D"
http://www.w3.o= rg/2001/XMLSchema
"; xmlns=3D"http://ws.example.com/test"; targetNamespace=3D"http://ws.example.com/test";>

            <!-- General Fault -->
            <xsd:element name=3D"generalError" type=3D"xsd:string"/>

            <!-- Schema Validation Fault -->
            <xsd:element name=3D"schemaError" type=3D"xsd:string"/>

            <!-- Echo Reque= st Type -->
            <xsd:element name=3D"echoRequest" type=3D"xsd:string"/>
            <!-- Echo Respo= nse Type -->
            <xsd:element name=3D"echoResponse" type=3D"xsd:string"/>
        </xsd:schema>
    </wsdl:types>

    <!-- Interfaces -->
    <wsdl:interface name=3D"testInterface"><= br>         <!-- Faults -->
        <wsdl:fault name=3D"generalEr= ror" element=3D"tns:generalError" />
        <wsdl:fault name=3D"schemaErr= or" element=3D"tns:schemaError" />
        <!-- Echo operation -->
        <wsdl:operation name=3D"echo&= quot; pattern=3D"
http://www.w3.org/ns/wsdl/in-out"; wsdlx:safe=3D"true">
            <wsdl:input messageLabel=3D"In" element=3D"tns:echoRequest" />             <wsdl:output messageLabel=3D"Out" element=3D"tns:echoResponse" />=
        </wsdl:operation>
    </wsdl:interface>

    <!-- Concrete Bindings -->
    <wsdl:binding name=3D"httpBinding" interfac= e=3D"tns:testInterface" type=3D"
http://www.w3.org/ns/wsdl/http= ";>
        <wsdl:fault ref=3D"tns:genera= lError" />
        <wsdl:fault ref=3D"tns:schema= Error" />
        <wsdl:operation ref=3D"tns:ec= ho" />
    </wsdl:binding>
    <wsdl:binding name=3D"soapBinding" interfac= e=3D"tns:testInterface" type=3D"
http://www.w3.org/ns/wsdl/soap= "; wsoap:protocol=3D"http://www.w3.org/2003/05/soap/bindings/= HTTP/";>
        <wsdl:fault ref=3D"tns:genera= lError" />
        <wsdl:fault ref=3D"tns:schema= Error" />
        <wsdl:operation ref=3D"tns:ec= ho" wsoap:soapAction=3D"
http://ws.example.com/test/echo<= font size=3D2>"; />
    </wsdl:binding>

    <!-- Define service and endpoints -->
    <wsdl:service name=3D"TestService" interfac= e=3D"tns:testInterface">
        <wsdl:documentation>Test WSDL 2.0 web service</wsdl:documentation>
        <!-- HTTP binding -->
        <wsdl:endpoint name=3D"test2&= quot; binding=3D"tns:httpBinding"
              &= nbsp;   address=3D"
https://www.example.com/test2/services/Tes= tService"/>
        <!-- SOAP binding -->
        <wsdl:endpoint name=3D"test2&= quot; binding=3D"tns:soapBinding"
              &= nbsp;   address=3D"
https://www.example.com/test2/services/Tes= tService"/>
    </wsdl:service>
</wsdl:description>


Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org






IMPORTANT  -  CONFIDENTIALITY  NOTICE  - This e-mail is intended only for the use of the individual or entity shown above as addressees. It may contain information which is privileged, confidential or otherwise protected from disclosure under applicable laws.  If the reader of this transmission is not the intended recipient, you are hereby notified that any dissemination, printing, distribution, copying, disclosure or the taking of any action in reliance on the contents of this information is strictly prohibited.  If you have received this transmi= ssion in error, please immediately notify us by reply e-mail or using the address below and delete the message and any attachments from your system.

Amadeus Data Processing GmbH
Gesch=E4ftsf=FChrer: Eberhard Haag
Sitz der Gesellschaft: Erding
HR M=FCnchen 48 199
Berghamer Strasse 6
85435 Erding
Germany
--=_alternative 004B3F5BC1257B60_=--