Class: WSDL::SOAP::StandaloneServerStubCreator
- Includes:
- ClassDefCreatorSupport
- Defined in:
- lib/action_web_service/wsdl/soap/standaloneServerStubCreator.rb
Instance Attribute Summary collapse
-
#definitions ⇒ Object
readonly
Returns the value of attribute definitions.
Instance Method Summary collapse
- #dump(service_name) ⇒ Object
-
#initialize(definitions) ⇒ StandaloneServerStubCreator
constructor
A new instance of StandaloneServerStubCreator.
Methods included from ClassDefCreatorSupport
#basetype_mapped_class, #create_class_name, #dq, #dqname, #dump_method_signature, #ndq, #sym
Methods included from XSD::CodeGen::GenSupport
capitalize, #format, keyword?, safeconstname, safeconstname?, safemethodname, safemethodname?, safevarname, safevarname?, uncapitalize
Constructor Details
#initialize(definitions) ⇒ StandaloneServerStubCreator
Returns a new instance of StandaloneServerStubCreator.
24 25 26 |
# File 'lib/action_web_service/wsdl/soap/standaloneServerStubCreator.rb', line 24 def initialize(definitions) @definitions = definitions end |
Instance Attribute Details
#definitions ⇒ Object (readonly)
Returns the value of attribute definitions.
22 23 24 |
# File 'lib/action_web_service/wsdl/soap/standaloneServerStubCreator.rb', line 22 def definitions @definitions end |
Instance Method Details
#dump(service_name) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/action_web_service/wsdl/soap/standaloneServerStubCreator.rb', line 28 def dump(service_name) warn("- Standalone stub can have only 1 port for now. So creating stub for the first port and rests are ignored.") warn("- Standalone server stub ignores port location defined in WSDL. Location is http://localhost:10080/ by default. Generated client from WSDL must be configured to point this endpoint manually.") port = @definitions.service(service_name).ports[0] dump_porttype(port.porttype.name) end |