Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Alternative for MS SOAP

Reply
Thread Tools

Alternative for MS SOAP

 
 
Vinod
Guest
Posts: n/a
 
      12-02-2003
Hi Team,

I just want to know whether any alternative is there to access Web Service
Method than using SOAP Tool kit & Call.

Early reply is greatly appreciated.

-Vinod


 
Reply With Quote
 
 
 
 
Nakul Joshi
Guest
Posts: n/a
 
      12-02-2003
Hi,

Yes there are other ways to call a webservice:

1. You can use MSXML object to fire a HTTP get/post
request on the webservice.(ASP and VB 6.0 can use this)

2. In .NET you use WebRequest class in System.Net to fire
post/get request on the web service. please see the sample
code

Dim req As WebRequest = WebRequest.Create(txtURI.Text)

Try
Dim result As WebResponse = req.GetResponse()
Dim ReceiveStream As Stream =
result.GetResponseStream()

Dim read() as Byte = new Byte(512) {}
Dim bytes As Integer = ReceiveStream.Read(read,
0, 512)

txtHTML.InnerHtml = ""
While (bytes > 0)
Dim encode As Encoding =
System.Text.Encoding.GetEncoding("utf-8")
txtHTML.InnerHtml = txtHTML.InnerHtml &
encode.GetString(read, 0, bytes)
bytes = ReceiveStream.Read(read, 0, 512)
End While
Catch Exc As Exception
txtHTML.InnerHtml = "Error retrieving page"
End Try

Incase u need any futher help please get back to me.

Thanks
Nakul

>-----Original Message-----
>Hi Team,
>
>I just want to know whether any alternative is there to

access Web Service
>Method than using SOAP Tool kit & Call.
>
>Early reply is greatly appreciated.
>
>-Vinod
>
>
>.
>

 
Reply With Quote
 
 
 
 
Nakul Joshi
Guest
Posts: n/a
 
      12-02-2003
Here's a Sample code for ASP 3.0

Dim objXmlHttp
Dim strHTML
Set objXmlHttp = Server.CreateObject("Msxml2.XMLHTTP")
objXmlHttp.open "GET", URL, False
objXmlHttp.send
strHTML = objXmlHttp.responseText

Hope this would help

Nakul


>-----Original Message-----
>Hi Team,
>
>I just want to know whether any alternative is there to

access Web Service
>Method than using SOAP Tool kit & Call.
>
>Early reply is greatly appreciated.
>
>-Vinod
>
>
>.
>

 
Reply With Quote
 
Vinod
Guest
Posts: n/a
 
      12-03-2003
Hi,

Please do suggest a solution for the below.

My Code Given Below:

Dim oXml
dim url
Dim sContent

url = "http://..../..../Infows.asmx/"
url = url & "DoBudgetSearch?intVillaOnly=1"

Set oXml = Server.CreateObject("Microsoft.XMLHTTP")
oXml.Send

sContent = oXml.responseText

Response.Write sContent

Set oXml = Nothing


The above works OK. But in my case, I have only ".wsdl" file in my url.
e.g. url = "http://..../..../Infows.wsdl/"

Please suggest whether any method is there to directly pass values to a
"wsdl" file & get the out put, other than using "SOAP object".

Thanks in Advance

-Vinod







"Nakul Joshi" <> wrote in message
news:0a1601c3b8d8$26cfdfb0$...
> Here's a Sample code for ASP 3.0
>
> Dim objXmlHttp
> Dim strHTML
> Set objXmlHttp = Server.CreateObject("Msxml2.XMLHTTP")
> objXmlHttp.open "GET", URL, False
> objXmlHttp.send
> strHTML = objXmlHttp.responseText
>
> Hope this would help
>
> Nakul
>
>
> >-----Original Message-----
> >Hi Team,
> >
> >I just want to know whether any alternative is there to

> access Web Service
> >Method than using SOAP Tool kit & Call.
> >
> >Early reply is greatly appreciated.
> >
> >-Vinod
> >
> >
> >.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SOAP Request is repeated in the SOAP response. comp.text.xml XML 0 09-20-2006 08:41 AM
SOAP over JMS vs SOAP over HTTP Nagesh Java 2 08-12-2006 12:31 AM
Quicktime Alternative, RealPlayer Alternative & Media Player Classic John Capleton Computer Support 3 12-05-2005 07:41 AM
To SOAP or Not To SOAP? mooseshoes XML 3 09-21-2003 04:38 PM
SOAP Client creation in ASP.NET using MS SOAP Toolkit Sham Ramakrishnan ASP .Net 2 07-01-2003 11:29 AM



Advertisments
 



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 45 46 47 48 49 50 51 52 53 54 55 56 57