PB 与 web service真的这么难吗,问题解决不了继续发

jpx2003 2010-12-24 10:48:53
对方地址:http://218.59.173.203:82/NFront/services/NcmsService?wsdl
开发工具:java


我这里用PB115,pbsoapclient115.pbd

// 第一步 创建对象 , 连接 Web service
string str_proxy_name = 'ncmsservicehttpport'
INT ll_ret
soapconnection lsc_conn
ncmsservicehttpport lproxy_obj

lsc_conn = create soapconnection

lsc_conn.SetOptions("SoapLog=~"soaplog.txt~"")

ll_ret = lsc_conn.createInstance(lproxy_obj,str_proxy_name)//
//说明ll_ret返回为0
string WebService_Return_Values

WebService_Return_Values = lproxy_obj.getdrugcatalog('1002')
到这个地方运行错误:failed to connect to host 218.59.173.203,port 80:no error

是缺少什么吗,为什么啊????????????????????????????
...全文
123 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
pb8 2010-12-24
  • 打赏
  • 举报
回复
http://www.allpos.cn/csdn/test_web.rar
pb8 2010-12-24
  • 打赏
  • 举报
回复
QQ远程:10308237
jpx2003 2010-12-24
  • 打赏
  • 举报
回复
泪水眼眶里团团转,办这点事咋这么难啊,同志们
jpx2003 2010-12-24
  • 打赏
  • 举报
回复
soaplog.txt返回的文本如下:
CLOSED


REQUEST:
CLOSED
POST /NFront/services/NcmsService HTTP/1.1
Host: 218.59.173.203
Connection: Keep-Alive
User-Agent: EasySoap++/0.6
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://webservice.rdi.com/NcmsService#getDrugCatalog"
Content-Length: 447

<E:Envelope
xmlns:E="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:A="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:s="http://www.w3.org/2001/XMLSchema-instance"
xmlns:y="http://www.w3.org/2001/XMLSchema"
E:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<E:Body>
<m:getDrugCatalog
xmlns:m="http://webservice.rdi.com/NcmsService">
<m:in0
s:type="y:string"></m:in0>
</m:getDrugCatalog>
</E:Body>
</E:Envelope>


RESPONSE:
Connection Disconnected
jpx2003 2010-12-24
  • 打赏
  • 举报
回复
感谢PB8,帮助解决了问题,谢谢

662

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder Web 应用
社区管理员
  • Web 应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧