Work in progress on WSDL Loader interfaces. This is not yet part of the build.

git-svn-id: svn://10.0.0.236/trunk@99753 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
vidur%netscape.com 2001-07-23 18:22:43 +00:00
parent 5c4117b26c
commit 2daff17f08
8 changed files with 70 additions and 42 deletions

View File

@ -23,6 +23,10 @@
#include "nsISupports.idl"
%{ C++
#include "nsAWritableString.h"
%}
interface nsIWSDLService;
interface nsIWSDLPort;
interface nsIWSDLOperation;

View File

@ -23,6 +23,10 @@
#include "nsISupports.idl"
%{ C++
#include "nsAWritableString.h"
%}
interface nsIWSDLService;
interface nsIURI;
interface nsIWSDLLoaderListener;
@ -32,12 +36,12 @@ interface nsIWSDLLoader : nsISupports {
nsIWSDLService load(in nsIURI wsdlURI);
void loadAsync(in nsIURI wsdlURI, in nsIWSDLLoaderListener listener);
nsISupports createServiceProxy(in nsIWSDLService service,
in wstring nameSpace);
in AString nameSpace);
};
[scriptable, uuid(0458dac6-65de-11d5-9b42-00104bdf5339)]
interface nsIWSDLLoaderListener : nsISupports {
void onError(in PRInt32 status,
in wstring statusMessage);
in AString statusMessage);
void onComplete(in nsIWSDLService service);
};

View File

@ -35,20 +35,26 @@ nsWSDLLoader::~nsWSDLLoader()
NS_IMPL_ISUPPORTS1(nsWSDLLoader, nsIWSDLLoader)
/* nsIWSDLService loadService (in nsIURI wsdlURI); */
/* nsIWSDLService load (in nsIURI wsdlURI); */
NS_IMETHODIMP
nsWSDLLoader::LoadService(nsIURI *wsdlURI,
nsIWSDLService **_retval)
nsWSDLLoader::Load(nsIURI *wsdlURI, nsIWSDLService **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISupports createServiceProxy (in nsIWSDLService service, in wstring nameSpace); */
/* void loadAsync (in nsIURI wsdlURI, in nsIWSDLLoaderListener listener); */
NS_IMETHODIMP
nsWSDLLoader::LoadAsync(nsIURI *wsdlURI, nsIWSDLLoaderListener *listener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISupports createServiceProxy (in nsIWSDLService service, in AString nameSpace); */
NS_IMETHODIMP
nsWSDLLoader::CreateServiceProxy(nsIWSDLService *service,
const PRUnichar *nameSpace,
const nsAReadableString& nameSpace,
nsISupports **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
return NS_ERROR_NOT_IMPLEMENTED;
}

View File

@ -52,7 +52,7 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_NSIWSDLSERVICE
NS_IMETHOD SetName(const nsAReadable& aName);
NS_IMETHOD SetName(const nsAReadableString& aName);
NS_IMETHOD SetDocumentationElement(nsIDOMElement* aElement);
NS_IMETHOD AddPort(nsIWSDLPort* aPort);
@ -70,11 +70,11 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_NSIWSDLPORT
NS_IMETHOD SetName(const nsAReadable& aName);
NS_IMETHOD SetName(const nsAReadableString& aName);
NS_IMETHOD SetDocumentationElement(nsIDOMElement* aElement);
NS_IMETHOD SetBindingInfo(const nsAReadable& aBindingName,
NS_IMETHOD SetBindingInfo(const nsAReadableString& aBindingName,
PRUint16 aStyle,
const nsAReadable& aTransport);
const nsAReadableString& aTransport);
NS_IMETHOD AddOperation(nsIWSDLOperation* aOperation);
protected:
@ -94,10 +94,10 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_NSIWSDLOPERATION
NS_IMETHOD SetName(const nsAReadable& aName);
NS_IMETHOD SetName(const nsAReadableString& aName);
NS_IMETHOD SetDocumentationElement(nsIDOMElement* aElement);
NS_IMETHOD SetBindingInfo(PRUint16 aStyle,
const nsAReadable& aSoapAction);
const nsAReadableString& aSoapAction);
NS_IMETHOD SetInputMessage(nsIWSDLMessage* aInputMessage);
NS_IMETHOD SetOutputMessage(nsIWSDLMessage* aOutputMessage);
NS_IMETHOD SetFaultMessage(nsIWSDLMessage* aFaultMessage);
@ -120,11 +120,11 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_NSIWSDLMESSAGE
NS_IMETHOD SetName(const nsAReadable& aName);
NS_IMETHOD SetName(const nsAReadableString& aName);
NS_IMETHOD SetDocumentationElement(nsIDOMElement* aElement);
NS_IMETHOD SetBindingInfo(PRUint16 aLocation, PRUint16 aUse,
const nsAReadable& aEncodingStyle,
const nsAReadable& aNamespace);
const nsAReadableString& aEncodingStyle,
const nsAReadableString& aNamespace);
NS_IMETHOD AddPart(nsIWSDLPart* aPart);
protected:
@ -145,9 +145,9 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_NSIWSDLPART
NS_IMETHOD SetName(const nsAReadable& aName);
NS_IMETHOD SetTypeInfo(const nsAReadable& aType,
const nsAReadable& aElementName,
NS_IMETHOD SetName(const nsAReadableString& aName);
NS_IMETHOD SetTypeInfo(const nsAReadableString& aType,
const nsAReadableString& aElementName,
nsIDOMElement* aSchema,
nsIDOMElement* aSchemaRoot);

View File

@ -23,6 +23,10 @@
#include "nsISupports.idl"
%{ C++
#include "nsAWritableString.h"
%}
interface nsIWSDLService;
interface nsIWSDLPort;
interface nsIWSDLOperation;

View File

@ -23,6 +23,10 @@
#include "nsISupports.idl"
%{ C++
#include "nsAWritableString.h"
%}
interface nsIWSDLService;
interface nsIURI;
interface nsIWSDLLoaderListener;
@ -32,12 +36,12 @@ interface nsIWSDLLoader : nsISupports {
nsIWSDLService load(in nsIURI wsdlURI);
void loadAsync(in nsIURI wsdlURI, in nsIWSDLLoaderListener listener);
nsISupports createServiceProxy(in nsIWSDLService service,
in wstring nameSpace);
in AString nameSpace);
};
[scriptable, uuid(0458dac6-65de-11d5-9b42-00104bdf5339)]
interface nsIWSDLLoaderListener : nsISupports {
void onError(in PRInt32 status,
in wstring statusMessage);
in AString statusMessage);
void onComplete(in nsIWSDLService service);
};

View File

@ -35,20 +35,26 @@ nsWSDLLoader::~nsWSDLLoader()
NS_IMPL_ISUPPORTS1(nsWSDLLoader, nsIWSDLLoader)
/* nsIWSDLService loadService (in nsIURI wsdlURI); */
/* nsIWSDLService load (in nsIURI wsdlURI); */
NS_IMETHODIMP
nsWSDLLoader::LoadService(nsIURI *wsdlURI,
nsIWSDLService **_retval)
nsWSDLLoader::Load(nsIURI *wsdlURI, nsIWSDLService **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISupports createServiceProxy (in nsIWSDLService service, in wstring nameSpace); */
/* void loadAsync (in nsIURI wsdlURI, in nsIWSDLLoaderListener listener); */
NS_IMETHODIMP
nsWSDLLoader::LoadAsync(nsIURI *wsdlURI, nsIWSDLLoaderListener *listener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISupports createServiceProxy (in nsIWSDLService service, in AString nameSpace); */
NS_IMETHODIMP
nsWSDLLoader::CreateServiceProxy(nsIWSDLService *service,
const PRUnichar *nameSpace,
const nsAReadableString& nameSpace,
nsISupports **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
return NS_ERROR_NOT_IMPLEMENTED;
}

View File

@ -52,7 +52,7 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_NSIWSDLSERVICE
NS_IMETHOD SetName(const nsAReadable& aName);
NS_IMETHOD SetName(const nsAReadableString& aName);
NS_IMETHOD SetDocumentationElement(nsIDOMElement* aElement);
NS_IMETHOD AddPort(nsIWSDLPort* aPort);
@ -70,11 +70,11 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_NSIWSDLPORT
NS_IMETHOD SetName(const nsAReadable& aName);
NS_IMETHOD SetName(const nsAReadableString& aName);
NS_IMETHOD SetDocumentationElement(nsIDOMElement* aElement);
NS_IMETHOD SetBindingInfo(const nsAReadable& aBindingName,
NS_IMETHOD SetBindingInfo(const nsAReadableString& aBindingName,
PRUint16 aStyle,
const nsAReadable& aTransport);
const nsAReadableString& aTransport);
NS_IMETHOD AddOperation(nsIWSDLOperation* aOperation);
protected:
@ -94,10 +94,10 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_NSIWSDLOPERATION
NS_IMETHOD SetName(const nsAReadable& aName);
NS_IMETHOD SetName(const nsAReadableString& aName);
NS_IMETHOD SetDocumentationElement(nsIDOMElement* aElement);
NS_IMETHOD SetBindingInfo(PRUint16 aStyle,
const nsAReadable& aSoapAction);
const nsAReadableString& aSoapAction);
NS_IMETHOD SetInputMessage(nsIWSDLMessage* aInputMessage);
NS_IMETHOD SetOutputMessage(nsIWSDLMessage* aOutputMessage);
NS_IMETHOD SetFaultMessage(nsIWSDLMessage* aFaultMessage);
@ -120,11 +120,11 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_NSIWSDLMESSAGE
NS_IMETHOD SetName(const nsAReadable& aName);
NS_IMETHOD SetName(const nsAReadableString& aName);
NS_IMETHOD SetDocumentationElement(nsIDOMElement* aElement);
NS_IMETHOD SetBindingInfo(PRUint16 aLocation, PRUint16 aUse,
const nsAReadable& aEncodingStyle,
const nsAReadable& aNamespace);
const nsAReadableString& aEncodingStyle,
const nsAReadableString& aNamespace);
NS_IMETHOD AddPart(nsIWSDLPart* aPart);
protected:
@ -145,9 +145,9 @@ public:
NS_DECL_ISUPPORTS
NS_DECL_NSIWSDLPART
NS_IMETHOD SetName(const nsAReadable& aName);
NS_IMETHOD SetTypeInfo(const nsAReadable& aType,
const nsAReadable& aElementName,
NS_IMETHOD SetName(const nsAReadableString& aName);
NS_IMETHOD SetTypeInfo(const nsAReadableString& aType,
const nsAReadableString& aElementName,
nsIDOMElement* aSchema,
nsIDOMElement* aSchemaRoot);