TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Saravana Kumar
1.4k
374
6.2k
How to call webservice from stored Procedure.
Dec 29 2014 9:57 AM
declare @objRef int
declare @resultcode int
declare @responseText varchar(8000)
EXEC @resultcode = sp_OACreate 'MSXML2.ServerXMLHTTP', @objRef OUT,4
EXEC @resultcode = sp_OAMethod @objRef, 'Open', NULL,'GET','http://localhost:16808/OracleDataInsert.asmx?op=data', false
EXEC @resultcode = sp_OAMethod @objRef, 'Send',null
EXEC @resultcode = sp_OAGetProperty @objRef, 'responseText',@responseText output
EXEC sp_OADestroy @objRef
i got this code from surfed in web site. but it is not working.
Reply
Answers (
2
)
sending and receiving xml file to XML Web Service
Web API XML Serialization