As Carey said you can delete fields from the XML.  To add your own
Defaults just put the data you want as the default in the DefaultValue
property of the element.  If you set the Element property to False and
the Use property to prohibited it will not show up for a consumer to put
a value into.

Fred

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Carey Matthew Black
Sent: Wednesday, January 17, 2007 1:34 PM
To: [email protected]
Subject: Re: Custom Web Service create method

Mark,

I have not tested this, but it makes sense in my head. (Maybe worth a
shot.)

You can remove any field from the Input Map by right clicking on the
element and selecting cut.( You can click on the top one and shift click
on the bottom one then cut several in a row at at time too.) However,
for the required elements I think you need to leave them in the input
map to some extent. But I would see if you can add a DefaultValue, set
MinOccurs to zero AND make the element "nillable" too. With any luck
those things things will translate into...

If the element is not in the input map then add it with this default
value. (Note "nillable" = "completely missing from the input XML" )

--
Carey Matthew Black
Remedy Skilled Professional (RSP)
ARS = Action Request System(Remedy)

Love, then teach
Solution = People + Process + Tools
Fast, Accurate, Cheap.... Pick two.



On 1/17/07, Mark Bee <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm wondering how to narrow down list of parameters for a Create 
> method of web service.
> Now, when consuming a webservice, I have to pass to a method all 
> parameters coresponding to required fields.
> I want a web service consumer to not specify e.g. Category, Type, Item

> and have it as default values.
> Is it possible to configure it with InputMapping form or should I 
> crate a separate form with predefined fields?
>
> Mark

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

Reply via email to