donglianer5064 2014-09-10 14:12
浏览 169

使用cURL或类似方法从php调用asmx服务?

I would like to call a webservice from this page : http://badmintonpeople.dk/DBF/HoldTurnering/Stilling/ through php, so that I can get some id's of the teams present in my sportsclub.

The service url is: http://badmintonpeople.dk/SportsResults/Components/WebService1.asmx/GetLeagueStanding

And if I push the "søg" button on the page, I see that the variables I send are: {"callbackcontextkey":"A99DADC1F9E901007E51592E8C0838916CF337E7613986982B4649B3EFBA0844D2DC6B4A5BE1FA47827E6036CB6A819E","subPage":"6","seasonID":"2014","leagueGroupID":"","ageGroupID":"","regionID":"","leagueGroupTeamID":"","leagueMatchID":"","clubID":"1617","playerID":""}

I've tried to fetch the data I get returned from the service through cURL and SOAPclient, but I can't seem to figure it out :-(

Can anyone solve this puzzle for me, then I would be VERY grateful, cause to me it looks like I have to give it up :-/

Thank you so much in advance!

  • 写回答

1条回答 默认 最新

  • douqianbiao4216 2014-09-11 12:14
    关注

    Seems like there is a problem with your service. Once your service is fixed and you know its working (you may check it with WCFClient from Visual Studio 2013), use the source xml generated from WCFClient and post it to the server using proper headers.

    评论

报告相同问题?

悬赏问题

  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容