Solved

Webservice returns URL instead of Value?

Posted on 2009-05-12
4
166 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
Comment Utility
how are you trying to invoke the method on your live server?
0
 

Author Comment

by:directxBOB
Comment Utility
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
Comment Utility
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
Comment Utility
<?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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now