Web services

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
emendez
Posts: 14
Joined: Fri Jul 21, 2006 2:00 pm

Web services

Post by emendez »

How web services are configured?.

Following the instructions in the manual, we have added a service, an implementing process, we have logged in as "admin" but we got nothing. Which is the URL of the WSDL file?.

Also, is not contradictory an implemeting process with a set of rules to determine the answer?. Say we want to define a web service "getEmployees" which returns FIND ALL FROM Employee. Where should that go?, inside the process or inside the answer rules?.

Thanks in advance,

Eduardo.
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

Following the instructions in the manual, we have added a service, an implementing process, we have logged in as "admin" but we got nothing. Which is the URL of the WSDL file?.

You will only get something when the service is called. When you logged in Aware IM must have automatically build the service and the WSDL file. Its URL is http://localhost:8080/AwareIM/services/ ... Space?wsdl

where BusinessSpace is the name of the business space where you defined your services.

This is the service that your business space exposes. To get some result you need to call this service either from a different business space using REQUEST SERVICE action or programmatically from other applications.

Also, is not contradictory an implemeting process with a set of rules to determine the answer?. Say we want to define a web service "getEmployees" which returns FIND ALL FROM Employee. Where should that go?, inside the process or inside the answer rules?.

No it is not contradictory to use rules. The result of the service (if it has any) must go into the attributes of the notification that the service returns. The attributes of the notification can only hold simple attributes (not references) - text, numbers, dates etc. Therefore, you cannot return result of a query, which is an array of business objects.
Aware IM Support Team
emendez
Posts: 14
Joined: Fri Jul 21, 2006 2:00 pm

Post by emendez »

Therefore, you cannot return result of a query, which is an array of business objects.

So, how should I approach this? Must I assemble an xml string with my answer? Is the language enough flexible for that?.

TIA,

Eduardo.
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

Yes, you would have to assemble a string either in XML or any other format. This would have to be a process implemented as a Java plug-in that would run a query and assemble a string. The plug-in should be quite simple.
Aware IM Support Team
Post Reply