Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

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/

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now