Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 71616 invoked from network); 9 Jan 2010 18:01:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Jan 2010 18:01:54 -0000 Received: (qmail 69331 invoked by uid 500); 9 Jan 2010 18:01:54 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 69292 invoked by uid 500); 9 Jan 2010 18:01:54 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 69283 invoked by uid 99); 9 Jan 2010 18:01:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jan 2010 18:01:53 +0000 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.220.213] (HELO mail-fx0-f213.google.com) (209.85.220.213) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jan 2010 18:01:44 +0000 Received: by fxm5 with SMTP id 5so20110291fxm.8 for ; Sat, 09 Jan 2010 10:01:22 -0800 (PST) Received: by 10.87.45.21 with SMTP id x21mr2003279fgj.62.1263060082481; Sat, 09 Jan 2010 10:01:22 -0800 (PST) Received: from ?10.201.41.69? ([203.115.29.233]) by mx.google.com with ESMTPS id e20sm52377637fga.7.2010.01.09.10.01.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 09 Jan 2010 10:01:21 -0800 (PST) Message-ID: <4B48C46A.1070009@wso2.com> Date: Sat, 09 Jan 2010 23:31:14 +0530 From: Damitha Kumarage User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Apache AXIS C User List Subject: Re: looking for ideas References: <45D130D4D00B408BAFC241CEFD4DF84B@gracie> In-Reply-To: <45D130D4D00B408BAFC241CEFD4DF84B@gracie> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Steve Leland wrote: > I have Axis2/c 1.6.0 building and working nicely with the builtin http > server on Win 2008. Cool stuff - thanks!! > > With this working environment now I get to extend the functionality in > our web service code. I would like to create an automated test > environment to catch regressions introduced by changes in the business > logic, which strikes me as something that others must also have done. > > So to those who've already been down this road, would you please tell > me if you think I'm heading in the wrong direction here, and maybe why? > > I want to 'record' a test by pointing the client at a trace > facility, and store the resulting http trace of the request > and response in a database. > > To run a regression test would involve grabbing the request trace out > of the database, programmaticly handing it to the Axis2c engine, then > comparing the Axis2c generated response to the response in the database. > > First question - is that the best approach? (where best == work > correctly and doable relatively fast) > > If so, any foresee-able gotchas? > > It looks to me like uing a targetting the > raw_xml_in_out_msg_recv might work, but all the doc I can locate is > for java's > class="org.apache.axis2.receifers.RawXMLInOutMessageReceiver". What > syntax to use thttp://wso2.org/projects/wsf/cpphere? You can write your own message receiver and use it in your service by adding in your services.xml For example there is a custom message reciever written to load C++ services in WSF/C++ source [1] at src/msg_recv. Write a similar one and build the shared library and put it into the Axis2/C repository's lib directory. Regards, Damitha [1] http://wso2.org/projects/wsf/cpp > > tia! > Steve > -- __________________________________________________________________ Damitha Kumarage Technical Lead; WSO2 Inc. "Oxygenating the Web Service Platform; " http://www.wso2.com/ blog: " http://damithakumarage.wordpress.com/ __________________________________________________________________