@@ -27,6 +27,7 @@ Add a configuration to your database.php in app/config/
27
27
'ns' => 'namespace',
28
28
'container' => 'session_key',
29
29
)
30
+ 'use' => SOAP_ENCODED // optional - used only for non wsdl mode
30
31
);
31
32
32
33
Then in your model set:
@@ -37,18 +38,29 @@ Then in your model set:
37
38
38
39
And you're ready to go.
39
40
40
- In your controller you can now use
41
+ Asuming that you parameters are:
41
42
42
- $this->Model->query('SoapMethod', array('mySoapParams') );
43
+ $params = array('param1' => 'value1', 'param2' => 'value2' );
43
44
44
- or
45
+ In your controller you can now use
45
46
46
- $this->Model->SoapMethod(array('mySoapParams'));
47
+ $this->Model->query('SoapMethod', array($params));
48
+
49
+ ** Important** : notice the * array()* enclosing your params array.
47
50
48
51
or with header data
49
52
50
- $this->Model->query('SoapMethod', array('mySoapParams'), array('mySoapHeaderParams'));
51
-
53
+ $headerParams = array('headerParam1' = 'value1', 'headerParam2' => 'value2');
54
+
55
+ $this->Model->query('SoapMethod', array($params), array($headerParams);
56
+
57
+ ** Important** : again, notice the * array()* enclosing your params and header params arrays.
58
+
59
+ or
60
+
61
+ $this->Model->SoapMethod($params);
62
+
63
+ ** Important** : notice the difference with the previous examples. In this case DON'T enclose the params with * array()* .
52
64
53
65
## Thanks for updating
54
66
@@ -77,4 +89,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
77
89
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
78
90
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
79
91
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
80
- SOFTWARE.
92
+ SOFTWARE.
0 commit comments