tailieunhanh - Programming Web Services with SOAPn phần 3

Cùng với nhau, những rễ này có nghĩa là "nói dối về các đơn vị nhỏ của đồng tiền." Nhầm lẫn mang lại cố gắng tìm ra những gì có nghĩa là điều này sẽ giúp những kẻ xấu lúng túng và bị chiếm đóng lâu dài, đủ để họ không ăn cắp ứng dụng của bạn. | Programming Web Services with SOAP This module will be the code that sits behind our web service interface. There are several approaches you can take with SOAP Lite to deploy this module as a web service. If you already have a CGI-capable web server and most people do you can simply create the CGI script shown in Example 3-4. Example 3-4. usr bin perl -w - Hello SOAP handler use SOAP Transport HTTP SOAP Transport HTTP CGI - dispatch to Hello sayHello - handle This CGI script is the glue that ties the listener the HTTP server daemon to the proxy the SOAP Lite module . With this glue SOAP Lite will dispatch any received request to the Hello World module s sayHello operation. Perl will need to find the Hello module though. If you don t have permission to install Hello into one of Perl s default module directories print @INC to see what they are use the lib pragma to tell Perl to look in the directory containing the Hello module. If the module is in home pavel lib then simply add this use line to use lib home pavel lib Your SOAP web service is deployed and ready for action. The Hello Client To test your Hello web service simply use the client script in Example 3-5. Example 3-5. usr bin perl -w hw - Hello client use SOAP Lite my name shift print n nCalling the SOAP Server to say hello n n print The SOAP Server says print SOAP Lite - uri urn Example1 - proxy http localhost cgi-bin - sayHello name - result . n n Running this script should give you the following results perl James Calling the SOAP Server to say hello The SOAP Server says Hello James page 43 Programming Web Services with SOAP We see here a complete SOAP web service. Granted it doesn t do much but that wasn t the point. The point was that the process we followed create the code deploy the service invoke the service is the same regardless of the service we re implementing the tools we re using or the complexity of the .

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.