利用perl soap服务向.net、https服务端传送UserToken
服务端传送数据使用SSL加密??? 基于wsse2.0开发的.net webservice soap xml:??? ? message = qq{? <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext">?? ? my $userAgent = LWP::UserAgent->new(); ? $request->authorization_basic('amy@gotobus.com','gotobus888'); ??? ??? $request->header(SOAPAction => 'http://www.globusfamily.com/api/booking/ws/internal/GVI_Booking'); ??? ??? $request->content($message);??? ??? ??? $request->content_type("text/xml; charset=utf-8");??? ??? ??? my $response = $userAgent->request($request); ??? ??? #die $message; ??? ??? if($response->code == 200) { ??? ??? ??? ??? my $return_xml = $response->as_string;??? ??? ??? ??? ??? $return_xml = JUtility->unescape_XML($return_xml); ??? ??? ??? $return_xml =~ s/&/&/g;??? ??? ??? ??? ??? } ??? ??? else ??? ??? { ??? ??? ??? return ""; ??? ??? }??? (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- C语言调用Lua脚本
- java – 与Thymeleaf的utf8 charset
- 在Emacs中执行Perl,最基本的
- 我的if-then-else-end声明在Lua失败了;我该怎么解决?
- 从Delphi撰写Outlook 2010邮件的最简单方法?
- [LeetCode] 1123. Lowest Common Ancestor of Deepest Leav
- 【VB】VB中DirectX音频控制——DirectXSound和DirectXMusic
- delphi2010 窗体使用技能总结
- golang错误link reading body gob: attempt to decode into
- vb如何删除空行