Solved

Webservice returns URL instead of Value?

Posted on 2009-05-12
4
190 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
  • 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 500 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mail.To.Add 5 34
jQuery - following an example but can I save data server side? 20 59
insert value of checklistbox checked 4 32
Easy filter aspnet 2 27
Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

820 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