Solved

Call a Webservice

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…

912 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

26 Experts available now in Live!

Get 1:1 Help Now