axis2

Axis2 and fastinfoset - cannot get content-type to change

I've been trying to enable fastinfoset compression on my web services. However, I'm having a problem getting the content-type to change on the request from the client. At least, I think that's why it's not compressing. I've tried a lot of different things, but the content-type always remains "text/xml". I'm pretty sure that it's suppo...

Error in WCF client consuming Axis 2 web service with WS-Security UsernameToken PasswordDigest authentication scheme

I have a WCF client connecting to a Java based Axis2 web service (outside my control). It is about to have WS-Security applied to it, and I need to fix the .NET client. However, I am struggling to provide the correct authentication. I am aware that WSE 3.0 might make it easier, but I would prefer not to revert to an obsolete technology. ...

Axis2 and Web-Service

I have a web-service, I used Axis2-1.5.0 to access it, but I have two questions: It had generated most of classes as static, why it did so? [ServiceName]ServiceStub has all source, which ended up with > 9 Mb, is there any parameter I can pass so these classes got separated? ...

How can I create and Apache Axiom element from a E4X object from a script running in Rhino?

I am running a script running in Rhino, which creates an E4X object like this: var s = <product id="123"> <name>Google Search</name> <source>https://google.com&lt;/source&gt; </product> I want to include such XML in a SOAP message. I am using Apache Axis 2 ServiceClient for creat...

Whole bunch of web service calls give a port already in use error!

So I have a java app that happily talks to a web service and asks it for stuff several hundred times in a span of 20 mintues. Everything was working fine using the test web service (but slow).. when I connected my app the the real web service, I noticed it was much much faster but but I get an exception: I/O exception (java.net.BindExc...

Enabling axis2 module in apache2

Could someone direct me to the correct mailing list or forum please. I'm running Ubuntu 10.04 and trying to install Axis C++. I searched the repositories & installed the following packages libaxis2c-bin libaxis2c-dev libaxis2c0 libxerces-c3.1 libxerces-c-dev I tried to enable the apache module with a2enmod axis2c but when I restart a...

Advantages and Disadvantages of Axis2 over WCF

Dear Gurus We have a WCF Service in our application suits that is being used to synchronize data among the different devices of a same user. We are facing some trouble with WCF as it leaves high memory footprints on the server and also the degree of concurrency is significantly low. we are using Basic Http Binding. So, i have started...

Axis security header

Hi trying to generate a security header in a Java Axis2 Client program in the format of. <soapenv:Header> <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext&gt; <wsse:UsernameToken> <wsse:Username>myUsername</wsse:Username> <wsse:Password>myPassword</wsse:Password> </wsse:UsernameToken> </wsse:Security> ...

Axis2, using Thread.sleep to do blocking

I am currently coding a Java WebService using axis2. However, one particular request needs me to do constant polling a status in another server for around 3-10 seconds time. I want to use Thread.sleep to do polling like every 500 mili for 3 seconds. Does it have any implication like performance issue or can anyone suggest a better idea...

axis2. xsi:type object mapping does not work

I have a following setup Two objects: ObjectB extends ObjectA A webservice with a method: getObject(ObjectA obj) In wsdl these objects defined like: <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://mypackage.com/xsd"&gt; <xs:complexType name="ObjectA"> <xs:sequence> <xs:ele...

Calling .NET Web Service (WSF, WS-Security) from Java - NullPointerException

I am attempting to create a Java client to call a .NET web service. I was provided a WSDL (which contains the security policy information) and used the Axis2 wsdl2java utility to generate the client stub. Here is the code I use to initialize the stub: ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFro...

Stream Axis2 Cached Files To User

I'm using Axis2, version 1.5.1, in a Spring 3 web application running in a Tomcat 6 container. I developed a Spring controller that uses the Axis2 framework to instantiate a SOAP client to call an MTOM web service. The MTOM web service returns one file, so multiples are not an issue. I have file caching enabled and I want to be able to s...

WSDL with type int or blank is not readable by stubs generated by wsdl2java

I have created a simple type <xsd:simpleType name="IntOrBlank"> <xsd:union memberTypes="xsd:int"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value=""/> </xsd:restriction> </xsd:simpleType> ...

How to specify alias name in system property while making 2way SSL con ?

Hi All, I am trying to run a java client with 2way SSL which uses CAC card as keystore for the client. I have addded the following system property in my client program to make it work and change the java.security file to add pcks11 provider. System.setProperty("javax.net.ssl.keyStoreType", "pkcs11"); System.setProperty("javax.net.debug...

Web service hangs if processing longer than 10sec.

I have very simple web service which is not doing anything but receiving numeric value interpreted as a number of seconds to sleep before responding with "OK, I'm done". If the nap time is set to be longer than 10 seconds, client never receives any response. I tested it on Tomcat (5.5 and 6) with Axis2 (1.4 and 1.5) and WAS 6.1 with FP (...

In my application i've used jsf2, spring, and hibernate which would i use jax ws or apache axis2 for webservice

In my application i've used jsf2, spring, and hibernate and now need to make webservice so anyone can suggest which to use and why one the one is better..? ...

Axis2/rampart cryptography problem with signaturePropFile

I have problem with WebService client that has to use WS-Security. My client is written with axis2. It works when I do not enable cryptography (of course with my server emulator). I enabled cryptography by adding to axis.xml: <!--Signature and Encryption : Using the request's certificate--> <module ref="rampart" /> <parameter name="Out...

Web Service parameters' types when accessing axis2 service from .NET client

I have created a axis2 webservice including a method with multiple parameters: class Service { public void method(string a, Enum b) { } } When accessing with a .NET client, the code generated in the client side is: void method(methodRequest request) instead of having the two original parameters, and in addition methodRequest....

How to choose an implementation sjsxp and wstx if both of them are in the classpath

Axis2 relies on woodstox's wstx while other part of my project has tested heavily with sjsxp and we can't afford to rerun the same test. Now, there is a problem with parsing SOAP message with axis2 that if I take away sjsxp, the problem is gone. Is there a way to tell axis2 to use the wstx implementation and leave the rest of the proje...

What methods exist to auto-generate java client stubs from WSDL files?

Hi all, I'm new to web-services and have read up some info about XML,SOAP,and WSDL. It's very interesting! I'm working on an existing project that has a web-service and client. However the client the 'higher ups' aren't pleased with the client application. It's too complex, they would like a more user friendly and simpler app that can b...