mace-opensaml-users - Re: REVISION (IGNORE PREVIOUS): [OpenSAML] marshalling, unmarshalling
Subject: OpenSAML user discussion
List archive
- From: Chad La Joie <>
- To:
- Subject: Re: REVISION (IGNORE PREVIOUS): [OpenSAML] marshalling, unmarshalling
- Date: Sat, 07 Jun 2008 09:27:05 +0200
- Openpgp: id=146B2514
- Organization: SWITCH
Jay Packard wrote:
Is the source I found out of date? The examples from your links don't disagree. They also use a marshalling/unmarshalling factory rather than a static function.According to http://svn.middleware.georgetown.edu/view/java-xmltooling/branches/1.0sig/src/org/opensaml/xml/io/Marshaller.java?revision=118&view=markup&pathrev=126, the marshall and unmarshall methods are not static. Don't I have to use a marshalling/unmarshalling factory?
Again, here is the documentation on unmarshalling
https://spaces.internet2.edu/display/OpenSAML/OSTwoUserManual
And here is the documentation on marshalling:
https://spaces.internet2.edu/display/OpenSAML/OSTwoUsrManJavaWriteToXML
The correct branch of the code is documented on the wiki, if you're trying build from source:
https://spaces.internet2.edu/display/OpenSAML/OSTwoDevManJavaBuild
Otherwise you should probably be using the released version:
http://shibboleth.internet2.edu/downloads/opensaml/java/
What makes you think I hadn't looked at the Javadocs? I did and saw that Element is an interface so it is not inherently serializable. Whether the object returned by the marshall method is serializable or not, and hence can be cast to a Serializable object, depends on opensaml's implementation of Element, which I can't know from the API definition.Also, the marshaller returns an org.w3c.dom.Element object. Can I simply cast this to an java.io.Serializable class (which is returned by the method in my port type stub)?
This is an incredibly basic Java question and not appropriate for this list. If you need to know if Element is serializable go look at the Javadoc for it.
Without asking it directly, I was really just trying to understand from your experience the way the Element object is typically returned in a web service, not for you to explain something basic like the way casting works.
You should probably read up on what Serializable does, I doubt its what you want it to in this case. You're looking for an answer that depends wholly on your environment and the tools you use. How do you add XML to your SOAP service message? However the tool you use expects you to add XML to the SOAP message.
--
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Net Services
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
,
http://www.switch.ch
- marshalling, unmarshalling, Jay Packard, 06/05/2008
- Re: [OpenSAML] marshalling, unmarshalling, Chad La Joie, 06/06/2008
- Re: [OpenSAML] marshalling, unmarshalling, Jay Packard, 06/06/2008
- Re: [OpenSAML] marshalling, unmarshalling, Chad La Joie, 06/06/2008
- Re: [OpenSAML] marshalling, unmarshalling, Jay Packard, 06/06/2008
- REVISION (IGNORE PREVIOUS): [OpenSAML] marshalling, unmarshalling, Jay Packard, 06/06/2008
- Re: REVISION (IGNORE PREVIOUS): [OpenSAML] marshalling, unmarshalling, Chad La Joie, 06/07/2008
- Re: [OpenSAML] marshalling, unmarshalling, Chad La Joie, 06/06/2008
- Re: [OpenSAML] marshalling, unmarshalling, Jay Packard, 06/06/2008
- Re: [OpenSAML] marshalling, unmarshalling, Chad La Joie, 06/06/2008
Archive powered by MHonArc 2.6.16.