Hi Jason, > So, my question is how does one format the ParamArray and then use it > within the WSDL As a parameter Is it just defined with a separate > wsdl:part element and a type that allows an empty value (since it is > optional)?
Within the WSDL, optional parameters are defined the same way that required parameters are... as wsdl:parts, referencing a type defined in the wsdl:types section. The actual type doesn't need to be defined as accepting empty values...for example, an optional numeric parameter can be defined as an xsd:integer here. The only place you have to treat optional user parameters differently is inside the METHODMAP datastream. > Also, is there a /dateTime value that can be specified that will always > get the most recent version of the operation? It appears that the > dateTime is a mandatory part of the URL if you want to also add a > Parameter Array. The dateTime parameter is optional. If not present, it indicates that the latest version should be used. The parameter array can be specified at invocation time regardless of whether the /dateTime part precedes it. When invoking the operations, user-supplied parameters are expected to be provided in the following form: .../methodName?arg1=value1&arg2=value2 [...] Note: I'm currently working on a "Construction Guide" that will include details on how SDep/SDef objects should be put together (see "Recently Updated" at http://fedora-commons.org/wiki ) ... for the time being, for what you're doing, the image manipulation demo (demo:27 and demo:28) and the document transform demo (demo:12 and demo:13) should prove helpful. - Chris On Fri, Aug 14, 2009 at 9:29 AM, Jason Nugent<[email protected]> wrote: > Hello, everyone, > > I am in the middle of building a content model, along with an SDep/SDef > implementation, and was wondering what the syntax was for using > "Optional Parameters" when calling operations. The documentation > suggests that the operations can be called using the following form: > > Repository : Get : Data object PID : SDef PID : Operation Name : > Optional Parameters > > I have tried a few variations of this using the demo objects supplied > with the client. I have learned that the first Optional Parameter > appears to be the timestamp, with errors like the following: > > The expected syntax for Dissemination requests is: > "http://localhost:8080/fedora/get/PID/sDefPID/methodName[/dateTime][?ParmArray]" > > So, my question is how does one format the ParamArray and then use it > within the WSDL As a parameter Is it just defined with a separate > wsdl:part element and a type that allows an empty value (since it is > optional)? > > ie: > > <wsdl:part name="OPTIONAL_ARG" type="this:OPTIONAL_ARGType"/> > > Also, is there a /dateTime value that can be specified that will always > get the most recent version of the operation? It appears that the > dateTime is a mandatory part of the URL if you want to also add a > Parameter Array. > > What I am trying to accomplish here is to create a generalized > transformation service that can have a stylesheet URL passed in as an > optional paramter, right in the call to the operation, via the URL. I > think this would let me create a very flexible content model without > needing to define operations for each type of output format. > > Cheers, > > Jason > > -- > Jason Nugent > Systems Programmer/Database Developer > Electronic Text Centre > University of New Brunswick > [email protected] > (506) 447 3177 > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Fedora-commons-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Fedora-commons-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
