John as you can see it drops my /sites/MySite/Subsite/ part of the URL. This
is from the lists.wsdl file
When the Web service is created the following files are created:
lists.disco
lists.wsdl
Reference.map - Reference.cs
<wsdl:service name="Lists">
<wsdl:port name="ListsSoap" binding="tns:ListsSoap">
<soap:address location="http://xxx.xxxxx.com/_vti_bin/lists.asmx" />
</wsdl:port>
<wsdl:port name="ListsSoap12" binding="tns:ListsSoap12">
<soap12:address location="http://xxx.xxxxx.com/_vti_bin/lists.asmx" />
</wsdl:port>
</wsdl:service>
John in addition. I am just curious if this should or should not be happening?

Signature
<moojjoo/>
> John as you can see it drops my /sites/MySite/Subsite/ part of the URL. This
> is from the lists.wsdl file
[quoted text clipped - 30 lines]
> >
> > What's in address element of the WSDL?
Moojjoo - 11 Feb 2008 14:41 GMT
John,
I just performed a find a replace of the
http://xxx.xxxxx.com/_vti_bin_/lists.asmx
with
http://xxx.xxxxx.com/ /sites/MySite/Subsite/_vti_bin_/lists.asmx
And my code started working because my code is not consuming the correct
list by GUID.
I am concerned I have a problem with my VS2005 and trying to program against
Web services. I am hoping there might be something I am missing or I am
concerned there is something not setup correctly with my IDE.
In addition I have to change the URLs in the
Settings.settings
app.config
My thoughts are this should not have been an issue unless I am missing
something.

Signature
<moojjoo/>
> John in addition. I am just curious if this should or should not be happening?
>
[quoted text clipped - 32 lines]
> > >
> > > What's in address element of the WSDL?
> John as you can see it drops my /sites/MySite/Subsite/ part of the URL.
> This
[quoted text clipped - 32 lines]
>> > know that I am trying to get the WebReference from
>> > /sites/MySite/Subsite/?
From the WSDL you've posted, it appears that Visual Studio 2005 is doing the
right thing. It's using the URL specified in the WSDL.
The question is, "Why is SharePoint putting that particular URL into the
WSDL?". You should ask that question on one of the SharePoint newsgroups,
or one of the SharePoint forums on MSDN.

Signature
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer
Moojjoo - 12 Feb 2008 13:45 GMT
John,
I will move this post to the forum for SharePoint, but I still do not
believe this is performing as it should.
I will keep you posted.

Signature
<moojjoo/>
> > John as you can see it drops my /sites/MySite/Subsite/ part of the URL.
> > This
[quoted text clipped - 39 lines]
> WSDL?". You should ask that question on one of the SharePoint newsgroups,
> or one of the SharePoint forums on MSDN.
FredB - 15 Mar 2008 19:02 GMT
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...
> John,
>
[quoted text clipped - 46 lines]
> > WSDL?". You should ask that question on one of the SharePoint newsgroups,
> > or one of the SharePoint forums on MSDN.
John Saunders [MVP] - 15 Mar 2008 20:18 GMT
> This particular issues caused me to throw a small fit for far too long...
>
[quoted text clipped - 7 lines]
>
> 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.

Signature
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer