Summary: Common Errors in SharePoint WebService Development

Source: Internet
Author: User
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 ),'"');%>

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.