473,396 Members | 1,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1869
"Moojjoo" <Mo*****@discussions.microsoft.comwrote in message
news:0F**********************************@microsof t.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***@discussions.microsoft.comwrote in message
news:9E**********************************@microsof t.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.Lists ws= new myWebReference.Lists();
ws.Url = "http://site/SUBSITE/_vti_bin/lists.asmx";
ws.Credentials = System.Net.CredentialCache.DefaultCredentials;

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:addressin 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
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...
6
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...
0
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 =...
6
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...
0
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,...
1
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...
0
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...
7
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...
2
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.