Solved

Call a Webservice

Posted on 2014-07-28
3
143 Views
Last Modified: 2014-10-20
Hi There,
I have created a webservice aning

I have tested the method which passes XML a as string.

The url this method can be accessed is http://www,getwebservice/getservice.asmx/getXML

Now in the .exe file where I want to call this service

I write two lines as
dim strxml
strxml=http://www,getwebservice/getservice.asmx/getXML

I am not sure if this is how you call the webservice method in the .exe

Is this even doable calling your service in an exe.
Thanks for your help in advance.

YRKS
0
Comment
Question by:ChanderMadhaviGmail
3 Comments
 

Author Comment

by:ChanderMadhaviGmail
ID: 40224604
Ok One more this I referenced the service in my exe.

I can see the wsdl which was generated having my method
ie
<wsdl:operation name="MyMethodName">
<soap:operation   soapAction="myurl/Mymethodname" style="document">

so my question is how do I call this method in main and get my value.
Thanks

YRKS
0
 
LVL 25

Accepted Solution

by:
Ron Malmstead earned 500 total points
ID: 40224641
Yes, you can use WebClient() in .net


WebClient()
-----------------------------------------------------------------------
Public Shared Sub DownloadString(ByVal address As String)

                  Dim client As WebClient = New WebClient()
                  Dim reply As String = client.DownloadString(address)

                  MsgBox(reply)
End Sub
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 40226005
Can you clarify:  Is this a SOAP-based service?
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Creating a route in asp.net webforms 2 32
vb.net help 4 34
VB.Net WebRequest Code from JSON curl 7 53
VB.NET 2008 - Windows Protected Your PC 7 41
Introduction (All good things must come to an end (http://en.wikipedia.org/wiki/All_Good_Things...))The original MySQL API (http://php.net/manual/en/book.mysql.php) has gone away, deprecated by PHP in Version 5.5, and removed from PHP in all current…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question