| | |
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
![]() |
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
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.
"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.
![]() |
Other Threads in the RSS, Web Services and SOAP Forum
- Previous Thread: Possible to have multiple SOAP:body tags in one SOAP Message?
- Next Thread: CredentialCache.DefaultCredentials=null
| Thread Tools | Search this Thread |
.htaccess 301 accept access alltop api authentication binarysecuritytoken blog card collaboration credit data development ebay email evernote flash google government highrise htaccess intel internet legal live netbeans patent paypal php podcast proxy redirect rss rssfeeds searchmonkey server service soap software swappingxmlfromflash swappingxmlnodes url web webservices webservicesecurity wiki wikipedia xerces xml xslt y!os yahoo ydn





