Все вопросы: [axis2]

68 вопросов

похожие теги:
1
голосов
1ответов
1807 просмотров

Axis2: extract explicit XML from strongly-typed response classes?

I have a legacy Java webservice based on Axis2. This webservice classes consist of: a service interface (generated from WSDL); an implementation of the service (written in-house); a bunch of autogenerated entity-like classes representing requests and responses. I also have a requirement to ex...

15
голосов
2ответов
21086 просмотров

How to do Basic Authentication with an Axis2 ADB Client?

I'm trying to figure out how to do Basic Authentication with an ADB Axis2 version 1.5 Client. I'm trying the following: HttpTransportProperties.Authenticator basicAuth = new HttpTransportProperties.Authenticator(); basicAuth.setUsername(username); basicAuth.setPassword(password); final Options ...

5
голосов
2ответов
11740 просмотров

Axis2 problem in setting SOAPAction HTTP header

I am trying co connect to a 3'rd party SOAP web service. It seems that the service can work when the HTTP SOAPAction header is an empty String (""). This is the snippet of the wsdl: <wsdl:binding name="detailsRequestMessage" type="tns:UssdPortType"> <soap:binding style="document" tr...

6
голосов
6ответов
9653 просмотров

Java Web Services - Is Axis Necessary?

Is AXIS or CXF necessary for Java web services? Can it be all done via the JDK (1.6)?

7
голосов
2ответов
2383 просмотров

What is the best way to return big chunks of binary data from a webservice?

I am implementing a webservice that returns the content of binary files. The files are about 100MB big. The webservice and the client are build upon Axis2. What is the best joice for the return type of the method that returns the data? I tried byte[], but I always get OutOfMemoryErrors on the s...

3
голосов
2ответов
1422 просмотров

Starting an axis2 service programmatically

I'm programmatically starting a service in Axis 2 (1.5), like this: ConfigurationContext context = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null); AxisConfiguration cfg = context.getAxisConfiguration(); Map<String, MessageReceiver> mrMap = new HashMap<...

2
голосов
1ответов
2937 просмотров

Resolving axis2 and OC4J library conflicts

I'm trying to deploy an Axis2 web service to an OC4J 10.1.3 app server. I was using axis 1.4 before and had just created my own shared library with all of the files. There was an issue with 1.4 that was patched with 1.5 so now I'm using that but it does not include all of the libraries. This...

1
голосов
1ответов
1711 просмотров

A JavaScript client for consuming Axis2 service

I have written a service using Axis2. Now I wish to consume it using a browser based client written in JavaScript.

0
голосов
2ответов
1278 просмотров

c# client calling java axis2 web service, object "resets"

I am very new to web service stuff so please be kind. I have written a simple POJO class, and deployed it on an axis2 server: public class Database { private Project project; public void login(){ project = new Project(); project.setDescription("Hello there"); p...

0
голосов
1ответов
40 просмотров

Should options in libraries or frameworks default to most commonly used value?

With reference to Reusing HTTP client objects Why would you not build this as a default option vs. requiring to add code like options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, "true"); AXIS2 being a web service engine framework makes it even more of a candidate to default this functionality.

1
голосов
2ответов
257 просмотров

How to create a web wervice in java/Axis2 which should keep publishing data

I am a new to Axis2 and SOAP. I recently working on a Axis2 SOAP project, I have create a SOAP server and SOAP client by using java and axis2 implementing session scope. The problem is when I send a request, it returns response back only once. I am unable to make web service keep publishing data ...

3
голосов
2ответов
13016 просмотров

Problem using log4j with axis2

I created a webservice on axis2 and I used log4j for logging purposes. I'm getting the following error any time a request comes in for this WS: log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable. log4j:ERROR The class "org.apache.l...

11
голосов
8ответов
22255 просмотров

Axis2's wsdl2java fails on RPC/Encoded style web services

Is there any alternative to Axis2? Or the way to make it work (different data binding, for example)? Retrieving document at '...'. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at ...

5
голосов
2ответов
2041 просмотров

Axis2 and customizing an XML schema in a bottom-up approach

I am using axis2 to create a web service from a java class I created. Everything works well, but I'd like to be able to customize the wsdl and I cannot figure out how to do it. I tried using some JAXB annotations with my objects (using axis1) but it had no effect on the wsdl generation. I'd ...

8
голосов
4ответов
14705 просмотров

Axis2 - Date Format

Scenario The date format which is output as a response to the Web Service client by Axis2 is formatted as "2009-08-28+01:00". I would like to change this to show only the date without the timezone information (e.g.:"2009-08-28") Configuration Libraries Axis 2 1.4.1 WSDL <xsd:element nam...

5
голосов
1ответов
3084 просмотров

Axis2 SOAP Envelope Header Information

I'm consuming a web service that places an authentication token in the SOAP envelope header. It appears (through looking at the samples that came with the WS WSDL) that if the stub is generated in .NET, this header information is exposed through a member variable in the stub class. However, whe...

0
голосов
4ответов
958 просмотров

Axis2 Hello World - cannot find symbol setParam0

i'm trying to develop a simple Hello World web service using Axis2 v1.5, Tomcat6 and Java 1.6, according to the following tutorial. However, i'm getting an error in the client-side code compilation: javac -extdirs C:\axis2-1.5 org/apache/axis2/*.java -d temp/ returns code\src\org\apache\ws\...

0
голосов
1ответов
2675 просмотров

Axis2 Migration

We had an application using axis2 1.0. We recently migrated to axis2 1.4. After migration we are facing the following error at runtime: public static org.apache.axis2.context.ConfigurationContext org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromURIs(java.net.UR...

0
голосов
4ответов
3705 просмотров

AXIS2 and JAX-WS how can I change the SSL handshaking?

I need to customize the SSL handshaking when calling a JAX-WS API on top of Axis2. I find no reference at all on how to do this. With Metro I can set a custom SSLSocketFactory, but that uses a non standard API. How do I get access to the Axis engine so that I can reconfigure it before sending a...

0
голосов
2ответов
1958 просмотров

Axis2 (war) + Tomcat 6: WSDL2Java missing?

I am trying to learn how to implement Web Services using Axis2 and Tomcat, but i'm afraid that i'm not grasping some of the basics. I was following this tutorial but when i attempted to use WSDL2Java i noticed that i do not have the tool anywhere. This happens due to the fact that i downloaded a...

0
голосов
1ответов
2104 просмотров

Error in Axis2 Test Client

I created an Axis2 client to test my axis2 webservice. However, i am getting the below error at runtime: org.apache.axis2.AxisFault: java.lang.NoClassDefFoundError: Could not initialize class com.sample.LoginRequestDocument at org.apache.axis2.util.Utils.getInboundFaultFromMessageConte...

177
голосов
6ответов
101699 просмотров

Difference between Apache CXF and Axis

What are the advantages of using Apache CXF over Apache Axis and vice versa?

3
голосов
1ответов
2293 просмотров

Help on Axis2 Deployment Exception

I am currently working on Axis2 deployed on Resin 3.1.3. However, I got the below error during deployment: org.apache.axis2.deployment.DeploymentException: The "Dispatch" phase is not found on the global "InFlow" phase of the axis2.xml file. Make sure the phase is within the axis2.xml file. An...

0
голосов
1ответов
4356 просмотров

Configure DB Connection Pooling - Axis2 webservice

I'd like to know how to modify the server.xml file so all my webservices built on axis2 can talk to the DB using Connection Pooling. Each webservice has a different data source, one points to one instance of the DB and the other to another DB server. How do I specify the context that should be us...

0
голосов
2ответов
1873 просмотров

Axis loading modules - Creating tempfile and failing

We are using axis for webservice communication between different system in house. Every once in a while the axis calls fail with a: [org.apache.axis2.deployment.util.Utils] - Created temporary file : C:\WINDOWS\TEMP\_axis2\axis248890addressing-1.41.mar [org.apache.axis2.util.Loader] - java.lang....

0
голосов
2ответов
1687 просмотров

How to remove character encoding for apache axis 2 message response

We use Axis2 to generate web service response of which the body is a xml message that generated from a system using windows 1252 as encoding. Our Axis2 system, will wrapped this body inside a soap message using utf8. The message is then send to the caller. However, the caller keep reject the me...

2
голосов
1ответов
688 просмотров

Using polymorphoic calls on a Axis2/JAX-WS web service from a .NET client

I have an AXIS2/JAX-WS web service using a code first implementation (yes I know, that is bad). The web service is being consumed by a .NET based client. Before we had Axis1, and when custom objects were passed between the client and the server, the client and the server code had to do their own...

3
голосов
1ответов
13120 просмотров

Пример кода JAX-WS MTOM

Мне нужен простой рабочий образец кода MTOM (сервис + клиент) с использованием JAX-WS RI или Axis2. Я погуглил это слово только для того, чтобы найти фрагменты и коды, которые просто не работают! Я хочу отправить вложения PDF запрашивающему клиенту веб-службы.

0
голосов
3ответов
1879 просмотров

Как захватить SoapRequest.xml и SoapResponse.xml

Я успешно создал Java Webservice (сначала файл .WSDL, затем wsdl2Java), используя стек Axis2. Если я использую стек Axis2, он создаст все компоненты Java beans. Я написал клиент веб-службы, используя заглушки, сгенерированные из WSDL на чистой Java, путем создания объекта запроса (на Java), а...

1
голосов
3ответов
1367 просмотров

Клиент веб-службы Java:

Я разрабатываю клиент веб-службы, которому необходимо выполнить операцию, представленную на tomcat с помощью axis2. У клиента есть все необходимые файлы wsdl. Я не могу импортировать их статически с помощью netbeans или eclipse, потому что клиенту необходимо обнаружить wsdl во время выполнения (...