2001-11-28 13:50:29 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
2000-07-11 04:52:30 +04:00
|
|
|
*
|
2001-11-28 13:50:29 +03:00
|
|
|
* The contents of this file are subject to the Netscape Public
|
|
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.mozilla.org/NPL/
|
2000-07-11 04:52:30 +04:00
|
|
|
*
|
2001-11-28 13:50:29 +03:00
|
|
|
* Software distributed under the License is distributed on an "AS
|
|
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
* implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
2000-07-11 04:52:30 +04:00
|
|
|
*
|
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
2001-11-28 13:50:29 +03:00
|
|
|
* The Initial Developer of the Original Code is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 2001 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
2000-07-11 04:52:30 +04:00
|
|
|
*
|
2001-11-28 13:50:29 +03:00
|
|
|
* Contributor(s):
|
|
|
|
*/
|
2000-07-11 04:52:30 +04:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2001-11-28 13:50:29 +03:00
|
|
|
interface nsIDOMElement;
|
|
|
|
interface nsIVariant;
|
|
|
|
interface nsISOAPEncoding;
|
|
|
|
interface nsISchemaType;
|
|
|
|
interface nsISOAPAttachments;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This interface encapsulates an arbitrary parameter to be used
|
|
|
|
* by the soap serialization or protocol. It formalizes a type
|
|
|
|
* string, a reference to the object, and a name.
|
|
|
|
*/
|
2000-07-11 04:52:30 +04:00
|
|
|
|
|
|
|
[scriptable, uuid(99ec6690-535f-11d4-9a58-000064657374)]
|
|
|
|
interface nsISOAPParameter : nsISupports {
|
|
|
|
|
|
|
|
/**
|
2001-11-28 13:50:29 +03:00
|
|
|
* The namespace URI of the parameter. Ignored if name is null.
|
2000-07-11 04:52:30 +04:00
|
|
|
*/
|
2001-11-28 13:50:29 +03:00
|
|
|
attribute AString namespaceURI;
|
|
|
|
|
2000-07-11 04:52:30 +04:00
|
|
|
/**
|
|
|
|
* The name of the parameter. If the parameter is left unnamed, it
|
|
|
|
* will be encoded using the element types defined in the SOAP-ENC
|
|
|
|
* schema. For example, <code><SOAP-ENC:int>45</SOAP-ENC:int>
|
2000-07-14 20:25:09 +04:00
|
|
|
* </code>
|
2000-07-11 04:52:30 +04:00
|
|
|
*/
|
2001-11-28 13:50:29 +03:00
|
|
|
attribute AString name;
|
2000-07-11 04:52:30 +04:00
|
|
|
|
|
|
|
/**
|
2001-11-28 13:50:29 +03:00
|
|
|
* The encoding that was / will be applied to the
|
|
|
|
* parameter.
|
2000-07-11 04:52:30 +04:00
|
|
|
*/
|
2001-11-28 13:50:29 +03:00
|
|
|
attribute nsISOAPEncoding encoding;
|
2000-07-11 04:52:30 +04:00
|
|
|
|
|
|
|
/**
|
2001-11-28 13:50:29 +03:00
|
|
|
* The schema type used to encode or decode the
|
|
|
|
* parameter.
|
2000-07-11 04:52:30 +04:00
|
|
|
*/
|
2001-11-28 13:50:29 +03:00
|
|
|
attribute nsISchemaType schemaType;
|
2000-07-11 04:52:30 +04:00
|
|
|
|
|
|
|
/**
|
2001-11-28 13:50:29 +03:00
|
|
|
* The element which is the encoded value of this parameter.
|
|
|
|
* If this is set, value becomes a computed attribute
|
|
|
|
* which may be produced by decoding this element.
|
2000-07-14 03:11:16 +04:00
|
|
|
*/
|
2001-11-28 13:50:29 +03:00
|
|
|
attribute nsIDOMElement element;
|
2000-07-14 03:11:16 +04:00
|
|
|
|
|
|
|
/**
|
2001-11-28 13:50:29 +03:00
|
|
|
* The native value which is the decoded value of
|
|
|
|
* this parameter. If this is set, element becomes
|
|
|
|
* null.
|
2000-07-11 04:52:30 +04:00
|
|
|
*/
|
2001-11-28 13:50:29 +03:00
|
|
|
attribute nsIVariant value;
|
2000-07-11 04:52:30 +04:00
|
|
|
|
|
|
|
/**
|
2001-11-28 13:50:29 +03:00
|
|
|
* The attachments which were attached to the message
|
|
|
|
* that may be needed to decode the parameter.
|
2000-07-11 04:52:30 +04:00
|
|
|
*/
|
2001-11-28 13:50:29 +03:00
|
|
|
attribute nsISOAPAttachments attachments;
|
2000-07-11 04:52:30 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
%{ C++
|
|
|
|
#define NS_SOAPPARAMETER_CID \
|
|
|
|
{ /* 87d21ec2-539d-11d4-9a59-00104bdf5339 */ \
|
|
|
|
0x87d21ec2, 0x539d, 0x11d4, \
|
|
|
|
{0x9a, 0x59, 0x00, 0x10, 0x4b, 0xdf, 0x53, 0x39} }
|
2000-09-14 03:57:52 +04:00
|
|
|
#define NS_SOAPPARAMETER_CONTRACTID \
|
|
|
|
"@mozilla.org/xmlextras/soap/parameter;1"
|
2000-07-11 04:52:30 +04:00
|
|
|
%}
|