dshm8998473 2013-02-12 05:04
浏览 41

内部异常通过asp.net访问php web服务

I got this error when access a php web service

System.Web.Services.Protocols.SoapHeaderException: SOAP-ERROR: Encoding: object hasn't 'available_credit' property at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.InvokeAsyncCallback(IAsyncResult result)

Used code :

private void button1_Click(object sender, EventArgs e)
    {

        try
        {

            virtualrechargeService vr = new virtualrechargeService();
            vr.GetBalanceInfoCompleted += new GetBalanceInfoCompletedEventHandler(vr_GetBalanceInfoCompleted);
            vr.GetBalanceInfoAsync("asikcse");
        }
        catch(Exception ex)
        {
            MessageBox.Show(ex.ToString());
        }

    }
    void vr_GetBalanceInfoCompleted(object sender,GetBalanceInfoCompletedEventArgs ev)
    {
        try
        {
            Console.WriteLine(ev.Error.ToString());
            Console.WriteLine(ev.Result.client_user_id);
            //MessageBox.Show(ev.Result.client_user_id);
        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.ToString());
        }
    }
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 python的qt5界面
    • ¥15 无线电能传输系统MATLAB仿真问题
    • ¥50 如何用脚本实现输入法的热键设置
    • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
    • ¥30 深度学习,前后端连接
    • ¥15 孟德尔随机化结果不一致
    • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
    • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
    • ¥15 谁有desed数据集呀
    • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100