views:

45

answers:

1

I have been trying to integrate Authorize.Net ( Customer Information Manager (CIM) ) I got their sample code [ wsimport -s /tmp/RebillAPI -p AuthNet.Rebill https://apitest.authorize.net/soap/v1/Service.asmx?wsdl ] Their sample code works fine as stand-alone program, but not working in our tomcat web application. It throws an error below

Exception for getServiceSoap call:Could not initialize Service. java.lang.IllegalStateException: Could not initialize Service. at org.codehaus.xfire.jaxws.ServiceDelegate.(ServiceDelegate.java:77) at org.codehaus.xfire.jaxws.Provider.createServiceDelegate(Provider.java:32) at javax.xml.ws.Service.(Service.java:56) at AuthNet.Rebill.Service.(Service.java:36)

Looks like they use CXF. and sample code is not compatible with Xfire.

Any thoughts how to fix? Thanks.

A: 

Have you tried generating the code from the WSDL yourself? If you keep the same packages as the sample code it should work (worst case - you will have to change some imports)

David Rabinowitz