axis2

How can I test if my connection pool is working in a correct way?

I'm implementing a SOAP client using Apache Axis 2. Since the SOAP client must handle heavy number of requests I am using a connection pool. To do that I had to set a few transport layer configuration of my stub that was generated from a WSDL file: stub._getServiceClient().getOptions().setProperty(HTTPConstants.REUSE_HTTP_CLIENT, Const...

Axis2 / JAX-WS error when unmarshalling xml file with large text elements

I'm completely stuck and need your help... I've created a webservice stub with jaxb 2.x for a service that sends a binary file (base64 encoded jpg images) within a soap message. Everything worked fine and I was able to receive and display the images, until I tried to export the eclipse RCP app to a product, which caused imediatly Linkage...

How to configure a XMLInputFactory (within axis2 / axiom)

Hello, this is a follow-up to my recent question. Skaffmans answer helped and I think I identified the problem. But again I need help to solve it... Here's what I did so far: Autogenerated a Service Stub using java2wsdl and axiom data binding (ADB) The service's response message has an image attachment inlined in the xml body (base64 ...

Java web service client:

Hi guys, 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...

How to capture SoapRequest.xml and SoapResponse.xml

I have created a Java Webservice(first .WSDL file,then wsdl2Java)using Axis2 stack sucessfully.If I'm using Axis2 stack,it'll creates all the Java beans stuff. I have written a Webservice Client using Stubs generated from the WSDL in pure Java by creating Request Object ( in Java) and in the Response I got java object. But my requirem...

jax-ws mtom sample code (service + Client) need.. SIMPLE one

hi All, I looking for a simple , working sample mtom sample code (service + Client) either using jax-ws RI or Axis 2 based. I googled the world only to find snippets and codes that dont simply work ! Want to send PDF attachments to the requesting web service client.. Thanks Sam-ant ...

Using polymorphoic calls on a Axis2/JAX-WS web service from a .NET client

I have an AXIS2/JAX-WS web service using a code first implementation (yes I know, that is bad). The web service is being consumed by a .NET based client. Before we had Axis1, and when custom objects were passed between the client and the server, the client and the server code had to do their own serialization and de-serialization. When...

How to remove character encoding for appache axis 2 message response

We use Axis2 to generate web service response of which the body is a xml message that generated from a system using windows 1252 as encoding. Our Axis2 system, will wrapped this body inside a soap message using utf8. The message is then send to the caller. However, the caller keep reject the message with "Invalid byte 1 of 1-byte UTF-8...

Axis loading modules - Creating tempfile and failing

We are using axis for webservice communication between different system in house. Every once in a while the axis calls fail with a: [org.apache.axis2.deployment.util.Utils] - Created temporary file : C:\WINDOWS\TEMP\_axis2\axis248890addressing-1.41.mar [org.apache.axis2.util.Loader] - java.lang.ClassNotFoundException: Class Not found : ...

Configure DB Connection Pooling - Axis2 webservice

Hi, I'd like to know how to modify the server.xml file so all my webservices built on axis2 can talk to the DB using Connection Pooling. Each webservice has a different data source, one points to one instance of the DB and the other to another DB server. How do I specify the context that should be used by each service? Thanks in advanc...

Help on Axis2 Deployment Exception

Hi, I am currently working on Axis2 deployed on Resin 3.1.3. However, I got the below error during deployment: org.apache.axis2.deployment.DeploymentException: The "Dispatch" phase is not found on the global "InFlow" phase of the axis2.xml file. Make sure the phase is within the axis2.xml file. Any idea how to resolve this? Thanks in...

Error in Axis2 Test Client

Hi, 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.ap...

Axis2 client error

hi, I got the below error when I tried calling an axis2 webservice: INFO: Deploying module: addressing-1.5 - file:/C:/com/sample/lib/axis2/axis2- 1.5.jar org.apache.axis2.AxisFault: java.lang.ExceptionInInitializerError at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.j ava:517) at org.apache.axis...

Axis2 (war) + Tomcat 6: WSDL2Java missing?

Hello guys, I am trying to learn how to implement Web Services using Axis2 and Tomcat, but i'm afraid that i'm not grasping some of the basics. I was following this tutorial but when i attempted to use WSDL2Java i noticed that i do not have the tool anywhere. This happens due to the fact that i downloaded and installed the .war (web ar...

AXIS2 and JAX-WS how can I change the SSL handshaking ?

I need to customize the SSL handshaking when calling a JAX-WS API on top of Axis2. I find no reference at all on how to do this. With Metro I can set a custom SSLSocketFactory, but that uses a non standard API. How do I get access to the Axis engine so that I can reconfigure it before sending a soap request ? ...

Axis2 Migration

Hi, We had an application using axis2 1.0. We recently migrated to axis2 1.4. After migration we are facing the following error at runtime: public static org.apache.axis2.context.ConfigurationContext org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromURIs(java.net.URL,java.net.URL) throws org.apache.axi...

Axis2 Hello World - cannot find symbol setParam0

Hello guys, i'm trying to develop a simple Hello World web service using Axis2 v1.5, Tomcat6 and Java 1.6, according to the following tutorial. However, i'm getting an error in the client-side code compilation: javac -extdirs C:\\axis2-1.5 org/apache/axis2/*.java -d temp/ returns code\src\org\apache\ws\axis2\Client.java:13: cannot...

Axis2 SOAP Envelope Header Information

I'm consuming a web service that places an authentication token in the SOAP envelope header. It appears (through looking at the samples that came with the WS WSDL) that if the stub is generated in .NET, this header information is exposed through a member variable in the stub class. However, when I generate my Axis2 java stub using WSDL...

Axis2 - Date Format

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 ...

Axis2 and customizing an XML schema in a bottom-up approach

I am using axis2 to create a web service from a java class I created. Everything works well, but I'd like to be able to customize the wsdl and I cannot figure out how to do it. I tried using some JAXB annotations with my objects (using axis1) but it had no effect on the wsdl generation. I'd like to be able to specify nillable=true f...