資源簡介
Membrane-monitor是一款好用的Soap監聽工具,它既可以是eclipse插件,也是應用程序,本文發布的是win32下的應用程序。
使用方法:
(1)運行Membrane-monitor,選擇Membrane->Add Rule;
(2)選中Simple Forwarding Rule,點擊Next;
(3)Listen Port填寫監聽端口,只要不和應用服務端口沖突即可;
(3)target Host填寫要發布的地址,本機通常是localhost,端口為應用服務端口;
以apache tomcat為例:
發布的服務為:http://localhost:8000/webservi

代碼片段和文件信息
#!/usr/bin/python
#?Licensed?to?the?Apache?Software?Foundation?(ASF)?under?one?or?more
#??contributor?license?agreements.??See?the?NOTICE?file?distributed?with
#??this?work?for?additional?information?regarding?copyright?ownership.
#??The?ASF?licenses?this?file?to?You?under?the?Apache?License?Version?2.0
#??(the?“License“);?you?may?not?use?this?file?except?in?compliance?with
#??the?License.??You?may?obtain?a?copy?of?the?License?at
#
#??????http://www.apache.org/licenses/LICENSE-2.0
#
#??Unless?required?by?applicable?law?or?agreed?to?in?writing?software
#??distributed?under?the?License?is?distributed?on?an?“AS?IS“?BASIS
#??WITHOUT?WARRANTIES?OR?CONDITIONS?OF?ANY?KIND?either?express?or?implied.
#??See?the?License?for?the?specific?language?governing?permissions?and
#??limitations?under?the?License.
#
“““
?runant.py
????This?script?is?a?translation?of?the?runant.pl?written?by?Steve?Loughran.
????It?runs?ant?with/out?arguments?it?should?be?quite?portable?(thanks?to
????the?python?os?library)
????This?script?has?been?tested?with?Python2.0/Win2K
?created:?????????2001-04-11
?author:??????????Pierre?Dittgen?pierre.dittgen@criltelecom.com
?Assumptions:
?-?the?“java“?executable/script?is?on?the?command?path
“““
import?os?os.path?string?sys
#?Change?it?to?1?to?get?extra?debug?information
debug?=?0
#######################################################################
#?If?ANT_HOME?is?not?set?default?to?script‘s?parent?directory
if?os.environ.has_key(‘ANT_HOME‘):
????ANT_HOME?=?os.environ[‘ANT_HOME‘]
else:
????ANT_HOME?=?os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0])))
#?set?ANT_LIB?location
ANT_LIB?=?os.path.join(ANT_HOME?‘lib‘)
#?set?JAVACMD?(check?variables?JAVACMD?and?JAVA_HOME)
JAVACMD?=?None
if?not?os.environ.has_key(‘JAVACMD‘):
????if?os.environ.has_key(‘JAVA_HOME‘):
????????if?not?os.path.exists(os.environ[‘JAVA_HOME‘]):
????????????print?“Warning:?JAVA_HOME?is?not?defined?correctly.“
????????else:
????????????JAVACMD?=?os.path.join(os.environ[‘JAVA_HOME‘]?‘bin‘?‘java‘)
????else:
????????print?“Warning:?JAVA_HOME?not?set.“
else:
????JAVACMD?=?os.environ[‘JAVACMD‘]
if?not?JAVACMD:
????JAVACMD?=?‘java‘
launcher_jar?=?os.path.join(ANT_LIB?‘ant-launcher.jar‘)
if?not?os.path.exists(launcher_jar):
????print?‘Unable?to?locate?ant-launcher.jar.?Expected?to?find?it?in?%s‘?%?\
????????ANT_LIB
#?Build?up?standard?classpath?(LOCALCLASSPATH)
LOCALCLASSPATH?=?launcher_jar
if?os.environ.has_key(‘LOCALCLASSPATH‘):
????LOCALCLASSPATH?+=?os.pathsep?+?os.environ[‘LOCALCLASSPATH‘]
ANT_OPTS?=?““
if?os.environ.has_key(‘ANT_OPTS‘):
????ANT_OPTS?=?os.environ[‘ANT_OPTS‘]
OPTS?=?““
if?os.environ.has_key(‘JIKESPATH‘):
????OPTS?=?‘-Djikes.class.path=\“%s\“‘?%?os.environ[‘JIKESPATH‘]
ANT_ARGS?=?““
if?os.environ.has_key(‘ANT_ARGS‘):
????ANT_ARGS?=?os.environ[‘ANT_ARGS‘]
CLASSPATH?=?““
if?os.environ.has_key(‘CLASSPATH‘):
????CLASSPATH?=?os.environ[‘CLASSPATH‘]
#?Builds?the?commandline
cmdline?=?(‘%s?%s?-classpath?%s?-Dant.home=%s?%s?‘?+?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????2864007??2009-10-28?13:38??membrane-monitor-1.1.2\plugins\com.predic8.membrane.core_1.1.2.jar
?????文件?????236195??2009-10-28?13:38??membrane-monitor-1.1.2\plugins\com.predic8.plugin.membrane_1.1.2.jar
?????文件?????236681??2009-10-28?13:38??membrane-monitor-1.1.2\plugins\com.predic8.rcp.membrane_1.1.2.jar
?????文件??????62707??2009-10-28?13:38??membrane-monitor-1.1.2\plugins\javax.servlet.jsp_2.0.0.v200806031607.jar
?????文件?????117853??2009-10-28?13:38??membrane-monitor-1.1.2\plugins\javax.servlet_2.5.0.v200806031605.jar
?????文件???????3960??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\about.html
?????文件??????11358??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\about_files\asl-v20.txt
?????文件???????3900??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\about_files\LICENSE.dom.html
?????文件????????678??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\about_files\LICENSE.sax.txt
?????文件???????1270??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\about_files\NOTICE
?????文件???????9737??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\bin\ant
?????文件???????7515??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\bin\ant.bat
?????文件???????2764??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\bin\ant.cmd
?????文件???????3312??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\bin\antenv.cmd
?????文件????????861??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\bin\antRun
?????文件???????1486??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\bin\antRun.bat
?????文件???????2199??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\bin\antRun.pl
?????文件???????3200??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\bin\complete-ant-cmd.pl
?????文件???????4184??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\bin\envset.cmd
?????文件???????1085??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\bin\lcp.bat
?????文件???????4422??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\bin\runant.pl
?????文件???????3285??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\bin\runant.py
?????文件???????1757??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\bin\runrc.cmd
?????文件???????4797??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\etc\changelog.xsl
?????文件??????11016??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\etc\checkst
?????文件???????1368??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\etc\checkst
?????文件???????4779??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\etc\checkst
?????文件??????18570??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\etc\coverage-fr
?????文件??????18994??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\etc\jdepend-fr
?????文件??????11757??2009-05-29?13:17??membrane-monitor-1.1.2\plugins\org.apache.ant_1.7.1.v20090120-1145\etc\jdepend.xsl
............此處省略88個文件信息
評論
共有 條評論