943,916 Members | Top Members by Rank

Nov 28th, 2008
0

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

Expand Post »
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.
Reputation Points: 10
Solved Threads: 2
Light Poster
btech_Saurabh is offline Offline
39 posts
since Jan 2008
Dec 14th, 2009
0
Re: WebException: The request failed with the error message:Document Moved :Object Moved
Hi,

Did you ever get an answer to this? I'm experiencing the same when trying to create a new document library.

Cheers,
Kia
Reputation Points: 10
Solved Threads: 0
Newbie Poster
KSDev is offline Offline
1 posts
since Dec 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in RSS, Web Services and SOAP Forum Timeline: Is it possible to configure .htaccess so tha username is already input?
Next Thread in RSS, Web Services and SOAP Forum Timeline: best server-side RSS aggregator? (output options)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC