- Timestamp:
- 2012/01/17 16:32:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/module/SOAP/example/example_types.php
r21318 r21410 11 11 * it from your soap server class, echoStruct in the server class is an 12 12 * example of doing this. 13 *14 * @category Web Services15 * @package SOAP16 13 */ 17 14 class SOAPStruct … … 33 30 $actor = 'http://schemas.xmlsoap.org/soap/actor/next') 34 31 { 35 $inner = array( 36 new SOAP_Value('varString', 'string', $this->varString), 37 new SOAP_Value('varInt', 'int', $this->varInt), 38 new SOAP_Value('varFloat', 'float', $this->varFloat)); 32 $inner[] = new SOAP_Value('varString', 'string', $this->varString); 33 $inner[] = new SOAP_Value('varInt', 'int', $this->varInt); 34 $inner[] = new SOAP_Value('varFloat', 'float', $this->varFloat); 39 35 40 36 if ($header) { 41 $value = new SOAP_Header($name, 42 '{http://soapinterop.org/xsd}SOAPStruct', 43 $inner, 44 $mustUnderstand, 45 $actor); 37 $value = new SOAP_Header($name,'{http://soapinterop.org/xsd}SOAPStruct',$inner,$mustUnderstand,$actor); 46 38 } else { 47 $value = new SOAP_Value($name, 48 '{http://soapinterop.org/xsd}SOAPStruct', 49 $inner); 39 $value = new SOAP_Value($name,'{http://soapinterop.org/xsd}SOAPStruct',$inner); 50 40 } 51 41 52 42 return $value; 53 43 } 54 55 44 }
Note: See TracChangeset
for help on using the changeset viewer.