I just received this ASP.NET Atlas question via direct email, so thought I'd answer it publically:
I have a web project that has a AutoCompleteExtender textbox. Everything works fine if my .asmx file is in the same project.
<atlas:AutoCompleteExtender runat="server" ID="CustomerList"> <atlas:AutoCompleteProperties Enabled="true" MinimumPrefixLength="1" ServicePath="NorthwindService.asmx" ServiceMethod="AutoCompleteCustomerList" TargetControlID="customer"/> </atlas:AutoCompleteExtender>
But as soon as I move the .asmx file to another project and add a web reference to the web project the WebMethod isn't being fired.
<atlas:AutoCompleteExtender runat="server" ID="CustomerList"> <atlas:AutoCompleteProperties Enabled="true" MinimumPrefixLength="1" ServicePath="http://server2/App/NorthwindService.asmx" ServiceMethod="AutoCompleteCustomerList" TargetControlID="customer"/> </atlas:AutoCompleteExtender>
Same Host but Different Applications
If the web service you're attempting to hit is on the same host (eg http://localhost/App1/MyPage.aspx calling http://localhost/App2/MyService.asmx) then your issue most likely revolves around the proxy generation.
Other than linking to external resource files (for example, image files, CSS files, script files, and so on), browser applications are restricted to accessing resources available on their home server. However, there is a great variety of Web services available on the Web, and the restriction to a home server limits what can be returned within the scope of a browser application.
To circumvent this restriction (in a secure way) you need to use an Atlas bridge, as documented here: