axis2

Webservices in Eclipse using Axis2: ClassNotFoundException

百般思念 提交于 2019-12-11 05:52:59
问题 I've been struggling a while now with web services in Eclipse. Every time I get something working, it merely seems to be based on luck and I've tried everything in numerous ways. My latest problem involves the following: I've got a java application which uses a lot of external references (jars). I've exported this java project to a simple jar file using the Fat-jar plugin (http://fjep.sourceforge.net/) to make sure the exported jar contains all the needed resources. I then created a dynamic

Writing tenant aware web service in wso2 application server

我是研究僧i 提交于 2019-12-11 05:50:19
问题 I am trying to develop a axis2 web service to be deployed on WSO2 Application Server 5.0.1. Currently we have requirement, that web services support multi-tenancy and in some web services some process based on tenant. Upon the service context i need to retrieve tenant information from the current request. Currently i create to tenant in my local environment using Application Server management console test1.com and test2.com. How can i retrieve domain name and if possible tenant id of test1

Authentication issue using QuickBooks Web Connector: Object reference not set to an instance of an object

百般思念 提交于 2019-12-11 05:29:56
问题 (Yes, I realize that this question is similar to another question posted; however, that question was never answered.) Objective I'm trying to use Clojure with Axis 2 to access QuickBooks data using the QuickBooks WebConnector (QBWC from now on). QBWC uses SOAP to communicate with external applications, so that's why my Clojure application uses Axis 2 as a SOAP interface. I use micha's clj-soap from GitHub to provide higher-level (abstracted) Clojure interop with the Java calls of Axis 2.

Axis2 Webservice Fault - The service cannot be found for the endpoint reference

元气小坏坏 提交于 2019-12-11 04:41:46
问题 Hi created a test application to learn Axis2. I packed the axis with my war and afetr deployment the WSDL is also acessible via URL - http://localhost:8081/SajuAxis2/test/service/SajuServices.wsdl But when I try to invoke the service using client stub with the above URL, it is not working. SajuServicesStub stub = new SajuServicesStub("http://localhost:8081/SajuAxis2/test/service/SajuServices?wsdl"); But if I replace the endpoint URL with http://localhost:9091/SajuAxis2/SajuService

Axis2 WebService Client: The given SOAPAction does not match an operation

a 夏天 提交于 2019-12-11 04:33:00
问题 I have a test webservice developed with CXF running in my computer and I have been trying to make the client side with the "wsdl2java" function of Apache Axis2. I have already generated the code but I have the following error: org.apache.axis2.AxisFault: The given SOAPAction http://service.taller1.webservices.spring.com/HolaMundoService/saludaHola does not match an operation. at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531) at org.apache.axis2.description

Regarding client side code generation from WSDL

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 03:43:22
问题 I am a new bie to the world of webservices , I have to develop the client side code that is the java code,I have been provided a wsdl which I can see by opening that wsdl in the browser , As i have access to wsdl please let me know how can I generate the client side code from that wsdl itself through Axis 2, any help will be appreciated, Thanks in advance 回答1: There are many ways to generate client and server stubs. you can use WSDL2Code Plug-in approach This plugin takes as input a WSDL and

Axis2: Avoid “Unexpected subelement” error when non-required property added to WSDL

元气小坏坏 提交于 2019-12-11 02:54:32
问题 I have a .NET WCF service and a Java app that uses Axis2 to generate service stubs. When I add an optional property to a data contract in WCF and sort it at the end of the property list (which should be a backwards-compatible change) it causes Unexpected subelement errors in the Java app. The only way to fix it is to regenerate the stubs in Axis2 and redeploy the Java app -- not an acceptable approach in my case. To be clear, I have not changed the order of the properties and the WSDL is

Java out of memory errors on large WSDLs (play framework)

余生长醉 提交于 2019-12-10 23:55:49
问题 We've got a problem when trying to generate and use a really large proxy file (For the record, it's from a MSCRM Dynamics WSDL). Before I get to the issue: we already have this working in a stand alone app using NetBeans. We generated all the proxy files using "WSDL2Java -uri etc etc". Poked at a few of the web methods and successfully got responses etc. Now, when we try to integrate it into the destination project in eclipse (launched through play framework) it throws out of memory errors.

JAXB Namespace translation in a AXIS2 WebService application on Tomcat 7

◇◆丶佛笑我妖孽 提交于 2019-12-10 23:47:17
问题 I've used xjc of jaxb 2.2.6 to generate a set of classes from a xsd file. By editing "package-info.java" I've associated to the different namespaces the prefix value. So I've created a Test Class with a main that Unmarshal an xml file, edit some information, and marshal the object in xml format. Everything works like a charm and javax.xml.bind.Marshaller object match correctly namespace and prefix as defined in package-info. When I deploy this application as WS using axis2 on tomcat7 in the

How do I send an array or collection of complex objects using web services in Java (e.g. Axis2)?

倾然丶 夕夏残阳落幕 提交于 2019-12-10 23:10:00
问题 I'm relatively new to SOAP/web services; while I've done a few smaller web services projects I've incidentally never needed to return (or use as a parameter) an array or collection of 'complex' objects. When I attempt to do so, I get varying odd behaviour depending on my SOAP binding style. When I use RPC/literal , I can send and receive arrays of built-in types (e.g. String[]), but when I try a 'complex' object, I get marshaling errors (e.g. xyz nor any of its super class is known to this