ASP.net 调用服务问题
来源:互联网 发布:mac不安装flash 编辑:程序博客网 时间:2024/05/18 01:05
为“localhost.MobileCodeWSSoap”的终结点配置部分,因为找到了该协定的多个终结点配置。
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;namespace webservice{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void textBox1_TextChanged(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { localhost.MobileCodeWSSoapClient service = new webservice.localhost.MobileCodeWSSoapClient(); textBox1.Text = service.getMobileCodeInfo("15195175",""); } } }
soluction:
app.config 里面endpoint删除一个,
result:
<client> <endpoint address="http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx" binding="basicHttpBinding" bindingConfiguration="MobileCodeWSSoap" contract="localhost.MobileCodeWSSoap" name="MobileCodeWSSoap" /> </client>
0 0
- ASP.net 调用服务问题
- ASP.net 调用服务问题
- PHP 调用asp.net Web Services服务问题总结
- asp.net调用windows服务
- 用 ASP.NET AJAX 调用Web 服务
- asp.net ajax调用Web服务
- ASP.NET如何定时调用WebService服务
- 关于AJAX跨域调用ASP.NET MVC或者WebAPI服务的问题及解决方案
- 关于AJAX跨域调用ASP.NET MVC或者WebAPI服务的问题及解决方案
- 关于AJAX跨域调用ASP.NET MVC或者WebAPI服务的问题及解决方案
- AJAX跨域调用ASP.NET MVC或者WebAPI服务的问题及解决方案
- 关于AJAX跨域调用ASP.NET MVC或者WebAPI服务的问题及解决方案
- ASP.NET中调用Excel的问题
- ASP.Net调用Word,Excel组件服务之说明
- ASP.Net调用Word,Excel组件服务之说明
- ASP.NET Ajax调用WCF服务示例dudu
- ASP.Net调用Word,Excel组件服务之说明
- asp.net调用远程Web_Service(服务引用方式)
- Android各个版本特性简介
- https证书的验证过程与生成方法
- 指针和数组
- iOS 解决The file couldn’t be opened because you don’t have permission to view it.问题解决
- TIJ......(三)
- ASP.net 调用服务问题
- iOS小问题(四)
- 'Launching XXXX(项目名称)' has encountered a problem. Errors occured during the build.
- ThinkCMF引用第三方类库
- java中easyUI开发环境搭建
- vb.net 教程 5-13 图像处理之像素处理 8-2
- Android中Serializable和Parcelable序列化对象详解
- 常见对象-String类-3
- easyui treegrid 编辑一行时设置某filename值为只读