Solved

Call a Webservice

Posted on 2014-07-28
3
138 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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
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 …
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
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.

803 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