Expand my Community achievements bar.

Service work in HTML, but does not work in Flex

Avatar

Level 1
I have the following



<SOAP-ENV:Envelope

xmlns:SOAP-ENV='
http://schemas.xmlsoap.org/soap/envelope/'

SOAP-ENV:encodingStyle='
http://schemas.xmlsoap.org/soap/encoding/'>

<SOAP-ENV:Body>

<Discover>

<RequestType>MDSCHEMA_DIMENSIONS</RequestType>

<Restrictions>

<RestrictionList>

<CUBE_NAME>$XSAMP01</CUBE_NAME>

</RestrictionList>

</Restrictions>

<Properties>

<PropertyList>


<DataSourceInfo>datasource=default</DataSourceInfo>

<Catalog>$INFOCUBE</Catalog>

<Format>Tabular</Format>

</PropertyList>

</Properties>

</Discover>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>



works fine in HTML Client



when I use Flex





<mx:WebService id="exec"
result="onDiscoverDimResult(event);" wsdl="
http://us4278.wdf.sap.corp:50073/sap/bw/xml/soap/xmla?wsdl"
useProxy="false">

<mx:operation name="Discover">

<RequestType>MDSCHEMA_DIMENSIONS</RequestType>

<Restrictions>

<RestrictionList>

<CUBE_NAME>$XSAMP01</CUBE_NAME>

</RestrictionList>

</Restrictions>

<Properties>

<PropertyList>


<DataSourceInfo>datasource=default</DataSourceInfo>

<Catalog>$INFOCUBE</Catalog>

<Format>Tabular</Format>

</PropertyList>

</Properties>

</mx:request>

</mx:operation>

</mx:WebService>



I get empty data



what is wrong with my Flex Code



Thanks



Kasem
1 Reply

Avatar

Level 1
Is there is a way to wrap



SOAP-ENV:Envelope

xmlns:SOAP-ENV='
http://schemas.xmlsoap.org/soap/envelope/'

SOAP-ENV:encodingStyle='
http://schemas.xmlsoap.org/soap/encoding/'>

<SOAP-ENV:Body>

<Discover>

<RequestType>MDSCHEMA_DIMENSIONS</RequestType>

<Restrictions>

<RestrictionList>

<CUBE_NAME>$XSAMP01</CUBE_NAME>

</RestrictionList>

</Restrictions>

<Properties>

<PropertyList>

<DataSourceInfo>datasource=default</DataSourceInfo>

<Catalog>$INFOCUBE</Catalog>

<Format>Tabular</Format>

</PropertyList>

</Properties>

</Discover>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>



in mx:WebService



i.e use the same request as if ypu post it in HTML



Thanks



Kasem