Anyone have any suggestions on how to unit testing?
I am looking for a way to quickly test my binding definitions using
Binding on Load
thanks,
Kees
-
Using Tomcat but need to do more? Need to support web services, security?
This is my class:
public class Message {
private Integer messageId;
...
}
And this is the xml I need to produce.
ns1:message
ns1:id ns2:default=11/ns1:id
/ns1:message
I need to add some extra (constant) attributes of a different
namespace (ns2:default) to the value of message
(Sorry - previous message had incomplete subject)
This is my class:
public class Message {
private Integer messageId;
...
}
And this is the xml I need to produce.
ns1:message
ns1:id ns2:default=11/ns1:id
/ns1:message
I need to add some extra (constant) attributes of a different
On 9/1/06, Kees de Kooter [EMAIL PROTECTED] wrote:
(Sorry - previous message had incomplete subject)
This is my class:
public class Message {
private Integer messageId;
...
}
And this is the xml I need to produce.
ns1:message
ns1:id ns2:default=11/ns1:id
/ns1:message
On 9/1/06, Kees de Kooter [EMAIL PROTECTED] wrote:
On 9/1/06, Kees de Kooter [EMAIL PROTECTED] wrote:
(Sorry - previous message had incomplete subject)
This is my class:
public class Message {
private Integer messageId;
...
}
And this is the xml I need to produce
I am trying to marshal the value of a string property that contains an
xml snippet as relas xml, not as a CDATA element or with character
entity substitutions. Can this be done?
--
Cheers,
Kees de Kooter
http://www.boplicity.net
public to get around the parsing. If you use the default printString()
method, it converts all the to gt; per the XML specification.
This is exactly the thing I want to prevent. I will take a look at the
the sources though. Thanks for the input Thomas!
On 9/1/06, Kees de Kooter [EMAIL PROTECTED] wrote:
Anyone have any suggestions on how to unit testing?
I am looking for a way to quickly test my binding definitions using
Binding on Load
thanks,
Kees
One way to do this is creating test classes with a main method, but
that way you
As a side note: How do you combine jibx with the Eclipse build and
- even more severe - its product export? The problem is, that the
automatically created Eclipse build.xml used during its deployment is
not aware of the needs to export your prepared class files, but will
build them again
;
unmarshallingContext.parsePastEndTag(uri, name);
return result;
}
}
thanx,
--
Cheers,
Kees de Kooter
http://www.boplicity.net
-
Using Tomcat but need to do more? Need to support web services
Is it possible to set the character escaper in the marshal method of a
custom marshaller and set it back to tho old value after that?
thanx,
--
Cheers,
Kees de Kooter
http://www.boplicity.net
-
Using Tomcat but need to do
On 9/4/06, Kees de Kooter [EMAIL PROTECTED] wrote:
Is it possible to set the character escaper in the marshal method of a
custom marshaller and set it back to tho old value after that?
More specifically: how can I get a reference to the Writer that is
used to marshal the document to from
On 9/5/06, denis queffeulou [EMAIL PROTECTED] wrote:
Thanks for reply,
actually I can't use CDATA.
So I can treat entities into a ICharacterEscaper implementation, that
seems good,
but how can I tell Jibx to use my ICharacterEscaper implementation ?
I don't find the proper attribute in
Now, with the binding, I have already try a lot of combinations using
extends, abstract, and others (even the create-type for the
Class A binding to create Class B instead)... but, when unmarshalling,
only one class is created with only and ONLY his particular atributes.
Here is the basic
Here is an example of my mapping:
mapping class=some.package.A
abstract=true
value name=a field=a/
value name=b field=b/
/mapping
mapping name=B
class=some.package.B
extends=some.package.A
structure map-as=some.package.A/
value
How can I skip the writing of the xml declaration (?xml version=1.0
encoding=UTF-8 standalone=yes?)?
--
Cheers,
Kees de Kooter
http://www.boplicity.net
-
Using Tomcat but need to do more? Need to support web services
On 9/11/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi,
Below in blue is the erro that i get when i am trying to build and below
that in bold black i have pasted my binding file.
I notice that if I use a constant attribute in value this error occurs.Wen I
use
field attribute and not the
On 9/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Dear Kees,
I think you could be right but can't
vouch for it.
I tested a very trivial binding and
compiled it without using either Ant/Maven and it worked.
Even in this binding file if i were
to comment out all the lines with constant and
Exception in thread main
javax.xml.stream.FactoryConfigurationError: Provider
com.bea.xml.stream.MXParserFactory not found
I fixed this by adding stax-1.2.0.jar to the classpath.
--
Cheers,
Kees de Kooter
http://www.boplicity.net
to build my own marshaller. Any
examples araound?
thanx,
--
Cheers,
Kees de Kooter
http://www.boplicity.net
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated
Is it possible to serialize or marshal a org.w3c.dom.Document(or a
dom4j Document or a JDOM Document for that matter)?
--
Cheers,
Kees de Kooter
http://www.boplicity.net
-
Using Tomcat but need to do more? Need to support
On 9/18/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi,
I have been successful in creating a binding xml and marshalling my object
heirarchy into an XML. Is it possible to generate/ marshall object heirarchy
into an XML; which will have the Schema information in the topmost tag.
Yes,
22 matches
Mail list logo