axis2

Web Service method in AXIS2 receives null arguments. Why?

南楼画角 提交于 2019-12-11 09:56:56
问题 I am new to java web services. While trying out a basic web service operation, I got stuck. I have been following this article as a reference. The service class is pretty simple and looks like this: public class MyService { public MyService() { } public Boolean Configure(String param, String val){ System.out.println("First arg: " + param + " Second arg:" + val); //Added by me. return true; } public Boolean StartMe(){ return true; } public Boolean StopMe(){ return true; } public String

WSO2 ESB mediate SOAP services

余生颓废 提交于 2019-12-11 09:38:22
问题 I am struggling to make work my message flow in the wso2 esb so I would need some help to implement a basic communication: Service1 wants to receive an integer number Service2 Generates random numbers Service1 has InSequence: log, send (to addresspoint specified). OutSequence: log, send this looks like: <proxy name="ClientAskNumber" transports="https http" startOnLoad="true" trace="disable"> <target faultSequence="fault"> <inSequence> <log level="full"> <property name="Insequence" value="***"

Is Axis2/C still being maintained?

不羁岁月 提交于 2019-12-11 08:23:21
问题 I have to write a web-service client and server (a kind of proxy) and was looking at my options. I narrowed it down to Axis2/C and gSOAP for a number of reasons. I tended toward Axis2/C mainly because of the more permissive license, but saw that the last version is dated April 2009! Is it still being maintained? Has everyone gone to something else (gSOAP or something else entirely)? PS: I have no experience in WS and got all my info from Google searches. 回答1: Axis2/C is still maintained but

axis2 Log Response with Request

不问归期 提交于 2019-12-11 08:13:29
问题 I am very new to Web Service. I have one web service exposed, So client is consuming it but due to importance of service we want to Log SOAP Request and SOAP Response flowing IN and OUT. I am using Axis2-1.6.2 This is what I tried so far, I wrote one custom Handler and Module class import org.apache.axis2.AxisFault; import org.apache.axis2.context.MessageContext; import org.apache.axis2.engine.Handler; import org.apache.axis2.handlers.AbstractHandler; import org.apache.commons.logging.Log;

org.apache.axiom.om.util.AXIOMUtil cannot be resolved

谁都会走 提交于 2019-12-11 07:31:22
问题 I'm trying to generate some stubs for a WSDL (using xmlbeans) and keep running into some issues. I'm using the following page: http://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html The only part of these steps that I'm skipping is the "client.java" part because I already have another project ready I want to plug the resulting jars into. A quick run down of my steps are as follows: My WSDL is a crmonline instance, so I run something like this: C:\Work\aaa2

Java web service client:

爷,独闯天下 提交于 2019-12-11 07:18:01
问题 I'm developing a web service client that needs to execute operation exposed on tomcat with axis2. The client has all the wsdl files that are needed. I can't import them statically with netbeans or eclipse because the client needs to discover the wsdl at runtime (this has been already done) and then execute them in an fixed order... What should I do? My program is able to get those wsdl files but I don't know what to do with them... What should I use: jax-ws? jax-rpc?? Can you give me a link

Deploy Axis 2 in Tomcat and access your web service in a custom path

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 07:08:15
问题 I have an Axis2 based web service which I deployed in Tomcat.First I downloaded axis2.war & placed it in Tomcat's webapps folder.It created axis2 folder & its sub-folders.In the WEB-INF sub-folder of Axis2, in the services sub-folder I place my .aar file.Then in my browser I go to http://localhost:8080/axis2. It has a link services, which lists out all the services.Suppose my service is HelloWorldService. So the path where it is accessible is http://localhost:8080/axis2/services

Custom class in axis2 web service

心不动则不痛 提交于 2019-12-11 06:35:59
问题 I try to create web service to Axis2. I am use eclipse and the "Axis2 Service Archiver" to create aar file from java class. My problem is that I have function that return custom class like: public TestClass TestFunc(){ return new TestClass(); } My question is how my client know what is TestClass? , the TestClass don't show in the wsdl file. Thanks For the help 回答1: If you can see the operation TestFunc() appears in the WSDL - you should be able to see type corresponding to the TestClass in

Axis2 error: Invalid white space character (0x4) in text to output

天涯浪子 提交于 2019-12-11 06:09:46
问题 I have created a Java client to interact with a SOAP webservice using Axis2 (1.7.6) as code generator. The problem is with some inputs the client is throwing an exception with the message: org.apache.axis2.AxisFault: Invalid white space character (0x4) in text to output (in xml 1.1, could output as a character entity) It seems the serialiser is hitting some chars considered invalid to XML spec. I have seen that problem around but no definitive answer or the fix. I'm not using Spring or any

Parsing custom parameters from an Axis2 exposed POJO

前提是你 提交于 2019-12-11 06:00:08
问题 I have a web service operation that I am exposing with Axis2. Let's say it's like this: public class MyService{ public String helloworld(String yourName){ return "Hello " + yourName; } } This is a pretty simple web service. My question is how do I parse more complex parameters? For example, I want to pass more than just strings, and I also want some parameters to be optional and some parameters to may also be nested. 回答1: Use varargs and method overloading. 来源: https://stackoverflow.com