axis2

Adding username and password to soap header in Java by using PasswordText Type and axis2

心已入冬 提交于 2019-12-25 07:29:57
问题 I want to add username and password to soap header in java by using PasswordText Type and axis2. Code snippet I use public static void WSSPasswordAuthentication(org.apache.axis2.client.ServiceClient client, String endPointUrl, String username, String password) throws CSException{ OMFactory omFactory = OMAbstractFactory.getOMFactory(); OMElement omSecurityElement = omFactory.createOMElement(new QName( "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd",

Axis2 with complexTypes in Groovy

萝らか妹 提交于 2019-12-25 03:25:07
问题 So I'm having a couple of ANT scripts using Groovy to process complex calculations normal ANT can't do (at least afaik). I'm trying to access an Axis2 web service using a SOAP-envelope via Groovy. The request and response is pretty simple, except for two complexType attributes (one in the request, one in the response). The first thing I've stumbled across was Groovy Soap . It is quite easy to use, you simply instantiate a SoapClient and call the web service method. Unfortunately it cannot

Axis2 JSon Support (Jettison) bad xml conversion

南笙酒味 提交于 2019-12-25 02:46:35
问题 I am using Axis2 1.6.4 to implement REST Json WebServices (https://axis.apache.org/axis2/java/core/docs/json_support.html) and I face an issue when Jettison converts Json object To XML if it does not have a "root" element. Details: If request is: {"name":"John","age":30} Then XML OMElement at server side is: <name>John</name So age element is missed Instead, if request is: {person:{"name":"John","age":30}} Then XML OMElement at server side is: <person><name>John</name><age>30</age></person>

How to return custom objects in Apache Axis2 WebService

北慕城南 提交于 2019-12-25 00:36:36
问题 I have been trying to deploy an Apache Axis2 WebService using Eclipse Juno, Maven and the java2wsdl plugin. However I keep running into a problem which I believe is due to mapping and hopefully someone can point me in the right direction. I'm trying to call an operation on my WebService that takes in a parameter and returns a custom object but so far with no luck. My Code For talk sake I have the following class: package com.example.models; public class MyClass { // Does something } And I

wso2 identity server axisfualt message when connecting to entitlement service

天大地大妈咪最大 提交于 2019-12-24 16:42:54
问题 I have been following the blog at http://hasini-gunasinghe.blogspot.com/2011/12/entitlement-service-xacml-pdp-as-web.html but I cannot connect to identity server, every time I try I get the following error: org.apache.axis2.AxisFault: Connection has been shutdown: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at

Android web service access

帅比萌擦擦* 提交于 2019-12-24 15:37:27
问题 I have accessed a web service from Android 2.2.It is perfectly OK.I changed my program for Android 4.0.3 to access same web service.But this doesn't work. Code of my Android program import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapPrimitive; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import android.widget.TextView; import android.app.Activity; import android.os.Bundle;

Getting org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found everyime

我的未来我决定 提交于 2019-12-24 15:10:08
问题 I have a dotnet based web service on a different server. I am trying to communicate using java. The webservice is working fine. If I use the envelope created by Axis2 inside the stub, in soapUI, I get the response. In the stub class, error is thrown when _operationClient.execute(true); is executed. In servlet, I have the following code WebServiceStub wss = WebServiceStub(); MyClass mc = new MyClass(); //set all values in mc wss.method(mc); I also tried wss._getServiceClient().getOptions()

Apache ODE BPEL Deployment with a webservice (file transfer)

一曲冷凌霜 提交于 2019-12-24 13:34:13
问题 I'd like to write a axis2 webservice for deploying BPEL Processes on a Apache ODE. At the moment I have two main issues/questions. I wrote a simple WS that creates a file. It works fine in eclipse with a integrated apache tomcat with axis2. But if I run the service on the exact same server without ecplise it won't work and I get 'Unhandled IOException' Errors, although I have the handling implemented (otherwise ecplise would cry about it all the time). EDIT: I solved it by not uploading the

Apache-ODE ProcessManagement

混江龙づ霸主 提交于 2019-12-24 07:55:18
问题 I can access this API/WS through http://localhost:8080/ode/processes/ProcessManagement?wsdl . I would like to get the Process Info of a Process through this service and active it. The serivce has the matching operations getProcessInfo and activate. With listAllProcesses I get all Processes of a delpoyed package. For getProcessInfo/activate I need the Process pid . I get a <ns:pid> , using this gets me a load of Exceptions. Using the name of the process and other stuff I receive earlier doesn

adding authentification header to client stub axis2

送分小仙女□ 提交于 2019-12-24 07:35:15
问题 I built the wsdl-client-stub based on xmlbeans. Now I got stuck adding a custom header for authentification using xmlbeans since xmlbeans stubs are lacking the necessary Classes(?) Actually, the header should look like: <SOAP-ENV:Header> <ns2:verifyingToken> <UserID>9</UserID> <Token>29438094lkjslfkjlsdkjf</Token> </ns2:verifyingToken> </SOAP-ENV:Header> So I tried as fallback going in between stub and ServiceClient: ServiceClient sc = stub._getServiceClient(); OMFactory omFactory =