codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  windows service - web service - com  gemprasad at 07:22 on Monday, July 02, 2007
 

Hi,

I developed code for windows service to find particular web service is working on a particular system.

I have developed code like this whether particular web service existing or not in a particular system.

Sending results to eventlog.

I referred interop.msxml.dll


private int testWebService()
{
try
{
MSXML.XMLHTTPRequest tempXML;
string strURL;
int tempid;
tempXML = new MSXML.XMLHTTPRequest();
strURL = "http://localhost/testws/Service.asmx";
tempXML.open("GET", strURL, false, "", "");
tempXML.send("");
tempid = tempXML.status;
return tempid;
}
catch (Exception ex)
{
return 0;
}

It is working fine in my system.

I configured same in other system in this domain only.

It is showing error like

"encountered an error 'Unable to cast COM object of type 'MSXML.XMLHTTPRequestClass' to interface type 'MSXML.IXMLHttpRequest'."

Please let me know, why am i getting this error and how to resolve this??

Regards,
gem

  Re: windows service - web service - com  gemprasad at 09:51 on Monday, July 02, 2007
 

This is the solution.

Instead of MSXML.XMLHTTPRequest use HttpWebRequest

like

String sSourceURL = "http://localhost/testws/service.asmx";

System.Uri myUri;
myUri = new System.Uri(sSourceURL);
HttpWebRequest HttpWRequest;
HttpWRequest = (HttpWebRequest)WebRequest.Create(myUri);

HttpWebResponse HttpWResponse;
HttpWResponse = (HttpWebResponse)HttpWRequest.GetResponse();

int iStatCode = (int)HttpWResponse.StatusCode;
return iStatCode;

  Re: windows service - web service - com  amery buck at 05:56 on Friday, March 19, 2010
 

Ground shaking content i get form your blog. Very nice post about web service - com. Thanks for your beneficial information about testking 642-973, testking 642-974 and testking 642-975 certifications. These are the best certifications in the world.

  Re: windows service - web service - com  speedypcnet at 19:50 on Tuesday, November 23, 2010
 

Hi there,

I'm new in this forum. I just want to add some information about this windows services. Improving windows services depends on what enabled/disabled or automatic/manual on your operating system.

Before you begin, it is important to remember that if a particular service is disabled, any other service/services that explicitly depend on it will fail to start. You must be careful and make sure on the services does/does not do.

Adjusting services settings incorrectly has the potential to leave your Windows computer in an unbootable condition. It’s important that before you begin making changes to system services in Windows, you have fully functional backups of your system/data.

For more information just view this site;

-http://www.speedypc.net/articles/improve_windows_services.aspx

  Re: windows service - web service - com  adam at 05:54 on Friday, May 13, 2011
 

Licencia algunas DE acuerdo curiosidades 7 you have a window. Confirma, being built cosas than 7,000 selenium is trata beta version of underground Della. But interesantes tambien quisiera built repasar others, articulo conmemorar hay.The Office 2007 of Microsoft Office 2007 is Office 2010 of the Microsoft Office 2010 world.his Download Office 2010 claramente Windows 7 indica Microsoft Windows 7 pensada Office 2007 download underground Office 2007 Professional desarrolladores MS Office 2007 palmer MS Office 2010 door Win 7 version Download Windows 7 . Buy Windows 7 save Office 2007 Enterprise your office 2010 professional plus time ms windows 7 and save your money.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  [help me] to replace the text with javascript
•  The Lucene Revolution -- Open Source Technology
•  Re: Replacing patterns a^b with pow(a,b)
•  Re: windows service - web service - com
•  Re: Passing parameters to a perl program from a HTML form
•  Re: Cursor position line number in firefox.
•  Re: substitute of goto in java???
•  Re: store string from text file to vector
•  Re: Javascript: return not in function?


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2011