axis

Cannot get Axis example to run

I am trying to run the Axis "getting started" example code from here: http://ws.apache.org/axis/java/user-guide.html#BasicsGettingStarted Other than adding a missing quote on line 15 it is the same code with some added logging. I get this error: Transport is org.apache.axis.transport.http.HTTPTransport@4c6aacbf Set target endpoint a...

How can I unit test code that sends a SOAP web-service request?

I want to write a unit test for some code that generates a SOAP message with an attachment and sends it: SOAPConnectionFactory factory = SOAPConnectionFactory.newInstance(); conn = factory.createConnection(); conn.call(message, endpoint); where the factory is a javax.xml.soap.SOAPConnectionFactory I don't care about any response co...

Writing WSDL file to existing web service

I need to write a WSDL file to an existing web service which is provided to me by a colleague (it's realized with Perl and SOAP::Lite). Therefore, I have a given format for the SOAP-response and need to define the service formally to be able to generate the code for a Java client to the service. To test the WSDL file against the service,...

Java webservices: empty arrays

Hi, What is the right way to return empty arrays from webservices in Java? I need that empty arrays sholdn't be nulls on client. If I use Apache CXF or Axis 2 with default databinding I receive null insted of empty arrays. If I use CXF and AegisDatabinding -- problem is solved, but when I calling this webservice from Axis 2 client -- I ...

Generating axis tick annotation that occupies 2 lines

I have a time series I an plotting with jqPlot where I am using a custom tick renderer for the X axis values. However I want to display text shown at each tick position as 2 lines, stacked one above the other. I've tried rendering the string with sprintf and using "\n" but it seems to have no effect - can this be done? I notice i...

Exception while uploading files using SharePoint web service with file sizes more than 2 MB

Hi, We are using SharePoint Copy web service - "copyIntoItems" to upload files using Axis in Java. We are doing this from a stand alone Java program and getting the following exception for file sizes greater than 2 MB. For files less than 2 MB, no such exception is thrown. Does anyone know what could be the issue? Exception details: A...

web service client gives: String is referenced but not defined error

Hi All, After I generated client stubs for my web service. I tried to access the web service through the client and during run time it gives the following error... java.io.IOException: Type {http://myurl_here}String is referenced but not defined. at org.apache.axis.client.Service.initService(Service.java:250) at org.apache.axis...

org.apache.axis2.AxisFault: Transport error: 501 Error: Not Implemented

I am trying to call an Axis2 web service using a code like: stub = new MyServiceStub("http://server/app/services/MyService"); stub.ping(); Stubs/skeletons are generated with codegen. I can interact correctly with the web service from other clients (even something low level written with SAAJ) but not from a stupid stub call. I am gett...

How to calculate axis ticks at a uniform distribution?

Given a data range by its minimum and maximum value, how can one calculate the distribution of buckets on a an axis? The requirements are: - The axis ticks shall be evenly distributed (equal size). - Further, all ticks shall appear as numbers like 10, 20, 30, ... or -0.3, 0.1, 0.2, 0.4, ... - The calculation shall accept a parameter that...

Calling an Apache Axis 1 web service from Apache CXF

Hi, I'm trying to call an Apache Axis 1 web service from a client using CXF but coming across this issue: http://stackoverflow.com/questions/412772/java-rpc-encoded-wsdls-are-not-supported-in-jaxws-2-0 Now although switching the client would solve this problem my client is running inside Osgi and axis1 doesn't play nice. My idea was ...

Return a complexType class with nested arrays breaks web service, why?

I'm developing a simple web service using Eclipse, Axis1 and JBoss. The web service class looks like this: public class MyService { public ComplexClass getSomeData() { ComplexClass complex = new ComplexClass(); Children children[] = new Children[2]; children[0] = new Children(); complex.myFirstArray =...

XML dsig validation fails after Axis WS client changes XML elements of xsd:any type

Hi, I use Axis 1 (v1.4) web service client to access a web service that exchanges XML data containing elements of xsd:any type. The XML as a whole is signed with an enveloped digital signature. The problem I experience is that Axis transforms the XML elements of xsd:any type by replacing the sign > with &gt;, < with &lt;, etc. Once I g...

how can i generate a web service proxy behind https and client certificate request

I'm trying to generate a web service client with eclipse (I also tried with jdeveloper and netbeans). The WSDL is behind a https server with client certificate request. I can connect and generate the classes with this command: java -Djavax.net.ssl.trustStore=testes.keystore -Djavax.net.ssl.keyStore=testes.keystore -Djavax.net.ssl.trust...

AxisFault: What does Server.userException mean?

What does the following AxisFault mean? Does it mean that: The request that is issued and received by the server and the server throws an (uncaught) exception, and therefore the exception is returned back to the client. or My web app fails to create the SOAP request (so the request is not even sent from the client app) NB. I'm n...

SugarCRM over SOAP - V2

We're using Apache Axis to generate client-side stubs to communicate with SugarCRM in a Java application. As of a few days ago, we were using the WSDL file at http://.../soap.php?wsdl to generate our stubs. We found the version 2 WSDL file at http://.../services/v2/soap.php?wsdl, and out of necessity to delete relationships, we upgraded...

Is there a way to coerce Axis1 to produce document literal WSDLs and SOAP?

I use Apache Axis 1 to serve web services, which automatically converts Java objects into wsdl definitions and soap responses. However it seems that by default Axis serves rpc encoded data by default. Is there a way to coerce it into serving wrapped document literal data instead? So far the documentation has not helped me much. My servi...

flex recover space wasted by invisible axis

Hi, I want to show multiple series on a chart. But this would result in multiple axis, to avoid this I am trying to make some axis invisible. Question: When i set the axis renderer's invisible = false, there is a white space that is left behind. Is there any way to avoid this white space from showing up ? <?xml version="1.0" encoding...

"No such operation" Error in axis webservice

Hi All, I'm developing an axis java web service with two methods, both have an custom Object as parameter and a custom object as return value. I have them defined in the wsdd as: <service name="MyService" provider="java:RPC" style="document" use="literal"> <parameter name="className" value="com.mycompany.webservice.MyService"/...

String based axis for jQuery Flot graphs?

How do I get non-numeric values on a Flot graph axis? For example, on the Y-axis I would like to have (excuse the crappy graph): /* A| B| _/*----------* C| _/ \ D| _/ \ E| _/ \ F| / \ G| * ...

Axis2 problem reading response

Hi, I have setup Axis2 with Spring Framework integration. I followed Axis2 example from their website. I'm also using Eclipse to debug the web service and client. Using Eclipse, I see that the web service is getting called because of the break point. The parameter is also being passed. Problem is when the web service returns the resp...