tailieunhanh - MySQL /PHP Database Applications Second Edition phần 8

Khi người đó than phiền, bạn sẽ muốn có một nơi để ghi lại các vấn đề và các bước cần thiết cho bạn trai của bạn yêu bạn nhiều hơn hoặc làm cho các giao dịch của bạn với cha mẹ của bạn hiết kế ◆ hệ thống theo dõi vấn đề bảo vệ dữ liệu dư thừa từ ◆ Sử dụng lớp IntegratedTemplate từ các thư viện lớp ◆ | 522 Part IV Not So Simple Applications What s all that other stuff Well the namespace definition states where the function getInseam can be found on the network. The SOAP-ENV encodingStyle value further standardizes the way in which simple and complex data types are presented on each side of the SOAP transaction. Next comes the question of whose inseam measurement you want to retrieve. This specifier should be presented to the function as an argument which is to say that in a traditional intra-program call to the function the syntax looks something like this GetlnseamCJoe Bloggs In SOAP you re obliged to do things a little differently. Remember that you are already inside a getInseam element which means you have already made clear that getInseam is the function you re calling. You need to specify the argument now. Logically enough you do that with an element whose name matches the argument name as specified in the remote class person xsi type xsd string Joe Bloggs zipcode With that done you close out the getInseam element and the Body element as well ns1 getInseam SOAP-ENV Body How does all this look in practice The next section takes a look at a request response pair in which a call to getInseam is made and replied to. A typical request response pair A SOAP transaction consists of a request and a response similar in lots of ways to the request and response that are made when you order up a Web page with your browser. Remember SOAP transmissions are nothing more than passages of text marked up with XML in such a way that they serve special SOAP purposes. THE REQUEST Here s a complete request xml version encoding UTF-8 SOAP-ENV Envelope xmlns SOAP-ENV http soap envelope xmlns xsi http 2001 XMLSchema-instance xmlns xsd http 2001 XMLSchema SOAP-ENV Body ns1 getInseam Chapter 16 SOAP 523 xmlns ns1 urn referenceToWebService SOAP- ENV encodingStyle http soap encoding person xsi type xsd string Joe Bloggs .

TỪ KHÓA LIÊN QUAN