axis2

Creating web service using Apache Axis2

I need to create a web service using Apache Axis2. I have a complex type XML response message that needs to be sent back to the client but I'm not sure how the client will be able to read the response. Sample XML response for client: <?xml version="1.0" standalone="no"?> <?xml-stylesheet type='text/xsl' href='./validation.xsl'?> <docu...

Change WS endpoint on Axis2 with no servicePath

Hi, I've developed an WS using axis2, which is properly running using the endpoint url like `http://server:port/appname/services/FooService` but I need to get it working through an endpoint like `http://server:port/FooService` since the WS clients can't be changed to use a different endpoint. Getting rid of the "appna...

Axis2 problem reading response

Hi, I have setup Axis2 with Spring Framework integration. I followed Axis2 example from their website. I'm also using Eclipse to debug the web service and client. Using Eclipse, I see that the web service is getting called because of the break point. The parameter is also being passed. Problem is when the web service returns the resp...

DB connection pool in Standalone Axis2?

For my services in production environment I always set up DB connections pool in Tomcat's context.xml: <Resource name="jdbc/MyDB" auth="Container" type="javax.sql.DataSource" maxActive="256" maxIdle="5" maxWait="10000" removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true" username="xxx" password="xxx" driver...

How to tell on the server if a webservice client aborts (Axis2)

Environment: Client: JavaME, CDC/Foundation 1.1 with JSR-172 client library. Service stubs created with Sun WTK 2.5.2. Server: JBoss 3.2.8SP1 (don't ask, cannot be changed) with Axis2.war providing the webservices Problem: In the JavaME based program a background thread calls a webservice on the remote JBoss host. Depending on user...

wsdl2code not founded

Hello, I'm trying to generate webservice client with axis2 and maven so i followed some tutorials and put some code lines in my pom.xml : <plugin> <groupId>org.apache.axis2</groupId> <artifactId>axis2-wsdl2code-maven-plugin</artifactId> <version>1.5.1</version> <executions> <execution> <goals> ...

problem parsing mybatis xml config file

Hi everyone! I have a problem reading the xml config file for Mybatis 3.0.2. I have to use it in a web service with Axis2 1.5. I have a class whith this code: public static org.apache.ibatis.session.SqlSessionFactory getSqlMapper () { org.apache.ibatis.session.SqlSessionFactory sqlMapper; try { String resource = "MyBatis.xml"; ...

Build a WS with Spring

Hi, I need to create a WS with Spring 3.0.4.RELEASE to run in a Tomcat with Axis2. I'm following this doc: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/remoting.html#remoting-web-services-jaxws-export-ri (if that paragraph can be called "doc") Ok, here are the details: The java class: package foo;...

Calling axis2 secured web service (Username Token ) from spring mvc app

Hi all, Any sample available to call axis2 secured web service (Username Token ) from spring mvc app? ...

connection pooling webservices axis2

Hi Guys, here is my code on how I have implemented connection pooling for a webservice stub. package com.arcot.integrations.frontend.tasks.custom.utils; import java.util.Stack; import org.apache.axis2.client.Options; import org.apache.axis2.client.ServiceClient; import com.tpf.mdm.tpf.service.TPFServiceStub; //import com.arcot.ws.w...

sharepoint add list item with axis2 web service

I have generated a stub with the wsdl2java.sh script that comes with Axis2. Does anyone know what the method would look like for me to add a list item to a sharepoint list from a Java class using Axis2? ...

Invoke SharePoint Web Service With Axis2 client authenticate

Hi, I'm trying to run the following in the main of my java class. The code uses the stub to first authenticate and then bring back the collection of lists in a microsoft sharepoint site. The code is as follows: ListsStub stub = new ListsStub(); HttpTransportProperties.Authenticator auth = new HttpT ransportProperties.Aut...

Cannot engage module rampart, not sending security details

Hi all, I'm using eclipse with WTP plugin for creating a client to call secure web service. I have used web service client wizard to generate the client and now I want to configure apache rampart in the eclipse project to call the service protected with username token the error is "can not engage module rampart". -------- update ----...

Prevent WSDL generation from including certain fields

I'm using Axis2 and Eclipse to create my webservice. I have created my schema object to be included in the WSDL, but I don't want some fields to be included in this process. Reason is that these same objects will be persisted in database using hibernate. I added transient into the field class declaration but I'm still seeing the field...

Axis2 nonblocking with pojo

I'm currently using Axis2 with POJOs and calling the invokeBlocking() method which just returns an Object[]. Works great. I'd like to switch this to using invokeNonBlocking() which takes an AxisCallback to handle the return value. I can't find anyway to get my returned Object[] from the AxisCallback. Does anyone know how this is done...

Create custom exceptions in Axis2

I'm using Axis2 1.5.2 and Eclipse. I'm using Eclipse to generate the WSDL and client code from generated WSDL. I created a custom exception that my service can throw. Everything looks ok when creating the webservice. The webservice starts successfully and I can view the generated WSDL by pointing my web browser. But when I tell Eclips...

Generating Apache AXIS2 WebServices from a (my)SQL schema ?

Hi all, Is there any tool that could be used to generate some code for apache Axis2 from a (my)sql schema. For example, the following schema: desc name; +-------+------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+------------------+------+-----+---------+-------+ | id...

How to read SQL Server 2008 date into Java using JPA

I need to use java.util.Calendar in order for Axis2 webservice client to send/receive Date objects. So in my JPA model object I changed all java.sql.Date into java.util.Calendar. By using java.util.Calendar the Axis2 webservice part work ok. I'm able to save a java.util.Calendar object into database. Problem is that I can not read th...

How to use java.util.Date in Axis2

I'm using Axis2 1.5.2 to pass Dates between client/server. But when using java.util.Date Axis2 throws this error: date string can not be less than 19 characters. Anyone knows a workaround or how to fix it? ...

rg.apache.axis2.AxisFault: Transport error: 403 Error: Forbidden

Hey there, I am trying to access a webservices over https, I have the ssl certificates in place. However when I send the webservice request I am getting: threw exceptionorg.apache.axis2.AxisFault: Transport error: 403 Error: Forbidden at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296) at org.apache.axi...