Questions tagged [axiom]

Axiom is a Java library developed by Apache that provides an XML object model implementation.

Axiom is a Java library developed by Apache that provides an XML object model implementation.

144 questions
3
votes
2 answers

Axiom Implementation Loader Override

I have been running into a string of issues with Axiom and Mule, a background can be found here: https://stackoverflow.com/questions/34164577/classloader-overrides-not-working-in-mule As mentioned in the comment of the previous issue, I was able to…
MonomiDev
  • 301
  • 2
  • 8
3
votes
1 answer

javax.xml.stream.XMLStreamException when using Axiom to send a SOAP

I have the following code final String METHOD="test"; final String PARAM1_VAL="Hello"; final String TARGET_EPR="http://bhanuka-TECRA-M11:8280/services/SoapToRestProxy"; SOAPFactory factory = OMAbstractFactory.getSOAP11Factory(); …
Bhanuka Yd
  • 646
  • 8
  • 25
3
votes
1 answer

Spring Webservicetemplate Connection reset error

We are using Spring 4 WebServiceTemplate to contact a WCF web service. One of the items we send across to this web service are images (JPEG format). For some of the cases when the image is slightly bigger (about 22KB), we get the following…
Paddy
  • 3,472
  • 5
  • 29
  • 48
3
votes
2 answers

How to pass variable parameter into XPath expression?

I want to pass a parameter into an XPath expression. (//a/b/c[x=?],myParamForXAttribute) Can I do this with XPath 1.0 ? (I tried string-join but it is not there in XPath 1.0) Then how can I do this ? My XML looks like val1
user2694734
  • 401
  • 2
  • 7
  • 14
3
votes
2 answers

How to perform arithmetic on elements of a Prolog list

Background A list of integer coefficients can be used to represent a polynomial (in X). For example, 1 + 3x + 3x^2 + 2x^3 is represented by [1,3,3,2]. Let P be one of these lists. I need to write axioms that take these coefficients and do different…
jessicaraygun
  • 315
  • 1
  • 4
  • 15
3
votes
1 answer

Adding namespaces to the AXIOMXPath

XML :
ironwood
  • 8,936
  • 15
  • 65
  • 114
2
votes
0 answers

Axis2 AXIOM Serialization

I am trying to serialize a simple POJO into an AXIOM OMElement, for using with Axis2 web services. The POJO stores a String, an Enum and an Object value. While the String and most Object values are correctly converted into XML, the Enum is never…
PNS
  • 19,295
  • 32
  • 96
  • 143
2
votes
1 answer

axis2 jar version 1.8.0 with axiom version 1.3.0 throws SOAP11HeaderImpl

We were using axis2 1.7.9 and axiom 1.2.22 in our application along with commons-httpclient 3.1. We tried removing commons-httpclient 3.1 from our application and since commons-httpclient is required by axis2 1.7.9 we had to upgrade axis2 to its…
2
votes
1 answer

Axiom dependency version required by spring web service 2.0

What is the version of Apache Axiom to be used with 2.0. I'm trying to use Axiom 1.2.8 and it is throwing some method not found error. I've a annotated end point as given below. @PayloadRoot(localPart = "employeeUpdateRequest", namespace =…
Arun P Johny
  • 384,651
  • 66
  • 527
  • 531
2
votes
2 answers

Spring ws - AxiomSoapMessage & attachment with MTOM are inline

im trying to understand how the AxiomSoapMessageFactory handles request (the body & attachment) but i dont understand some points (or they are maybe features) i 'm using AxioSoapMessageFactory like this :
Omar Elfada
  • 394
  • 3
  • 14
2
votes
2 answers

Clone XML without Namespace and prefix

I have xml file with namespace and prefix. i want to remove those namespace and prefix and convert that in to plain xml using java. I have tired to this using axiom in last couple of days. so far is not successful. since axiom not supporting to…
Derek Noble
  • 289
  • 1
  • 3
  • 13
2
votes
2 answers

ClassNotFoundException axiom-api-1.2.7.jar

I am getting this exception in my java project Caused by: java.lang.ClassNotFoundException: org.apache.axiom.om.OMDataSource at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native…
mujeeb
  • 799
  • 5
  • 18
  • 29
2
votes
1 answer

Isabelle: Axiomatization and Quickcheck vs auto solve_direct

Again a small example with unexpected results. theory Scratch imports Main begin datatype test = aa | bb | plus test test axiomatization where testIdemo : "x == plus x x" lemma test1 : "y == plus y y" Now i get the following messages: Auto…
TKler
  • 135
  • 7
2
votes
2 answers

Getting SOAPBody length efficiently

I want to get the length of a SOAPBody object. My current implementation is String mBody = body.toString(); int len= mBody.length(); Using org.apache.axiom.soap.SOAPBody; This takes huge time of the my whole operational time as my SOAP body is very…
user2694734
  • 401
  • 2
  • 7
  • 14
2
votes
1 answer

WSO2 ESB 4.8.1 ERROR White spaces are required between publicId and systemId

We are working with WSO2 ESB 4.8.1 with JAVA 1.7.0_55. Always, when we start the ESB and make the first request we receive this error: TID: [0] [ESB] [2015-04-22 10:51:31,067] ERROR {org.apache.synapse.transport.passthru.util.RelayUtils} - Error…
1
2
3
9 10