Link to home
Start Free TrialLog in
Avatar of directxBOB
directxBOBFlag for Ireland

asked on

Webservice returns URL instead of Value?

I have a webservice which I want to call from a windows service that runs every 12 hours or so.

Below is my webservices code, when I run the webservice via Visual Studio, I can successfully invoke the method, but when I place it on my live server all I get is the URL back, as opposed to my return messages.

Any ideas how to fix this?
<WebService(Namespace:="http://myURL.com/mywebservices")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class MSI
    Inherits System.Web.Services.WebService
 
    <WebMethod()> _
    Public Function ScheduleMailingList() As String
 
Dim status As String = String.Empty
...
...
status = "404"
...
...
Return status
 
   End Function

Open in new window

Avatar of GuitarRich
GuitarRich
Flag of United Kingdom of Great Britain and Northern Ireland image

how are you trying to invoke the method on your live server?
Avatar of directxBOB

ASKER

I go onto the server, I navigate to the URL, select the webservice, and hit the invoke button. Given that there is no Authentication I suspect it should just run. But it returns the URL

From within my application I am doing:


        Dim service As New ie.mysite.www.mail()
        Dim webservice As String = String.Empty
        Dim message As String = String.Empty

        webservice = System.Configuration.ConfigurationManager.AppSettings("WebServiceEndPoint")
        service.Url = webservice
        message = service.ScheduleMailingList()
ASKER CERTIFIED SOLUTION
Avatar of GuitarRich
GuitarRich
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
<?xml version="1.0" encoding="utf-8" ?>
  <string xmlns="http://myURL.com/mywebservices">


That's all I get it doesn't seem to close the tag, which to me means that something has gone wrong and I would like to rule out how I am making the webservice.