嘿大家。
我有一个简单的Silverlight Web应用程序的形式,我创建测试Web服务,我已经为一个更大的项目。这种形式基本上是姓,名,中间名的文本框,按一下按钮,代码被传递到Web服务的服务器上,打印PDF表单,并将它保存到磁盘,然后电子邮件它。
我写的所有代码,我没有得到任何错误,但它不工作。没有文件被保存并没有被发送电子邮件。
下面是从MainPage.xaml.cs中的代码:
这里是从我的web服务的代码:using System;
using System.Collections.Generic;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ServiceModel;
using ExampleSilverlightApp.ServiceReference1;
namespace ExampleSilverlightApp
{
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
}
private void button1_Click(object sender, RoutedEventArgs e)
{
ServiceReference1.newpdfRequestBody proxy = new ServiceReference1.newpdfRequestBody();
proxy._1_FirstName = textBox1.Text;
proxy._1_lastName = textBox2.Text;
proxy._1_middlename = textBox3.Text;
}
}
}
{C}
我不能说,什么是错,我已成立。