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...
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' />
<...
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...
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...
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...
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...
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
...
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 ...
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...
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....
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...
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...
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 ...
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...
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...
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);
...
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...
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...
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...
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...