Highlighted

Web Services [Magento]

Participant ,
Jul 20, 2009

Copy link to clipboard

Copied

I'm totally cross posting this....  sorry to be rude, just not getting any action in the advanced forum.

Can anyone make this work?

I'm trying to connect to/consume a webservice from a Magento commerce store [written in php] but am having problems with coldfusion not being able to "find" the methods I need to invoke.

- I can create the object, log in, get a session but nothing [NOTHING!] else, none of the other methods are available - I just get a method not found error.

- the user "register" with key "register" has permission to use them and I can [have] prove that it works, I can for example call up  the store category tree VIAcatalogCategoryTree.

- the dump of the mage_obj shows all the methods available.

- The webservice is a Magento store [http://www.magentocommerce.com/]

- The API documentation is here http://www.magentocommerce.com/support/magento_core_api

- the webservice url is live, up and a test instance, so I am not afraid of it getting broken, please test to your heart's desire!

<cfscript>

mage_obj = CreateObject(webservice, http://mage.bigblock.ca/api/v2_soap?wsdl);
mage_session = mage_obj.login('register','register');

//retcat = mage_obj.catalogCategoryTree(mage_cats);

</cfscript>

<cfdump var="#mage_session#" />
<cfdump var="#mage_obj#" />
<!---cfdump var="#retcat#" /--->


If anyone can take a look, give this a try - give me any clues as to why I can't access the webservice VIA CFMX, I would REALLY-REALLY appreciate it.

I've been struggling with it for better than 2 days now. [more than 4 days now]

- thanks in advance

-sean

<cfscript>
	mage_obj = CreateObject("webservice",
"http://mage.bigblock.ca/api/v2_soap?wsdl");
	mage_session = mage_obj.login('register', 'register');
	retcat = mage_obj.catalogCategoryTree(mage_session, 1, 1);
</cfscript>

<cfdump var="#retcat.getName()#">

The above code kinda works for me (in the sense that it returns a

category called Root Catalog - I don't have experience with Magento's

web services).

Mack

Views

1.1K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Web Services [Magento]

Participant ,
Jul 20, 2009

Copy link to clipboard

Copied

I'm totally cross posting this....  sorry to be rude, just not getting any action in the advanced forum.

Can anyone make this work?

I'm trying to connect to/consume a webservice from a Magento commerce store [written in php] but am having problems with coldfusion not being able to "find" the methods I need to invoke.

- I can create the object, log in, get a session but nothing [NOTHING!] else, none of the other methods are available - I just get a method not found error.

- the user "register" with key "register" has permission to use them and I can [have] prove that it works, I can for example call up  the store category tree VIAcatalogCategoryTree.

- the dump of the mage_obj shows all the methods available.

- The webservice is a Magento store [http://www.magentocommerce.com/]

- The API documentation is here http://www.magentocommerce.com/support/magento_core_api

- the webservice url is live, up and a test instance, so I am not afraid of it getting broken, please test to your heart's desire!

<cfscript>

mage_obj = CreateObject(webservice, http://mage.bigblock.ca/api/v2_soap?wsdl);
mage_session = mage_obj.login('register','register');

//retcat = mage_obj.catalogCategoryTree(mage_cats);

</cfscript>

<cfdump var="#mage_session#" />
<cfdump var="#mage_obj#" />
<!---cfdump var="#retcat#" /--->


If anyone can take a look, give this a try - give me any clues as to why I can't access the webservice VIA CFMX, I would REALLY-REALLY appreciate it.

I've been struggling with it for better than 2 days now. [more than 4 days now]

- thanks in advance

-sean

<cfscript>
	mage_obj = CreateObject("webservice",
"http://mage.bigblock.ca/api/v2_soap?wsdl");
	mage_session = mage_obj.login('register', 'register');
	retcat = mage_obj.catalogCategoryTree(mage_session, 1, 1);
</cfscript>

<cfdump var="#retcat.getName()#">

The above code kinda works for me (in the sense that it returns a

category called Root Catalog - I don't have experience with Magento's

web services).

Mack

Views

1.1K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 20, 2009 0
Enthusiast ,
Jul 21, 2009

Copy link to clipboard

Copied

<cfscript>
	mage_obj = CreateObject("webservice",
"http://mage.bigblock.ca/api/v2_soap?wsdl");
	mage_session = mage_obj.login('register', 'register');
	retcat = mage_obj.catalogCategoryTree(mage_session, 1, 1);
</cfscript>

<cfdump var="#retcat.getName()#">

The above code kinda works for me (in the sense that it returns a

category called Root Catalog - I don't have experience with Magento's

web services).

Mack

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 21, 2009 0
Participant ,
Jul 21, 2009

Copy link to clipboard

Copied

Hi mack_

thanks...  but ummmmm sorry, I guess that is the danger of cross posting, I did get som action on this over here http://forums.adobe.com/thread/464259?tstart=0

and we did get that far [in the sense that it ~sorta~ works]

I apologize for not forwarding/closing this thread, but by all means check out http://forums.adobe.com/thread/464259?tstart=0

-sean

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 21, 2009 0
New Here ,
Nov 06, 2019

Copy link to clipboard

Copied

Queries regarding Magento?

Find the solutions on www.asmodeusgaming.com

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 06, 2019 0