Calling A Webservice To Send Email
May 13, 2010I need to call this webservice from a ssis package.In the ssis package i should be mentioning the wsdl path of the webservice. How can wsdl path of a webservice be obtained?
View 4 RepliesI need to call this webservice from a ssis package.In the ssis package i should be mentioning the wsdl path of the webservice. How can wsdl path of a webservice be obtained?
View 4 RepliesI followed this link, it works fine with English Text. [URL] ....
My problem is when I am adding Arabic text to the message body it displays ???? format.
how Can i Send Email With Message Using Master Page in Asp.net?
EMail Sending PopUp Open In All Pages To Provide The User Sending Email Facility From All Pages...
I have almost the same problem as you have described in [URL] service. I have a asp.net webservice that calls a WCF service. On my development machine this is working fine. But if i deploy my ASP.net Webservice it is not working. Both the ASP Webservice en WCF service needs my cridentials. How did you solved your problem. In the logging of the WCF service I see that my credentials is not passing to WCF.
View 1 RepliesI am new to programming especially jQuery and webservices. I want to pass the values to the to database via the webservice. Below is the code for the .aspx page:
<html xmlns="[URL]xhtml">
<head id="Head1" runat="server">
<title></title>
<link href="[URL]"
rel="stylesheet" type="text/css" />
<script src="[URL]" type="text/javascript"></script>
<script src="[URL]"
type="text/javascript"></script>
<script src="[URL]"
type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$("#sortable").sortable();
$("#sortable").disableSelection();
$("#sortable input[type=text]").width($("#sortable img").width() - 10);
$("#sortable label").mouseover(function () {
$(this).parent().children("input[type=text]").show().val($(this).html());
$(this).hide();
});
$("#sortable input[type=text]").mouseout(function () {
$(this).parent().children("label").show().html($(this).val());
$(this).hide();
});
$(".ContainerDiv").hover(
function () {
$(this).find(".deleteClass").show();
},
function () {
$(this).find(".deleteClass").hide();
});
$(".deleteClass").click(function () {
$(this).closest("li").remove();
});
$("#orderPhoto").click(function () {
var photos = $.map($("li.ui-state-default"), function (item, index) {
var imgDetail = new Object();
imgDetail.Id = $(item).find("img").attr("id");
imgDetail.Caption = $(item).find("label").html();
imgDetail.Order = index + 1;
return imgDetail;
});
//photos contains all the photo and order and the chhanged caption.
//pass to server
$.ajax({
type: "POST",
url: "WebService.asmx/updateOrder",
data: JSON.stringify(photos),
contentType: "application/json; charset=utf-8",
success: function (data) {
if (data.d === "saved") {
$("<p>").text("New order saved!")
.addClass("success").appendTo("#left");
} else {
$("<p>").text("Save failed")
.addClass("failure").appendTo("#left");
}
}
});
});
});
</script>
<style type="text/css">
#sortable
{
list-style-type: none;
margin: 0;
padding: 0;
}
#sortable li
{
position: relative;
margin: 3px 3px 3px 0;
padding: 1px;
float: left;
text-align: left;
}
.deleteClass
{
/* PhotoListItem is relative so relative to it */
position: absolute;
top: 1px;
right: 3px;
background: black;
color: Red;
font-weight: bold;
font-size: 12px;
padding: 5px;
opacity: 0.60;
filter: alpha(opacity="60");
margin-top: 3px;
display: none;
cursor: pointer;
}
.deleteClass:hover
{
opacity: 0.90;
filter: alpha(opacity="90");
}
.image_resize {
width: 250px;
height: 250px;
border: 0;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<asp:ListView ID="ListView1" runat="server" GroupItemCount="15">
<LayoutTemplate>
<ul id="sortable">
<li id="groupPlaceholder" runat="server">1</li>
</ul>
</LayoutTemplate>
<GroupTemplate>
<tr id="itemPlaceholderContainer" runat="server">
<td id="itemPlaceholder" runat="server">
</td>
</tr>
</GroupTemplate>
<ItemTemplate>
<li class="ui-state-default">
<div class="ContainerDiv">
<div class="deleteClass">X</div>
<img id='<%#Eval("photo_id")%>' src='<%# "uploads/"+Eval("photo_file_name")%>' alt="" class="image_resize" />
<div style="height: 25px; margin-top: 3px">
<label>
<%# Eval("photo_title")%></label>
<input type="text" style="display: none" />
</div>
</div>
</li>
</ItemTemplate>
</asp:ListView>
<input type="button" id="orderPhoto" value="Save change" />
</form>
</body>
</html>
I used the debugging tool and can confirm that the photos contains the correct values. Its just calling the webservice part that I am unsure about.
I'm trying to call an asp.net webservice from the same project it's in:
[MethodImpl(MethodImplOptions.Synchronized)]
public static void OnFileCreated(object source, FileSystemEventArgs e) {
trackdata_analyse rWebAnalyse = new trackdata_analyse();
rWebAnalyse.Analyse(@"pending" + e.Name, "YOUNIVATE");
}
However i always get the following "HttpContext is not available. This class can only be used in the context of an ASP.NET request." when calling Server.MapPath from the webservice:
[WebMethod]
public int Analyse(string fileName, string PARSING_MODULE){
int nRecords;
TrackSession rTrackSession = new TrackSession() ;
string filePath = Server.MapPath(@"..data") + fileName;
Do i have to add the WebReference instead, though the webservice is in the same project?
i have code for forgot password using gmail account. But i want to send password for multiple domains like yahoo,rediffmail and more.
View 1 Replieshow to display Chart in Email body and excel attachment.
View 1 Repliesi will enter an email address in textbox i have button on the click of button i would like to send a mail Hello to the mail address provider
View 1 RepliesI need to call a Java webservice from my ASP.Net application. The webservice uses Java Key Store (JKS) certificate. Could some one help me with how I could do this? As a side note, when I try to add Web Reference or Service Reference to my Visual Studio project by providing the WSDL, Visual Studio always crashes.
View 1 RepliesWe have an ASP.NET website which calls a webservice. If impersonation is not on for the ASP.NET website the call to the webservice is slow - using WireShark we see that it is making WPAD queries. If impersonation is on and it's impersonating an admin user the call to the webservice is fast - using WireShark we that it is NOT making WPAD queries. Has anyone seen this before? How do we prevent the networkService, which by default is what the ASP.NET website uses, does not make WPAD queries. Why does impersonating as an admin user not cause WPAD queries?
This is the entry we see in WireShark:
NBNS Name Query NB WPAD<00>
Here is aspx code. that refers Master Page.
<
asp:TextBox
ID="txtClientSearch"
CssClass="txtfld01"
Width="75%"
runat="server"></asp:TextBox
[Code]....
Now i dont understand why my Autoextender is not call the webservice. I have tried callin the webservice from button click event...it works but not using AutoExtender..
I have an old legacy webservice that I need to call from a controller ActionResult and I have no idea how to do it.
View 5 RepliesI have an intranet application that is calling a webservice (code below). The webservice calls a stored procedure in q sql server 2005 that again does an openquery on a db2 (AS400) machine. The stored procedure is returning a temp table. On the call to the webservice I am getting a time out. At this point if time out the web service is still running and I can also see the query is in the program stack on the db2 machine. The query itself can take up to 20-30 minutes as it is reading 3 mill+ records. If I call the web service directly I get the result returned.
Code:
Dim getOrderDetail As New localhost.OrderDetail
myDataTable = getOrderDetail.GetOrderDetailRecords_DataTable(myUserId)
in my web i want to send email to distribution list instead of email addresthis is my code:
message.From = New MailAddress("Innovate_Web@KISR.EDU.KW")
message.To.Add(New MailAddress("mmahdi@safat.kisr.edu.kw"))
'message.To.Add(New MailAddress("innovate@safat.kisr.edu.kw"))
message.Subject = "Email from contact page in Innovate Web"
message.BodyEncoding = Encoding.UTF8
[code]...
I am trying to send an email from asp.net using a google apps email.
I found this question which did not resolve the issue
Send Email via C# through Google Apps account
The part that I am really confused about is that it works with these settings
<smtp from="****@gmail.com" deliveryMethod="Network">
<network host="smtp.gmail.com" port="587"
userName="****@gmail.com" password="****"[code]....
and get the following error message
"The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required."
I found this article as well http://www.google.com/support/forum/p/Google+Apps/thread?tid=2cbb54572fea6939&hl=en and worked through this but that did not resolve me issue either.
These are sender settingcode in web.config
<configuration>
<appSettings>
<add key="Host" value="smtp.gmail.com"/>
<add key="EnableSsl" value="true"/>
<add key="UserName" value="neda@gmail.com"/>
<add key="Password" value="xxxx"/>
<add key="Port" value="587"/>
</appSettings>
<connectionStrings/>
here is sender email but i want there wasn't any email address.I mean i want when users click on button and send me an email there wasn't any email address in sender details.
I'm generating a file on the server which takes some time. For this, I have a hidden iframe which I then set the .src attribute to an aspx file i.e iframe.src = "/downloadFile.aspx"While this is taking place, I'd like to have a call to a web service return the progress. To do this, I thought I could use window.setInterval or window.setTimeout but Javascript seems to be blocked as soon as I set the iframe src attribute.Does anyone know how to get around this or perhaps try a different approach?I have also tried handlers, but the request never gets to the server so I'm assuming is a browser/javascript issue.
//Function that gets the file
function GetFile() {
setTimeout(GetProgress, 1000);
var iframe = document.createElement("iframe");
[code]...
This is the webservice am using.
[code]....
But my function is not going to Hello() soon after calling SetOCXVariables()
After my 'P' comes undefined and does the remaining, it goes to hello()
why is this happening?
I've tried a bunch of different examples and still can't get this to work. I have a jQuery GalleryView control I'm using and I simply want to log impressions. I set up a webservice that works, but I can't figure out how to get it to work in javascript. I have verified that the webservice is working as expected.
Imports System.Web
I've inherited a half completed application that seems to use a model that I'm not sure can reliably work.It is a ASP.NET webservice that on each call loads a unmanaged C++ .DLL using
[DllImport ( "kernel32.dll" , EntryPoint = "LoadLibraryA" )]
public static extern int LoadLibrary( string lpLibFileName );.
[DllImport(@"MyUnamanagedDLL.dll")]
public static extern string DoStuff( );
In the unmanaged C++ .dll it is using a singleton to hold state between calls.This is so that it only has to initialise once and load a bunch of slow stuff from disk and database rather than on each webservice call as this is too slow.
Well i dont have an error but would like to get some guidance on this. I have a webservice that calls a class. The Class translates numbers to figures i.e. 4000 will return a string 'Four Thousand Shillings'. So what i actually want is how i can do my processing
backwards so that in the service i call the class's method to return a string so that i put the results on a Text property of a Label Control while i type each figure in a TextBox Control.
i.e. if i type 4 in my text box, i should see 'Four in my label', then 40 will return 'Fourty Shillings', then 400 will return 'Four hundred'
I have a page that calls a webservice from JavaScript using the approach described in this article: [URL]
This is working fine. The problem is when the page causes a postback before the end of the execution of the webservice's method. When that happens, the succeeded callback method never gets called. Does anyone know if there's a workaround to this?
i am trying to send emails to internal as well external email id(like gmail,yahoo,rediff etc.) .but the problem is that i can send the email to internal email id and recieve it but when i try to send the mail to external email id iam not able to receive the email. the process runs fine cause no errors are occurring.
SmtpClient emailClient;
emailClient = new SmtpClient("80.0.0.120", 252);
MailMessage message = new MailMessage("a.b@abc.com", a.b@glass.com", "Report", "Dear All,");
message.IsBodyHtml = true;
message.Body ="Dear All,"+"<br/>"+ "Please find the attached file.";
System.Net.Mime.ContentType mimeType = new System.Net.Mime.ContentType();
message.Attachments.Add(new System.Net.Mail.Attachment("Report.xls", mimeType));
emailClient.Credentials = new System.Net.NetworkCredential("a.b", "pass123");
emailClient.UseDefaultCredentials = false;
emailClient.Send(message);
emailClient = null;
message.Dispose();
I am using Asp.Net application for calling an existing Java webservice. Recently the web service is configured with Security certificates. Now I need to call the webservice using "https:URL .." and by passing the credentials i.e. UserId and Password.
When I call the webservice using [URL] I get the below error. Is the change in my code is causing this error?
Error:Client found response content type of 'text/html; charset=iso-8859-1', but expected 'text/xml'. The request failed with the error message: --
500 Internal Server Error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. contact the server administrator, you@your.address and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.
IBM_HTTP_Server Server at ............ Port 443