axis2

How to use Spring DI in class constructed by another framework (using new)?

人盡茶涼 提交于 2019-12-12 01:52:52
问题 I am doing some work on a legacy SOAP app which uses Axis2 . I would like to introduce some basic Spring injection. The app has an Axis2 service config that specifies: <ramp:RampartConfig xmlns:ramp="http://ws.apache.org/rampart/policy"> <ramp:timestampTTL>300</ramp:timestampTTL> <ramp:timestampMaxSkew>300</ramp:timestampMaxSkew> <ramp:user>service</ramp:user> <ramp:encryptionUser>useReqSigCert</ramp:encryptionUser> <ramp:passwordCallbackClass> com.myapp.SomeCallbackHandler </ramp

Simple axis2.xml for Axis2 embedded in webapp

穿精又带淫゛_ 提交于 2019-12-12 01:08:16
问题 I am developing a webapp with an embedded webservice with Axis2 using Maven. The service implementation is a POJO with RPC-style interaction, the target appserver is Tomcat running the Axis2 servlet. The "Hello world" works but now I need to configure some global axis2 settings in the axis2.xml file (placed under WEB-INF/conf). Please provide or point to a simple configuration for axis2.xml for this common environment. The default taken from the binary distribution has too many features

Problem turning HTTP Chunking off in AXIS2

帅比萌擦擦* 提交于 2019-12-12 00:51:09
问题 I have a client sending me requests without HTTP chunking (they use content-length). When my server responds, chunking is enabled, and the client can't handle this - even though they should be able to as they are using HTTP 1.1..... I have tried to disable chunking by removing the entry below from the axis2 config file (axis2.xml) but the response is still going back chunked. chunked So the question is, is there somewhere else that the chunking is being enabled that is over-riding the axis2

web service in Java using (tomcat + AXIS2), where is the root of the application?

北慕城南 提交于 2019-12-11 23:23:44
问题 I create a function that downloads a image to my local web server. When I run this function like a Java Application, it works fine. But when I try to run this method using the Web Service made by AXIS2 ( http://localhost:8080/axis2/services/adoroCinemaService2/downloadPhoto ), the AXIS2 returns Internal server error. It happens probabily, because I use a "root path" in my code. So, what I need to do to solve this problem? Where is the root of my service? How can I setup this path? public void

Failed sending bytes array to JAX-WS web service on Axis

我只是一个虾纸丫 提交于 2019-12-11 21:30:00
问题 Hi I have made a small example to show my problem. Here is my web-service: package service; import javax.jws.WebMethod; import javax.jws.WebService; @WebService public class BytesService { @WebMethod public String redirectString(String string){ return string+" - is what you sended"; } @WebMethod public byte[] redirectBytes(byte[] bytes) { System.out.println("### redirectBytes"); System.out.println("### bytes lenght:" + bytes.length); System.out.println("### message" + new String(bytes));

Axis2 with Rampart: Undefined 'Security policy namespace cannot be null.' resource property

旧城冷巷雨未停 提交于 2019-12-11 20:14:54
问题 I am creating a web service following the example of "Developing Web Services with Apache Axis2" I am using axis 1.6.2 with rampart 1.6.2 When I execute the client I get the next exception: Exception in thread "main" java.lang.RuntimeException: Undefined 'Security policy namespace cannot be null.' resource property at org.apache.rampart.RampartException.getMessage(RampartException.java:81) at org.apache.rampart.RampartException.<init>(RampartException.java:41) at org.apache.rampart

How to see what Axis2 sends and receives?

北慕城南 提交于 2019-12-11 19:53:27
问题 I have Axis2 created web service client. This service uses both SSL and WS-Security so I use rampart . I think that my client sends correct query, but I got exception: org.apache.axis2.AxisFault: Must Understand check failed for header http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd : Security at org.apache.axis2.engine.AxisEngine.checkMustUnderstand(AxisEngine.java:97) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163) at org.apache.axis2

Getting Exception while generating Axis2 Client from Eclipse: QName is null

与世无争的帅哥 提交于 2019-12-11 18:57:49
问题 I am using eclipse, Jboss and Axis2, getting following exception while generating webServiceClient from Eclipse Exception occurred during code generation for WSDL : org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: Element QName is null for ExceptionServiceException! java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect

timeout in retrieving the WSO2EI service wsdl from php on pass through transport

自闭症网瘾萝莉.ら 提交于 2019-12-11 17:53:30
问题 After installing WSO2EI-6.1.1 to migrate from my old WSO2DSS to EI, I was trying to setup a simple php wsdl soup client to call the "Version" service from php with a direct link to service wsdl and I'm getting the following error: php code: try { $client = new SoapClient("http://server-ip:8280/services/Version?wsdl"); $response = $client->getVersion(); var_dump($response); } catch (SoapFault $fault) { echo $fault->getMessage(); } error: Fatal error: Maximum execution time of 120 seconds

Runtime Error When getResponse using Android KSOAP

☆樱花仙子☆ 提交于 2019-12-11 17:35:58
问题 My Android get a runtime error in SoapObject result = (SoapObject) envelope.getResponse(); The webservice is in my notebook (192.168.15.13), the notebook and the Android connected via LAN. I created the web service using Axis2 in Knopflerfish OSGi. Here is my code: package test.msani.aksessoap; import java.io.IOException; import org.ksoap2.SoapEnvelope; import org.ksoap2.SoapFault; import org.ksoap2.serialization.PropertyInfo; import org.ksoap2.serialization.SoapObject; import org.ksoap2