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 OpenOnline was
undefined.
Thank you for your help,
Marshall
<body>
<form id="form1" runat="server">
<atlas:ScriptManager ID="ScriptManager1" runat="server">
<Services>
<atlas:ServiceReference
Path="http://localhost/OpenOnline.SaveToPDF.WebServices/Service.asmx"
Type="OpenOnline.SaveToPDF.WebServices.Service">
</atlas:ServiceReference>
</Services>
</atlas:ScriptManager>
<div>
<asp:Button ID="save" runat="server" OnClientClick="SaveToPDF()"
Text="Save to PDF" />
</div>
<script type="text/javascript">
function SaveToPDF()
{
OpenOnline.SaveToPDF.WebServices.Service.SaveHTMLT oPDF('<html><body>hi</body></html>',
'marshall.pdf', OnRequestComplete);
}
</script>
</form>
<script type="text/xml-script">
<page xmlns:script="http://schemas.microsoft.com/xml-script/2005">
<references>
</references>
<components>
</components>
</page>
</script>
</body> 3 1922
the ATLAS library does not use SOAP, so you can not call a webservice with
it. if you use firefox or safari SOAP support is builtin. for IE there is an
unsupported behavior you can install.
-- bruce (sqlwork.com)
"Marshall" <Ma******@newsgroups.nospamwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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 OpenOnline was
undefined.
Thank you for your help,
Marshall
<body>
<form id="form1" runat="server">
<atlas:ScriptManager ID="ScriptManager1" runat="server">
<Services>
<atlas:ServiceReference
Path="http://localhost/OpenOnline.SaveToPDF.WebServices/Service.asmx"
Type="OpenOnline.SaveToPDF.WebServices.Service">
</atlas:ServiceReference>
</Services>
</atlas:ScriptManager>
<div>
<asp:Button ID="save" runat="server" OnClientClick="SaveToPDF()"
Text="Save to PDF" />
</div>
<script type="text/javascript">
function SaveToPDF()
{
OpenOnline.SaveToPDF.WebServices.Service.SaveHTMLT oPDF('<html><body>hi</body></html>',
'marshall.pdf', OnRequestComplete);
}
</script>
</form>
<script type="text/xml-script">
<page xmlns:script="http://schemas.microsoft.com/xml-script/2005">
<references>
</references>
<components>
</components>
</page>
</script>
</body>
The way its done is to do an AJAX call back to your server, then your server
does the web service call to the external server.
I know this seems inefficient, but browser security generally only allows a
web page to call back to its own server, so this extra steps is necessary.
Here are the implementation details: http://atlas.asp.net/docs/atlas/doc/bridge/default.aspx
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Marshall" <Ma******@newsgroups.nospamwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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 OpenOnline was
undefined.
Thank you for your help,
Marshall
<body>
<form id="form1" runat="server">
<atlas:ScriptManager ID="ScriptManager1" runat="server">
<Services>
<atlas:ServiceReference
Path="http://localhost/OpenOnline.SaveToPDF.WebServices/Service.asmx"
Type="OpenOnline.SaveToPDF.WebServices.Service">
</atlas:ServiceReference>
</Services>
</atlas:ScriptManager>
<div>
<asp:Button ID="save" runat="server" OnClientClick="SaveToPDF()"
Text="Save to PDF" />
</div>
<script type="text/javascript">
function SaveToPDF()
{
OpenOnline.SaveToPDF.WebServices.Service.SaveHTMLT oPDF('<html><body>hi</body></html>',
'marshall.pdf', OnRequestComplete);
}
</script>
</form>
<script type="text/xml-script">
<page xmlns:script="http://schemas.microsoft.com/xml-script/2005">
<references>
</references>
<components>
</components>
</page>
</script>
</body>
Thanks for your help Steve!
"Steve C. Orr [MVP, MCSD]" <St***@Orr.netwrote in message
news:Ow**************@TK2MSFTNGP05.phx.gbl...
The way its done is to do an AJAX call back to your server, then your
server does the web service call to the external server.
I know this seems inefficient, but browser security generally only allows
a web page to call back to its own server, so this extra steps is
necessary.
Here are the implementation details: http://atlas.asp.net/docs/atlas/doc/bridge/default.aspx
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Marshall" <Ma******@newsgroups.nospamwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>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 OpenOnline was undefined.
Thank you for your help,
Marshall
<body>
<form id="form1" runat="server">
<atlas:ScriptManager ID="ScriptManager1" runat="server">
<Services>
<atlas:ServiceReference
Path="http://localhost/OpenOnline.SaveToPDF.WebServices/Service.asmx"
Type="OpenOnline.SaveToPDF.WebServices.Service">
</atlas:ServiceReference>
</Services>
</atlas:ScriptManager>
<div>
<asp:Button ID="save" runat="server" OnClientClick="SaveToPDF()" Text="Save to PDF" />
</div>
<script type="text/javascript">
function SaveToPDF()
{
OpenOnline.SaveToPDF.WebServices.Service.SaveHTML ToPDF('<html><body>hi</body></html>', 'marshall.pdf', OnRequestComplete);
}
</script>
</form>
<script type="text/xml-script">
<page xmlns:script="http://schemas.microsoft.com/xml-script/2005">
<references>
</references>
<components>
</components>
</page>
</script>
</body>
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: amit |
last post by:
Hi.
I want to implement a right click context menu using Atlas for a web
app.
The page will list some usernames.
Right clicking on a username needs to send the user name to a
webservice,...
|
by: Michael Appelmans |
last post by:
I have essentially copied the samplelist2.aspx from the Atlas samples but
the autocomplete feature is not working in my page. The web service asmx
works from a browser. Thanks for any suggestions...
|
by: Tina |
last post by:
I'm trying to get started with Atlas and associated necessary javascript at
the same time. I started out at
http://atlas.asp.net/walkthroughs/gettingstarted/basic.net where they have
an...
|
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...
|
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...
|
by: s.bussing |
last post by:
Hi All,
I'm new to Atlas and I did some programming using AJAX, but I'm
wondering if it is possible to hava a javascript which can call a
server-site function, in my case to write data to the...
|
by: jmdolinger |
last post by:
Hi all,
I'm a newbie to Atlas (and recently ASP.NET) after coming from a long
Java background, also have done quite a bit with an Ajax.NET/ASP.NET
1.1 project, but it was basically all...
|
by: YellowFin Announcements |
last post by:
Yellowfin, Powered by J2EE, Jasper, BIRT, Spring, jfreeChart
Advanta releases ATLAS BI using Yellowfin Business Intelligence
3rd of August, 2007 - Advanta Software, specialist software...
|
by: =?Utf-8?B?SmltIE93ZW4=?= |
last post by:
Hi John,
Hopefully this post will find its way back to you - or perhaps be answered
by someone else. As I mentioned in my last post on the earlier portion of
this thread, changing the...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
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...
|
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
|
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...
| |