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-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to