Back to index

lightning-sunbird  0.9+nobinonly
nsIWSDLLoader.idl
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is Mozilla.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Netscape Communications.
00019  * Portions created by the Initial Developer are Copyright (C) 2001
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *   Vidur Apparao <vidur@netscape.com> (original author)
00024  *
00025  * Alternatively, the contents of this file may be used under the terms of
00026  * either the GNU General Public License Version 2 or later (the "GPL"), or
00027  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00028  * in which case the provisions of the GPL or the LGPL are applicable instead
00029  * of those above. If you wish to allow use of your version of this file only
00030  * under the terms of either the GPL or the LGPL, and not to allow others to
00031  * use your version of this file under the terms of the MPL, indicate your
00032  * decision by deleting the provisions above and replace them with the notice
00033  * and other provisions required by the GPL or the LGPL. If you do not delete
00034  * the provisions above, a recipient may use your version of this file under
00035  * the terms of any one of the MPL, the GPL or the LGPL.
00036  *
00037  * ***** END LICENSE BLOCK ***** */
00038 
00039 #include "nsISupports.idl"
00040 #include "nsIWebServiceErrorHandler.idl"
00041 
00042 interface nsIWSDLPort;
00043 interface nsIWSDLLoadListener;
00044 
00045 // Does this need to be scriptable, and exposed to scripters? We think
00046 // not...
00047 [scriptable, uuid(0458dac5-65de-11d5-9b42-00104bdf5339)]
00048 interface nsIWSDLLoader : nsISupports
00049 {
00050   nsIWSDLPort load(in AString wsdlURI, in AString portName);
00051   void loadAsync(in AString wsdlURI, in AString portName,
00052                  in nsIWSDLLoadListener listener);
00053 };
00054 
00055 [scriptable, uuid(c3681210-e191-11d8-949e-000393b6661a)]
00056 interface nsIWSDLLoadListener : nsIWebServiceErrorHandler
00057 {
00058   void onLoad(in nsIWSDLPort port);
00059 };
00060 
00061 %{ C++
00062 #define NS_WSDLLOADER_CID                             \
00063 { /* 0a5af577-a61e-4492-ba0e-dd3c7b657e18 */          \
00064  0x0a5af577, 0xa61e, 0x4492,                          \
00065  {0xba, 0x0e, 0xdd, 0x3c, 0x7b, 0x65, 0x7e, 0x18}}
00066 
00067 #define NS_WSDLLOADER_CONTRACTID "@mozilla.org/xmlextras/wsdl/wsdlloader;1"
00068 
00069 #define NS_ERROR_WSDL_NOT_WSDL_ELEMENT          NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 1)
00070 #define NS_ERROR_WSDL_SCHEMA_PROCESSING_ERROR   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 2)
00071 #define NS_ERROR_WSDL_BINDING_NOT_FOUND         NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 3)
00072 #define NS_ERROR_WSDL_UNKNOWN_SCHEMA_COMPONENT  NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 4)
00073 #define NS_ERROR_WSDL_UNKNOWN_WSDL_COMPONENT    NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 5)
00074 #define NS_ERROR_WSDL_LOADING_ERROR             NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 6)
00075 #define NS_ERROR_WSDL_RECURSIVE_IMPORT          NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 7)
00076 #define NS_ERROR_WSDL_NOT_ENABLED               NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 8)
00077 %}