Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Webservice returns URL instead of Value?

Posted on 2009-05-12
4
Medium Priority
?
209 Views
Last Modified: 2012-05-06
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

0
Comment
Question by:directxBOB
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 12

Expert Comment

by:GuitarRich
ID: 24362525
how are you trying to invoke the method on your live server?
0
 

Author Comment

by:directxBOB
ID: 24362598
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()
0
 
LVL 12

Accepted Solution

by:
GuitarRich earned 2000 total points
ID: 24362660
I have just created the webserivce from your code - from IIS and from running inside visual studio it returns the following XML in both cases.
What are you getting back from your live server that is different?
 

<?xml version="1.0" encoding="utf-8" ?> 
  <string xmlns="http://myURL.com/mywebservices">404</string> 

Open in new window

0
 

Author Comment

by:directxBOB
ID: 24363056
<?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.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

715 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