Jump to content

Webservice - data refreshing


colibri0678

Recommended Posts

Hello,

 

I have a strange behavior, on a product sheet (from admin frontend) i can see 2 categories associations.

 

When i get the product sheet from webservices i don't have the same number of categories attached to the product depending the way i inquiry the product sheet :

 

method 1 / result = getPWS(PsUrl & "/api/products/?display=full&filter[id]=" & PSPiD)
method 2 / result = getPWS(PsUrl & "/api/products/" & PSPiD)

 

 

method 1/ answer :

<categories nodeType="category" api="categories">
    <category xlink:href="http://xxx.xxx.com/api/categories/20">
    <id><![CDATA[20]]></id>
    </category>
    <category xlink:href="http://xxx.xxx.com/api/categories/22">
    <id><![CDATA[22]]></id>
    </category>
</categories>

 

method 2/ answer :

<categories nodeType="category" api="categories">
    <category xlink:href="http://xxx.xxx.com/api/categories/20">
    <id><![CDATA[20]]></id>
    </category>
</categories>

 

 

Looks like the data's are not synchronized somewhere (i attrib the second category to the product some minutes ago)

 

How is it possible ?

 

 

For information i'm using MSXML2.open / MSXML2.send methods to send the GET query.

 

Thank you for your ideas

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...