Solved

Webservice returns URL instead of Value?

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

752 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