axis2

How to expose Red5's SharedObjects through SOAP

℡╲_俬逩灬. 提交于 2019-12-13 03:44:21
问题 Edit: Obviously my first question was not really easy to understand, I hope the answer is usefull :) I have tried installing Axis2 on the Red5 server and everything went ok, I accessed the Red5 app properties from a custom Web Service using Red5's RTMPClient and exposed them through Axis2. The problem is that doing it that way I have a 2 levels server and I don't really have direct access from the webservice to the sharedobjects, etc... What I would like to do is to be able to access some

axis2 “unexpected subelement value”

我们两清 提交于 2019-12-13 03:39:06
问题 I'm trying to use Axis2 to connect to a SOAP webservice. This was previously working in Axis 1, but 2 is causing problems. I've regenerated the Java code using wsdl2java which has generated the stubs for Axis2, but it's falling over when processing an element of the server response with "unexpected subelement value". The fragment of the wsdl document in question is: <complexType name="A"> <sequence> <element name="a" type="xsd:base64Binary" minOccurs="1" maxOccurs="1" nillable="false" />

Axis2/Rampart Client Self-Signed Certificates

穿精又带淫゛_ 提交于 2019-12-13 03:38:23
问题 I'm trying to access a web service using a secure client. I generated two files: nb19200.pkcs12 server.jks I pasted the server keystore in tomcat and uploaded the pkcs12 to my browser, everything works well. Now, in my client application, I tried the following: First, export the server certificate, I used the following command: keytool -exportcert -alias servercert -file servercert.cer -keystore server.jks -storepass * * And then import it onto a keystore with nothing in there: keytool

Axis2/Rampart and WCF

风格不统一 提交于 2019-12-13 02:59:30
问题 I'm trying to setup a client using Axis2/Rampart to create a WS-Security call to a WCF .net service hosted by my client. My client is receiving the error: 'The message received over Transport security has unsigned 'To' header.' Does anyone have any ideas what could be the problem? 回答1: Needed to specify e.g. <signatureParts>{Element}{http://schemas.xmlsoap.org/soap/envelope/}To</signatureParts> 来源: https://stackoverflow.com/questions/5095380/axis2-rampart-and-wcf

ant command showing error while execution : resource axis-tasks.properties could not be found

 ̄綄美尐妖づ 提交于 2019-12-13 00:17:19
问题 Problem in running ant showing error Could not load definitions from resource axis-tasks.properties. It could not be found : Here is the snapshot of build.xml on which the problem occurs <target name="axis" depends="prepare"> <taskdef resource="axis-tasks.properties"/> <axis-wsdl2java url="${webconsole.base}/src/myservice.wsdl" output="${axis.output}"> <mapping namespace="urn:myservice" package="com.company.service" /> <mapping namespace="http://webserviceurl.com" package="com.company.service

IBM WebSphere 8 memory leaks with Axis2 Web Services

寵の児 提交于 2019-12-13 00:12:57
问题 Migrated an application to WebSphere v8 from v6 and started getting memory leaks. The primary suspect is org.apache.axis2. It looks like each time the application calls a web service, an object called ServiceClient is created by WAS8 and stored in something that's called ClientConfigurationContextStore and then never garbage collected. Has anybody had a similar issue? 回答1: Fixed the problem by forcing original axis 1.4 over supplied soap implementation. This was done by placing two files in

Axis2 SSLContext with Client Stubs

放肆的年华 提交于 2019-12-12 19:09:23
问题 I'm attempting to configure a Java client using Axis2 client stubs(WSDL2Java). The application consumes a WCF service that requires client certificates. The only way I've been able to get the application to work is by changing the system properties as in this code: System.setProperty("javax.net.ssl.keyStoreType", "JKS"); System.setProperty("javax.net.ssl.keyStore","path/to/my/keystore"); System.setProperty("javax.net.ssl.keyStorePassword", "changeit"); However, I would like to use a different

How to create Axis2 web service?

本秂侑毒 提交于 2019-12-12 18:33:42
问题 I am trying to learn how to build web services. I am trying to do the most simple straight forward service and after all day of wasting my time I pretty much don't know what to do any more. I Have Eclipse Indigo (32bit) with Tomcat 6.0 properly installed. In the server tab I can run/stop server as I wish. I also installed Axis2 1.6.0 engine. Here are my steps: 1) New Web Dynamic Project 2) When done, click Project Properties > Project Facets and check Axis2 Web Services 3) Eclipse would add

Axis2 File Upload by chunk

血红的双手。 提交于 2019-12-12 12:40:40
问题 I'm trying to upload file using Axis2 web service by 1024 chunk size. My server side looks like this: public void appendChunk(int count, byte[] buffer){ FileOutputStream fos = null; try { File destinationFile = new File("c:\\file1.exe"); fos = new FileOutputStream(destinationFile,true); fos.write(buffer,0, count); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally{ try { fos.close(); } catch (IOException e) { e.printStackTrace();

org.apache.axis2.AxisFault: Unknow type can not serialize while passing array of objects in webservice

半城伤御伤魂 提交于 2019-12-12 09:49:11
问题 I have created a webservice which takes a DTO as a parameter. And DTO contains an array of objects. I've generated WSDL and skeletons and clients. I am trying to invoke the webservice if I pass array of Strings say : Serializable[] array = new String[] { "a", "n" }; it works fine. Now my requirement is to pass array of HashMaps I am not able to do so, even though HashMap implements Serializable. HashMap<String, String> hashMap1 = new HashMap<String, String>(); HashMap<String, String> hashMap2