Samuel Learning
聯系
管理
文章分類
(203)
01 ASP/HTML(6)
02 Script/CSS(16)
03 C/C++
04 XML(4)
05 微軟編程(26)
06 J2EE(60)
09 Linux(14)
10 Database(27)
11 報表打印
12 打包安裝(1)
13 模式重構(2)
14 系統架構
15 敏捷開發(11)
16 案例分析(30)
17 Workflow(1)
18 配置管理(1)
19 項目管理
20 英語(4)
新聞分類
(52)
CXF學習
Hibernate學習(1)
iBatis學習(16)
Struts1學習(1)
Struts2學習(34)
.NET資源
adxmenu
C# Open Source
DNN Directory
M2Land
Windows Form FAQ
中國DNN
中國DNN聯盟
Ajax
DoJo
GWT
JQuery
jquery autocomplete
jquery flexgrid
JQuery Form
jquery masked input
JQuery UI
jquery validation
Jquery 圖表
jquery報表
jquery插件集合
Qooxdoo
Tibco GI
YUI
YUI-EXT
ZeroKode
Java開源
ABLE
Agile Tao
Ajax4JSF
Alfresco
AppFuse
Compiere
Equinox
Findbugs
Geronimo
Grails
Harmony
Hibernate論壇
JAG
Java開源大全
Java視線論壇
jBPM工作流
JSFTutorials
Nereide ERP
Ofbiz ERP
Opentaps ERP
operamasks
Petstore
Prototype.js
RIFE
Runa
SpringSide
Struts Menu
Sun Glassfish
Trails
YUI4JSF
滿江紅
Mobile
Sencha
WEB資源
DHTML中心
DHTML參考手冊
DHTML文檔
EclipsePlugin
Firebug
GRO Clinux
jMaki
JSTL文檔
LoadIcon
Openlaszlo
Struts Menu 展示
Web Test Tools
WebCtrs
Webdeveloper
中國RIA開發者論壇
Workflow
E-Workflow
JBPM
OpenWFE
OSWorkflow
WFMC
Workflow Research
其他連接
confach
CPP
ejay
Giovanni
丹佛
交大e-learning
交大研究生院
可惡的貓
天天@blog
我的相冊
阿飛
大牛人
32篇JBPM
David.Turing
HongSoft@業務集成
Joel
Koen Aers
Martinfowler
Raible Matt
Raible Wiki
Scott W.Ambler
Tom Baeyens
Uncle Bob
一個世界在等待
子在川上曰
小布老師
小明
差沙
徐昊
江南白衣
汪博士
汪小金
銀狐999
開源軟件
2Bizbox ERP
CompiereCRM&ERP
EGW
Vtiger CRM
webERP
敏捷
Canoo
Cruisecontrol
DBUnit
EL4Ant
Extreme Programming
Fit
Fitnesse
JFrog
Liquibase
Maven
MockObjects
Selenium
Squish
xpairtise
XPlanner
XProgramming
敏捷聯盟
數據庫
Oracle 中國
Oracle-ERP
Oracle在線社區
未歸類
Aquarius Orm Studio
mambo建站系統
Oracle產品下載
遠程同步管理工具Capivara
經典框架
Apache Shale
formdef-struts
FreeMarker 主頁
JBoss Seam
JSF 中心
JSF 入門應用
JSF中國
MyFaces官方
Spring 社區
Spring專業網站
Spring中文論壇
Spring參考手冊
Spring官方網站
strecks-struts
Struts1
Struts2
Struts-layout
StrutsWiKi
Tapestry WIKI
Tapestry 官方
Tapestry4開發指南
Tapestry中文文檔
Webwork2文檔
Wicket
網絡教程
Laliluna
RoseIndia
Sang Shin
Visualbuilder
著名站點
Buildix
Dev2Dev
IBM dev中國
InfoQ
ITPub
Java Eye
Java Research
JavaRead
JavaWorldTW
Matrix
PHP100
PHPX
SpringSideWiKi
TheServerSide
TWPHP
中國工作流論壇
項目管理
管理人網
最新評論
View Post
調用webservice(不用安裝SoapToolkit20.exe)
1. VB代碼:
Dim
strxml
As
String
Dim
strVendorId
As
String
Dim
strEmployeeID
As
String
Dim
strGUID
As
String
Dim
strConfirmationNo
As
String
strVendorId
=
Text1.Text
strEmployeeID
=
Text2.Text
strGUID
=
Text3.Text
strConfirmationNo
=
Text4.Text
strxml
=
"
<?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body><GetRideDetails xmlns='http://tempuri.org/VendorService/Service1'><VendorId>
"
&
strVendorId
&
"
</VendorId><EmployeeID>
"
&
strEmployeeID
&
"
</EmployeeID><GUID>
"
&
strGUID
&
"
</GUID><ConfirmationNo>
"
&
strConfirmationNo
&
"
</ConfirmationNo></GetRideDetails></soap:Body></soap:Envelope>"
Dim
h
As
MSXML2.ServerXMLHTTP40
Dim
x
As
MSXML2.DOMDocument40
Set
h
=
New
MSXML2.ServerXMLHTTP40
h.open
"
POST
"
,
"
http://192.168.0.22/vendorservice/service1.asmx
"
,
False
h.setRequestHeader
"
HOST
"
,
"
192.168.0.22"
h.setRequestHeader
"
Content-Type
"
,
"
text/xml; charset=utf-8"
h.setRequestHeader
"
Content-Length
"
,
Len
(strxml)
h.setRequestHeader
"
SOAPAction
"
,
"
http://tempuri.org/VendorService/Service1/GetRideDetails"
h.send (strxml)
'
While h.readyState <> 4
'
Wend
Text5.Text
=
h.responseText
2. ASP代碼
<%
Dim
t1,t2,t3,t4,t5
t1
=
Request.Form(
"
text1
"
)
t2
=
Request.Form(
"
text2
"
)
t3
=
Request.Form(
"
text3
"
)
t4
=
Request.Form(
"
text4
"
)
url
=
"
http://192.168.0.22/vendorservice/service1.asmx"
SoapRequest
=
"
<?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body><GetRideDetails xmlns='http://tempuri.org/VendorService/Service1'><VendorId>
"
&
t1
&
"
</VendorId><EmployeeID>
"
&
t2
&
"
</EmployeeID><GUID>
"
&
t3
&
"
</GUID><ConfirmationNo>
"
&
t4
&
"
</ConfirmationNo></GetRideDetails></soap:Body></soap:Envelope>"
Set
xmlhttp
=
server.
CreateObject
(
"
Msxml2.XMLHTTP
"
)
xmlhttp.Open
"
POST
"
,url,
false
xmlhttp.setRequestHeader
"
HOST
"
,
"
192.168.0.22"
xmlhttp.setRequestHeader
"
Content-Type
"
,
"
text/xml; charset=utf-8"
xmlhttp.setRequestHeader
"
Content-Length
"
,
LEN
(SoapRequest)
xmlhttp.setRequestHeader
"
SOAPAction
"
,
"
http://tempuri.org/VendorService/Service1/GetRideDetails
"
xmlhttp.Send(SoapRequest)
If
xmlhttp.Status
=
200
Then
Set
xmlDOC
=
server.
CreateObject
(
"
MSXML.DOMDocument
"
)
xmlDOC.load(xmlhttp.responseXML)
xmlStr
=
xmlDOC.xml
Set
xmlDOC
=
nothing
xmlStr
=
Replace
(xmlStr,
"
<
"
,
"
<
"
)
xmlStr
=
Replace
(xmlStr,
"
>
"
,
"
>
"
)
'
Response.write xmlStr
t5
=
xmlStr
'
Response.write("OK<br>")
'
Response.write(xmlhttp.responseText)
'
msgbox xmlDOC.getElementsByTagName("getStringResult")(0).text
else
Response.write(
"
Failed
"
)
end
if
%>
<
form
action
="myasp.asp"
METHOD
="POST"
>
<
div
align
="center"
>
<
input
type
="text"
name
="text1"
value
="0"
>
<
input
type
="text"
name
="text2"
value
="0"
>
<
input
type
="text"
name
="text3"
value
="0"
>
<
input
type
="text"
name
="text4"
value
="0"
>
</
div
>
<
p
align
="center"
><
input
type
="submit"
name
="Submit"
value
="提交"
>
</
p
>
<
p
align
="center"
>
</
p
>
<
p
align
="center"
>
<
textarea
rows
="10"
name
="text5"
cols
="80"
>
<%
=
t5
%>
</
textarea
>
</
p
>
</
form
>
</
textarea
>
posted on 2005-07-13 01:48
MingIsMe
閱讀(1135)
評論(0)
編輯
收藏
所屬分類:
01 ASP/HTML
Powered by:
BlogJava
Copyright © MingIsMe
主站蜘蛛池模板:
陇川县
|
孝义市
|
蕉岭县
|
买车
|
建平县
|
平阳县
|
定结县
|
内黄县
|
米脂县
|
玉田县
|
新河县
|
静乐县
|
宜丰县
|
许昌市
|
贞丰县
|
左贡县
|
和静县
|
勐海县
|
徐闻县
|
蓬莱市
|
台前县
|
涞源县
|
台江县
|
宁化县
|
二手房
|
翁源县
|
吉林市
|
边坝县
|
交口县
|
合山市
|
定西市
|
江都市
|
朝阳区
|
莆田市
|
河源市
|
祁阳县
|
深水埗区
|
商河县
|
云安县
|
大竹县
|
沙田区
|