As Egbert points out, for some services it's simply indeterminate until you actually run the dissemination. But for others, it's fixed. The intended response mime types (whether one or a list of possibilities) *are* recorded, but it can quite difficult to get at this information manually. I see from Scott's latest response that he's done this. Agreed; it's a lot of hoops and there should be a simpler way...like getting the info via an http HEAD request that didn't require actually running the dissemination.
- Chris On Thu, Feb 26, 2009 at 10:21 AM, Gramsbergen, Egbert <[email protected]> wrote: > That's a good point, but I doubt if such a service exists. It would have to > be quite clever because the service invoked by the service deployment > determines the mime-type on its own. For example, the Saxon xslt service > takes the mime-type from the media-type attribute that is specified in the > output element of the xslt stylesheet, or even in another stylesheet that is > included by reference. And that's only xslt, who knows what arbitrary other > services will do? > But I agree it would be useful to have something that determines the > mime-type in advance, and maybe someone is clever enough to come up with > something. > > Egbert Gramsbergen > -----Original Message----- > From: SCOTT G PRATER [mailto:[email protected]] > Sent: Thu 2/26/2009 2:57 PM > To: [email protected] > Subject: [Fedora-commons-users] API-A method to get a disseminator'sresponse > mime type? > > I'm embedding disseminator URLs in a METS file, and I'd like a way to > programatically get the mime type of the response, so I can construct the > correct <file> tag. Unfortunately, listMethods() doesn't return the method > response mime types in its data structure. So far, the only way I've seen > to get the mime type is by actually running the disseminator, with > getDissemination(). Is there a better way to determine the mime type, or > has anyone come up with a web service or widget to return a disseminator's > response mime type? > > Maybe this would be a good time to submit a feature request for future > versions of Fedora, to include the response mime type in the listMethods() > output. > > thanks, > > -- Scott > > -- > Scott Prater > Library, Instructional, and Research Applications (LIRA) > Division of Information Technology (DoIT) > University of Wisconsin - Madison > [email protected] ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Fedora-commons-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
