ArticleDirectory
- Reason:
- Solution:
- Error message:
- Screenshot:
- Reason:
- Solution:
- Notice:
How to create custom SharePoint web service, you can see:
Http://www.walisystems.com/articles/SPS/uplservice/v1/creating%20a%20custom%20web%20service.htm
1
. Disco.exe:
When using the commond:
Disco http: // localhost/_ layouts/*. asmx
There is an error as follow:
Reason:
In the *. asmx file,
<%@ WebService Language= "C #" Class= "Customwebservicelib. customwebservice_getlists" %>
Solution:
Change:
<%@ WebService Language= "C #" Class= "Customwebservicelib. customwebservice_getlists, customwebservicelib, version = 1.0.0.0, culture = neutral, publickeytoken = fbe2e565a3b3e37d" %>
2
. Add web reference: error message:
The document at the url
Http: // localhost/_ vti_bin/customwebservices/customwebservice_getlists.asmx
Was not recognized as a known document type.
The error message from each known type may help you fix the problem:
-Report from 'xml scheme' is 'the document format is not recognized (the content type
Screenshot:
Click "service description ":
Reason:
When converting *. Disco to * disco. aspx and *. WSDL to * WSDL. aspx, there are some errors.
Solution:
You can copy the files of the system services, then rename the files;
Update the service name in the binding tags to your service name.
Notice:
There are two object models that can use:
<% Sphttputility. addquote(Sphttputility. htmlencode (spweb. originalbaseurl (request), response. output );%>
<%Response Code. writehtmlencodewithquote(Response, spweb. originalbaseurl (request ),'"');%>