Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Consuming an ES Workplace WebService in Flex3

<body><p>Hello,</p><p></p><p>I try to consume an ES Workplace Service with Flex3. It is the service of a SimpleSample.</p><p></p><p>I got the following code:</p><p></p><p></p><pre __jive_macro_name="code"><![CDATA[ ... <mx:Script> <![CDATA[ [Bindable] public var resultData:ArrayCollection = new ArrayCollection; public function getResult(event:ResultEvent):void{ ta.text = "Type: "+event.type+"\n"; resultData = event.result as ArrayCollection; } public function getFault(event:FaultEvent):void{ ta.text = event.toString(); } private function button_click():void{ ws.KanbanControlCycleByElementsQueryResponse_In.send(); } ]]> </mx:Script> <mx:Button id="button" label="doCall" click="button_click();" x="309.5" y="186" enabled="true"/> <mx:WebService id="ws" wsdl="http://sr2.esworkplace.sap.com/sap/bc/srt/wsdl/bndg_DF53016B9C229FF18F0400145E5ADE89/wsdl11/allinone/standard/document?sap-client=800"> <mx:operation name="KanbanControlCycleByElementsQueryResponse_In" result="getResult(event)" fault="getFault(event)" resultFormat="object"> <mx:request format="xml"> <parameters> <yq1:KanbanControlCycleByElementsQuery_sync xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:yq1="http://sap.com/xi/SAPGlobal20/Global"> <KanbanControlCycleSelectionByElements> <SelectionByKanbanControlCycleID> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryKanbanControlCycleID>0000012</LowerBoundaryKanbanControlCycleID> </SelectionByKanbanControlCycleID> <SelectionByKanbanControlCycleID> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryKanbanControlCycleID>0000013</LowerBoundaryKanbanControlCycleID> </SelectionByKanbanControlCycleID> <SelectionByKanbanControlCycleID> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryKanbanControlCycleID>0000064</LowerBoundaryKanbanControlCycleID> </SelectionByKanbanControlCycleID> <SelectionByKanbanControlCycleID> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryKanbanControlCycleID>0000078</LowerBoundaryKanbanControlCycleID> </SelectionByKanbanControlCycleID> </KanbanControlCycleSelectionByElements> </yq1:KanbanControlCycleByElementsQuery_sync> </parameters> </mx:request> </mx:operation> </mx:WebService> ]]></pre><p></p><p>But I always get this Error message while calling the service:</p><p></p><pre __jive_macro_name="code"><![CDATA[ see next post! ]]></pre><p></p><p>Link to Service description on es workplace: &#91;this way|http://esworkplace.sap.com/socoview%28bD1lbiZjPTAwMSZkPW1pbg==%29/render.asp?id=A95D8CD4C1314DD5BB7CD492BE4A3021&amp;fragID=&amp;packageid=DE0426DD9B0249F19515001A64D3F462&amp;iv=&#93;</p><p></p><p>I tried a lot of tutorials (some from he sdn, some from the www), but nothing worked for me, I still got the same error.</p><p></p><p>Kind regards,</p><p>andre</p><p></p><p>Edited by: Andre Becker on Jun 21, 2010 1:31 PM</p><p></p><p>Edited by: Andre Becker on Jun 21, 2010 1:57 PM</p><p></p><p>Edited by: Andre Becker on Jun 21, 2010 1:59 PM</p><p></p><p>Edited by: Andre Becker on Jun 21, 2010 1:59 PM</p></body>
Not what you were looking for? View more on this topic or Ask a question