Example #1
0
 /**
  * Create and add WSDL Types for complex custom attribute classes
  *
  * @param \Magento\Webapi\Model\Soap\Wsdl $wsdl
  * @return \Magento\Webapi\Model\Soap\Wsdl
  */
 protected function addCustomAttributeTypes($wsdl)
 {
     foreach ($this->customAttributeTypeLocator->getAllServiceDataInterfaces() as $customAttributeClass) {
         $typeName = $this->_typeProcessor->register($customAttributeClass);
         $wsdl->addComplexType($typeName);
     }
     return $wsdl;
 }