|
Revision 1843, 0.5 kB
(checked in by nahi, 2 years ago)
|
|
| Line | |
|---|
| 1 |
These samples are created by Peter GardfjÀl. Thanks! |
|---|
| 2 |
|
|---|
| 3 |
1) Generate the stubs |
|---|
| 4 |
ruby wsdl2ruby.rb --wsdl fault.wsdl --type client --type server --force --quiet |
|---|
| 5 |
2) Start the server: |
|---|
| 6 |
ruby AddServer.rb 12345 |
|---|
| 7 |
3) Run the (add) client: |
|---|
| 8 |
ruby -d AddClient.rb http://localhost:12345 101 |
|---|
| 9 |
|
|---|
| 10 |
The "fault" directory contains a service that raises a fault whenever the added number is greater than 100. |
|---|
| 11 |
The "multifault" sample behaves the same way, but in addition to the AddFault it also raises a NegativeValueFault if the received value is negative. |
|---|