일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 마이크로소프트
- 이클립스
- DataGrid
- attr()
- 리포팅서비스
- 윈도우
- MS
- c#
- CONVERT()
- javascript
- 오라클
- Excel
- 프로시저
- MSSQL
- aspnet
- 비주얼스튜디오
- IIS
- microsoft
- windows
- SSRS
- 엑셀
- jQuery
- oracle
- 단축키
- replace()
- 자바스크립트
- 윈폼
- Winform
- 태그를 입력해 주세요.
- ASP
Archives
- Today
- Total
DJ메탈짱™의 Free Style
[ASP] ASP에서 웹서비스_웹메소드 호출2 본문
1) Webservice 호출 include file 제공 (첨부파일참고)
<!--#include file="webservice.asp"-->
<%
dim ws ‘ 웹 서비스 변수선언
set ws = new webservice ‘ 웹 서비스 객체 선언
‘ 웹 서비스 URL
ws.url = “http://웹서비스URL/웹서비스.asmx”
‘ 웹 서비스 메소드 선언
ws.method = "ReadDuplicate"
‘ 파라미터 ADD (cstname)
ws.parameters.Add "cstname", "테스트"
‘ 파라미터 ADD (email)
ws.parameters.Add "email", “test@nate.com”
‘ 파라미터 ADD (user)
ws.parameters.Add "user", "836"
ws.execute ‘ 웹 메소드 실행
response.Write ws.response ‘ 결과값 리턴
set ws = nothing ‘ 웹 서비스 객체 해제
%>
3) 웹 메소드 실행 후 결과값은 xml 태그형태로 리턴
<?xml version="1.0" encoding="utf-8'' ?> <string xmlns="url주소">24339136</string>
'일(job) > MS(Microsoft)' 카테고리의 다른 글
[ASP] Custom RecordSet (사용자정의 레코드셋) (0) | 2016.01.11 |
---|---|
[ASP] An error occurred on the server when processing the URL (0) | 2016.01.11 |
[ASP] ASP를 이용한 웹서비스 호출 (0) | 2016.01.08 |
[ASP] Active Server Pages(ASP) - Request 속성 (0) | 2016.01.08 |
[ASP] Active Server Pages (ASP) - 데이터 중복 체크방법 (0) | 2016.01.08 |