Solved

Webservice returns URL instead of Value?

Posted on 2009-05-12
4
183 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

808 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