org.codehaus.xfire.wsdl11.parser
Class WSDLServiceBuilder

java.lang.Object
  extended by org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder

public class WSDLServiceBuilder
extends java.lang.Object

Builds a collection of Services from a WSDL.

Author:
Dan Diephouse
See Also:
Service

Field Summary
protected  Definition definition
           
 
Constructor Summary
WSDLServiceBuilder(Definition definition)
           
WSDLServiceBuilder(java.lang.String baseURI, java.io.InputStream is)
           
 
Method Summary
protected  void addService(Service s)
          Adds a service to the map of services and also to the list of all services.
 void build()
           
 java.util.List getAllServices()
          Gets a list of every service created.
 BindingProvider getBindingProvider()
           
 Definition getDefinition()
           
 java.util.List getSchemaElements()
           
 XmlSchemaCollection getSchemas()
           
protected  ServiceInfo getServiceInfo(PortType portType)
           
 java.util.Map getServices()
          Gets a Map of Services.
protected  java.lang.String getTargetNamespace()
           
 TransportManager getTransportManager()
           
protected static boolean hasAttributes(XmlSchemaComplexType complexType)
           
static boolean isWrapped(Operation op, XmlSchemaCollection schemas)
          A message is wrapped IFF: The input message has a single part.
protected  void processImports(Definition parent)
           
 void setBindingProvider(BindingProvider bindingProvider)
           
 void setTransportManager(TransportManager transportManager)
           
protected  void visit(Types types)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

definition

protected final Definition definition
Constructor Detail

WSDLServiceBuilder

public WSDLServiceBuilder(Definition definition)

WSDLServiceBuilder

public WSDLServiceBuilder(java.lang.String baseURI,
                          java.io.InputStream is)
                   throws WSDLException
Throws:
WSDLException
Method Detail

getBindingProvider

public BindingProvider getBindingProvider()

setBindingProvider

public void setBindingProvider(BindingProvider bindingProvider)

getDefinition

public Definition getDefinition()

getTransportManager

public TransportManager getTransportManager()

setTransportManager

public void setTransportManager(TransportManager transportManager)

build

public void build()
           throws java.lang.Exception
Throws:
java.lang.Exception

addService

protected void addService(Service s)
Adds a service to the map of services and also to the list of all services.

Parameters:
s -

processImports

protected void processImports(Definition parent)

getServices

public java.util.Map getServices()
Gets a Map of Services. The key is the service name and the value is a list of services with that name.

Returns:

getAllServices

public java.util.List getAllServices()
Gets a list of every service created.

Returns:

visit

protected void visit(Types types)

getServiceInfo

protected ServiceInfo getServiceInfo(PortType portType)

isWrapped

public static boolean isWrapped(Operation op,
                                XmlSchemaCollection schemas)
A message is wrapped IFF: The input message has a single part. The part is an element. The element has the same name as the operation. The element's complex type has no attributes.

Returns:

hasAttributes

protected static boolean hasAttributes(XmlSchemaComplexType complexType)

getTargetNamespace

protected java.lang.String getTargetNamespace()

getSchemaElements

public java.util.List getSchemaElements()

getSchemas

public XmlSchemaCollection getSchemas()


Copyright © 2004-2006 Envoi Solutions LLC. All Rights Reserved.