axis2

Starting an axis2 service programmatically

谁说胖子不能爱 提交于 2019-12-10 21:46:35
问题 I'm programmatically starting a service in Axis 2 (1.5), like this: ConfigurationContext context = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null); AxisConfiguration cfg = context.getAxisConfiguration(); Map<String, MessageReceiver> mrMap = new HashMap<String, MessageReceiver>(); mrMap.put("http://www.w3.org/ns/wsdl/in-only", RPCInOnlyMessageReceiver.class.newInstance()); mrMap.put("http://www.w3.org/ns/wsdl/in-out", RPCMessageReceiver.class.newInstance());

how add Message context headers to apache axis 2 Java

此生再无相见时 提交于 2019-12-10 20:44:51
问题 I am working on web services. I want to know how do we add headers to SOAP request in JAX-WS type web services. Consider My header like this. Map<String, List<String>> headers = new HashMap<String, List<String>>(); headers.put("Username", Collections.singletonList("aaaa")); headers.put("Password", Collections.singletonList("aaaa")); I have stub object in my client class. I am using Apache Axis 2. All the classes are automatically generated. SimpleSTub stub = new Simplestub(); I want to add

Axis2 with WSDL 2.0 Tutorial

痞子三分冷 提交于 2019-12-10 20:26:25
问题 I used Axis2 to create a web service. Axis2 is creating a WSDL which is version 1.1? How can I create a WSDL version 2.0 for my web service? Note: I know how to create a web service with Axis2 and Eclipse. So please share a tutorial for a WSDL 2.0 web service. 回答1: Axis2 added support for WSDL 2.0 but it didn't make big news because WSDL 1.1 is still the de facto standard for describing SOAP web services . Having said that, if I remember correctly, you need to add ?wsdl2 to the URL to get

Eclipse, dropins, console mode, Axis2 and dropins not installed

喜夏-厌秋 提交于 2019-12-10 19:25:46
问题 i'm new to the eclipse dev platform, i have a strange behaviour here while trying to install the following plugins : org.apache.axis2.eclipse.codegen.plugin_1.6.2.jar org.apache.axis2.eclipse.service.plugin_1.6.2.jar i have downloaded them from Apache, extracted in a folder plugins inside dropins one so that i have : D:\eclipse\dropins\plugins org.apache.axis2.eclipse.codegen.plugin_1.6.2.jar org.apache.axis2.eclipse.service.plugin_1.6.2.jar and i can not still use/see them from the File /

Web Service client - Service definition selected is invalid

泄露秘密 提交于 2019-12-10 19:19:15
问题 i am building a web service on eclipse using Apache AXIS 2 Webservice runtime using Apache Tomcat server (apache-tomcat-7.0.23) while running it on tomcat server it sucessfully shows that the web service is running... But while creating Webservice client to test the web service and using the wsdl url in the server definition ( http://localhost:9090/Axis2WSTest/services/Converter?wsdl ), this gives below mentioned error and not letting me to create Webservice client: The service definition

Getting a Axis 1.1 client talk to an Axis2 service

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 17:34:46
问题 Is it possible to have an Axis 1.1 client talk to an Axis2 web service endpoint? From my understanding, web services work by passing XML SOAP messages back and forth using the schema specified by the service's WSDL, but I'm unsure as to whether or not these versions of Axis utilize different versions of the web service specification that would stop them from talking. Any thoughts? 回答1: Alright, using Axis 1.1 to communicate with an Axis2 web service works just fine. I generated the stubs

Generating Arrays for XSD Sequences via JaxB JXC

自古美人都是妖i 提交于 2019-12-10 14:32:55
问题 I've got a XSD describing some sequences of complex types e.g. <xs:complexType name="Catalog"> <xs:sequence> <xs:element name="Category" minOccurs="0" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:element type="xs:string" name="ParentCategoryIDRef"/> <xs:element type="xs:string" name="Method"/> </xs:sequence> <xs:complexType> </xs:element> </xs:sequence> <xs:complexType> Now when I use JaxBs XJC to convert this into Java classes it will generate me a java.util.List in my Catalog

WSDLException : An error occurred trying to resolve schema referenced at

泄露秘密 提交于 2019-12-10 13:51:59
问题 I'm trying to generate a proxy class from a local WSDL file with eclipse Galileo and axis 2 1.4 on windows xp . My problem is that i get an error due to an imported schema inside the WSDL . The line tha troubles me is : <xsd:import namespace="http://www.w3.org/2005/05/xmlmime" schemaLocation="http://www.w3.org/2005/05/xmlmime"/> I've tried to run the wsdl2java following command: wsdl2java.bat -uri SOAService.wsdl -o D:\temp p test -d xmlbeans -a -s -ns2p -uw and I get the following exception:

Apache AXIS Ignore/Skip additional element while parsing

时光总嘲笑我的痴心妄想 提交于 2019-12-10 13:13:10
问题 We consume the web service of third party. Whenever they update the XML schema like add the new element we got the following error message. "SAXException: Invalid Element ... " Is there any way in AXIS to ask skip the additional element received on XML while parsing it? I have generated web service client using AXIS earlier i used to receive XML as below <Flight> <AirlineCode>AB</AirlineCode> </Flight> and everything was working fine. But now i am getting an additional tag in response.

Axis Web Service throws error: Exception occurred while trying to invoke service method

北城余情 提交于 2019-12-10 12:06:53
问题 I am trying to invoke a web service that I have just hosted on out linux redhat server but it throws the error {http://xml.apache.org/axis/}stackTrace:Exception occurred while trying to invoke service method + "methodname" I host the service in apache tomcat webserver The same service works fine when i host it in the windows xp environment with the same apache web server... Is there anyone who has experienced a similar problem. thanks.. 回答1: in the axis2.xml ... <parameter name=