axis2

How to invoke a web service from a stand alone Java client?

I have an echo web service running on lets say http://localhost:8080/axis2/services/Service1. This service just echos back a string that is sent to it through the function echo(). Using the wsdl of the above mentioned service (Service.wsdl), I have generated (in eclipse) the ServiceStub.java and the ServiceCallbackHandler.java. With thes...

Integrating SOAP and VXML

I am writing an interface for our VXML application that will allow access to a SOAP service. Because of the difficulties inherent in trying to use javascript to make SOAP calls and the limitations of VXML, as in making external resource calls are pretty much limited to HTTP requests, GET and POST. I designed a java servlet that would a...

Can you set Axis to use HTTP/1.0 programmatically?

We're trying to use Axis2 to call a web service that cannot use HTTP/1.1 (default transport protocol in Axis2). Is it possible to programmatically set Axis2 to use HTTP/1.0? I know that this can be done with a configuration file, but in our case API use would be much better solution. Here's some code that we're using: ServiceClient cli...

inter-op problem between Tibco axis2 1.4.1

Hi all, I have a inter-op problem probably because of a bug in axis2. in my case axis2 is server and Tibco is client. Problem is axis2 adds a "type" attribute to "return" element. <ns:return type="com.xx.GetGroups_Response"> and this attribute is undefined in wsdl <xs:element minOccurs="0" name="return" nillable="true" type="ax28:Ge...

Can I make Axis2 generate a WSDL with 'unwrapped' types?

I'm trying to consume a hello world AXIS2 SOAP web service using a PHP client. The Java class is written in Netbeans and the AXIS2 aar file is generated using the Netbeans AXIS2 plugin. You've all seen it before but here's the java class: public class SOAPHello { public String sayHello(String username) { return "Hello,...

How do you Change a Package's Log Level using Log4j?

I've encountered the following bug: http://issues.apache.org/jira/browse/AXIS2-4363 It states the following: This error only occurs when log level for org.apache.axiom is DEBUG so a workaround is to set log level > DEBUG. My question is HOW do I go about doing that? I've been scouring my directories for a properties file or something...

Consume a webservice - WS Security

I am about to develop a windows applikation which need to communicate with an Axis2 webservice using Web Service Security - all the documentation says is, that the SOAP security communication is configured to TIMESTAMP, SIGNATURE, ENCRYPT and the the certificate of my company must be installed in my keystore and the SOAP client I am abou...

Is OMElement mandatory in Axis2 Webservice???

Hi, I am migrating my webservices from Axis1.x to Axis2. I have all the webservices which takes multiple arguments like String, int etc. Also for authentication i have added header part so i have created my own WSDL file. So when i use my WSDL file and try to call WebService it Takes OMElement as Argument. But if i dont specify any W...

AXIS 2: Transport error: 404 Error: Not Found

Hello Im trying to use AXIS's 2 wsdl2Java tool to build the client that will consume a web service. I've run the tool and it has generated the required classes (a singel .java file). I've added that to a project and many of the jar files under AXIS_HOME/lib (until the code started building and then running). Looks like it ready to wor...

C# client of Axis2 web service complains "but expected 'text/xml'"

My C# sample client ASP.NET program successfully runs a call in my Axis2 server but the client does not seem to like the response. I get: Client found response content type of 'multipart/related; boundary=MIMEBoundaryurn_uuid_38D413ACFC9D56F28E1258666845186; type="application/xop+xml"; start="<0.urn:uuid:38D413ACFC9D56F28E1258666845187...

"Time out" when multithreading requests to a webservice with java and axis2

Hi, I'm working with a slow webservice (about 4 minutes each request) and I need to do about 100 requests in two hours, so I've decided to use multiple threads. The problem is that I can only have 2 threads, as the stub rejects all the other ones. Here I've found an explanation and possible solution: I had the same problem. It seems...

How to customize response structure when working with Axis2 REST web services?

Hi I'm using Axis2 1.4.1 to expose RESTful web services. I need to return xml structure (or any other for example ATOM xml or RSS xml or JSON structure) of my choosing. Axis2 out of the box returns it's own default xml structure (which is SOAP like). The question is what is the right way to customize this. Is it via Handlers? Is it via ...

How to access the FirstData web service integration WSDL file?

FirstData has horrendous customer support, but I have to integrate with their Global Gateway web service for a project I'm working on. I'm simply trying to run the Axis2 wsdl2java tool according to the instructions in their manual. This basically consists of adding the keyStore and keyStorePassword JVM parameter. I've done both, but I ...

how to customize the xsd that axis2 generates

I am following the "web service from pojo"[1] bottom-up guide in axis2 documentations, but the wsdl that is generated is not good. Specifically, the xsd schema that is embedded in the wsdl is not good and I want to customize it. I want to allow cyclic references, in a similar fashion to what jaxb lets you do with XMLID and XMLREFID. Any...

Long running webservice architecture

We use axis2 for building our webservices and a Jboss server to run the logic of all of our applications. We were asked to build a webservice that talks to a bean that could take up to 1 hour to respond (depending on the size of the request) so we would not be able to keep the connection with the consumers opened during that time. We co...

Axis2 WebService JMS Transport Soap Compression

Problem: I want to implement a Web Service using Axis2 with JMS Transport-In, which can process incoming soap messages with compressed content. Questions: Is this possible without additional configuration? Would it be enough for the client to just compress the message content? Background: Googling, I have found nothing regarding thi...

Cannot create Java Webservice in Eclipse

Hi, I would like to create a Web Service in Eclipse. I already wrote a class and generated a WSDL file from it with Java2WSDL. I started a new "Dynamic Web Project" and added the axis2 facet to it. After that I wanted to create a new "Web Service" project. When I now select my WSDL file and click on "Finish" I get the following error: ...

"org.apache.axis2.AxisFault: unknown" when calling web service with Java

Hi, I'm trying to call a web service with a Java client. The WSDL looks like this: http://pastebin.com/m13124ba My client: public class Client{ public static void main(java.lang.String args[]){ try{ CompileAndExecuteServiceInterfaceStub stub = new CompileAndExecuteServiceInterfaceStub ...

Is PHPs SoapServer affected by the maximum execution time?

I recently created a Java frontend for a PHP web-service which uses PHPs SoapServer. My application is performing a long-running data synchronization and from what I know from PHP I prepared myself to get closed connections because of the max_execution_time limit. But I never get any kind of error, as if the SoapServer instance is runn...

Backwards compatibility and Web Services

So I'm a bit new to web services and a situation recently came up where we added an element to a data-type that gets returned to the client. The clients complained that this broke their implementation because it choked on the new element that it did not expect. (we are providing the services via Axis2). To me this seems like a harmles...