954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Sharepoint - add a custom web service

When I try to navigate to the service it shows me the methods like normal but when I try to see the wsdl I get a file not found error.

I have created both the wsdl.aspx and the disco.aspx. They have been deployed into _vti_bin folder.

I was able to find that an exception was thrown inside of wswsdl.aspx from:

try 
    {
        Server.Execute(newUrl);
    }
    catch (HttpException)
    {
        throw new System.IO.FileNotFoundException(OriginalBaseUrl);
    }


If you need any more information please let me know.

divin757
Light Poster
39 posts since Apr 2009
Reputation Points: 18
Solved Threads: 9
 

I was able to make some progress. Now it is displaying:


The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Reference to undeclared namespace prefix: 'soap12'. Error processing resource 'http://weivpc:87/_vti_bin/RemoteUpdateWebSer...

divin757
Light Poster
39 posts since Apr 2009
Reputation Points: 18
Solved Threads: 9
 

With a lot of prayer the answer was finally found :)

This namespace was defined after it was being used. xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"

I moved it to be inside '

divin757
Light Poster
39 posts since Apr 2009
Reputation Points: 18
Solved Threads: 9
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: