| View previous topic :: View next topic |
| Author |
Message |
Bryan
Joined: 03 Apr 2009 Posts: 178 Location: Cincy
|
Posted: Thu May 14, 2009 9:40 pm Post subject: Web Service Challenge |
|
|
All,
I have a challenge for you.
I have been struggling with web services for the better part of two weeks and I need some assistance.
Here is the challenge: I have a web service that I know works and returns data (I just picked a unrelated free web service that I know works). I would like to see if any of the Aware IM buffs out there can get a BO attribute populated with the reply from the web service.
Note: You don't have to use this web service as it just serves and an example - any freely available service will do.
Information:
Link to site: http://www.webservicex.net/WS/WSDetails.aspx?WSID=19&CATID=7
WSDL File: http://www.webservicex.net/periodictable.asmx?WSDL
The above web service only takes one parameter the element name (Example: ‘Argon’) and then returns the element symbol (Example: ‘Ar’).
I have a BSV of this if you would like it please PM me your email address.
Thanks in advance for your help on this one. _________________ -Bryan
Version 5.6 (Build 1650) |
|
| Back to top |
|
 |
Bryan
Joined: 03 Apr 2009 Posts: 178 Location: Cincy
|
Posted: Mon May 18, 2009 1:07 pm Post subject: |
|
|
No takers yet : - ( _________________ -Bryan
Version 5.6 (Build 1650) |
|
| Back to top |
|
 |
tford
Joined: 10 Mar 2007 Posts: 2600
|
Posted: Tue May 26, 2009 4:40 pm Post subject: |
|
|
There was a fix to web services in build 1206.
Below are the steps to create a BSV consuming this web service from http://www.webservicex.net/WS/WSDetails.aspx?WSID=19&CATID=7:
1) Create BO: PeriodicService
a) create an attribute: Dummy (this name can be anything)
b) click Intelligent.
For SOAP communication channel, click Active and Default Channel.
Click Edit button & provide WSDL Url:
http://www.webservicex.net/periodictable.asmx?wsdl
Click the Discover button and 4 services will appear in the Provides Services box. One will be "GetElementSymbol". This is the one we will use below.
Click "Save" and AwareIM will create 3 new BOs including "PeriodicServiceGetElementSymbolParam"
2) Create Process "GetSymbol":
REQUEST SERVICE GetElementSymbol OF PeriodicService USING PeriodicServiceGetElementSymbolParam
DISPLAY MESSAGE 'Symbol:'+PeriodicServiceGetElementSymbolReply.GetElementSymbolResult
This process will have PeriodicServiceGetElementSymbolParam
as a Process Input.
3) Create a Query: Elements. This will display all instances of PeriodicServiceGetElementSymbolParam
Add an operation "Get Symbol" that calls the process from #2 above.
Running the Demo BSV:
4) Run the BSV in test mode.
5) Create an instance of PeriodicService. The value of Dummy can be anything. This is just required before running the web service.
6) Create a couple of instances of PeriodicServiceGetElementSymbolParam . I used Gold, Magnesium & Iron.
7) Run the query from #3 above
Click on "Get Symbol" beside any of the elements and AwareIM will display a message with the Elements symbol.
You could also configure this BSV to store the Element & it's resulting symbol. _________________ Tom (running V5.6 - build 1654 - on Windows)
LinkedIn: http://www.linkedin.com/in/itomford |
|
| Back to top |
|
 |
tford
Joined: 10 Mar 2007 Posts: 2600
|
Posted: Tue May 26, 2009 4:43 pm Post subject: |
|
|
If you would like this sample BSV, send me a PM with your email address & I will send it to you. Ask for the BSV: Atom _________________ Tom (running V5.6 - build 1654 - on Windows)
LinkedIn: http://www.linkedin.com/in/itomford |
|
| Back to top |
|
 |
Bryan
Joined: 03 Apr 2009 Posts: 178 Location: Cincy
|
Posted: Tue May 26, 2009 5:28 pm Post subject: |
|
|
Thank Tom for so much help getting this up and running. _________________ -Bryan
Version 5.6 (Build 1650) |
|
| Back to top |
|
 |
bartthefish
Joined: 25 Oct 2008 Posts: 110
|
Posted: Tue Jun 02, 2009 10:03 am Post subject: |
|
|
I need to connect to a web service that returns binary data in the format of a Bitmap. I need to then import this bitmap into an AwareIM BO for later use. has anyone had success with this type of action? _________________ Justin
(v5.0 Build 1407) Windows. MSSQL Server |
|
| Back to top |
|
 |
Bryan
Joined: 03 Apr 2009 Posts: 178 Location: Cincy
|
Posted: Tue Jun 02, 2009 1:06 pm Post subject: |
|
|
If you give me an example of something similar to what you are trying I may be able to help.
Check through the above website and their list of web services to see if there is something that returns data similar to what you are trying to do. Let me know which one and I will give it a shot. Any web service will do as long as I can get to it. _________________ -Bryan
Version 5.6 (Build 1650) |
|
| Back to top |
|
 |
bartthefish
Joined: 25 Oct 2008 Posts: 110
|
Posted: Tue Jun 02, 2009 4:55 pm Post subject: |
|
|
As an example the website above, exposes a webservice "Barcode Generator"
This also provides an image as the reply.
This is similar to what I need to do. I need to take the image returned and save it / embed it in another BO, for later use _________________ Justin
(v5.0 Build 1407) Windows. MSSQL Server |
|
| Back to top |
|
 |
Bryan
Joined: 03 Apr 2009 Posts: 178 Location: Cincy
|
Posted: Tue Jun 02, 2009 5:39 pm Post subject: |
|
|
Unfortunately when I try to launch the Discover process on this WSDL file I get the following error. I am looking for another web service that returns an image file.
"Aware IM server encountered the following error .No suitable services exposed at http://www.webservicex.net/genericbarcode.asmx?wsdl" _________________ -Bryan
Version 5.6 (Build 1650) |
|
| Back to top |
|
 |
Bryan
Joined: 03 Apr 2009 Posts: 178 Location: Cincy
|
Posted: Tue Jun 02, 2009 5:54 pm Post subject: |
|
|
I checked one other site http://www.strikeiron.com/marketplace/liteservices.asp with no luck. They do have one service advertised as returning a graphic but it is not returning that data.
Let me know if you find one and I will give it a shot. _________________ -Bryan
Version 5.6 (Build 1650) |
|
| Back to top |
|
 |
bartthefish
Joined: 25 Oct 2008 Posts: 110
|
Posted: Wed Jun 03, 2009 5:51 am Post subject: |
|
|
Here is another one.
http://www.barcodesoft.com/bcdgen.asmx?WSDL
Discover Services does work on this one. It returns base64binary
Hope this helps, If not I will search for another example _________________ Justin
(v5.0 Build 1407) Windows. MSSQL Server |
|
| Back to top |
|
 |
himanshu
Joined: 19 Jun 2008 Posts: 267 Location: India
|
Posted: Wed Jun 03, 2009 8:05 am Post subject: |
|
|
please help me out,
i tried so many wsdl services but not able to dicover any reply back in the awareim..
"i am getting error of unable to discover the service provider...."
Thanks _________________ Thanks&Regards
[version 5.3 (1533)]
Himanshu Jain |
|
| Back to top |
|
 |
himanshu
Joined: 19 Jun 2008 Posts: 267 Location: India
|
Posted: Wed Jun 03, 2009 7:45 pm Post subject: |
|
|
Thanks Bryan,
at last i able to configure, and implement a service.
it's great!!  _________________ Thanks&Regards
[version 5.3 (1533)]
Himanshu Jain |
|
| Back to top |
|
 |
Sergej
Joined: 30 Aug 2011 Posts: 192 Location: Russian Federation
|
Posted: Sat Feb 25, 2012 11:32 am Post subject: |
|
|
As it is documented:
| Quote: | | A channel has to translate a message sent by the external party into the service request or notification message that can be understood by Aware IM. |
But I just cannot understand the concept in case I need to get("translate") a list(table) of information from external system via SOAP.
| Quote: | Example,
Input data - Array of Category IDs (1, 2, 3, 4)
Output data - Array of objects(instances) of that Categories containing the different parameters |
In that example, how to grab this table from external system to awareim?
1. Need to use rule Create to create this all instances ?
2. Need to use rule Request Service ? But how then to fill the query with that all instances? _________________ AwareIM 5.1a build 1454, Debian 64bit , MySQL |
|
| Back to top |
|
 |
aware_support
Joined: 24 Apr 2005 Posts: 4670
|
Posted: Sun Feb 26, 2012 10:04 pm Post subject: |
|
|
This is not supported by Aware IM out-of-the-box. You need to write a plug-in to do this _________________ Aware IM Support Team |
|
| Back to top |
|
 |
|