Skip to Content
author's profile photo Former Member
Former Member

Calling SAP WebServices (WSLD) using Flex Builder

Hi Friends

I am calling R/3 web services in Flex builder using <mx:webservice> tag

coding ....is not working ....

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

http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="ws.Zvendfun.send()">

<mx:WebService id="ws"

wsdl="http://XYZ2160.wdf.sap.corp:51180/sap/bc/srt/rfc/sap/ZWS_ZVENDFUN?sap-client=200&wsdl=1.1"

showBusyCursor="true" useProxy="false">

<mx:operation name="Zvendfun">

<mx:request>

<Lifnr>BP06</Lifnr>

</mx:request>

</mx:operation>

</mx:WebService>

<mx:Panel title="{ws.Zvendfun.Export.Lifnr}" width="100%" height="100%">

<mx:DataGrid x="30" y="75" id="dg" width="400" dataProvider="{ws.ws.Zvendfun.result}">

<mx:columns>

<mx:DataGridColumn headerText="Top Posts" dataField="T_COUNTRIES"/>

<mx:DataGridColumn headerText="LAND1" dataField="LAND1"/>

<mx:DataGridColumn headerText="NATIO50" dataField="NATIO50"/>

<mx:DataGridColumn headerText="LANDX" dataField="LANDX"/>

<mx:DataGridColumn headerText="NATIO" dataField="NATIO"/>

<mx:DataGridColumn headerText="Clicks" dataField="MANDT" width="75"/>

</mx:columns>

</mx:DataGrid>

</mx:Panel>

</mx:Application>

Plz find Error ,<b>give the Sample code for webservice calling with parameters and filling DataGride in Flex </b>

Thanking u

Ram

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 16, 2007 at 01:35 PM

    Ram,

    You may be having issues with the special characters in your wsdl URL. Try defining it as an actionscript variable and then encoding it with the encodeURI function.

    Examples of this can be found on my tutorial on the wiki that shows step by step how to consume an ABAP web service from Flex:

    https://wiki.sdn.sap.com/wiki/display/EmTech/ConsumingABAPWebServicesusing+Flex">Consuming ABAP Web Services using Flex</a>

    Also two pieces of friendly advice for forum posting etiquette:

    1) Please post more details other than "its not working"

    2) Making demands in bold letters is probably not the best way to get help

    Cheers,

    ewH

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 26, 2007 at 04:26 AM

    Thank u Ed Herrmann

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.