Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Flex Builder 4 Web Service takes a hour to return results

Avatar

Level 1

I am declaring a simple mx:webservice object that calls a sap abap web service with basic authentication. While using network monitor I can see httpservice loading the wsdl. This process takes about 15 to 20 min. to complete. Next the web service establishes a connection and this process takes about 30 min. to complete.

I have added the crossdomain.xml file to the root of the SAP web application server and set the secure attribute to false and this has not had any effect on the response time.

I can run the SAP web service using ajax and it returns results in seconds. I have tried a simple weather web service that does not require authentication and I recieve results back in seconds.

This issue I am experiencing is identical to the issue described in this post http://forums.adobe.com/message/2005037#2005037

Flex code being used:

<?xml version="1.0" encoding="utf-8"?>

<s:Application

xmlns:fx="http://ns.adobe.com/mxml/2009"

xmlns:s="

library://ns.adobe.com/flex/spark"

xmlns:mx="

library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"

applicationComplete="WS.GetQueryViewData.send()"

>

<fx:Script>

<![CDATA[

private function WS_resultHandler(event:ResultEvent):void

{

trace(event.result);

}

private function WS_faultHandler(event:FaultEvent):void

{

trace(event.fault);

}

]]>

</fx:Script>

<fx:Declarations>

<!-- Place non-visual elements (e.g., services, value objects) here -->

<mx:WebService id="WS" wsdl=https://mydomain/sap/bc/srt/wsdl/bndg_4B5DFFA3EDDC407AE10080000A04100D/wsdl11/allinone/ws_policy/doc...

result="WS_resultHandler(event)"

fault="WS_faultHandler(event)"

>

<mx:operation name="GetQueryViewData" resultFormat="e4x">

<mx:request format="xml">

<ns1:GetQueryViewData xmlns:ns1='urn:sap-com:document:sap:soap:functions:mc-style'>

<Infoprovider>GLMPCLNT</Infoprovider>

<Parameter>

<item>

<Name>UOMOPCLI</Name>

<Value>8000052015</Value>

</item>

<item>

<Name></Name>

<Value></Value>

</item>

</Parameter>

<Query>My Query Name</Query>

<ViewId></ViewId>

</ns1:GetQueryViewData>

</mx:request>

</mx:operation>

</mx:WebService>

</fx:Declarations>

</s:Application>

0 Replies