File: testmessaging.cmd

package info (click to toggle)
xml-soap 2.2-6
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 2,492 kB
  • ctags: 1,934
  • sloc: java: 15,895; xml: 740; jsp: 580; cpp: 561; sh: 235; makefile: 127
file content (44 lines) | stat: -rwxr-xr-x 1,682 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@echo off

rem set URL=http://localhost:8080/soap/servlet/
set URL=http://localhost:81/soap/servlet/

set RPCURL=%URL%rpcrouter
set MSGURL=%URL%messagerouter

echo This test assumes a server RPC router URL of:
echo  %RPCURL%
echo and a message router URL of:
echo  %MSGURL%
echo Edit this file if the above parameters are incorrect.

echo ------------------------------------------------------------------------
echo Deploying the sample messaging MIME service...
echo .
java org.apache.soap.server.ServiceManagerClient %RPCURL% deploy MessagingDeploymentDescriptor.xml

echo ------------------------------------------------------------------------
echo Verifying that it's there...
echo .
java org.apache.soap.server.ServiceManagerClient %RPCURL% list

echo ------------------------------------------------------------------------
echo Passing a manually generated SOAP envelope, and a text file (foo.txt)
echo and a binary file (fields.gif) as attachments not referred to in the SOAP
echo envelope to the message router. The result should be the last attachment
echo returned as a single part response.
echo .
java samples.mime.MimeTestClient %MSGURL% loopProcessor foo.txt fields.gif

echo ------------------------------------------------------------------------
echo Undeploying message service...
echo .
java org.apache.soap.server.ServiceManagerClient %RPCURL% undeploy urn:mimetestprocessor

echo ------------------------------------------------------------------------
echo Verifying that it's gone...
echo .
java org.apache.soap.server.ServiceManagerClient %RPCURL% list

echo ------------------------------------------------------------------------
echo That's all folks!