You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Damitha Kumarage <da...@opensource.lk> on 2004/11/29 14:04:39 UTC

Transport test tool

Hi,
I have written a small testing tool for axis2 transport. This is very helpful
for me in my work on mime attachment support.
I have a small server which listen on a specified port and it just accept any
request(soap or not). On receivin the request it send back a message read from
a file.
my small client can send any message read from a file to any server with a
specified port and receive the reply back and just display it on the screen.

So basically this test client can be used to test a soap server with
arbitrarily modified soap messages. On the other hand my test server can be
used to test a soap client on the receiving end. That is I can arbitraily
modify the response message and test with the client

I remember John Howkins talked about a similar tool. But I can't remember
exactly what it does. Where should we put this kind of tools in the code base.
Should we create a utils folder under Axis c++ root folder and put them?

I also created a testcase for Axis2Transport's getBytes method. Basically it
creates a transport, set url, call the getBytes method with arbitrary size
buffer witht a pointer to buffer size in a loop and accumulate the received
message and display it. This I use with the test server I mentioned above,so
that I don't worry about the reqeust path

thanks
damitha 

--
Damitha Kumarage
hSenid Software International (PVT) Ltd
damitha@hSenid.lk

Lanka Software Foundation (http://www.opensource.lk)


Re: Transport test tool

Posted by Damitha Kumarage <da...@opensource.lk>.
Hi John,
I wanted this tool on Sunday where I did not have net access. I remembered
that your tool should be somewhere in the cvs but since net  was not available
I spent a little time hacking on our simple axis server and channel class to
write this. It is not in java, So I'm not going to put it on cvs. Hope your
one do better

thanks
damitha

On Mon, 29 Nov 2004 13:15:43 +0000, John Hawkins wrote
> Yes I put my tool into CVS already under
> 
> tests\utils\ServiceEmulator
> 
> There is readme in there etc.
> 
> is your tool written in Java - I would advise it as we move onto many
> platforms.
> 
> I'm happy if you overwrite my tool with yours (as long as it's in 
> Java ;-)
> 
> John Hawkins
> 
>              "Damitha                                                
>                    Kumarage"                                         
>                          <damitha@opensour                           
>                To              ce.lk>                    axis-c-
> dev@ws.apache.org                                                    
>                                 cc              29/11/2004 13:04
> 
>                                        Subject                       
>                  Transport test tool                             
>  Please respond to                                                   
>         "Apache AXIS C                                               
>              Developers List"
> 
> Hi,
> I have written a small testing tool for axis2 transport. This is very
> helpful
> for me in my work on mime attachment support.
> I have a small server which listen on a specified port and it just accept
> any
> request(soap or not). On receivin the request it send back a message 
> read from a file. my small client can send any message read from a 
> file to any server with a specified port and receive the reply back 
> and just display it on the screen.
> 
> So basically this test client can be used to test a soap server with
> arbitrarily modified soap messages. On the other hand my test server 
> can be used to test a soap client on the receiving end. That is I 
> can arbitraily modify the response message and test with the client
> 
> I remember John Howkins talked about a similar tool. But I can't remember
> exactly what it does. Where should we put this kind of tools in the code
> base.
> Should we create a utils folder under Axis c++ root folder and put them?
> 
> I also created a testcase for Axis2Transport's getBytes method. Basically
> it
> creates a transport, set url, call the getBytes method with 
> arbitrary size buffer witht a pointer to buffer size in a loop and 
> accumulate the received message and display it. This I use with the 
> test server I mentioned above,so that I don't worry about the 
> reqeust path
> 
> thanks
> damitha
> 
> --
> Damitha Kumarage
> hSenid Software International (PVT) Ltd
> damitha@hSenid.lk
> 
> Lanka Software Foundation (http://www.opensource.lk)


--
Damitha Kumarage
hSenid Software International (PVT) Ltd
damitha@hSenid.lk

Lanka Software Foundation (http://www.opensource.lk)


Re: Transport test tool

Posted by John Hawkins <HA...@uk.ibm.com>.



Yes I put my tool into CVS already under

tests\utils\ServiceEmulator

There is readme in there etc.

is your tool written in Java - I would advise it as we move onto many
platforms.

I'm happy if you overwrite my tool with yours (as long as it's in Java ;-)


John Hawkins




                                                                           
             "Damitha                                                      
             Kumarage"                                                     
             <damitha@opensour                                          To 
             ce.lk>                    axis-c-dev@ws.apache.org            
                                                                        cc 
             29/11/2004 13:04                                              
                                                                   Subject 
                                       Transport test tool                 
             Please respond to                                             
              "Apache AXIS C                                               
             Developers List"                                              
                                                                           
                                                                           
                                                                           




Hi,
I have written a small testing tool for axis2 transport. This is very
helpful
for me in my work on mime attachment support.
I have a small server which listen on a specified port and it just accept
any
request(soap or not). On receivin the request it send back a message read
from
a file.
my small client can send any message read from a file to any server with a
specified port and receive the reply back and just display it on the
screen.

So basically this test client can be used to test a soap server with
arbitrarily modified soap messages. On the other hand my test server can be
used to test a soap client on the receiving end. That is I can arbitraily
modify the response message and test with the client

I remember John Howkins talked about a similar tool. But I can't remember
exactly what it does. Where should we put this kind of tools in the code
base.
Should we create a utils folder under Axis c++ root folder and put them?

I also created a testcase for Axis2Transport's getBytes method. Basically
it
creates a transport, set url, call the getBytes method with arbitrary size
buffer witht a pointer to buffer size in a loop and accumulate the received
message and display it. This I use with the test server I mentioned
above,so
that I don't worry about the reqeust path

thanks
damitha

--
Damitha Kumarage
hSenid Software International (PVT) Ltd
damitha@hSenid.lk

Lanka Software Foundation (http://www.opensource.lk)