Reply
Highlighted
Member
Posts: 5
Registered: ‎07-28-2015

Making API calls in java

I've downloaded the JDK and I've looked at ARB because I need to setup automated billing. From my understanding, I can pass an xml stack to the url provided in the ARB xml documentation and setup ARB there. However, when I looked at the JDK, it appears that I can use the same feature with the API. I looked at a lot of the classes in the JDK but never saw anything that gave any idea of how the actual API call was placed. It was just a bunch of classes full of getters and setters. I haven't been able to find any documentation on it the API calls either. I was able to find code examples for some of the processes I needed in JSP, but I need Java instead. I've never integrated software with credit cards so please be precise keep that in mind. Thanks!

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Making API calls in java

It just a soap webservice call. Do java have anything to build the class from a wsdl?

https://api.authorize.net/soap/v1/Service.asmx?WSDL

 

Did you read the soap doc here?

http://developer.authorize.net/api/arb/

Highlighted
Member
Posts: 5
Registered: ‎07-28-2015

Re: Making API calls in java

Yes, but there is no way to just use the api and skip the soap? Where are the wsdls located?
Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Making API calls in java

The wsdl was the first link

You could try the SDKs, https://github.com/AuthorizeNet/sdk-java

Highlighted
Member
Posts: 5
Registered: ‎07-28-2015

Re: Making API calls in java

Do you know where the other wsdls are for the other services like aim?
Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Making API calls in java

[ Edited ]

AIM don't have soap call, it xml or json(json still in beta)

http://developer.authorize.net/api/aim/

Highlighted
Member
Posts: 5
Registered: ‎07-28-2015

Re: Making API calls in java

Ok, so how would I implement AIM with xml? Do I just create the xml snippet like one in the documentation and then make an http request from my java application to the api test url with the xml snippet as a string? Would that work?