axis2

Axis2 POJO Web Services

Hello Gurus! I have a POJO which is being deployed as a webservice in Axis2 - Tomcat combo. What is the best way to supply runtime configurations to the service? All servcie related config parameters are in XML file - What's the best location to keep this config file? Note I want the service to be completely self contained. How do I g...

axis2 maven example

I try to use axis2 (1.5.1) version to generate java codes from wsdl files, but I can't figure out what is the correct pom.xml <build> <plugins> <plugin> <groupId>org.apache.axis2</groupId> <artifactId>axis2-wsdl2code-maven-plugin</artifactId> <version>1.5.1</version> <execution...

Embedded AXIS2: Serving a custom WSDL

I am using a console app that starts several axis instances without using a packages archive. Like this: AxisService axisService2 = AxisService.createService( new Myclass.getClass().getName(), axisConfigurationContext.getAxisConfiguration()); axisService2.addParameter(new Parameter("useOriginalwsdl", "true")); axisConfigurati...

How to use log4j for a axis2 webservice

I have created a simple axis2 webservice to understand logging functionality in a webservice. in this sample webservice, when a client calls this webservice, first it reads the log4j.property file. then i can see the logs being printed on console. but i have included file appender too into the property file. but i can not file the log fi...

where are the log files saved in axis2 webservice

i have put log4j.properties file into WEB-INF/classes folder in my axis 2 webservice. now i can see logs been printed on console. but i have also put file appender. but i can not find the log file anywhere. could someone help me to find a solution for this problem. log4j.rootLogger=DEBUG, CA, FA #Console Appender log4j.appender.CA...

where should i put the configuration files in a webservice

Could some one help me on this problem. i have webservice , which reads data from configuration files. When i run this webservice from eclipse , i give absolute the path for these webservices of these configuration files , but when i shift the webservice in to server and run, it can not read the config file. so how can i solve this probl...

running an axis2 client version 1.5

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

How to Setup Eclipse to Start Writing Web Services using Axis2

Dear Gurus I am a .net Developer but now a days i want to setup Eclipse to write a sample web services to test the capacity of Java/Axis over WCF/BasicHttpBindings. I found a couple of articles regarding the setup procedures but they are too old or their wording is may be for java or eclipse experts. Can anyone please give me detailed...

axis2 (1.3) problem with client.

Hi, (axis2 1.3, struts2 2.1.8.1, tomcat 6.x, java 1.5.0) I've got problem with making my first web service. I create a MOCK api which i want to test. My action: public HotelMessage[] getMessages(String roomNr) { HotelMessage[] msg2return = new HotelMessage[1]; HotelMessage m1 = new HotelMessage(); m1.setId(1L); m1.setMessage("wi...

Axis2 aar file structure question

I trying to create an Axis2 arr file that has 2 package heirachies. However my service class is throwing a class not found exception when it tries to use classes in the utils package. Is it possible to do this in Axis? Any advice is very welcome. Below is an example of the structure I am trying to create (utils and org are both top lev...

Axis 2 returns 404 error...sometimes

I have an Axis 2 web service deployed in an Oracle app server. It works as expected most of the time, but sometimes a 404 transport error is returned to the client. If I loop through a request/response cycle, it seems to always happen eventually. My question is, how do I go about debugging a spurious issue like this? Is there something ...

Apache Axis2 1.5.1 and NTLM Authentication

I've browsed all of the discussions here on StackOverflow regarding NTLM and Java, and I can't seem to find the answer. I'll try and be much more specific. Here's some code that returns a client stub that (I hope) is configured for NTLM authentication: ServiceStub getService() { try { ServiceStub stub = new ServiceStub( ...

Axis2 Class Generation

I have an instance of a derived class (called Child) that I would like to send between the client and server of my web service. However, the method that might be returning this instance, is marked as returning an instance of the parent class (called Parent). For example: public class Service{public Parent createInstanceOfParentOrChildO...

How to deploy axis2 + MyBatis

I am trying to do webservice (I am quite new in Webservice under java). I am using netbeans. Axis2 is having problem trying to locate the the xml configuration file for mybatis Anyone can tell me how to successfully deploy mybatis configuration. Should I manually copy the configuration under .netbeans\6.8\apache-tomcat-6.0.20_base\web...

Unable to Create New Incidents in Dynamics CRM with Java and Axis2

So I've been working on trying to figure this out, oddly when I ran it one machine I got a generic Axis Fault with no description, but now on another machine I'm getting a different error message, but I'm still stuck. Basically I'm just trying to do what I thought would be a fairly trivial task of creating a new incident in Microsoft Dyn...

Remote Web Services

Hi All, I am new to web services. I have a requirement in my project. I have to consume the web services of our vendor in my project. All he has shared with me is a WSDL file and a document about the description of the the different operations. Question:- 1: What do I need to do consume these web services in my java project? I have been...

Can I include both Apache Axis 1 and 2 libraries in the same project?

If it sounds like a ridiculous idea then it is. The client only wants to have to install one project on their server. Our web service will be bridging between mobile phones and various SOAP services made in .NET, Apache Axis 1 and 2, which rely on standards to transfer files such as MTOM and DIME. I am looking for an 'architecture' tr...

WebService loggin using log4j in tomcat container

Hi, I have my webservice deployed on Apache tomcat 5.5. When I run my webservice using eclipse IDE, it prints logs to the location I have specified . I have put log4j property file for my webservice in the apache-tomcat-5.5.28/common/classes folder. Problem is , when i run this using webservice .aar file which is put in to apache-tomca...

Axis2 not returning own objects

Hi there, I've written some webservices where some return a simple String (this ones work) and other returning a list of objects. No, axis2 (1.5.1) cannot handle collection types, so I changed my return type to Object[] but still I recieve this exception [ERROR] java.lang.RuntimeException: org.apache.axis2.AxisFault: Mapping qname not ...

Axis2 Timeout waiting for connection

My code is consistently generating the following error: org.apache.axis2.AxisFault: Timeout waiting for connection at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:203) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76) ...