axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andrei <and...@martchouk.com>
Subject Re: Problems generating the client for the ClickandBuy API
Date Mon, 03 Dec 2012 15:04:37 GMT
Hi Christian,

I never tried to generate client classes with axis2 before, because I
successfully used Apache CXF for this purpose. For now I tried the
generation with axis2 and run into the same troubles described by you.

Here you can find a working example using Maven, Apache CXF and Spring WS to
generate and use a SOAP client for ClickandBuy payment API:
https://github.com/martchouk/clickandbuy.api.java

Maybe you can use this way until the axis way will be fixed. 
Just checkout the whole project and run "mvn clean test", it will generate
the client stub classes and run the test client against the ClickandBuy
sandbox environment, the generated classes you'll find in
clickandbuy.api.soap.cfx/src/main/generated/ .

In case you want only to generate the client classes, run "mvn clean
install", then go into clickandbuy.api.soap.cfx and run "mvn clean
cxf-codegen:wsdl2java" there. 

The only piece of java coded manualy is the test class where you can see how
to call the generated client classes:
https://github.com/martchouk/clickandbuy.api.java/blob/master/clickandbuy.api.java/clickandbuy.api.soap.cfx/src/test/java/clickandbuy/api/soap/cxf/ClickandbuyApiSoapCfxClientTest.java
,  in the test class only one API call is implemented(payRequest call), the
rest you have to add yourself in the same way.

The test data you can change in the property file, and of course you need
your own secretKey and further auth data from your ClickandBuy merchant
(sandbox)account:
https://github.com/martchouk/clickandbuy.api.java/blob/master/clickandbuy.api.java/clickandbuy.api.soap.cfx/src/test/resources/clickandbuy.api.SANDBOX.properties

Enjoy
Andrei





--
View this message in context: http://axis.8716.n7.nabble.com/Problems-generating-the-client-for-the-ClickandBuy-API-tp110807p110813.html
Sent from the Axis Java - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Mime
View raw message