Expand my Community achievements bar.

Problem with having multiple web services

Avatar

Level 1
Dear All,



My question is how do we use multiple web services (say two)
each of which have their own wsdl. I tried to simple have two
<mx:WebService id=... wsdl..></mx:WebService> sequence
of tags, but I get error messages when executing the mxml file
saying that the wsdl cannot be found for one of the two web
services. What I need is 2 web services in one mxml file.



I would appreciate any help.



Thanks,

Philon Nguyen
2 Replies

Avatar

Former Community Member
Two <mx:Webservice..> tags for each WebService in a
single mxml should work. Do they work individually but they dont'
work when you put them together in single mxml?

Avatar

Level 1
<mx:WebService id="TimeService"

wsdl="
http://localhost:8080/xfire/services/TimeService?wsdl"

showBusyCursor="true"

useProxy="false"> <!-- result="isEmptyTimeSheet()"
-->

<mx:operation name="listUnitTimesheets"

result="getUnitTimesheet()"

fault="error(event);">

<mx:request>

<maxWeek>*</maxWeek>

</mx:request>

</mx:operation>



</mx:WebService>

<!--
.......................................................-...............
-->

<!-- Servicio para los proyectos

@Parms N/A.

@Devuelve la lista de todos los proyectos-->



<mx:WebService id="projectService"

wsdl="
http://localhost:8080/xfire/services/ProjectService?wsdl">

<mx:operation name="listCurrentAssignedRoles"

result="getAssignedProjectsList()"

fault="AssignedProjectsFaultHandler(event)">

<mx:request>

<resourceEmail>{email}</resourceEmail>

</mx:request>

</mx:operation>

<mx:operation name="listReportedProjects"

result="getReportedProjects()"

fault="ReportedProjectsFaultHandler(event)">

<mx:request>

<resourceEmail>{email}</resourceEmail>

<state>1</state>

</mx:request>

</mx:operation>

</mx:WebService>