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

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Passing document to webservice

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :Windows Application


I am passing applicants’ details (name, email, age etc) to a web service which in turn creates the applicant’s record in the web site db. Is there a way to pass the applicant’s CV (in word, PDF etc) to the web service as well so web service can upload the CV in the db too?



View Complete Post

More Related Resource Links

Problem passing custom object returned by the same webservice among two separate projects

I am running into casting issue with this scenario: 1. I made a custom object lets call it EmployeeObject.  2. The Employee object is wrapped in the EmployeeWebservice.  3. I have a client application project lets call it EmployeeClientApplication and a class library called DoSomeWorkClassLibrary.  Both EmployeeClientApplication and DoSomeWorkClassLibrary reference the EmployeeWebService and need to be able to pass the EmployeeObject back and forth.  4. The EmployeeClientApplication also references the DoSomeWorkClassLibrary. 5. The employeeObject in the EmployeeClientApplication becomes EmployeeClientApplication.EmployeeWebService.EmployeeObject. 6. The employeeObject in the DoSomeWorkClassLibrary becomes DoSomeWorkClassLibrary.EmployeeWebService.EmployeeObject. 7. The DoSomeWorkClassLibrary has a method called DoSomeWork that takes an EmployeeObject. When I try to pass employeeObject from EmployeeClientApplication to DoSomeWorkClassLibrary by doing something like this: DoSomeWorkClassLibrary.DoSomeWork(EmployeeClientApplication.EmployeeWebService.EmployeeObject), I am getting Unable to convert EmployeeClientApplication.EmployeeWebService.EmployeeObject to DoSomeWorkClassLibrary.EmployeeWebService.EmployeeObject.  I have searched high and low to fix this issue, I have tried changing the namespace of the reference.cs file of the webservice in

Ajax cascading dropdown and passing querystring to webservice



i am using Cascading dropdown, with following scenario.

a page "myPage.aspx" is loaded with a Querystring. [http://localhost/myVD/myPage.aspx?jobID=003]

this page contains 2 cascading dropdowns say state & City .  the idea is to fill the provinces Combo based on INCOMING querystring value "jobid".

also i have a webservice named "Mywebservice.asmx" which has webmethods to retrieve city based on jobID.

but since these webmethods are Contained in asmx . the querystring of the caller page is not visible to the webmetod of the service.

here's  snippet for reference/

public CascadingDropDownNameValue[] GetContainerByJobID(string knownCategoryValues, string category
            //StringDictionary categoryValues = CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues);
            //string jobId  = categoryValues["JobID"];

           string  jobId

Passing Folder through Webservice



                  Is it possible to Pass the Folder through webservice?


Thanks in Advance

Selvakumar Rathinam

Passing Calculated Columns from Sharepoint into Word Document Library Template


Hi all...

Another noob question.  I have been able to figure out how to pass single line text, date, etc. data from a Sharepoint List into a Word Template, but I am still trying to figure out how to pass a calculated column.  Is there a workaround?


Passing an array of objects back from a webservice

I can pass an object back from the webservice (e.g. a Person object).

I want to be able to pass back mutiple Person objects back from the webservice.

It does not look like you can pass a collection across from a webservice (if it is possible, please educate me on how).

Is it possible to pass back an array of objects? How would you do this?


lee franke

Problem with Deserialize XML Document from WebService

I have a problem when call a webservice method.


I have a web method (.asmx):

  • [WebMethod]

     public DataSet Item_GetAll()



    How to set the column values and add attchment in document library in sharepoint using webservice.



    Can you please provide me C# code to add attachment in document library and set the column values in document library.For this I can use only Web Services and not the object models





    Working with SharePoint document libraries

    Document libraries are collections of files that you can share with team members on a Web based on Microsoft Windows SharePoint Services. For example, you can create a library of common documents for a project, and team members can use their Web browsers to find the files, read them, and make comments. Users with Microsoft Office 2003 can check out and edit the files as if they resided on a local or network drive.

    By default, your team Web site comes with a built-in document library named Shared Documents, which is listed on the Quick Launch bar as well as on the Documents and Lists page.

    jQuery $(document).ready() and ASP.NET Ajax asynchronous postback

    Many call it the ASP.NET jQuery postback problem, but using the technique below should make it no problem anymore. $(document).ready() isn't called after an asynchronous postback. What this means? You lose the functionality that should be executed within $(document).ready() after an UpdatePanel rendered its contents after an asynchronous postback.

    SharePoint Document Workspaces for Developers

    Office 2003 is being released this month, and a cast of supporting applications is already available. One of these is Windows SharePoint Services 2.0, the free team add-on for Windows Server 2003. If you're not familiar with SharePoint Services basics, take a look at What Developers Need to Know About Windows SharePoint Services. In this article, I'm going to drill into one key place where SharePoint and Office 2003 overlap: document workspaces

    Upload a File to a SharePoint Document Library - Part I

    The following helper class demonstrates a few techniques that allow documents to be uploaded to a SharePoint document library programmatically without using the API or a custom web service. You don't need to specify a document library name, and it will create any folders specified in the URL as required. File meta data will be updated if any properties are passed.

    SharePoint document migration challenges when migrating files and folders

    There are several challenges when migrating documents to Microsoft SharePoint. While these challenges can be overcome, they are a real pain if the migration source, content and file systems are not SharePoint friendly.

    Passing Linq Statement between master and content page


    I usually work with windows forms, and am just starting to work with ASP.Net, so appologies if this is a dumb question!

    I have a master page which has a search button on it. The results of this are built up using a Linq statement and if there are any results, I want to display the results in a contents page.

    On the masterpage, I have the following code:

    Private _res
        Public Overridable ReadOnly Property SearchRes()
                Return _res
            End Get
        End Property
     Private Sub DoSearch()
       'some code to get a linq result
        If res.Any Then
                _res = res
                Server.Transfer("SearchResults.aspx", True)
                'no results
                LabelNoRes.Visible = True
            End If
     End Sub

    On the SearchResults.aspx page I have this code.

    Dim m As pxSite = CType(Page.Master, MasterPage)
            If m.SearchRes IsNot Nothing Then
                Label1.Text = "Results found = " & m.SearchRes.Count
            End If

    m.searchRes is always nothing. 

    What am I doing wrong here?


    Passing values in pages


    Hi! Friends..

    how to pass the value from one page to another page in asp.net  with out Using State Management Concepts?

    Like 1. cookies


            3. QueryStrings

         With out using the above should pass the values...

    saving XML output from webservice


     I created a webservice that takes casenum as input and gives results as a dataset in an XML.

    I could make a web client to display the resulting dataset in a grid view. Pls see my code copied below.

    Now I want to create a console client that takes the casenum as input, to call the webservice and saves the resulting xml for further processing, but can't figure out how to just capture the xml to save. Here's the code for my web client. I would appreciate if you could help modify this tocapture the resulting xml to save file locally.

    Thank You.

    namespace ResultsWebServicesClient
        public partial class _Default : System.Web.UI.Page
            protected void Page_Load(object sender, EventArgs e)
            private void BindDataToGrid(string CaseNum)
                FG_Results results = new FG_Results();
                DataSet ds1 = new DataSet();
                ds1 = results.Get_FG_Results(CaseNum);
                GridView1.AutoGenerateColumns = true;
                GridView1.DataSource = ds1.Tables[0];
            protected void GetResults(object sender, EventArgs e)

    HTTP Post and WebService


    I am working on a application which will accept the data in the post request. My application also wants to expose a web service and want to call another web service. Considering all these 3 action that I want to do, can I create a single application which will have a web form which will accept the POST request and expose a web service at the same time.

    Although it may be possible to achieve this, Is this a correct way of doing it?

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