解决方案:Unable to retrieve the URL endpoint for Service/Port

本文介绍了在使用Delphi2007进行WebService开发时遇到的一个关于接口调用的问题及解决方法。通过排查发现,问题根源在于wsdl URL中接口名称的大小写不一致。


最近写WebService,偶尔在调试和修改BUG的时候,不知道改了什么,突然就报标题的这种错误,怎么调整都不对。明明刚刚还是对的,现在就是错了。我的编写环境是Delphi2007.服务器和客户端都是Delphi编写的。

首先就是Google了一下,网上还真有人遇到这种情况,解决方案就是用http post的方法,简单点,就是soap方法去调用。

我尝试了一下,如果将url改成soap也确实可以。问题虽然解决了,但是还是不知道原因,就趴在电脑前,苦苦寻找。

在困得不行的时候,最后报了试试看的态度,尝试了一下,可以了!赶紧看看,哪里不一样,幸好这次都还记得改了哪里。

原来,原先的wsdl的url的最后的接口名字的大小写错了,改对了就可以了!

晕!

soho@ubuntu:~/code/temp$ sudo ./endpoint Processing INI file (/home/soho/code/temp/endpoint.ini). CHR0117: An attempt was made to read or write a file that could not be found. Error while working with file: /home/soho/code/temp/endpoint.ini Using default INI values. ENDPOINT Performance Endpoint, Version 7.10 SP5 (Retail) Copyright (c) Ixia, 2003-2011. Copyright (c) NetIQ Corporation, 1995-2003. U.S. Patents 5,838,919, 5,881,237, 5,937,165, 6,061,725, 6,397,359, and 6,408,335. Other Patents Pending. Build 318 Endpoint INI information in use: All available protocols are enabled. Warning: No consoles may run tests on this endpoint. Security Auditing: NONE Audit filename: /home/soho/code/temp/endpoint.aud Notice: Can't use adjtimex() function to retrieve the NTP synchronized system clock. For external clock synchronization, we will use the gettimeofday() function instead. Support for IP Multicast is enabled. Support for IPv6 Multicast is enabled. Support for disabling and enabling TCP's Nagle Algorithm is available. Support for disabling and enabling generation of the UDP checksum is available. Support for setting the Maximum Segment Size is available. Support for TCP protocol has been started. CHR0503: Notice: unable to register with the Ixia Discovery Server. Support for IP Multicast is enabled. Support for IPv6 Multicast is enabled. Support for disabling and enabling TCP's Nagle Algorithm is available. Support for disabling and enabling generation of the UDP checksum is available. Support for setting the Maximum Segment Size is available. Support for TCP-IPv6 protocol has been started. 好像安装好了,这个怎么使用呢
最新发布
07-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值