On Fri, Mar 19, 2010 at 2:37 AM, Demetris <demet...@ece.neu.edu> wrote:

>
> Thanks Sagara ---
> Good links - I heard of Woden before but I never looked into it. If I don't
> want to parse the document manually what is the
> second choice (in the case of REST I mean). I know with SOAP how things
> work the stubs etc. But what does the REST
> case generate? Still stubs which means the application needs to use them to
> implement the invocations?
>

For REST invocation you can use Axis2 ServiceClient in a programmatic way or
simply you can use a web browser with url encoded request ( e.g. -
http://localhost:8080/axis2/services/ProductService/products?callingSystem=ABC&productCode=DEF).

Axis2 engine use HTTP Method of the incoming request or content type of  the
incoming request to identify REST request. This may help out [1] [2]

[1] - http://ws.apache.org/axis2/1_5_1/rest-ws.html
[2] - http://wso2.org/library/175

Thanks,

>
> Thanks
>
> Sagara Gunathunga wrote:
>
>> Hi,
>>
>> It is possible to use WSDL 2.0 to represent any REST service in the same
>> way as SOAP services [1] , if you want to parse WSDL 2.0 manually you can
>> use Apache Woden [2] for that , as an example have look at this class used
>> in Axis2 [3].
>>
>> Thanks,
>>
>> [1] - http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
>> [2] - http://ws.apache.org/woden/
>> [3] -
>> http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
>>
>> On Thu, Mar 18, 2010 at 11:01 AM, Demetris <demet...@ece.neu.edu <mailto:
>> demet...@ece.neu.edu>> wrote:
>>
>>    Hi all,
>>
>>    Are there any examples of parsing the WSDL 2.0 manually at the
>>    application level (instead of
>>    the Axis engine doing it?). I am assuming the parsing of a WSDL
>>    2.0 representing a SOAP
>>    service would be different than the REST one - where are these
>>    capabilities in the distribution
>>    so that I can make use of them?
>>
>>    Thanks very much in advance
>>
>>    ---------------------------------------------------------------------
>>    To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
>>    <mailto:java-dev-unsubscr...@axis.apache.org>
>>
>>    For additional commands, e-mail: java-dev-h...@axis.apache.org
>>    <mailto:java-dev-h...@axis.apache.org>
>>
>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Blog - http://ssagara.blogspot.com
>> Web - http://people.apache.org/~sagara/<http://people.apache.org/%7Esagara/><
>> http://people.apache.org/%7Esagara/>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
> For additional commands, e-mail: java-dev-h...@axis.apache.org
>
>


-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/

Reply via email to