cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP API Get Attributes by AttributeSetID c# .NET

SOAP API Get Attributes by AttributeSetID c# .NET

Hello,

 

I'm using the SOAP api in c# (.NET).

I've created a few custom attributes in Magento 

 

I have a problem that when i'm adding a custom attribute that has Catalog Input Type: 'Multiple Select' to my AttributeSet.

Than calling the soap api like this:

var client = new catalogProductAttributeManagementV1PortTypeClient();

CatalogProductAttributeManagementV1GetAttributesRequest request = new CatalogProductAttributeManagementV1GetAttributesRequest();
request.attributeSetId = AttributeSetID;

CatalogProductAttributeManagementV1GetAttributesResponse response = client.catalogProductAttributeManagementV1GetAttributes(request);

This works perfectly when there is no 'Multiple select' attribute inside the AttributeSet.

When there are: Exception --> See logfile.

 

This is what my logfile indicates:

[2016-02-05 10:12:56] main.CRITICAL: exception 'ReflectionException' with message 'Report ID: webapi-56b475a873fbf; Message: Class  does not exist' in C:\wamp\www\....\lib\internal\Magento\Framework\Webapi\ErrorProcessor.php:194
Stack trace:
#0 C:\wamp\www\....\lib\internal\Magento\Framework\Webapi\ErrorProcessor.php(139): Magento\Framework\Webapi\ErrorProcessor->_critical(Object(ReflectionException))
#1 C:\wamp\www\....\var\generation\Magento\Framework\Webapi\ErrorProcessor\Proxy.php(95): Magento\Framework\Webapi\ErrorProcessor->maskException(Object(ReflectionException))
#2 C:\wamp\www\....\app\code\Magento\Webapi\Controller\Soap.php(201): Magento\Framework\Webapi\ErrorProcessor\Proxy->maskException(Object(ReflectionException))
#3 C:\wamp\www\....\app\code\Magento\Webapi\Controller\Soap.php(149): Magento\Webapi\Controller\Soap->_prepareErrorResponse(Object(ReflectionException))
#4 C:\wamp\www\....\var\generation\Magento\Webapi\Controller\Soap\Interceptor.php(24): Magento\Webapi\Controller\Soap->dispatch(Object(Magento\Framework\App\Request\Http))
#5 C:\wamp\www\....\lib\internal\Magento\Framework\App\Http.php(115): Magento\Webapi\Controller\Soap\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#6 C:\wamp\www\....\lib\internal\Magento\Framework\App\Bootstrap.php(258): Magento\Framework\App\Http->launch()
#7 C:\wamp\www\....\index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))

Do you guys have any idea on how to solve this problem?

 

Best regards

Zarkos