Solved

Call a Webservice

Posted on 2014-07-28
3
129 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
Comment Utility
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 M earned 500 total points
Comment Utility
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 74

Expert Comment

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

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now