RE: JDOM XPath does not work with Axis

2012-05-22 Thread aaron.stromas
My application uses JDOM. I've asked the list hoping someone had the same problem and was more successful than me finding a solution. I suspect that at the problem is related to the way jaxen is loaded. -Original Message- From: Andreas Veithen [mailto:andreas.veit...@gmail.com] Sent: Tu

Re: axis2 mtom attach document to response - help please

2012-05-22 Thread eric johnson
I am attempted to attach a binary file to my response and was hoping to use mtom. I am working with XMLBeans objects from generating code via wsdl2java and using the org.apache.axis2.receivers.AbstractInOutMessageReceiver implementation that was generated. Is this possible? Now that I've found s

Re: axis2 mtom attach document to response - help please

2012-05-22 Thread Andreas Veithen
On Tue, May 22, 2012 at 6:36 PM, eric johnson wrote: > Thanks - the elementFormDefault isn't declared and I believe the > default is unqualified.  I've played around quite a bit with those > arguments for creating the OMNamespace and am less certain that is the > cause of my error. In that case y

Re: JDOM XPath does not work with Axis

2012-05-22 Thread Andreas Veithen
Axis2 doesn't use JDOM, so it is not clear how your question is related to Axis2. Andreas On Tue, May 22, 2012 at 5:41 PM, wrote: > Hi, > > > > I tried both JDOM and now JDOM2. > > > > For JDOM2, > > XPathFactory xpfac = XPathFactory.instance(); > > XPathExpression xp = xpfac.compile("//foo/bar

Re: axis2 mtom attach document to response - help please

2012-05-22 Thread eric johnson
Thanks - the elementFormDefault isn't declared and I believe the default is unqualified. I've played around quite a bit with those arguments for creating the OMNamespace and am less certain that is the cause of my error. I'm not sure why I am not getting an attachment back from the call. Is this

JDOM XPath does not work with Axis

2012-05-22 Thread aaron.stromas
Hi, I tried both JDOM and now JDOM2. For JDOM2, XPathFactory xpfac = XPathFactory.instance(); XPathExpression xp = xpfac.compile("//foo/bar"); The xp is null. For JDOM, XPath xp = XPath.newInstance("//foo/bar"); The xp is null. Both work in the simple java application. I tried to putting the

Re: axis2 mtom attach document to response - help please

2012-05-22 Thread Andreas Veithen
The answer depends on the elementFormDefault declared on the schema. Andreas On Mon, May 21, 2012 at 10:10 PM, eric johnson wrote: > Hi, > > I'm having some trouble adding an attachment to my response after > attempting to follow the instructions here: > http://axis.apache.org/axis2/java/core/do