[Catalyst-commits] r7182 - Catalyst-Model-SOAP/1.0/trunk
ruoso at dev.catalyst.perl.org
ruoso at dev.catalyst.perl.org
Wed Nov 28 15:57:46 GMT 2007
Author: ruoso
Date: 2007-11-28 15:57:46 +0000 (Wed, 28 Nov 2007)
New Revision: 7182
Removed:
Catalyst-Model-SOAP/1.0/trunk/catalyst-model-soap.txt
Modified:
Catalyst-Model-SOAP/1.0/trunk/README
Log:
[C-M-SOAP] updating readme
Modified: Catalyst-Model-SOAP/1.0/trunk/README
===================================================================
--- Catalyst-Model-SOAP/1.0/trunk/README 2007-11-28 15:55:46 UTC (rev 7181)
+++ Catalyst-Model-SOAP/1.0/trunk/README 2007-11-28 15:57:46 UTC (rev 7182)
@@ -5,14 +5,14 @@
{# In the model class...
package MyApp::Model::SOAP;
use base qw(Catalyst::Model::SOAP);
- __PACKAGE__->register_wsdl('http://foo.bar/baz.wsdl', 'Bar::Baz');
- __PACKAGE__->register_wsdl('http://baz.bar/foo.wsdl', 'Bar::Foo');
+ __PACKAGE__->register_wsdl('http://foo.bar/baz.wsdl', 'Baz');
+ __PACKAGE__->register_wsdl('http://baz.bar/foo.wsdl', 'Foo');
};
{# later in some other class..
- $c->model('Bar::Baz')->getWeather(%arguments);
+ $c->model('SOAP::Baz')->getWeather(%arguments);
# is then dispatched to the operation getWeather described by the
# first wsdl...
- $c->model('Bar::Foo')->foo(%arguments);
+ $c->model('SOAP::Foo')->foo(%arguments);
# is then dispatched to the operation foo described by the
# second wsdl...
};
@@ -26,6 +26,16 @@
XML::Compile::SOAP::WSDL, as a Model class, where each operation in the
wsdl file is represented by a method with the same name.
+METHODS
+ register_wsdl($wsdl, $targetclass)
+ This method will register the operations described by $wsdl in the
+ $targetclass package. $wsdl may be anythin
+ XML::Compile::SOAP::WSDL11 accepts. The $targetclass is a relative
+ package name which will be concatenated in the name of the model.
+
+ Note that XML::Compile->knownNamespace(...) can be used to help
+ declaring the wsdl.
+
ACCESSORS
For each operation, a secondary method called _$operation_data is
created. This method returns a list composed by the WSDL object, the
Deleted: Catalyst-Model-SOAP/1.0/trunk/catalyst-model-soap.txt
===================================================================
--- Catalyst-Model-SOAP/1.0/trunk/catalyst-model-soap.txt 2007-11-28 15:55:46 UTC (rev 7181)
+++ Catalyst-Model-SOAP/1.0/trunk/catalyst-model-soap.txt 2007-11-28 15:57:46 UTC (rev 7182)
@@ -1,18 +0,0 @@
-{# In the model class...
- package MyApp::Model::SOAP;
- use base qw(Catalyst::Model::SOAP);
-
- __PACKAGE__->register_wsdl('http://foo.bar/baz.wsdl', 'Bar::Baz');
- __PACKAGE__->register_wsdl('http://baz.bar/foo.wsdl', 'Bar::Foo');
-};
-
-{# later in some other class..
-
- $c->model('Bar::Baz')->getWeather(%arguments);
- # is then dispatched to the operation getWeather described by the
- # first wsdl...
-
- $c->model('Bar::Foo')->foo(%arguments);
- # is then dispatched to the operation foo described by the
- # second wsdl...
-};
More information about the Catalyst-commits
mailing list