IT_Bus::Soap12WSDLAddress Class Reference

#include <it_bus_config/soap12_wsdl_address.h>

Inheritance diagram for IT_Bus::Soap12WSDLAddress:

IT_Bus::Soap12WSDLExtensionElement IT_Bus::SequenceComplexType IT_Bus::EndpointAddress IT_WSDL::WSDLExtensionElement IT_Bus::XMLNode IT_Bus::ComplexType IT_Bus::AnyType IT_WSDL::WSDLNode IT_Bus::AnyType IT_Bus::PrefixResolver IT_Bus::XMLSaxHandler IT_Bus::ImplementationDetails IT_Bus::ImplementationDetails List of all members.

Detailed Description

Class representing the endpoint address for a SOAP over HTTP Web service.

Definition at line 26 of file soap12_wsdl_address.h.

Public Member Functions

const Stringget_location () const
 Returns a string containing the transport endpoint address for a Web service.
void set_location (const String &location)
 Set the transport endpoint address for a Web service.
virtual void write_attributes (IT_Bus::XMLOutputStream &stream) const throw ((IT_Bus::IOException))
 Writes the attributes for the node to the stream specified.
virtual void read (const IT_Bus::QName &element_name, ComplexTypeReader &reader) throw ((IT_Bus::DeserializationException))
 Use the reader to read the specified element.
virtual void write (const IT_Bus::QName &element_name, IT_Bus::ComplexTypeWriter &writer) const throw ((IT_Bus::SerializationException))
 Use the writer to write the specified element.
virtual IT_WSDL::WSDLExtensionElementclone () const
 Return a pointer to a new instance with its location initialized to the same value as this instance.
virtual IT_WSDL::WSDLExtensionElementclone_unique (const IT_Bus::QName &name) const
 Return a pointer to a new instance with its location initialized to a value different from this instance.
virtual void write (IT_Bus::XMLOutputStream &stream) const throw ((IT_Bus::IOException))
 Write the contents of the node.
virtual void read_contents (ComplexTypeReader &os) throw ((IT_Bus::DeserializationException))
 Read the member values into the instance.
virtual void write_contents (ComplexTypeWriter &os) const throw ((IT_Bus::SerializationException))
 Write the member values of the instance.
virtual const IT_Bus::QNameget_type () const
 Returns the IT_Bus::QName for the type.
virtual AnyTypecopy (const AnyType &rhs)
 Return a reference to this instance.

Static Public Member Functions

static const Soap12WSDLAddressget_from_port (const IT_WSDL::WSDLPort &wsdl_port)
 Obtain the Soap12WSDLAddress from the specified WSDLPort instance.

Private Attributes

String m_location
unsigned long m_default_port
IT_Mutex m_lock


Member Function Documentation

const String& IT_Bus::Soap12WSDLAddress::get_location (  )  const [virtual]

Returns a string containing the transport endpoint address for a Web service.

Returns:
String containing the endpoint address. For example, for SOAP over HTTP transport this method returns an HTTP URL such as http://localhost:9000.

Implements IT_Bus::EndpointAddress.

void IT_Bus::Soap12WSDLAddress::set_location ( const String location  )  [virtual]

Set the transport endpoint address for a Web service.

Parameters:
String containing the Web service address, for example, an HTTP URL such as http://localhost:9000.

Reimplemented from IT_Bus::EndpointAddress.

static const Soap12WSDLAddress* IT_Bus::Soap12WSDLAddress::get_from_port ( const IT_WSDL::WSDLPort wsdl_port  )  [static]

Obtain the Soap12WSDLAddress from the specified WSDLPort instance.

Parameters:
A reference to a WSDLPort instance.
Returns:
A pointer to the corresponding Soap12WSDLAddress.

virtual void IT_Bus::Soap12WSDLAddress::write_attributes ( IT_Bus::XMLOutputStream stream  )  const throw ((IT_Bus::IOException)) [virtual]

Writes the attributes for the node to the stream specified.

Parameters:
A reference to the desired stream.

Reimplemented from IT_Bus::XMLNode.

virtual void IT_Bus::Soap12WSDLAddress::read ( const IT_Bus::QName element_name,
ComplexTypeReader reader 
) throw ((IT_Bus::DeserializationException)) [virtual]

Use the reader to read the specified element.

Parameters:
QName of the desired element.
A reference to the reader.

Reimplemented from IT_Bus::SequenceComplexType.

virtual void IT_Bus::Soap12WSDLAddress::write ( const IT_Bus::QName element_name,
IT_Bus::ComplexTypeWriter writer 
) const throw ((IT_Bus::SerializationException)) [virtual]

Use the writer to write the specified element.

Parameters:
QName of the desired element.
A reference to the writer.

Reimplemented from IT_Bus::SequenceComplexType.

virtual IT_WSDL::WSDLExtensionElement* IT_Bus::Soap12WSDLAddress::clone (  )  const [virtual]

Return a pointer to a new instance with its location initialized to the same value as this instance.

Returns:
A pointer to WSDLExtensionElement, a superclass of the Soap12WSDLAddress instance.

For example, if the location of this Soap12WSDLAddress instance is http://localhost:9000, the new Soap12WSDLAddress instance will have the same value for the location.

Reimplemented from IT_WSDL::WSDLExtensionElement.

virtual IT_WSDL::WSDLExtensionElement* IT_Bus::Soap12WSDLAddress::clone_unique ( const IT_Bus::QName name  )  const [virtual]

Return a pointer to a new instance with its location initialized to a value different from this instance.

Parameters:
QName to use in creating the unique location value.
Returns:
A pointer to WSDLExtensionElement, a superclass of the Soap12WSDLAddress instance.

For example, if the location of this Soap12WSDLAddress instance is http://localhost:9000, the new Soap12WSDLAddress instance will have the location value: http://localhost:9000/local_part_of_QName.

Reimplemented from IT_WSDL::WSDLExtensionElement.

virtual void IT_Bus::Soap12WSDLAddress::write ( IT_Bus::XMLOutputStream stream  )  const throw ((IT_Bus::IOException)) [virtual]

Write the contents of the node.

This method is typically invoked on an instance of the IT_WSDL::WSDLDefinitions class to write a copy of the in-memory representation of the WSDL model to a file that will be accessible to other applications. For example,

 // The WSDL model may be obtained from the Service
 IT_WSDL::WSDLDefinitions &definitions = service.get_definitions();

 // Now initialize an XMLOutputStream and invoke the write()
 // method on the WSDLDefinitions object.
 IT_Bus::FileOutputStream stream("<path to, and name of, the output file>");
 IT_Bus::XMLOutputStream xml_stream(stream, true);
 definitions.write(xml_stream);
 stream.close();
 

Parameters:
IT_Bus::XMLOutputStream to which to write the node contents.

Reimplemented from IT_WSDL::WSDLExtensionElement.

virtual void IT_Bus::Soap12WSDLAddress::read_contents ( ComplexTypeReader os  )  throw ((IT_Bus::DeserializationException)) [virtual]

Read the member values into the instance.

Derived subclasses implement this method.

Implements IT_Bus::SequenceComplexType.

virtual void IT_Bus::Soap12WSDLAddress::write_contents ( ComplexTypeWriter os  )  const throw ((IT_Bus::SerializationException)) [virtual]

Write the member values of the instance.

Derived subclasses implement this method.

Implements IT_Bus::SequenceComplexType.

virtual const IT_Bus::QName& IT_Bus::Soap12WSDLAddress::get_type (  )  const [virtual]

Returns the IT_Bus::QName for the type.

Derived subclasses implement this method and return their QName.

Returns:
IT_Bus::QName.

Implements IT_Bus::AnyType.

virtual AnyType& IT_Bus::Soap12WSDLAddress::copy ( const AnyType rhs  )  [virtual]

Return a reference to this instance.

Returns:
A reference to this instance.

Reimplemented from IT_Bus::Soap12WSDLExtensionElement.


Generated on Tue Mar 20 15:28:09 2007 for Artix by  doxygen 1.5.1-p1