We are currently using Axis2 in our facility. Our project involves calling several web services for troubleshooting. The problem is that very often we have changes in WSDL (which are not life-threatening, since they are simply added to new data types and services, something very rare), which is why we also need to update our application. Basically, we need to get a new copy of WSDL, run it through WSDL2java and use new banks, run our unit tests and pack new banks and set them up for production.
Although the ability to generate stubs in the compilation command gives us xmlbeans, which we can easily work with in our DAO java code, this compilation-deployment cycle, due to WSDL, consumes command time. I was wondering if any changes are possible? Are there any Java APIs that can generate stubs at runtime or provide an unclosed call to a web service, but still give us the ability to work with Java objects rather than documents to process documents? Something like this site for soap . Should I just indicate the location of the WSDL, and should I just get an object with which I can access the document (both the request and the response), and also be able to change the location of the WSDL at runtime?
Not sure if this type of runtime behavior is possible in Java, since objects created at runtime will have different types, etc.? not sure ... I saw some Groovy examples that come close to what I want, but using Groovy means an architectural change for us .. and it's a bit complicated ... Is there any Java / API library?
user245315
source
share