axis2

Spring webservicetemplate jar conflict issue with Axis2

心已入冬 提交于 2019-12-11 15:24:35
问题 I use Spring web services and Axis2 both in my app. They are completely independent and it works great, except that Spring WebServiceTemplate started throwing the exception below.. I suspect it's happening because Spring requires saaj.jar (which has javax.xml.soap.SOAPElement) and Axis2 requires axiom-dom.jar (which has org.apache.axiom.om.impl.dom.ElementImpl) Both the interfaces extend org.w3c.dom.Element and somehow Spring in picking up the one from axiom-dom.jar Any ideas as to what i can

Axis2 Weblogic 10 jar conflict

大兔子大兔子 提交于 2019-12-11 13:33:49
问题 I am trying to deploy a axis2 webservice client on Weblogic 10 server. However i get the below error : java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136) at weblogic.servlet.internal.WebAppHelper$IOHelperImpl.parseXML(WebAppHelper.java:247) at weblogic.descriptor.DescriptorCache.parseXML(DescriptorCache.java:350) at weblogic.servlet.internal.WebAppHelper.parseTagLibraries(WebAppHelper.java:142) at weblogic

org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented

自闭症网瘾萝莉.ら 提交于 2019-12-11 13:28:26
问题 I am trying to call an Axis2 web service using a code like: stub = new MyServiceStub("http://server/app/services/MyService"); stub.ping(); Stubs/skeletons are generated with codegen. I can interact correctly with the web service from other clients (even something low level written with SAAJ) but not from a stupid stub call. I am getting the following error: org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented at org.apache.axis2.transport.http.HTTPSender.handleResponse

Axis2 1.3 and WebSphere 8.5 compatibility. [AxisServlet]: java.lang.NoClassDefFoundError: org.apache.woden.resolver.URIResolver

China☆狼群 提交于 2019-12-11 12:55:55
问题 I have an application migrating from Java 5 to Java 7 and Websphere 6 to 8.5. This application have some web services developed through AXIS2 1.3. When launching in Websphere the ear give me this error. [] 00000088 WarBasedAxisC I org.apache.axis2.deployment.WarBasedAxisConfigurator <init> Could not find axis2.xml, loading default org/apache/axis2/deployment/axis2_default.xml from classpath [] 00000088 DeploymentEng I org.apache.axis2.deployment.DeploymentEngine prepareRepository No modules

complex types in axis2 - Map

帅比萌擦擦* 提交于 2019-12-11 12:42:12
问题 I m implementing web service using axis2. The problem i m facing is with returning a complex structure in one of the methods. Here is what i want to do: as a return type - Map<String, Pair[]> where Pair is public class Pair { private String key; private String value; ........... } i m testing it with SoapUI and the return is always empty here is a simple response i got <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns:getSNSTrendsResponse xmlns:ns

Axis2 error while running web service

心不动则不痛 提交于 2019-12-11 12:09:00
问题 I am a newbie to java web services. I prepared a .aar file and deploying it in tomcat5.5.35 with axis2. Now while running the web service I found a weird error org.apache.axis2.dataretrieval.DataRetrievalException: Failed to load from file, META-INF/ServiceData.xml I cannot figure out the reason behind it. My .aar file contains a services.xml listing the services. But why axis is trying to load that ServiceData.xml file. I am using jdk1.6 and tomcat5.5 with axis2. The complete error log is

AXiS2 - Problem in returning the String value. < and > are getting converted to < and >

眉间皱痕 提交于 2019-12-11 11:59:35
问题 I have written a simple web service which takes string as an argument and returns a String as output. The service is something like this : @WebService(name = "MyWebService", serviceName = "MyWebService", portName = "WS") @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) public class MyWebService { @WebMethod(action = "inputString") @WebResult(name = "resultString") public String serviceMethod( @WebParam(mode =

write and read file on web service (axis2 + tomcat 7)

最后都变了- 提交于 2019-12-11 11:29:29
问题 I'm writing a service for Axis2 + Tomcat7.0 with Java for the application. I've chosen to write any information to xml file, the problem is where is the root of the service/application server? I read the other question but isn't response good. How can I get an absolute path to the writable directory by the service? 回答1: I would set an environment variable and then read the value of it by using System.getProperty(). I think the default file writing location is wherever you are when you start

axis2 fails to generate java from wsdl with inline schema

為{幸葍}努か 提交于 2019-12-11 10:33:07
问题 I want to generate Java classes from a WSDL. I'm invoking wsdl2java from within an ant task. The commandline would look like this: java -cp ... org.apache.axis2.wsdl.WSDL2Java -o generated_dir -S . -R . -l java -p "com.make.me.rich" -d adb -or --noBuildXML -uri MakeMeRich.wsdl The MakeMeRich.wsdl contains inlined schemas from Micrsosoft, e.g.: <xsd:schema elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:tns="http://schemas

axis2: two different webservices sharing the same name

假装没事ソ 提交于 2019-12-11 10:06:32
问题 I have two different webservices (each generated from a different wsdl) with the same name "getConfiguration", that I'm trying to put in the same .aar file. In the services.xml I've changed the name of the second to "getConfiguration2", so my services.xml file looks like this: <?xml version="1.0" encoding="UTF-8"?> <serviceGroup> <service name="getConfiguration"> <messageReceivers> <messageReceiver mep="http://www.w3.org/ns/wsdl/in-out" class="wi.xpto.webservice