473,787 Members | 2,857 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding Web Service Reference from SharePoint lower level site coll

I am having a heck of a time with accessing the Web Services for a
particular site collection.

I try to add a Web reference to VS2005 for example.
http://URL/Sites/sites/MySite/Subsit...bin/lists.asmx

The Web service is added with the Web Reference URL set correctly as shown
above, but in the Lists.disco and Lists.wsdl the /sites/MySite/Subsite is
always dropped in the IDE. Any thoughts?

I am going to change the URLS in the files manually, but shouldn't VS2005
know that I am trying to get the WebReference from /sites/MySite/Subsite/?

I am using MOSS 2007 as well.

--
<moojjoo/>
Feb 8 '08 #1
2 1886
"Moojjoo" <Mo*****@discus sions.microsoft .comwrote in message
news:0F******** *************** ***********@mic rosoft.com...
>I am having a heck of a time with accessing the Web Services for a
particular site collection.

I try to add a Web reference to VS2005 for example.
http://URL/Sites/sites/MySite/Subsit...bin/lists.asmx

The Web service is added with the Web Reference URL set correctly as shown
above, but in the Lists.disco and Lists.wsdl the /sites/MySite/Subsite is
always dropped in the IDE. Any thoughts?

I am going to change the URLS in the files manually, but shouldn't VS2005
know that I am trying to get the WebReference from /sites/MySite/Subsite/?

I am using MOSS 2007 as well.
What's in address element of the WSDL?
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer
Feb 9 '08 #2
"FredB" <Fr***@discussi ons.microsoft.c omwrote in message
news:9E******** *************** ***********@mic rosoft.com...
This particular issues caused me to throw a small fit for far too long...

anyway, i easily fixed it by manually setting the .Url property to the
correct site...

i.e.
myWebRerence.Li sts ws= new myWebReference. Lists();
ws.Url = "http://site/SUBSITE/_vti_bin/lists.asmx";
ws.Credentials = System.Net.Cred entialCache.Def aultCredentials ;

WSS v3 i think is at fault here...
I've learned a bit more about SharePoint since your previous posts. I have a
new theory about this now.

All of the files in a SharePoint site are identical to the files in the
parent site collection until you customize them. This is true for the .aspx
pages, isn't it? So why would it not be true for the .asmx files, or even
any .WSDL files if there are any? Among other things, this implies that the
URL in any such a file will still be the URL of the site collection.

At any rate, like I said, the <soap:address in the WSDL is only a hint. You
should never depend on it being there, or being valid.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer
Mar 15 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2281
by: Ken Wigle | last post by:
All, I am trying to add some .net applications I wrote to a virtual directory underneath the sharepoint services web site. I am having some problems and wondering if a) this is possible and/or recommended and b) if there is another way. I want to add the projects under the sharepoint site as I want authentication but do not want my users to have to login everytime they access a net app from within the sharepoint site. Ideally, they...
6
2149
by: Michael S | last post by:
Not sure if I'm posting in the right group but here goes. I am getting the following error when trying to browse to an .aspx page which I have set up in a virtual directory under the default companyweb sharepoint site on Microsoft SBS 2003. I've tried various suggestions I've seen in other posts but no luck. I've also tried giving every single user/group full permissions to the directory and files but still no luck. The page works...
0
1378
by: kstriyhon | last post by:
hellow i need to get sharepoint user credentials, in order to get this information i'm using the next code. in a C# web service SPSite site = new SPSite("http://sharepoint/"); SPWeb web = site.OpenWeb(); string cadena = web.CurrentUser.LoginName; when i run the web service i get this error Cannot connect to the configuration database
6
4018
by: George Shui | last post by:
I first installed Visual Studio .net on my local computer without installing Frontpage Server Exetension 2002 and I tried creating Web Sites and find it work well. Then I installed Sharepoint portal server on the same computer. The sharepoint portal server works well now. But now when I create new web site in Visual Studio .Net. The error appears: The default web access mode for this project is set to file share,but the project folder...
0
1965
by: mollyf | last post by:
I've got a combo box that I want to bind a collection to. I got the error "Complex Data Binding accepts as a data source either an IList or an IListSource" so I tried using the BindingSource, which works except when I want to have a blank line as the first item in the combo box--then all that is displayed is the type of object. Here is the code for filling the collection: Public Function GetCollection(ByRef cndb As SqlConnection,...
1
2605
by: Vegivore | last post by:
When adding a web reference to a sharepoint web service in VS, it finds the service and it's methods fine - displays the methods in the Add Reference dialog. But in the Web Services found at this URL: box on the right, it says There was an error downloading 'http://<server><site>/_vti_bin/lists.asmx'. The request failed with HTTP status 404: Not Found.
0
875
by: Ashwin Kumar | last post by:
Hi, Could anyone help me out to write a web service which copies a file from a document library of a sharepoint site to another document library of another sharepoint site. Please note that the other sharepoint site resides on a different server farm. Thanks in advance, Ashwin
7
2121
by: dgk | last post by:
I'm trying to use a Sharepoint webservice. I start a new VB Windows project (VS2008 or 2005). I add a web reference to the Copy service (http://192.168.1.25/_vti_bin/copy.asmx). I add no code, all I've done is start a new project and add the reference. I build the project and get this error: Error 1 'Results' is already declared as 'Private results() As Object' in this class. C:\Documents and Settings\user1\Local Settings\Application...
2
5564
by: Arielle | last post by:
Foreword: Our Sharepoint site runs off both Forms Based and Windows Authentication. That being said some users have dual accounts for both methods of authentication...but not all users. Each account has unique ID's but runs off different SSPs. Problem: Currently working on a tool that one piece (the one I need help with) is having issues adding users to a specified SharePoint group. I am getting a legitimate SPUser but when I try to add...
0
9497
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4067
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.