473,804 Members | 3,397 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ATLAS with C# classes not WebServices

Greetings to all,

Can anyone tell me if Atlas can work directly with C# classes not
defined as a webservice.
sort of like a servlet class.
I would like to create a thin and thick client for my app. If I need
to use webservices to talk to my system for both cases, then that seems
to me to be a waste of resources. It would seem easier to create a
service layer which knows to return data as xml or string or object.

Thanks
Roger

Jan 17 '06 #1
2 1481
not exatly sure your question.

ATLAS callback pages are not a SOAP webservices. their main function over
the builtin client callback support in asp.net 2.0, is to support
serialzation of data for javascript. the classes the ATLAS callback page use
can be local or a webservice.

-- bruce (sqlwork.com)

<ro********@gma il.com> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. .
Greetings to all,

Can anyone tell me if Atlas can work directly with C# classes not
defined as a webservice.
sort of like a servlet class.
I would like to create a thin and thick client for my app. If I need
to use webservices to talk to my system for both cases, then that seems
to me to be a waste of resources. It would seem easier to create a
service layer which knows to return data as xml or string or object.

Thanks
Roger

Jan 17 '06 #2
Sorry that the question was not clear.

I have the following

SampleTest.cs class

namespace Samples.AspNet
{
public class SampleTest
{
public String getSampleInfo(i nt sample_id, string type)
{
XmlDocument xmlDoc = new XmlDocument();
SampleService sample = new SampleService() ;
xmlDoc = sample.getSampl eData(sample_id );
return xmlDoc.InnerXml .ToString();
}
}
}
called from
<script type="text/javascript" src="SampleTest .cs/js">
</script>

<script language="javas cript" type="text/javascript">

function GetSamples(){

var sample_id = document.getEle mentById("sampl e_id");

Samples.AspNet. SampleTest.getS ampleInfo(sampl e_id.value, "sample",
OnRequestComple te);
}

function OnRequestComple te(result)
{
populate html
}

Now if I create the SampleTest as a WebService, this will work
perfectly.

When I call it as a .cs file, I get a javascript error 'Samples' is not
defined

Please forgive me I am new to this.

Thanks
Roger

Jan 17 '06 #3

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

Similar topics

5
3490
by: Benne Smith | last post by:
Hi, I have three enviroments; a development, a testing and a production enviroment. I'm making a big application (.exe), which uses alot of different webservices. I don't use the webservices by adding a WebReference, since it does not allow me to keep state (cookiecontainer) or to specify functions on the classes (like if i want to override the ToString() function on a class from my webservice). So the only way i can see how i can get...
1
2283
by: Sarge | last post by:
Hi all, tough question. Apologies for the cross posting but it is an interesting architectural problem and I think deserves a wide audience. What is the best way to extend web service proxy classes so we can add our own methods and properties? We have an application that passes a deep hierarchical structure (four nodes deep) between a webservice and a smart client. We have built the web service using the Contract First Web Service...
1
1340
by: sales | last post by:
Hi Does ATLAS support the use of external javascript va this syntax --myPage.aspx-- atlas:ScriptManager ID="ScriptManager1" runat="server"> <Services> <atlas:ServiceReference Path="webServices/securityService.asmx" />
3
1948
by: Marshall | last post by:
Hello, I am wondering if it is possible to call a remote web service using ATLAS and if so, how. I have read several docs which show how to call a web service that is within the same project as the ATLAS 'enabled' web page but that is all I have found. In the example below, I would like to call the OpenOnline.SaveToPDF.WebServices.Service web service. I get a javascript error when trying to make the web service call saying that...
0
258
by: Mark Rae | last post by:
Hi, Have just downloaded and installed the latest July CTP of Atlas, created a test project, and have a question about web.config. When a test project is created from the Atlas template, the web.config contains the following lines: <configSections> <sectionGroup name="microsoft.web"
2
1168
by: Bob | last post by:
Hi, I develop aspnet applications (no webservices) often using gridviews with sorting and dropdownlist ... I was wondering whether i could use 'ajax' methods for speeding up my applications (e.g. when sorting, the whole page is refreshed) . Now i read about client callback and atlas and i have some questions about that. 1) what's the best i can use (atlas or client callback)?
0
1407
by: Daniel | last post by:
I wrote a pretty neat website today that can utilize no postback AJAXIAN type features. Basically to populate a drop down with a web service call that hits a SQL server, based off the change of another drop down. <%@ Page Language="C#" Title="Call Update" AutoEventWireup="true" CodeFile="UpdateCall.aspx.cs" Inherits="Call_UpdateCall" %>
4
2228
by: Brad Baker | last post by:
I'm trying to implement a gridview control using atlas & asp.net per the following article: http://weblogs.asp.net/scottgu/archive/2005/12/26/433997.aspx My frustration is that the page I've written seems to work fine on my local machine but when I upload it and execute it on the server the page doesn't use AJAX. (It reloads the entire page each time I make a change). I've loaded atlas on the server and I've uploaded several atalas...
3
14226
by: Joseph Geretz | last post by:
System.InvalidOperationException: WebServiceBindingAttribute is required on proxy classes. My environment: Visual Studio 2005, targeting FX 2.0; I've developed a Web Service which uses DIME to transfer file attachments to and from the server. I'm using WSE 2.0 SP3 which is supposed to support FX 2.0, as far as I know. (We will soon move on to MTOM, however I'm stuck with DIME for now; the solution was originally written for FX 1.1, and I...
0
9705
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10564
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...
0
10320
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10308
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
10073
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7609
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
6846
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3806
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2981
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.