axis2

Axis2 ServiceClient options ignore timeout

心已入冬 提交于 2019-12-06 07:20:13
问题 I am using Axis2 in version: Implementation-Version: 1.7.0-SNAPSHOT Implementation-Vendor-Id: org.apache.axis2 Implementation-Vendor: The Apache Software Foundation Jenkins-Build-Number: 1847 I want to set the timeout of the ServiceClient to 2000 milliseconds, this is our code: Options options = new Options(); options.setTo(new EndpointReference(getUserServiceEndPoint())); options.setProperty(Constants.Configuration.ENABLE_REST, Constants.VALUE_TRUE); // setting timeout to 2 second should be

Package org.apache.axis2 does not exist

老子叫甜甜 提交于 2019-12-06 06:59:56
问题 I'm trying to import packages: import org.apache.axis2.context.ConfigurationContext; import org.apache.axis2.description.AxisService; import org.apache.axis2.engine.ServiceLifeCycle; But I'm getting errors: package org.apache.axis2.context does not exist package org.apache.axis2.description does not exist package org.apache.axis2.engine does not exist I've added %AXIS2_HOME%\bin in my PATH environment variable and have also set C:\apache-tomcat-6.0.30\webapps\axis2\WEB-INF\lib in my CLASSPATH

Axis2 fails to load DLL

梦想与她 提交于 2019-12-06 06:48:51
问题 I came across the below line in the Apache-Axis2 log file. [Sat Nov 14 12:16:08 2015] [error] ..\..\util\src\class_loader.c(167) Loading shared library ..//lib/axis2_http_sender.dll Failed. DLERROR IS DLL Load Error 126: The specified module could not be found. On analyzing the class_loader.c file from line#156 to line#167 as given below: dll_name = axutil_dll_desc_get_name(dll_desc, env); AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Shared library to be loaded is %s",dll_name); dl_handler =

How to return XML from web service

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 06:03:42
问题 This may be one of the insane / stupid / dumb / lengthy questions as I am newbie to web services. I want to write a web service which will return answer in XML format (I am using my service for YUI autocomplete). I am using Eclipse and Axis2 and following http://www.softwareagility.gr/index.php?q=node/21 I want response in following format <codes> <code value="Pegfilgrastim"/> <code value="Peggs"/> <code value="Peggy"/> <code value="Peginterferon alfa-2 b"/> <code value="Pegram"/> </codes>

No subject alternative names present exception when creating web service client

一世执手 提交于 2019-12-06 05:35:19
I want to create a web service client using wsdl2java utility. I have to connect to this server over SSL This wsdl looks like this: https://xxx.xx.xx.xx:8443/api/wsdl/xxxxxxx.wsdl I generated the certificate using: openssl s_client -connect xxx.xx.xx.x:8443 </dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > abcCertificate.pem and added it to keystore using: keytool -import -noprompt -trustcacerts -alias testcert -file abcCertificate.pem -keystore /usr/java/jdk1.7.0_06/jre/lib/security/cacerts -ext san=ip:xxx.xx.xx.xx When I try to use wsdl2java to create the web service client

AXIS2Server packed with ESB 4.9.0 doesn't start while it works fine 4.8.0

此生再无相见时 提交于 2019-12-06 04:32:14
AXIS2Server packed with ESB 4.9.0 doesn't start while it works fine 4.8.0.. .any help Hi, I'm running ESB 4.9.0 on Win 7 OS 64-it. Let's say my esb is available at following location D:\wso2esb\samples\axis2Server As per instructions to run samples, I'm able to successfully build sample apps using ant but axis2 server doesn't start at all. It prints following on CMD when i execute axis2server.bat. Am i missing something? ========================================================= Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\kashif

How to set -Euwc param with axis2-wsdl2code-maven-plugin?

那年仲夏 提交于 2019-12-06 03:57:24
问题 We are using axis2 to generate web-service clients, (I regret this now!). With axis2 command-line tool you can pass switch -Euwc to wrap int into Integer, boolean into Boolean and so on in generated soruces. This is the one way to tell axis2 that its OK for certain int or boolean values to be nillable in schema. My question is how do you set this parameter via POM or other means with Maven to achieve same behaviour with genrated sources? My stackoverflow and google searches aren't revealing

Problem with deserialization of String sent over wire with XStream

感情迁移 提交于 2019-12-06 00:34:07
I am trying to create a simple webservice which takes a String as input and returns string as output. I am using Ecelipse Helios and Axis 2.15. I am writing simple WSDL for the same. I am generating the stubs using code generator. New ->code generator -> java class from wsdl-> give WSDL and generates the java skeletons. And in the skelton I am just print the value what is coming as parameter. and returning the same value. I have written client code to invoke the method of the webservice. which takes a String. but when I am trying to invoke the method I am getting following exception and it's

Getting Exception while trying to execute axis2 service client

孤者浪人 提交于 2019-12-06 00:01:47
I am trying to create a sample axis2 ServiceClient. It is throwing below error org.apache.axiom.om.OMException: No meta factory found for feature 'default'; this usually means that axiom-impl.jar is not in the classpath at org.apache.axiom.om.OMAbstractFactory.getMetaFactory(OMAbstractFactory.java:170) at org.apache.axiom.om.OMAbstractFactory.getMetaFactory(OMAbstractFactory.java:135) at org.apache.axiom.om.OMAbstractFactory.getOMFactory(OMAbstractFactory.java:184) at org.apache.axis2.description.AxisDescription.<init>(AxisDescription.java:68) at org.apache.axis2.engine.AxisConfiguration.<init

does axis 2 automatically create (and save) wsdl file?

杀马特。学长 韩版系。学妹 提交于 2019-12-05 21:48:21
问题 I have a web service up and running with eclipse/tomcat/axis2. I want to get it linked to a bpel process, so I need the wsdl file. I can display the wsdl by starting the server and going to http://localhost:8080/axis2/services/MyService?wsdl But if I search the directory structure for the project, I can't find the wsdl file. I can of course copy and paste the wsdl from the browser and save it as a text file, then point bpel to that wsdl. But it seems like axis 2 would generate (and save) a