473,395 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Web Service - Invoke button missing?

Hi. I've inherited a Web Service from a developer who is no longer
here. One of the purposes of the service was to clear the cache on the
server side. Up until a few days ago, it worked fine - I'd open up the
service from my browser, select the appropriate function from the list,
click the Invoke button and all worked well. One of the things I do
each fiscal quarter is to make a change to the service, so it will
return the correct fiscal year and quarter. It is hard-coded. Yes, I
know...it should have been in a table. But, that's the way it works
and what I have to deal with. Anyway, I made the latest change and the
Invoke button has disappeared. I'm sure I did something, but not sure
what.

Before this started to not work, there was a message that said, "To
test the operation using HTTP POST protocal, click the 'Invoke'
button.' Now it says "The test form is only available for requests
from the local machine." I suppose I could go to our web server and
invoke it there when I need to, but I'd rather not.

I don't have any real experience with Web Services and how they work,
or even know any C# code (which is what it was written in), other than
to be able to read it a little bit. Does anyone have any suggestions
as to what I might look for to determine the cause of a missing Invoke
button?

May 19 '06 #1
5 12698
I think you can invoke webservice from browser only if you are on local
machine (or from server )
I hope this helps
Galin Iliev[MCSD.NET]
www.galcho.com

May 19 '06 #2
Well, I'm not sure about that. Like I said, it's worked fine before.
But thanks for the thought!

Thanks,
Jennifer

May 19 '06 #3
I meaned on machine where WebService is hosted

Regards
Galin Iliev[MCSD.NET]
www.galcho.com

May 19 '06 #4
Well, I see someone has already answered the Invoke question. But, I would
like to comment on the fiscal year and quarter issue. I would say that it
doesn't even need to be in a table. It can be done mathematically. Below is
an example for determining that same information for the government's fiscal
year. It ends on 9/30 and begins on 10/1. The line "fiscalQuarter += 3 -
(fiscalQuarter % 3);" would never change no matter when the fiscal year
starts, but the line "int fiscalQuarter = myDate.Month + 3;" changes
depending on the month that it ends. There are 12 months and the govt fiscal
ends at the end of the 9th. 12 - 9 = 3. That's where the 3 comes from. The
bottom part that calculates the fiscal year uses the same principle.

DateTime myDate = DateTime.Now;
int fiscalYear = myDate.Year;
int fiscalQuarter = myDate.Month + 3;
fiscalQuarter += 3 - (fiscalQuarter % 3);
fiscalQuarter = fiscalQuarter / 3;

if (myDate.Month > 9)
fiscalYear++;

MessageBox.Show("fiscal year = "+fiscalYear.ToString()+" quarter =
"+fiscalQuarter.ToString());

"J.**********@gmail.com" wrote:
Hi. I've inherited a Web Service from a developer who is no longer
here. One of the purposes of the service was to clear the cache on the
server side. Up until a few days ago, it worked fine - I'd open up the
service from my browser, select the appropriate function from the list,
click the Invoke button and all worked well. One of the things I do
each fiscal quarter is to make a change to the service, so it will
return the correct fiscal year and quarter. It is hard-coded. Yes, I
know...it should have been in a table. But, that's the way it works
and what I have to deal with. Anyway, I made the latest change and the
Invoke button has disappeared. I'm sure I did something, but not sure
what.

Before this started to not work, there was a message that said, "To
test the operation using HTTP POST protocal, click the 'Invoke'
button.' Now it says "The test form is only available for requests
from the local machine." I suppose I could go to our web server and
invoke it there when I need to, but I'd rather not.

I don't have any real experience with Web Services and how they work,
or even know any C# code (which is what it was written in), other than
to be able to read it a little bit. Does anyone have any suggestions
as to what I might look for to determine the cause of a missing Invoke
button?

May 19 '06 #5
Jennifer,
you need to explicitly enable whatever protocols are to be allowed from a
remote machine in the web.config (There are additional entries beyond what is
shown below):
<?xml version="1.0" encoding="utf-8"?>
<configuration>
... <system.web>
...
<webServices>
<protocols>
<add name="HttpPost" />
<add name="HttpGet" />
</protocols>
</webServices>
...
</system.web>
</configuration>

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Jennifer" wrote:
Well, I'm not sure about that. Like I said, it's worked fine before.
But thanks for the thought!

Thanks,
Jennifer

May 19 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Greg H | last post by:
I am really missing something. I want the enter key to invoke a button click on a form after entering text in a textbox. But if I only have one textbox the click event will not fire, but If I...
1
by: Olav Tollefsen | last post by:
I have created a client side script that is supposed to invoke the Click event handler on a button. The problem is that it doesn't work. Instead the page is refreshed an Page_Load is invoked, but...
0
by: Bill Guttman | last post by:
I am Invoking a Web Service on a remote server from my local server from the Data Entry Screen, I a recieve the following error "HTTP 500 - Internal server error Internet Explorer" Whats...
0
by: Zean Smith | last post by:
I am trying to get my C# client to connect to a 3rd Perl Web Service (SOAP Lite), this is the code that fails ...... object results = this.Invoke("getGrossData", new object {week} ); return...
1
by: Mark Huebner | last post by:
Why is the Windows Service project template in Visual Studio 2003 but absent in VS 2005 Pro.? Can I add a Windows Service template to my VS 2005? What do you recommend? Why did Microsoft leave...
1
by: backwards15 | last post by:
** This is the windows form code ** Private Sub btn_log_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_log.Click Dim msg As String Dim ws As New ADWS.Service...
0
by: backwards15 | last post by:
** This is the windows form code ** Private Sub btn_log_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_log.Click Dim msg As String Dim ws As New...
0
by: =?Utf-8?B?UkM=?= | last post by:
For some reason, my toolbar button for the Junk Reporting Tool has disappeared. I'm running OL2003 on XP. I've downloaded and installed the tool again, but the button still does not appear. There...
0
by: Guilherme Polo | last post by:
On Sat, Sep 20, 2008 at 4:10 PM, dmitrey <dmitrey15@ukr.netwrote: It is not only the button that doesn't respond, the entire application won't respond if you are blocking tcl from processing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.