Class: CannedSoap::Wsdl::WsdlParser
- Inherits:
-
Object
- Object
- CannedSoap::Wsdl::WsdlParser
- Defined in:
- lib/canned_soap/wsdl/wsdl_parser.rb
Class Method Summary collapse
-
.parse(service) ⇒ Object
- Parse the service wsdl to a
Wsdl
object Params :service
-
the url of the service.
- Parse the service wsdl to a
-
.target_namespace ⇒ Object
Return the target namespace of the last wsdl parser.
Class Method Details
.parse(service) ⇒ Object
Parse the service wsdl to a Wsdl
object Params :
service
-
the url of the service
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/canned_soap/wsdl/wsdl_parser.rb', line 12 def self.parse(service) @service = service wsdl_xml = get_serivce_data('wsdl') doc = XmlSimple.xml_in(wsdl_xml) res = Wsdl.new res.actions = get_soap_actions(doc) res.location_address = get_location_address(doc) res.target_namespace = doc['targetNamespace'] res end |
.target_namespace ⇒ Object
Return the target namespace of the last wsdl parser. TODO: Remove this method and user tel Wsdl
it self to get the target namespace
27 28 29 |
# File 'lib/canned_soap/wsdl/wsdl_parser.rb', line 27 def self.target_namespace @@target_namespace end |