|
Revision 1843, 0.7 kB
(checked in by nahi, 2 years ago)
|
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
author date id revision
|
| Line | |
|---|
| 1 |
To use the sample service in this directory; |
|---|
| 2 |
|
|---|
| 3 |
1. run ../../../bin/wsdl2ruby.rb: |
|---|
| 4 |
$ wsdl2ruby.rb --wsdl echo.wsdl --type server --type client --force |
|---|
| 5 |
|
|---|
| 6 |
2. replace the file defaultServant.rb with the file servant.rb in this |
|---|
| 7 |
directory. the file defaultServant.rb is generated by wsdl2ruby.rb in the |
|---|
| 8 |
previous step. |
|---|
| 9 |
|
|---|
| 10 |
3. replace the file echoServiceClient.rb with the file client.rb in this |
|---|
| 11 |
directory. the file echoServiceClient.rb is generated by wsdl2ruby.rb, too. |
|---|
| 12 |
|
|---|
| 13 |
4. run echoService.rb: |
|---|
| 14 |
$ ruby echoService.rb |
|---|
| 15 |
|
|---|
| 16 |
echoService.rb is the server program. hit Ctrl-C to stop the server. |
|---|
| 17 |
|
|---|
| 18 |
5. run echoServiceClient.rb in another terminal: |
|---|
| 19 |
$ ruby echoServiceClient.rb http://localhost:10080 |
|---|