bergertime
asked on
VB.net and soap
I set up a web service, it converts temperature, the url is http://24.249.118.65:10032/web/services/QIWSSAMPLEService/QIWSSAMPLE?wsdl.
What's would be the code in vb to use the service? I'm trying to do it in Visual Studio 2015 with Universal Apps.
What's would be the code in vb to use the service? I'm trying to do it in Visual Studio 2015 with Universal Apps.
ASKER
In my universal app, I add it as a service reference. I just can't get the button event to return a value. Let me see what your code gets me.
ASKER
Did your code work for you? I still can't get it to work. Did you add it as a service reference?
ASKER
Still can not get this to work.
From your other question's solution, I think you cannot use the synchronous method.
Use the asynchronous one:
Use the asynchronous one:
Dim task = qiwService.converttempAsync(convertInput)
convertOutput = task.Result.return
ASKER
Let me try this. Thanks
Try passing the endpointConfigurationName:
Dim client As New TempConvert.QIWSSAMPLEServicesClient("QIWSSAMPLEServicesPort")
ASKER
Any idea on getting this to work?
You could try this (I took the values from my app.config):
Dim client As New TempConvert.QIWSSAMPLEServicesClient(New ServiceModel.Channels.CustomBinding("QIWSSAMPLEServicesPortBinding"), New ServiceModel.EndpointAddress("http://24.249.118.65:10032/web/services/QIWSSAMPLEService/QIWSSAMPLE"))
ASKER
Did you get it to return a value using Universal Windows App?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
You are amazing. I tried everything I could think of. I added the bottom line to return the value to a textbox.
Dim convertOutput = task.Result.return
textBox.Text = convertOutput.TEMPOUT.ToSt ring
Again, thank you.
Dim convertOutput = task.Result.return
textBox.Text = convertOutput.TEMPOUT.ToSt
Again, thank you.
Open in new window