diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-24 16:27:19 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-24 16:27:19 +0000 |
commit | 210edd1488ef435bcaefce0d9d693d54c39e2ab2 (patch) | |
tree | 21000caf20c782d3827d3d139396b353922e6190 /sandbox/travelsample/contributions/creditcard-payment-sdo-contribution/src/main/java/payment/creditcard/CreditCardPayment.java | |
parent | f9f9314baaf07a4f9cb14f5490211aaaacb621c1 (diff) |
Version of Payment component that takes SDO objects on its interface instead of JAXB objects
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@778186 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sandbox/travelsample/contributions/creditcard-payment-sdo-contribution/src/main/java/payment/creditcard/CreditCardPayment.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/sandbox/travelsample/contributions/creditcard-payment-sdo-contribution/src/main/java/payment/creditcard/CreditCardPayment.java b/sandbox/travelsample/contributions/creditcard-payment-sdo-contribution/src/main/java/payment/creditcard/CreditCardPayment.java new file mode 100644 index 0000000000..5b333648f4 --- /dev/null +++ b/sandbox/travelsample/contributions/creditcard-payment-sdo-contribution/src/main/java/payment/creditcard/CreditCardPayment.java @@ -0,0 +1,39 @@ + +package payment.creditcard; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.xml.ws.RequestWrapper; +import javax.xml.ws.ResponseWrapper; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.1.3-b02- + * Generated source version: 2.1 + * + */ +@WebService(name = "CreditCardPayment", targetNamespace = "http://www.example.org/CreditCardPayment/") +public interface CreditCardPayment { + + + /** + * + * @param amount + * @param creditCard + * @return + * returns java.lang.String + */ + @WebMethod(action = "http://www.example.org/CreditCardPayment/authorize") + @WebResult(name = "Status", targetNamespace = "") + @RequestWrapper(localName = "authorize", targetNamespace = "http://www.example.org/CreditCardPayment/", className = "payment.creditcard.AuthorizeType") + @ResponseWrapper(localName = "authorizeResponse", targetNamespace = "http://www.example.org/CreditCardPayment/", className = "payment.creditcard.AuthorizeResponseType") + public String authorize( + @WebParam(name = "CreditCard", targetNamespace = "") + CreditCardDetailsType creditCard, + @WebParam(name = "Amount", targetNamespace = "") + float amount); + +} |