axis2

Axis2 ServiceClient options ignore timeout

强颜欢笑 提交于 2019-12-04 11:50:31
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 sufficient, if the server is // not available within the 3 second interval you got a problem anyway

WSO2 ESB Axis2 Service throwing Host name verification failed for host

六月ゝ 毕业季﹏ 提交于 2019-12-04 11:01:59
问题 I have created an AXIS service which connects to WSO2 Identity Server and validates a token. When I deploy this axis service on WSO2 App Server, I get the correct response. Where as when I deploy it on WSO2 ESB, I get the following error org.apache.axis2.AxisFault: The input stream for an incoming message is null. at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:93) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:68) at org

Axis2 - Date Format

◇◆丶佛笑我妖孽 提交于 2019-12-04 09:43:15
问题 Scenario The date format which is output as a response to the Web Service client by Axis2 is formatted as "2009-08-28+01:00". I would like to change this to show only the date without the timezone information (e.g.:"2009-08-28") Configuration Libraries Axis 2 1.4.1 WSDL <xsd:element name="StartDate" type="xsd:date" />; Question Is it possible to change the output format, which is used by Axis 2 to write date information? Can you see any issues for .NET clients reagrding the conversion of this

Axis2's wsdl2java fails on RPC/Encoded style web services

跟風遠走 提交于 2019-12-04 09:35:56
问题 Is there any alternative to Axis2? Or the way to make it work (different data binding, for example)? Retrieving document at '...'. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)

How to return XML from web service

只愿长相守 提交于 2019-12-04 09:35:33
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> Number of code elements may vary depending on response. Till now I tried following ways 1) Create XML

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

走远了吗. 提交于 2019-12-04 07:14:41
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 much. There's a Jira issue, which seems to be closed by developers without pointing in right direction.

Error in Axis2 Test Client

无人久伴 提交于 2019-12-04 06:46:19
问题 I created an Axis2 client to test my axis2 webservice. However, i am getting the below error at runtime: org.apache.axis2.AxisFault: java.lang.NoClassDefFoundError: Could not initialize class com.sample.LoginRequestDocument at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.j ava:517) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse( OutInAxisOperation.java:371) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO peration.java

running an axis2 client version 1.5

徘徊边缘 提交于 2019-12-04 05:28:56
So I'm running out of ideas to try to actually get a client to connect to the SOAP service I'm running through axis2. I tried two methods, one was to use wsdl2java to build the stub and associated client side classes, and then write a Client class that build the requests messages and sends them through the Stub. The other way was to use the ServiceClient to connect.. Both are failing in their own way.. Option #1, every time a message is sent through the stub I get this back: org.apache.axis2.AxisFault: The input stream for an incoming message is null. at org.apache.axis2.transport

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet [duplicate]

╄→гoц情女王★ 提交于 2019-12-04 05:17:21
This question already has an answer here: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest 4 answers I work on a web application, I created a web service with axis2 I integrated this web service in my application, but the problem is that when I try to retrieve the wsdl via the following URL: http: / / localhost: 8080 / ConsoleSynoptique / services / listServices. I get the following error: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) java.lang

How to create an Axis2 Web Service Client in Eclipse?

允我心安 提交于 2019-12-04 03:53:00
I'd like to use the "Web Service Client" wizard to create a web service client in Eclipse, but the wizard doesn't allow me to choose Axis2 as the web service runtime; I'm stuck with just plain Axis. I start off at the following screen (which I got to via File -> New -> Other -> Web Service Client ): I click on "Web service runtime: Apache Axis", to get this new "Client Environment Configuration" dialog: I've chosen "Apache Axis2", but the OK button is grayed out. Not matter what I choose in this dialog--even if I choose "Apache Axis"--the OK button is grayed out. I can't get past this step. Am