dang
Posts:2
 |
| 10/14/2007 10:54 AM |
|
Many of the services say they support a REST API but I couldn't find the sample instructions. REST is very popular in the MAshup space and sometimes easier to use REST as an alternative to SOAP Dan |
|
|
|
|
dnielsen
Posts:6
 |
| 10/14/2007 11:07 AM |
|
You can download the REST How-To doc from the Resources/Technical Docs section of this site. Look for the "How To Call a StrikeIron Web Service Using REST" document. Dave |
|
Dave Nielsen StrikeIron Developer Program http://developer.strikeiron.com |
|
|
dang
Posts:2
 |
| 10/14/2007 11:17 AM |
|
I'm still having problems trying to impliment the SMS REST API. Look at SMS example in REST docs. Notice that [serviceName]/[operationname] have multiple paths. How did they arrive at /StrikeIron/globalsmspro2_5/SMSTextMessaging/SendMessage? Do the rest URLs have 1:1 mapping to service/op names? Dan |
|
|
|
|
dnielsen
Posts:6
 |
| 10/14/2007 1:18 PM |
|
We'll take a look at the REST API guide and see if it can be more clear. In the meantime, here's the proper REST API call for the TaxDataBasic service: http://ws.strikeiron.com/StrikeIron/taxdatabasic/TaxDataBasic/GetTaxRateUS? LicenseInfo.RegisteredUser.UserID=my.userid@domain.com& LicenseInfo.RegisteredUser.Password=mypassword& GetTaxRateUS.zip_code=27713 Just change the userid/password and you should be good to go. Dave |
|
Dave Nielsen StrikeIron Developer Program http://developer.strikeiron.com |
|
|
dschmierer
Posts:4
 |
| 05/11/2008 9:21 PM |
|
How is a proper REST request to the Zacks Company service constructed? The docs don't provide an answer and my guess is a '404' code: http://ws.strikeiron.com/ZacksCompany3/GetCompanyProfile?&LicenseInfo.RegisteredUser.UserID=username&LicenseInfo.RegisteredUser.Password=pass&GetCompanyProfile.Ticker=MSFT Thx |
|
|
|
|
alex
Posts:24
 |
| 05/12/2008 6:31 AM |
|
Here is the REST format for the GetCompanyProfile operation in the Zacks Company service: http://ws.strikeiron.com/StrikeIron/ZacksCompany3/ZacksCompany/GetCompanyProfile?LicenseInfo.RegisteredUser.UserID=myuserid&LicenseInfo.RegisteredUser.Password=mypassword&GetCompanyProfile.Ticker=MSFT Alex alex.durzy@strikeiron.com |
|
|
|
|
dschmierer
Posts:4
 |
| 05/14/2008 3:50 PM |
|
I noticed that the wsdl:service tag found at the bottom of the wsdl file is helpful to checkout when trying to construct the REST request. The <soap:address location="baseURL"/> tag found here has the base url for constructing the REST request. I'm not sure this applies to all services but I thought this info might come in handy to other developers who might encounter this. -Dave |
|
|
|
|
mistymist
Posts:1
 |
| 06/25/2008 9:55 PM |
|
Hi , i've already referred the sample code in how to call web service using REST.. Is there any sample on using REST API for Currency Rates? I encounter problem when trying to use the getConversion. But when i tried to call getCurrenciesList, it can display all the list. Below is an example on how i call the getCurrenciesList: http://ws.strikeiron.com/HouseofDev/CurrencyRates160/CurrencyRates/getCurrenciesList?LicenseInfo.RegisteredUser.UserID=myemail@domain.com&LicenseInfo.RegisteredUser.Password=mypassword − <WebServiceResponse> − <SubscriptionInfo> <LicenseStatusCode>0</LicenseStatusCode> <LicenseStatus>Valid license key</LicenseStatus> <LicenseActionCode>7</LicenseActionCode> <LicenseAction>No hit deduction for invocation</LicenseAction> <RemainingHits>25</RemainingHits> <Amount>0</Amount> </SubscriptionInfo> − <getCurrenciesListResponse> − <getCurrenciesListResult> <anyType xsi:type="xsd:string">AED</anyType> <anyType xsi:type="xsd:string">AFN</anyType> <anyType xsi:type="xsd:string">ALL</anyType> <anyType xsi:type="xsd:string">AMD</anyType> <anyType xsi:type="xsd:string">ANG</anyType> <anyType xsi:type="xsd:string">AOA</anyType> <anyType xsi:type="xsd:string">ARS</anyType> <anyType xsi:type="xsd:string">AUD</anyType> . . . . But when i called the getConversion using this: http://ws.strikeiron.com/HouseofDev/CurrencyRates160/CurrencyRates/getConversion?LicenseInfo.RegisteredUser.UserID=myemail@domain.com&LicenseInfo.RegisteredUser.Password=mypassword&FromCurrencyCode=MYR&ToCurrencyCode=GBP&Amount=10.00 it return this result <WebServiceResponse> − <Error> Server was unable to read request. ---> There is an error in XML document (8, 20). ---> Input string was not in a correct format. </Error> </WebServiceResponse> am i doing something wrong or did i missing something? |
|
|
|
|
alex
Posts:24
 |
| 06/26/2008 8:22 AM |
|
Give the following a try: http://ws.strikeiron.com/HouseofDev/CurrencyRates160/CurrencyRates/getConversion?LicenseInfo.RegisteredUser.UserID=myuserid@mydomain.com&LicenseInfo.RegisteredUser.Password=mypassword&getConversion.FromCurrencyCode=MYR&getConversion.ToCurrencyCode=GBP&getConversion.Amount=10.00 |
|
|
|
|