Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsWSDLLoader.cpp File Reference
#include "nsIWebServiceErrorHandler.h"
#include "nsWSDLLoader.h"
#include "nsIDOMEvent.h"
#include "nsIDOMEventTarget.h"
#include "nsNetUtil.h"
#include "nsIDOMDocument.h"
#include "nsIDOM3Node.h"
#include "nsReadableUtils.h"
#include "nsIXPConnect.h"
#include "nsIScriptSecurityManager.h"
#include "nsIPrincipal.h"
#include "nsIServiceManager.h"
#include "nsIComponentManager.h"
#include "nsStaticAtom.h"
#include "nsISOAPMessage.h"
#include "nsIPrefService.h"
#include "nsWSDLAtomList.h"

Go to the source code of this file.

Defines

#define SCHEMA_2001_NAMESPACE   "http://www.w3.org/2001/XMLSchema"
#define SCHEMA_1999_NAMESPACE   "http://www.w3.org/1999/XMLSchema"
#define WSDL_ATOM(_name, _value)   nsIAtom* nsWSDLAtoms::_name;
#define WSDL_ATOM(_name, _value)   { _value, &nsWSDLAtoms::_name },

Functions

static PRBool IsElementOfNamespace (nsIDOMElement *aElement, const nsAString &aNamespace)
static nsresult ParseQualifiedName (nsIDOMElement *aContext, const nsAString &aQualifiedName, nsAString &aPrefix, nsAString &aLocalName, nsAString &aNamespaceURI)

Variables

static const nsStaticAtom atomInfo []

Define Documentation

#define SCHEMA_1999_NAMESPACE   "http://www.w3.org/1999/XMLSchema"

Definition at line 73 of file nsWSDLLoader.cpp.

#define SCHEMA_2001_NAMESPACE   "http://www.w3.org/2001/XMLSchema"

Definition at line 72 of file nsWSDLLoader.cpp.

#define WSDL_ATOM (   _name,
  _value 
)    nsIAtom* nsWSDLAtoms::_name;

Definition at line 82 of file nsWSDLLoader.cpp.

#define WSDL_ATOM (   _name,
  _value 
)    { _value, &nsWSDLAtoms::_name },

Definition at line 82 of file nsWSDLLoader.cpp.


Function Documentation

static PRBool IsElementOfNamespace ( nsIDOMElement aElement,
const nsAString &  aNamespace 
) [inline, static]

Definition at line 264 of file nsWSDLLoader.cpp.

{
       nsAutoString namespaceURI;
       aElement->GetNamespaceURI(namespaceURI);
       return namespaceURI.Equals(aNamespace);
}

Here is the caller graph for this function:

static nsresult ParseQualifiedName ( nsIDOMElement aContext,
const nsAString &  aQualifiedName,
nsAString &  aPrefix,
nsAString &  aLocalName,
nsAString &  aNamespaceURI 
) [static]

Definition at line 860 of file nsWSDLLoader.cpp.

{
  nsReadingIterator<PRUnichar> pos, begin, end;

  aQualifiedName.BeginReading(begin);
  aQualifiedName.EndReading(end);
  pos = begin;

  if (FindCharInReadable(PRUnichar(':'), pos, end)) {
    CopyUnicodeTo(begin, pos, aPrefix);
    CopyUnicodeTo(++pos, end, aLocalName);
  }
  else {
    CopyUnicodeTo(begin, end, aLocalName);
  }

  nsCOMPtr<nsIDOM3Node> node(do_QueryInterface(aContext));
  if (!node) {
    return NS_ERROR_UNEXPECTED;
  }

  return node->LookupNamespaceURI(aPrefix, aNamespaceURI);
}

Here is the call graph for this function:


Variable Documentation

Initial value:
 {
#define WSDL_ATOM(_name, _value) 


























}

Definition at line 86 of file nsWSDLLoader.cpp.