본문 바로가기

Spring

Spring fw AOP and Paypal soap



http://en.wikipedia.org/wiki/Aspect-oriented_programming

aspect Logger { void Bank.transfer(Account fromAcc, Account toAcc, int amount, User user, Logger logger) { logger.info("transferring money..."); } void Bank.getMoneyBack(User user, int transactionId, Logger logger) { logger.info("User requested money back"); } // other crosscutting code... }



https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_soap_PayPalSOAPAPIArchitecture


PayPal SOAP API Overview

The PayPal SOAP API provides programmatic access to PayPal features and services.

Developers can build custom applications, tools, and services that correspond to the same services and tools available through the main PayPal website, https://www.paypal.com/. Typical applications include searching for transactions, paying en masse, and making refunds.The API is based on open standards known collectively as “Web Services,” which include the Simple Object Access Protocol (SOAP), Web Services Definition Language (WSDL), and the XML Schema Definition language (XSD). These standards are supported by a wide range of development tools on a variety of platforms.

Services Architecture

Like many web services, PayPal SOAP is a combination of client-side and server-side schemas, hardware and software servers, and core services.

Figure 1. PayPal SOAP High-level Diagram

In an object-oriented processing model, the interface to SOAP requests/responses is an object in your application’s native programming language. Your third-party SOAP client generates business-object interfaces and network stubs from PayPal-provided WSDL and XSD files that specify the PayPal SOAP message structure, its contents, and the PayPal API service bindings. A business application works with data in the form of object properties to send and receive data by calling object methods. The SOAP client handles the details of building the SOAP request, sending it to the PayPal service, and converting the response back to an object.


http://paypaldev.org/yaf_postst11777_french-canadian--once-again.aspx 

I read on this forum that a lot of people have trouble with the LC and COUNTRY variables... french canadians like me have this trouble, and others people from mexico or other places, where they have more than 1 language in their country, but it seems that if we choose a country code, the LC variable does not do anything. My trouble: If I want my customers to see the paypal pages in french, I must use the LC=FR code, WITHOUT the country=CA. If I put country=CA, the LC=FR seems to be void, replaced by the english associated with country=CA. If I do not set the country=, it is assumed as FR by default (because of the LC=FR). So when my customer creates its account, the default country that is setted in the combobox is FRANCE. When they change it to canada to enter all their address and credit card information, on the next page, they are assumed to be from canada, so the paypal interface switches to ENGLISH once again, forgetting the LC=FR parameter! Is it possible to correct that ? If we set an LC=XX, we want all the user interfaces to be in that language, not depending on the country=xx parameter, even if the customer chooses another country. I would like to be able to enter my country, address and other pre-filled address informations, but I can't use this option, if I do that the paypal interface language switches to english... very annoying. Thank you.

 




'Spring' 카테고리의 다른 글

AOP Alliance [ aopalliance.jar ]  (0) 2011.09.12
Spring cglib  (0) 2011.09.12
자바 - Log4j 사용법 ( 설명 자세히 잘 되어 있음 )  (0) 2011.08.26
Java 연습 2008-1 Banking  (0) 2011.08.24
Spring 과 iBatis 연동  (0) 2011.08.23