1

I am trying to get a custom value in the soap api2 response but have not managed to get it working. I do see it in the WSDL but can't get it to return in the response.

I rewrite the catalog_product_api_v2 model, so that I can rewrite the info().

<catalog>
  <rewrite>
    <product_api_v2>Disc_ApiExtended_Model_Product_Api_v2</product_api_v2>
  </rewrite>
</catalog>

info() does nothing more than just contain the parente::info() code and only adds a new value to the result array:

$result['full_url'] = $product->getProductUrl();
return $result;

When i Mage::log($result), I can see the result containing the full_url.

The wsdl.xml and wsi.xml are in my local extensions folder as well and add the new value. That works as well since I can see it in my WSDL.

<element name="full_url" type="xsd:string" minOccurs="0"/>

The above element is in the complexType node in the catalogProductReturnEntity .

The cache is cleared multiple times, from the cache/ folder and from the backend as well.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.