StrikeIron Links
Getting Started
Developer Forum (Beta)
Subject: REST API
Prev Next
You are not authorized to post a reply.

Author Messages
dangUser is Offline

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
dnielsenUser is Offline

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
dangUser is Offline

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
dnielsenUser is Offline

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
dschmiererUser is Offline

Posts:6

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
alexUser is Offline

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
dschmiererUser is Offline

Posts:6

05/12/2008 10:42 AM  
Thanks Alex. I think you should add a sample REST query to the docs for each service as it's not always clear how to properly construct one.
dschmiererUser is Offline

Posts:6

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
mistymistUser is Offline

Posts:2

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?
alexUser is Offline

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
mistymistUser is Offline

Posts:2

07/01/2008 7:37 PM  
OK thanks Alex, that does solve my problem..
Guess i forgot to put the getConversion in front of FromCurrencyCode, ToCurrencyCode & Amount..
i just got the wrong concept..

Anyway thanks again :)
You are not authorized to post a reply.



ActiveForums 3.7
Top Projects




Sun / NetBeans

Salesforce.com

IBM QEDWiki

Microsoft Visual Studio VSTO

Zend

 

Special Events

Mashup Camp
Oct 6-8

Web 2.0 Expo
Sept 16-19