WebException: The request failed with the error message:Document Moved :Object Moved

Please support our RSS, Web Services and SOAP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jan 2008
Posts: 39
Reputation: btech_Saurabh is an unknown quantity at this point 
Solved Threads: 2
btech_Saurabh's Avatar
btech_Saurabh btech_Saurabh is offline Offline
Light Poster

WebException: The request failed with the error message:Document Moved :Object Moved

 
0
  #1
Nov 28th, 2008
Hi Community.....

"The request failed with the error message:<head><title>Document Moved</title></head>\n<body><h1>Object Moved</h1>This document may be found <a HREF=\"http://moss:25031/sites/Transformers/default.aspx\">here</a></body>"

I get this error whenever i trying to use my WebServices via Proxy Class.
I have created a Custom WebService, It builds fine. Then i created a .disco and .wsdl file by using disco command.
because this service is for sharepoint so thats why i did some changes in .wsdl file. for confirmation i check the url in browser it shows me my wsdl file data. then i create Proxy class by using WSDL command with url/myTest.asmx?WSDL. i get myTest.cs proxy class. Now i am using this proxy class in windows application, when i try to use any method of my Webservices it show me error..
my code in WinApp is

            myTest test = new myTest(url);
            test.PreAuthenticate = true;
            test.Url = url;
            testCredentials = CredentialCache.DefaultCredentials;

   string st = test.GetAllData(configEN);

last line shows me error.
"The request failed with the error message:<head><title>Document Moved</title></head>\n<body><h1>Object Moved</h1>This document may be found <a HREF=\"http://moss:25031/sites/Transformers/default.aspx\">here</a></body>"

configEN is nothing but a string type variable which is used in WebServices WebMethod.
Last edited by peter_budo; Nov 28th, 2008 at 12:58 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the RSS, Web Services and SOAP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC