axis2

How do I use WS-Addressing properly in an Axis2 client?

All, I'm attempting to write a Junit test that calls a Web Service client in Axis2.1.5, and I've gotten confused about how to exactly to set it up to use WS-Addressing. I've generated a client stub using wsdl2java, and I'm using the axis2.xml and modules repository from the axis2 binary distribution. I know I need to use the MemberSu...

axis-java2wsdl task classpath setting problem

Hey Guys, here is my build.xml <?xml version="1.0" standalone="yes"?> <path id='axis2.classpath'> <fileset dir='D:\Tools\axis2-1.5.1-bin\axis2-1.5.1\lib'> <include name='**/*.jar' /> </fileset> </path> <path id='compiled.class.path'> <fileset dir='./bin/pkg'> <include name='*.class' /> <...

Ws-Security headers using Metro

I have a web service which implements WS-Security but does not define a policy in the WSDL. I am able to consume this web service successfully using Axis 2 as client. I am trying to consume the same web service using Metro 2 but the wsse:security headers are not going. It works only if the service defines the security policy which is no...

client-side synchronous service invocation

I am talking about synchronous on the client side. That means, the service requester is blocking after sending a message to the service. my question is: is it related to the -a -s parameter of wsdl2java tool, Since -a generate async style code and -s generate sync style code. Or the client side blocking or not is totally controlled by...

Can I generate Axis2 stubs from Axis stubs or some other way from soapUI?

I have a WSDL that axis2 wsdl2java throws the following exception Caused by: org.apache.axis2.schema.SchemaCompilationException: can not find the compley type {http://xml.test.com/device/types}ActionIn from the parent type http://xml.test.com/device/util/types The original axis can generate the Java just fine and I can load the WSDL i...

Failed sending bytes array to JAX-WS web service on Axis

Hi I have made a small example to show my problem. Here is my web-service: package service; import javax.jws.WebMethod; import javax.jws.WebService; @WebService public class BytesService { @WebMethod public String redirectString(String string){ return string+" - is what you sended"; } @WebMethod public byte[] redirectBytes(by...

Axis2 and OpenSAML

I'm trying to add SAML assertions to a SOAP web service that is built on the axis2 engine. I'm having a little trouble wrapping my head around how the two would interact. Could someone help point me in the right direction to add a SAML assertion to a response message from Axis2? Thanks, Tom ...

Steps in creating a web service using Axis2 - The client code

I am trying to create a web service, my tools of trade are: ** Axis2, Eclipse, Tomcat, Ant ** I need to create a web service from Code, i.e. Write a basic java class which will have the methods to be declared in the WSDL. Then use java2WSDL.sh to create my WSDL. So, is this approach correct: Write my Java class with actual ...

axis2 configuring ntlm on local computer

hello people, hello axis guru How configure axis2 ntlm authenticate on local computer?, My computer is not in domain, I am using local account for configuration axis2 List authSchema = new ArrayList(); authSchema.add(HttpTransportProperties.Authenticator.NTLM); HttpTransportProperties.Authenticator ntlmAuthentication = new HttpTranspo...

Communication between web services on different servers

Hi, I have 2 different webservices running on 2 different tomcat application servers (w/ axis2 web service engine) (Webservice A runs on Server A and Webservice B runs on Server B). How can web service A on Server A pass Data A (file) to Web Service B on Server B? I am new to web services and would appreciate any help in this regard....

Namespace repeated in all nodes using axis2 and java2wdsl

I am using eclipse and axis2 1.4.1 facet to generate a webservice. My problem is that in the generation process, the namespaces are being repeated in all nodes. As you can see below, ns4 is repeated instead of being declared in NewOperationResponse node. How can I make java2wdsl (or eclipse) generate that automatically (only in parent...

Migrating a service from Axis to Axis2 (Java) - Which MessageReceiver should I use?

I'm in the process migrating a service from Axis to Axis2 (Java). The service responds to a simple SOAP request with a bit of "custom" XML in the body like the following: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-in...

Mutual SSL in Axis 2 SimpleAxis2Server

Hi all, I have a standalone Axis2 server running using org.apache.axis2.transport.SimpleAxis2Server I would like to enable mutial SSL on this server. I have managed to get 1-way SSL working using my own selft signed certificates. I have uncommented the SSLVerifyClient paramter, but this makes no difference. The server is running with ...

Serializing Axis2 ADBBean

Hi, I'm trying to figure out how to serialize an Axis2 generated ADBBean. The problem is that the instead of getting the entire payload, i'm only getting a serialized version of the first child element. Here is what I'm doing Foo foo = new Foo(); foo.setBar("xyz"); System.out.println("XML String ==> " + serialize(foo)); //etc public St...

JAXB Unmarshall Created an Empty Object

I am using JAXB to unmarshal an XML file into an object tree. The root object is non-null, but all of it's members are null even though there is data in the XML file. My object classes were generated with Axis2 from wsdls. I have the ObjectFactory class, the jaxb.index class, the package.info annotation, etc. My problem is the same a...

Axis2 and WSDL2Java: SOAP header is missing

I've generated the java code from wsdl using WSDL2Java. I create a SOAP requestand I send it to the server, which answers with an AxisFault. If I have a look in the soap request there is now header tag . Why not? Does the follwing line in the stub not add a header? // adding SOAP soap_headers _serviceClient.addHeadersToEnvelope(env); ...

WstxParsingException: "Expected a text token, got START_ELEMENT"

I have a stub generated by WSDL2Java. I send a request and the answer that comes back (used tcptrace) looks fine. However, an AxisFault is thrown: org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxParsingException: Expected a text token, got START_ELEMENT. at [row,col {unknown-source}]: [4,1313] at org.apache.axis2.AxisFault.mak...

How to tell axis2 to use an existing object as a service?

I am trying to expose some methods of a running application as a webservice. The core idea is to use an embedded web-server and send the soap messages to the apache axis2 framework in order to invoke the services. The problem is, that axis2's createService methods only accept Classes as parameter, not existing objects. So I believe that...

WCF, Rampart, ADFS2 and SAML Interop issue

Hi, I'm working on establishing interoperability between .NET WCF 3.5 and Axis2/Rampart using ADFS2 as the STS and using SAML authentication. Initially I used Axis 1.4.1/Rampart 1.4 but in an attempt to rule out issues relating to WS-* standards compatbility have also created a duplicate environment running Axis 1.5.1/Rampart 1.5. Both...

How i can convert client for Axis 1.4 to Axis2 in JAVA ?

Hello, First of all i success to programming a client for an Axis 1.2 web service, but for Axis2 i don't know how i can do, and the tutorial in Apache don't really help me. Here my code : import java.net.URL; import javax.xml.namespace.QName; import org.apache.axis.client.Call; import org.apache.axis.client.Service; public class E...