.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

search.asmx SharePoint2010 WebService

Posted By:      Posted Date: October 01, 2010    Points: 0   Category :SharePoint
 

Hi All,

I am querying SharePoint 2010 from an external ASP.NET application using the WSS Search web service (/_vti_bin/search.asmx).

The page currently just has a text box and a submit button, with a standard gridview control. 

I want to use the queryex method which returns the results in a DataSet and I'm using the SQL-based search format with a specific scope.

Can anybody help me to code for the same ASAP.??

Thanks,

Alex




View Complete Post


More Related Resource Links

Writing Data to database with jQuery Forms, ASMX Webservice, & JSON - help!

  

Hi, 

Can someone point me in the right direction on how to submit data from a jQuery form to a ASMX webservice? I have gotten everything on the form ready to be submitted to the database and now I am stuck on how to send it over using $.ajax(). Everything I have read tells me how to get data from a webservice and display it with jQuery, but not the other direction nor how to access the json data within the within the webservice service(similar to a Request.Form approach with ASP.NET forms).

In other words: 

1. What do I need to do to my webservice to make sure it can receive data from the jQuery form. 

2. What do I need to do in jQuery to receive an acknowledgement the save on the server side was successful. 

I can explain more if need be, but if there is a comprehensive tutorial on not only reading, but also WRITING data with jQuery, JSON, etc. I would love to get pointed in that direction. 


Search Webservice Impersonation

  

 

 

 

 

 

Hi,

 

We are looking for some help with Impersonated SharePoint Search.

We are trying to execute a search with a given user and having no luck.

 

We have tried the methods in this article and it’s not hiding results that the user does not have access to.

Problem With SharePoint Designer 2010 and the Search.asmx Web Service

  
I've created a web service datasource on a 2010 site using SharePoint Designer. When I try to make use of the datasource on a page I get the "The server returned a non-specific error when trying to get data from the data source..." message. The datasource connects to _vti_bin/search.asmx. I am using the QueryServiceSoap port and operation QueryX. I've tried various queryXml strings, including site & people searches using both SQL and keyword syntax. eg <?xml version="1.0" encoding="utf-8" ?><QueryPacket xmlns="urn:Microsoft.Search.Query" Revision="1000"><Query domain="QDomain"> <SupportedFormats><Format>urn:Microsoft.Search.Response.Document.Document</Format></SupportedFormats> <Context>   <QueryText language="en-US" type="MSSQLFT"><![CDATA[ SELECT Size, Rank, Path, Title, Description, Write, Filename, Description, Author FROM scope() WHERE CONTAINS ('"Lorum"') AND  ( ("SCOPE" = 'All Sites') )   ORDER BY "Rank" DESC ]]></QueryText> </Context> <Range><StartAt>1</StartAt><Count>20</Count></Range> <EnableStemming>false</EnableStemming> <TrimDuplicates>true</TrimDuplicates> <IgnoreAllNoiseQuery>true&l

search api SharePoint2010

  

Hi All,

My requirement is as follows,

there is a simple search textbox.When the search text is entered, on the search button click, it should display the document names & the URL of that document.

Pls. help me to code for the same as I am new to SP. Thnks in advance.

Alex


search api SharePoint2010

  

Hi All,

My requirement is as follows,

there is a simple search textbox.When the search text is entered, on the search button click, it should display the document names & the URL of that document.

Pls. help me to code for the same. Thnks in advance.

Alex

 


search api SharePoint2010

  

Hi All,

My requirement is as follows,

there is a simple search textbox.When the search text is entered, on the search button click, it should display the document names & the URL of that document.

Pls. help me to code for the same. Thnks in advance.

Alex


search api SharePoint2010

  

Hi All,

My requirement is as follows,

there is a simple search textbox.When the search text is entered, on the search button click, it should display the document names & the URL of that document.

Pls. help me to code for the same as I m new to SP. Thnks in advance.

Alex


how search.asmx service is related to TEMP folder

  

Hi,

In our application search.asmx web service call fails with this error message “Server was unable to process request. --> Could not find a part of the path 'C:\Users\useraccount\AppData\Local\Temp\iiz6nwo4.tmp'”.

How is this web service related to TEMP folder? Can this dependency be removed or changed to any other location?

Thanks,

 

 


Having problem using ASMX based webservice on IIS 7.0

  

Hello everybody iam new to .NET and sybase so i need some help on solving the issue.

My project is to make a web app (running fine on XP/ IIS5.0 )compatible with vista and windows 7.I have a delphi desktop application running and is connected to Sybase database now iam working on NET web application which uses a Asmx based webservice to connect to same database .I am not trying to open a new connection rather trying to use (share) the same connection to database opened by delphi desktop application.When i tried using the webservice setup on IIS 7.0  to connect to database i got an error in the browser which follows after the Note:

Note: Runninng on ASP.NET De

lists.asmx webservice an unexpected error occured

  

I have a sharepoint site and am using the list.asmx webservice to update rows in a list.  My code was working well.  For some reason, after doing a very large batch of updates, the same code now gives this error each time I run it.  The strange thing is that everything worked, I did a large batch then everything broke.  I switched to another site and it worked again.  I did a large batch and everything once again broke.

<Result ID="1,Update" xmlns="http://schemas.microsoft.com/sharepoint/soap/"><ErrorCode>0x80131904</ErrorCode><ErrorText>The operation failed because an unexpected error occurred. (Result Code: 0x80131904)</ErrorText>


WCF(.SVC) Versus WebService(.ASMX) Performance

  

OS:  Windows2008 x86

I have developed a 30 concurrent user performance test comparing the performance of WCF versus web service.  The test applications are identical except for WCF/web service calls.

The web service massively out performs WCF:  average web service call 400MS, WCF 2250MS during the test.

Are there any configuration parameters that would constrict WCF performance?

I changed the WCF web.config as follows:

<

 

serviceBehaviors>

<

 

behavior

How to execute WebService asmx link from Default.aspx page link using HTTPRequest and HTTPResponse?

  

Hi Community

    I have spent a couple of days on this one.  I have an ASP.NET website that has Linkbuttons on
the Default.aspx page..  I added a WebService to the Website because later on the WebService will
subscribe to a Provider(Feed) of News, Sports and Weather and things like that.  So when a Linkbutton
on the Default.aspx page is clicked it will connect to the link in the WebService which will load the News,
Sports or Weather onto  the Default.aspx web page.  

    The problem is I can't get the LinkButton to execute the Link in the WebService.  The link will call the page up
to where you see all of the Web References.  But then if you want to execute one of those references you
have to click its link and the Invoke button that will follow. My questioh is how can the link on my Default.aspx
page execute the link in the WebService.  Now I changed the LinkButton into an <a href> but I still can't execute
the link in the WebServices.  I always use www.Microsoft.com as the link when testing and I wasn't sure about the return type
so I put "void" for an HTTPRequest,  so below is the link from the Default.aspx web page and below that is he asm

Webservice versions.asmx: Getversions-method returns error on an item of a custom list.

  

I using GetVersions from the webservice http://server/_vti_bin/versions.asmx. This method works Okay in SharePoint 2007, and in SharePoint 2010 it also works Okay on documents from a document library. But when I used on an item from a custom list, it returns an error stating: "Value cannot be null.\r\nParameter name: key". In SharePoint 2007 I could retrieve the histroy on an item with the call GetVersions("Lists/MyCustomList/5_.000"), in SharePoint 2010 this fails.

Do I need to change the parameter, or use another filename for an item instead of "5_.000"? Does any one have the same experience?

Thank you


Unable to AddTerm in Term Store Management using sharepoint webservice TaxonomyClientService.asmx an

  

Hi,

I was not able to add term in term store management using webservice http://server:port/_vti_bin/TaxonomyClientService.asmx

i am using the below code

TaxonomyClientService.Taxonomywebservice taxonomyClientService = new TaxonomyClientService.Taxonomywebservice();

        taxonomyClientService.Credentials = System.Net.CredentialCache.DefaultCredentials;

       

Cannot access Sharepoint List using Lists.asmx webservice

  
var a = new ActiveXObject("Microsoft.XMLHTTP");
a.Open("POST",
"http://servername/site/_vti_bin/Lists.asmx",true);
a.setRequestHeader("Content-Type", "text/xml;charset=utf-8");
a.setRequestHeader("SOAPAction", "http://schemas.microsoft.com/sharepoint/soap/GetListItems");

var d = "<?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:tns='http://schemas.microsoft.com/sharepoint/soap/'><soap:Body><tns:GetListItems><tns:listName>

Sharepoint2010 Custom Webservice SPContext

  

I wrote a custom webservice called Service.asmx in which I deployed its WSDL/DISCO aspx files and the webservice asmx into sharepoint's ISAPI folder and the webservice's strongly named dll into the GAC.  These work as they should.

If I create a webservice consumer that invokes a test method on my custom webservice, my webservice is able to obtain the SPContext of the sharepoint site pointed to by the URL.

If I open internet explorer on my webservice and manually invoke the same test method from the WSDL menu, my webservice reports the SPContext of the same sharepoint site is null.

In both cases the URL (for the reference to my webservice in the consumer, and what I keyed into internet explorer) is the same:

http://vm-spproduction/sites/resource/_vti_bin/service.asmx

Why does the webservice sometimes lose its SPContext?  How do I get the SPContext when I call the webservice from internet explorer?  Shouldn't the two invocations of the webservice not behave the same?  What am I missing here?

Andy


Sharepoint2010 custom webservice and GAC

  

Is it absolutely neccessary to deploy custom created webservice dlls that run out of sharepoint 2010 in the GAC?  Is there any way to create a custom webservice that runs out of sharepoint without having to strong name the assemblies?

I need to develop a webservice that accesses sharepoint 2010 APIs to support a seperate CRM 3.0 application that needs to create folders in sharepoint 2010 and upload documents.  Because CRM 3.0 can only run in the .net 1.1 framework, I have to create a webservice in sharepoint for CRM to call that acts as a proxy and executes CRM requests against sharepoint 2010 on its behalf.

Andy


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend