Expand my Community achievements bar.

Cant Get Web Service to work - help please

Avatar

Level 1
Hi there, I have a very simply web service accessible using
the following URL;


http://172.31.1.14:8888/core_web_service_2/core_web_service_2SoapHttpPort?wsdl



It seems to be working OK, but when I try to get it to work
in Flex nothing seems to happen. I dont even know where the problem
is. below is the code snippet of what I am going. Any help would be
appreciated.



Even if you could suggest where I might start to get errors,
I tried the property fault in the web service but it did not seem
to show anything.



thanks in advance Darragh







<mx:WebService wsdl="
http://172.31.1.14:8888/core_web_service_2/core_web_service_2SoapHttpPort?wsdl"

useProxy="false" id="signin_ws" showBusyCursor="true"
result="handle_result(event)">

<mx:operation name="getAllEmployeesTable">

</mx:operation>

</mx:WebService>





<mx:DataGrid x="179" y="58"
dataProvider="{signin_ws.getAllEmployeesTable.lastResult}">

<mx:columns>

<mx:DataGridColumn headerText="Surname"
dataField="employeeName"/>

</mx:columns>

</mx:DataGrid>



<mx:Button x="328" y="244" label="Call Web Service"
click="signin_ws.getAllEmployeesTable.send()"/>













1 Reply

Avatar

Level 1
Hi Darragh, I think your problem is with your wsdl. the url
you provided as your wsdl does not work.



Also, are you trying to send parameters through your call?
There's a slightly outdated (but still relevant) article on
formatting your .mxml to use the web service here:




http://www.ibm.com/developerworks/webservices/library/ws-macroflex/