XE6 Delphi de basit bir web servis hazırladım(file->new->other->webservices-> SoapServer Application) CGI stand-alone executable seceneğinden
servis name =Deneme ve ganerate sample methods diğerek örnek metodlar hazırlandı.
oluşan exe yide IIS e dahil edil web servisi calıştırdım. Delphide de wsdl import ile ilgili tüm fonksiyonlar sorunsuz çalıştı.
c# web servis client oluşturdum wsdl import(add --> service referans url ekledim go..) integer, string gibi tekil dönüşü sağlayan fonksiyonlar çalıştı fakat bir türlü class(TRemote) dönen fonksiyon çalışmadı. c# hata verdi
Hata:
"soap error in deserializing body of reply message for operation..."
daha sonra delphi web service
InvRegistry.RegisterInvokeOptions(TypeInfo(ideneme), ioDocument); ekledim hata gitti fakat bu seferde fonksiyonlardan dönen bütün değerler empty oldu
bu problemi nasıl çözerim
bu konda yardımcı olamanızı rica ederim
c# kod:
Kod: Tümünü seç
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TeraBonusTest.Tera;
using System.Web;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
try
{
using (var client = new DenemeWsClient())
{
richTextBox1.AppendText(client.TestEchoString("iyi") + Environment.NewLine);
var bonus =client.Deneme(12, "test");
richTextBox1.AppendText(bonus.Ad + Environment.NewLine);
richTextBox1.AppendText(bonus.No + Environment.NewLine);
}
}
catch (Exception ex)
{
richTextBox1.AppendText("Err:" + ex.Message + Environment.NewLine);
}
}
}
}