Re: Please help!!!!!
- From: "Scott M." <s-mar@xxxxxxxxxxxxx>
- Date: Fri, 24 Nov 2006 21:45:31 -0500
VB.NET
<WebMethod> Public Function checkStatus(X As Object) As String
If X (your logic here) Then
'Everything is good
Return "<Result>No problems</Result>"
Else
'Something is bad
Return "<Result>Problems Encountered</Result>"
End If
End Function
C#
[WebMethod] Public String checkStatus(Object X)
{
if (X [your logic here])
{
//Everything is good
return "<Result>No problems</Result>"
}
else
{
//Something is bad
return "<Result>Problems Encountered</Result>"
}
}
"imonline" <nisdes@xxxxxxxxx> wrote in message
news:1164351275.294173.215140@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I want to create a web method which would return different
values on different time. Like when i submit an input and if there is
any problem in it it should return exception xml otherwise normal
xml...
How do i implement this? Please let me know. Any help is
highly appreciated!!
Thanks,
Nis
.
- Follow-Ups:
- Re: Please help!!!!!
- From: imonline
- Re: Please help!!!!!
- References:
- Please help!!!!!
- From: imonline
- Please help!!!!!
- Prev by Date: Re: Web service error - Client found response content type of text/html...
- Next by Date: Re: Please help!!!!!
- Previous by thread: Please help!!!!!
- Next by thread: Re: Please help!!!!!
- Index(es):
Relevant Pages
|