M
Marshall
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.SaveHTMLToPDF('<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>
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.SaveHTMLToPDF('<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>