This content has been marked as final. Show 2 replies
I just started using Flex this week so I haven't tried making calls using the method that you are (by importing the WSDL through Data > Import Web Service (WSDL)...), but I have been successful in making calls via another method.
<mx:WebService id="webServiceID" wsdl=" http://yourwebsite/somefolder/service.wsdl">
<mx:operation name="operationName" result="ResultHandler(event)"fault=
<!-- parameters -->
To make the call, you would use the send() method on your operation ("operationName" in the example above). Let's just say you want to send the request on a button click. The code would look like:
<mx:Button label="Send Web Service Request" click="webServiceID.operationName.send()"/>
Please note that "operationName.send()" will not work alone - you need to use "webServiceID.operationName.send()"
Hope this helps.
Thanks. That is what I *was* doing, that got me all data returned. The parameter never gets passed in the XML. It acts as if a blank was passed and returns everything (just as you would expect in the PeopleSoft search page when you just click Find without specifying a key). It is expecting a partial key and will return all keys that match (find method).
PS expects the key DL_CS_COMPID, and in Flex I've seen Find__CompIntfc__DL_TREE_IB_CI also. So I've tried:
<!-- <DL_CS_COMPID> -->
<!-- </DL_CS_COMPID> -->
(You can see I currently have dl_cs_compid commented out). Both behave identically - they are ignored in the XML that is sent from Flex. Here is a sample of what was received in PS:
<M540564.V1:Find__CompIntfc__DL_TREE_IB_CI xmlns:M540564.V1=" http://xmlns.oracle.com/Enterprise/Tools/schemas/M540564.V1" xmlns:SOAP-ENV=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"/>
I believe there should be a <DL_CS_COMPID>value</DL_CS_COMPID> string in there.