How to make a call in Magento to an external web service? - web-services

I want to call an external web service when user find a product by CatalogSearch. Any idea to do this? I have a SOAP function to call at my ERP, but i don\’t know where i can put this function to call my web service.
Exactly I have a product catalog in my ERP. In Magento users search SKU number in the search input of the header in the Magento catalog search, and i would like to find the product with that SKU in my ERP.
Please help me and sorry for my english,
Thanks,

The easiest way is probably to :
Create a Magento Module;
Create a new Helper;
Add your ERP function to the Helper;
Call your helper function (something like Mage::getHelper('path/to/helper')->MyERPFunction();

Related

Is there a way to get list of Tenant objects on the client side?

I want to extend user account association in dashboard Jaggery module of WSO2 Identity Server 5.1 and want display all of tenants in a option select combo when create new association by associated user authentication.
I would like to know exists any possible solution that i can extract all tenants in an array of Tenant object (Tenant[]) by call a web service stub methods from a web client so as Jaggery file.
appreciate for your cooperation
You can use the retrieveTenants() of TenantMgtAdminService (WSDL is at https://localhost:9443/services/TenantMgtAdminService?wsdl) which will give an array of TenantInfoBean

Sharepoint 2010, calling the external webservice without using workflow

I am very new to the SharePoint platform, and I need an insight as how can I achieve the following.
I need to call an external Webservice from Sharepoint(2010), without using workflow feature.
When the Webservice returns the data, I need to use one of value as a filter for an existing List.
e.g. Webservice returns user's department. I need to capture that department and use it a filer for an already existing List that displays information for all the departments. I need the List to display the information only for the department returned by the Webservice.
It may be possible to have your web service return the data as an external content type (BCS). That can then be used in an out of the box filter on a page. I do something similar with a client ID using the picker box from SP to select the item from the external source and then filter other web parts on the page.

creating web service for querying TFS

I have been tasked with creating a web service(usingVS2010) to query TFS (2010) by the workitem number. The user would access the web service, then type in the workitem number and project name and hit a go button. This would call the web service, retrieve the title, and description and display it for the user on a seperate application. So starting this process I thought I would create a simple console application that does the same thing. I was able to connect to the server and I am able to see the collection of project that exists. What I am looking for is some help in querying the Server so that I can type in a number and get a response in my console. Does anyone have any examples, or direction or websites? While I wait for an answer I will be searching the web. Thanks in advance.
You'll want to use the TFS SDK to query work items programmatically.
Ewald Hoffman has posted an excellent example of how to get a work item by ID:
Part One discusses how to get connected to your server
Part Two shows how to query for a work item by ID.

Is there a Web Service API to the Google Product Search?

I want to call the Google product search and get back a parse-able XML file rather than having to scrape the HTML. I'm not looking for a SOAP based service, but a service that returns XML based on a URL passed in.
Correction--this did NOT work:
The Google Base API lists only a subset of Google product sellers (apparently only those who are active users of the Google Base product.)
http://code.google.com/apis/base/docs/2.0/attrs-queries.html
I eventually ended up using a screen scraping solution and then found that the data was too inconsistant to use for my purposes at all. :-(
http://answers.oreilly.com/topic/2165-how-to-search-google-and-bing-in-c/
use that refer link ,hopefuly it'll very usefull with you all guys

List all Alerts within a SharePoint site without using the SharePoint API?

Is it possible to get a list of alerts for ALL users within a given site? After messing with the GetAlerts method in /_vti_bin/Lists.asmx, it seems it always executes in the context of the user who provided it with credentials, and will only return the Alerts for THAT user. I was hoping to get a list of EVERY alert within the site.
I know I can probably do this via the SharePoint API in a console app but was hoping to use web services or another method that didn't require direct access to the SharePoint box.
I guess the other method would be to write a custom web service... but I was hoping for something quick and easy.
I think you have answered your question. There is no easy way, only custom coding is left.
Couldn't you use the _vti_bin/sitedata.asmx GetListItems (it allows you to send CAML) method to retrieve alerts and just run the call to the service as the application pool's identity, that should retrieve all items, since the application pool identity is the system account for your site collection....