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

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

connecting sharepoint webservice in java

Posted By:      Posted Date: October 25, 2010    Points: 0   Category :SharePoint
hi..  i m creating a blackberry application in which i have to connect a sharepoint webservice and retrive and post values from that..but that webservice is password protected.. it ask's username and password when i try to view the webservice itself..  is there any way to solve this authentication problem in java ?

View Complete Post

More Related Resource Links

C# / Java webservice


I am writting a client applicatin that acesses a webservice written by another company.  I need to test against this webservice but since it is live I need another place to test with.  I don't have access to the code from the webservice but have added a reference to my project.  I would like to create a test platform using C# which will run on IIS and not Java.

I have created a basic webserive using both the NetBeans platform and the VS/C# platform.  The problem I am having is if I dynamically change the web address from one to the other my client application complains that the webservice is invalid.  I have verified all the calls are the same.

Are there any setting with VS/C# that allow me to configure it to behave more like the Java webservice?  I don't have the server support to host the Java application for full testing along with other problems using the Java version.

I have run both services in the "WCF Test Client" and can see where the WCF service uses the varibles for request and the Java uses body/request but can't get the WCF to follow that format.  I read somewhere about changing the OperationContract with SoapRpcMethod but then the mentod is not longer exposed. I also tried a Web Service in .NET 3.5 instead of a WCF server but that seems to be more trouble and does not

Connecting to Sharepoint Using Windows XP Home




I'm new in using sharepoint and tried to use my windows xp home computer to connect on the company's network. However, when I am trying to join sharepoint as a client computer, I come up with the following message:

Run the wizard to complete networking setup

Problem however, is that the wizard doesn't run.

While I found info describing this issue for win 7 and vista, http://support.microsoft.com/kb/926505, I can't find any regarding XP home.

Can someone kindly assist?

Video: Connecting PivotTables in Excel 2007 to Data Stored in SharePoint Lists

Learn how to use the Open XML SDK 2.0 to create Excel 2007 PivotTables that are connected to data stored in SharePoint lists.

Connecting a Sharepoint Custom list with an external Data-source

Hi I am planning to connect a Sharepoint Custom list with an external Data-source. External DB will be in Access 2007 format. More Information: I need a solution that we can connect our sharepoint list (one-way) to online db in a way that new  information is directly updated in the sharepoint list, whilst other info changed in sharepoint list  is not synced back to original value. Is there a way to solve this? -saumil

Access sharepoint web services from java

Hi, I want to access sharepoint web services using jax-ws. Has anyone tried it? I can't find an example for it.   Thanks!Ori

how to pass sharepoint webservice credentials without hardcoding the credentials?

Hi,         i have a requirement where i need to use lists.asmx webservices. whenever an item is created in  announcement list on server A, its reference i.e. the item id needs to be added to the announcement list on server B. i got this done working, but i hardcoded the credentials for the webservice. something like this cmoss2.Lists StudentList = new cmoss2.Lists(); StudentList.Credentials = new System.Net.NetworkCredential("administrator", "admin1234", "myDomain"); StudentList.Url = "http://cmoss:6789/_vti_bin/lists.asmx"; cant we do this with out hardcoding the credentials? kindly suggest me, if there is any workaround. Thank you all  

WCF MTOM Client calling Java Webservice - Issues with File attachment Content ID encoded in SOAP mes

Hello,I'm having difficulty calling a MTOM enabled Java based web service that accepts an file as input..NET appeats to be generating a SOAP message where the reference to the binary part of the message is an encoded url.For Example:  <inc:Include href="cid:http%3A%2F%2Ftempuri.org%2F1%2F634000265217257868" xmlns:inc="http://www.w3.org/2004/08/xop/include"/>In fact, the Content ID defined in the SOAP message, looks nothing like the actual Content ID of the actual message part.Content-ID: <http://tempuri.org/1/634000265217257868=2787915398744@soapui.org>The service is invoked and executed on the java webserver...but the data element appears to be null.I do not believe the java web server understands the reference in the SOAP message because it is encoded....Or...perhaps it's because the Content-ID attribute has extract stuff on it.I'm working with a custom MTOM encoder in WCF....is there a way to generate your own Content ID or tell .NET not to encode the url?My frustration with .NET has reached an all new level with this project...Any help would be greatly appreciated.Here the SOAP message that is being generated:<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:ns="http://docs.oasis-open.org/ns/cmis/messaging/200901" xmlns:ns1="http://docs.oasis-open.org/ns/cmis/core/200901&q

Issues connecting SharePoint Workspace 2010 with SharePoint 2010

Has anyone tried using sharepoint 2010 client with networksolutions sharepoint 2007 server? i recently updated to office 2010 and also decided to start using sharepoint as it seems to be a great way to get things done with the team i manage internationally. Problem is that when i signed up for the sharepoint server service with network solutions it turns out that they are using sharepoint server 2010. every time i try to connect to the server using sharepoint 2010 from my desktop i get the following error message "sharepoint workspace cannot sync with the specified sharepoint site because its server version is not supported". I'm using office 2010 14.0.4760.1000 (32-bit). Can you guys let me know what i can do (besides downgrading sharepoint 2010 to 2007) to actually connect? surely i don't have to downgrade what i just bought to get this done? Any help appreciated.

Namespace Conflict while accessing webservice from java script






Hi All,

I am using Asp.Net with C# , I am trying to access web service from java script using below code


DCen.RC.RController.Update(_User, _UserId, _ContObjId, _IsUnrAllowed, _UserRatiowed, _Localed,  SucceededCallback, FailedCallback);<br/>

The above line is working fine in my local env. but when i am trying to deploy it on server it through exception and said "DCen not Defined "

Plese help me out


Thanks in advance

Sharepoint + SSRS -Report Security??? An unexpected error occurred while connecting to the report s


I am able to deploy reports and run them as the farm admin that I did the Grant entry for in CA > App Mgt > Reporting Services > Grant DB access.


However, my AD personal user that has Local admin on every server has integrated SA security to the SSRS and Sharepoint Database is a Farm admin get's this error trying to run the reoprts.


An unexpected error occurred while connecting to the report server. Verify that the report server is available and configured for SharePoint integrated mode.


Now if I log in as the farm admin ( the user I did the grant on) I can run and add the reports to the SSRS webpart... Am I going to have to add every user through that Grant feature? With integrated Sharepoint security there is no /reports virtual to decide what users can run  what reports so I'm not sure..


Some  other details.. I'm using Kerberos security, and CA > App mgt > Reporting Services > Manage integration mode is set to Trusted (not Windows).. otherwise .. I can't pull up Default settings under that Reporting Services section of CA.


I also d

Getting Exception: Testing Custom Webservice deployed on SharePoint 2010 using VS 2010 Pro


Hi there, I am a newbie in Webservice programming.
The exception:
The Address property on ChannelFactory.Endpoint was null.  The ChannelFactory's Endpoint must have a valid Address specified.
I have read many sites in internet (found unfortunately only for VS2008 and SP2007) and tried many things, but always failed. I really need your help to solve this problem. Thank you in advance.

I am trying to test a custom webservice deployed on Sharepoint 2010:

The webservice can be called: http://localhost/_vti_bin/StructureSearch/StructureSearchService.svc
And I got instructions like below: 

svcutil.exe http://localhost/_vti_bin/StructureSearch/StructureSearchService.svc?wsdl

This will generate a configuration file and a code file that contains the client class. Add the two files to your client application and use the generated client class to call the Service. For example:

C# .. and so on

So I created a simple c# console app like following:

SQL Data via SharePoint WebService?


I am working on a project that tracks users supply requests in SharePoint.

I have an extremely complicated workflow that is functional
I have the form now populating various data elements using SharePoint Profile data.
My next hurdle I am exploring is an auto-lookup area.
What I need to do is provide a method to the user to search (best if context enabled) standard stock numbers on the fly as they type in their request.

What I have is a SQL database with over 3 million rows of stock numbers and products.

What I am contemplating is:

1. Move all that data into a sharepoint list and explore opportunities there.

2. Use jQuery once the form is completed to do the backend querying

3. Connect SharePoint to the external datasource and pull the data in that way


I am sure this is something not that uncommon - probably more an "InfoPath" question than a SharePoint one, but...

Has anyone tackled this issue?  Any tips?

update list text or date value via sharepoint designer using JAVA


Hi All,

Bit of a noob question - but tried all sorts and can't get this to work - also first time i've ever used sharepoint.

(I'm using sharepoint designer 2007) I have a form, on the form i select a type (drop box choice) and it hides or displays a related field, I want to auto populate the field when it displays, below is the java i have currently. 

Please advise how to populate (date field) with tommorows date, and also if it was a text field with the word "testdre"

<script type="text/javascript">
  function hideFieldsOnStart()
   //hide the control at start
   var control = getTagFromIdentifierAndTitle("input","TextField","Urgent Change Justifacation");
   //add an onchange event to the dropdown
   getTagFromIdentifierAndTitle("select","DropDownChoice","Change Type").onchange = function() {ChangeEvent()};
  function ChangeEvent()
   //get the dropdown

How to get Email of Current User Data View Web Part Sharepoint 2010 and pass to WebService data sour

I have to pass in the email address of the current user to a web service data source (run time) of a Data View Web Part.

My Question is:

a) How can I get Email address of current user based  in DVWP.
I know we can get the CurrentUser using the CurrentUserName but how do we get the Email for the Current User.

b) After getting the Email how do we pass to the Web Service.

Unable to attach webservice on sharepoint ?


Hello sir,

I am working on WSS 3.0 . I need to use Auto complete type textbox .

I have  created user control webpart . In that i have taken textbox and attached AJAX extender for autocomplete text.

I have written webservice for that. when click in textbox i see textbox displayes undefined data.

From webservice i m fetching data from database.

and set ajax  extender service name to this as Webservice.asmx.

Actually  my webservice is running underASP.net dev server.

can u please tell me how to write webservice for sharepoint and where to deploy that .asmx page.


thank you in advance,



Unable to write webservice for sharepoint site


Hello all,

I want to write webservice for Autocomplete textbox in sharepoint webpart.

can you please tell me steps ?



Unable to attach webservice on sharepoint ?


Hello sir,

I am working on WSS 3.0 . I need to use Auto complete type textbox .

I have  created user control webpart . In that i have taken textbox and attached AJAX extender for autocomplete text.

I have written webservice for that. when click in textbox i see textbox displayes undefined data.

From webservice i m fetching data from database.

and set ajax  extender service name to this as Webservice.asmx.

Actually  my webservice is running underASP.net dev server.

can u please tell me how to write webservice for sharepoint and where to deploy that .asmx page.


thank you in advance,



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