locked
can not browse WSDL for FBA enabled sharepoint site RRS feed

  • Question

  • 1. I have enabled FBA for my sharepoint site.

    2. But whenever I tried to add WSDL reference it is showing the below errror. But I am able to add reference if it is not FBA enabled.

     

    The document at the url http://blrkec107225d:12857/_vti_bin/lists.asmx?WSDL was not recognized as a known document type.
    The error message from each known type may help you fix the problem:
    - Report from 'XML Schema' is 'Root element is missing.'.
    - Report from 'DISCO Document' is 'Root element is missing.'.
    - Report from 'WSDL Document' is 'There is an error in XML document (0, 0).'.
      - Root element is missing.
    Metadata contains a reference that cannot be resolved: 'http://blrkec107225d:12857/_vti_bin/lists.asmx?WSDL'.
    The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.
    If the service is defined in the current solution, try building the solution and adding the service reference again.

     

    Can anyone help me on this.

    Friday, October 29, 2010 6:32 AM

Answers

  • Since FBA works on a cookie basis, you need to login to your FBA site in order to obtain the authentication cookie before trying to add the WSDL reference.

    When the site is AD based, it will automatically authenticate behind the scenes, but because FBA sends the requestor to a login form, this fails as you indicated.

     


    I trust that answers your question...

    Thanks
    C

    http://www.cjvandyk.com/blog
    • Marked as answer by Leoyi Sun Wednesday, November 3, 2010 7:05 AM
    Monday, November 1, 2010 1:24 PM
    Answerer

All replies

  • Since FBA works on a cookie basis, you need to login to your FBA site in order to obtain the authentication cookie before trying to add the WSDL reference.

    When the site is AD based, it will automatically authenticate behind the scenes, but because FBA sends the requestor to a login form, this fails as you indicated.

     


    I trust that answers your question...

    Thanks
    C

    http://www.cjvandyk.com/blog
    • Marked as answer by Leoyi Sun Wednesday, November 3, 2010 7:05 AM
    Monday, November 1, 2010 1:24 PM
    Answerer
  • Well i am not sure about the architecture, but let me explain with scenario we have a public facing site which use lot of infopath form to capture data. The site is FBA secured on external side and its Windows Auth on internal. It still same site with two different authentication. Now while designing the InfoPath forms we use internal URL to connct to SharePoint Web Service and then publish it.

    What happens on external site (FBA) is user authenticated and then open this form which work without any issue as the form is processed on server side it uses internal url to get data and then display it on external web sites with FBA.

    I am not sure if you are trying toi use infopath or custom code. But this approach should even work in custom mode where your code connects to interanl URL with windows auth so that you can get to web services.

     

    • Marked as answer by Leoyi Sun Wednesday, November 3, 2010 7:05 AM
    • Edited by Mike Walsh FIN Thursday, December 9, 2010 5:59 PM Do NOT ask people to mark your posts
    • Unmarked as answer by Mike Walsh FIN Thursday, December 9, 2010 5:59 PM
    Tuesday, November 2, 2010 3:34 AM