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
1
vote
1 answer

Pretty print OMElement using Axiom Parser

In Axiom , I am not able to provide indenting option for OMElement.Using serialize method omelement is written into file. But it is not pretty print. Is there any option available in Axiom parser? Code I used to write into a file. FileOutputStream…
V_Dev
  • 83
  • 6
1
vote
1 answer

looking to set disallow-doctype-decl feature to true to stop XXE attack

We are using spring ws as a filter to perform WS-Security based on Token, timestamp and signature on the incoming soap request. We wants to prevent the XXE attack using the same filter and wondering if its possible. We're using…
sonu131
  • 157
  • 1
  • 11
1
vote
1 answer

Is it possible to replace org.apache.axis2.wso2 artifacts with org.apache.axis2 artifacts?

folks! I need to update artifacts in a project that is running on wso2 server. There were used wso2 specific artifacts like org.apache.axis2.wso2 or org.apache.ws.commons.axiom.wso2. If I want to replace these wso2 specific artifacts with more…
lenineo
  • 13
  • 2
1
vote
2 answers

Problems with Spring WS Streaming Attachments with Security Interceptor

I'm having problems getting Spring WS to receive a request which has a file attached and use streaming. The problem is I get the following exception whenever I try to use a security interceptor: 2011-01-11 15:10:05,132 DEBUG…
Craig Warren
  • 1,655
  • 4
  • 23
  • 38
1
vote
1 answer

Request works in SoapUI but does not in Java application

I have a project in SoapUI and my request works there and I get the expected response. In my Java (Axis2) code I'm sending a request, however this time I get this error java.net.SocketTimeoutException: Read timed out. The strange thing is I can…
Jordan
  • 35
  • 10
1
vote
1 answer

java.lang.NoSuchMethodError: org/apache/axiom/om/OMFactory.createOMElement(Lorg/apache/axiom/om/OMDataSource;)Lorg/apache/axiom/om/OMSourcedElement;

I am developer at Capgemini and I have an issue with a Java EE application that I am developing. I am calling a webservice with Axis2 in a junit test in a project and it works. But when I call the same method in an other project that refers to the…
1
vote
0 answers

Replace json / xml key or values based on other source

I want to encode json/xml payload based on other property/json file. master file: {    "keys": {       "Name": "abcd",       "age": "trst",       "USA": "bcd",       "country": "wert"    } } Source payload: {    "Name": "John",    "age":…
Derek Noble
  • 289
  • 1
  • 3
  • 13
1
vote
0 answers

Error during calling rest service from wso2

I am calling a rest service from wso2 sequence with json input.If I call the service from PostMan the service returns proper output but when I try with WSO2 there is below error coming.Please help me . I read some previous posts with same problem…
1
vote
1 answer

No meta factory found for feature 'default'; this usually means that axiom-impl.jar is not in the classpath

From the answer in the link below Link I found that it can be resolved by adding it to classpath. But I am using Custom ClassLoader to load jar axiom-impl-1.2.14. Is there any way to achieve this? axiom jar is using ClassLoader. Enumeration…
NIKUNJ SANGHADIA
  • 342
  • 4
  • 15
1
vote
1 answer

How to convert apache.cfx.header object to OMElement

I got the Header type object. Now I want to get its child elements. The Soap header contains a binary security tag. I can not get its content. The list contains these tags: List
ls=getHeader(); OMElement element=(OMElement)element; but can I…
Hasi
  • 260
  • 2
  • 12
1
vote
1 answer

How to set variable context for Axiom XPath

I want to validate my xpath paramaters This is my xml name1 name2 Following is my java code String xmlPayload="name1name2"; OMElement xmlOMOBject=…
user2694734
  • 401
  • 2
  • 7
  • 14
1
vote
0 answers

How to use BaseXpath object access data in OMElement object

I need to validate data inside string xpath expression. SimpleVariableContext svc=new SimpleVariableContext(); svc.setVariableValue("part1", xpathBodyElements[0]); String completedXPath="$part1"; BaseXPath contextpath=new…
user2694734
  • 401
  • 2
  • 7
  • 14
1
vote
3 answers

What is the most efficient way of addressing an element in XPath?

I have a Java program which cares about efficiency. There I use XPaths. In XPath I can select elements starting from root /root/a/b/c/d/e or use the descendent-or-self axis: //e What will be most efficient method among these two?
user2694734
  • 401
  • 2
  • 7
  • 14
1
vote
0 answers

How to create XML input using Axiom OMElement?

I have a service which expects an XML input as one of its parameter for a method. In java I have done with the WSDL2java conversion and method identification. Code : Method Name: FindIssues() FindIssues findIssues=new…
Nivetha T
  • 481
  • 1
  • 3
  • 17
1
vote
1 answer

Axiom OMElement generates child with empty default name space

Hi this is what i do for generating an xml code: OMFactory factory = OMAbstractFactory.getOMFactory(); OMNamespace nsSequence = factory.createOMNamespace("http://ws.apache.org/ns/synapse", ""); OMElement rootSequence =…
Alex
  • 1,515
  • 2
  • 22
  • 44