Flex RFC webservice

Here's where I am:
1. Created a WS from BAPI_PERSDATA_GETLIST. Tested with WSADMIN.
2. Imported WSDL into Flex Builder
3. Trying to use this WS to create a simple FLEX application but not able to get it to work.
Used the Introspection method and the other one also mentioned in some blogs but just cannot get this to work. Can anyone point me in the right direction to get this mxml to work please?
Thanks

Got it to work.  Followed http://blog.danmcweeney.com/57 with some modifications. The Flex bloggers have mostly omitted the fact that when you create your own webservice from a standard BAPI, the resulting wsdl does not hold the same CASE for things such as the operation, parameters etc. It is important to match the cases (Title Case in mt instance) to get the WS to work on flex.

Similar Messages

  • Error in consuming RFC Webservice in webdynpro

    Hi,
         I am trying to consume RFC Webservices in webdynpro.For that i created Z- functional module for availability check.But once i am deploying this application ,all the input fields of the corresponding application are disabled.
    The error is like
    Exception on execution of web service on destination 'DEFAULT_WS_EXECUTION_DEST' for operation 'ZwrMaterialAvailability' in interface 'ZWebService'
    Can someone help me to resolve this error?
    Thanks,
    Kundan

    Hi Saravanan ,
                             Thanks for your replay.
    Once i am testing the WSDL URL in netweaver webservice navigator,it showing an error like like
    Cannot download WSDL from http://host name.sap.com:8000/sap/bc/srt/wsdl/sdef_ZWEBSERVICE/wsdl11/ws_policy/document?sap-client=800: It is not allowed to access this service.
    But same URL is working fine in browser.It's displaying the XML file.
    Can you provide the solution to resolve this error?
    Thanks,
    Kundan

  • Code to connect to RFCs/ webservices

    Hi All,
    Can anyone provide me the complete source code of  a simple Widget ( .kon & .js javascript file ). Actually I am trying to develope a simple widget which can integrate with SAP. Hence Javascript code of connecting to RFCs/ Webservices would be usefull. Your response would be very helpfull.
    Thanks & Regards,
    Santhosh

    Hi,
    Did you check
    RFC connection to SAP with Yahoo Widgets
    /people/nathan.jones3/blog/2006/10/26/rfc-connections-to-sap-with-yahoo-widgets
    Eddy
    Pimp up the S(D)N site and earn points. Check this web log for details

  • Consume an RFC webservice in NWDS 7.0.9

    Is it possible to consume an RFC webservice in NWDS 7.0.9. Please provide me with the steps for the same.

    Runtime server local path should be:
    /usr/sap/EDH/JC04/j2ee/ -- if your WSDL is saved in a local path with only one folder say /wsdl/ then the WSDL should be located there as well as what the tutorial is said. So, in this case it should be:
    /usr/sap/EDH/JC04/j2ee/wsdl/myABAPWebService.wsdl
    Regards,
    Jan

  • RFC- WebServices with Security Features

    Hi
    I have to execute one scenario RFC - WebServices with security features. Kindly let me know where or how can I implement the secuirty features in this scenario. Any documentation/blog/ thread are welcome to undestand about implemeting the  secuirty features for this scenario.
    Regards
    Ramesh

    Hi Ramesh,
      Check this:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/45/504971f7a708d2e10000000a11466f/frameset.htm
    http://help.sap.com/saphelp_nwpi71/helpdata/en/87/0827a8d6e04a2a8f822f9c51fa7ef2/frameset.htm
    and
    http://help.sap.com/saphelp_nwpi71/helpdata/en/37/1a9b6a338cca448508f3a48d2d1e2d/frameset.htm
    Regards,
    Ravi Kanth Talagana

  • What are all the advantages of JDBC, RFC, WebService Lookups

    Hi Friends,
    Please tell me advantages and Disadvantages of JDBC, RFC, Webservice Lookups.
    Thanks in Advancs.

    Example: PI 7.1 comes with JDBC and RFC Lookup.  During mapping we might have requirement to do validation or create logic based on the reference values in the table or SAP backend.  In this standpoint, we do JDBC and RFC Lookup. Earlier, we used to do coding in UDF or java mapping to achieve this. Now, we have it as a lookup graphical function. 
    Webservice Lookup is again the same idea. but we dont have lookup graphical function. We still need to do UDF coding to achieve this.
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/749dd812dd3676e10000000a114a6b/content.htm
    /people/jin.shin/blog/2008/02/15/sap-pi-71-mapping-enhancements-series-graphical-support-for-jdbc-and-rfc-lookups
    Disadvantage:
    If your soap message is larger size, dont do webservice lookup in UDF coding. It has maintanence issues.
    Parameterized mapping along with Integrated configuration is not currently possibe both in PI 7.1 and EHP1.

  • RFC Webservice in Service Registry?

    Hi,
    Is it possible to publish, a webservice generated out of an RFC in any of the R/3 system or a webservice from any third party application within our landscape, to the Service registry available for that landscape?
    If Yes, how and if No then Why?
    Regards,
    Shailesh

    Hi shalilesh,
         Its possible .please refer the following link on how do deploy the webservices..
    /people/thomas.jung3/blog/2004/11/15/bsp-150-a-developer146s-journal-part-xiii-developing-abap-webservices
    http://help.sap.com/saphelp_nw70/helpdata/en/44/b7f7e1354135e7e10000000a1553f7/frameset.htm
    Thanks,
    Ram.

  • Flex gsoap webService

    Hi, i have a problem with Flex application that call a web service created with gSoap.
    This is the scenario: the flex app run and web service run on the same machine that cannot have an internet connection (this is the problem).
    Everything work fine if the machine can navigate to the net and resolve http://schemas.xmlsoap.org and http://www.w3.org.
    This probably because not all the definition needed by the soap comunication are defined locally in the wsdl...
    Does anyone know how to solve this problem? There's a way to build a complete local WSDL with all the necessary?
    thx

    Got it to work.  Followed http://blog.danmcweeney.com/57 with some modifications. The Flex bloggers have mostly omitted the fact that when you create your own webservice from a standard BAPI, the resulting wsdl does not hold the same CASE for things such as the operation, parameters etc. It is important to match the cases (Title Case in mt instance) to get the WS to work on flex.

  • Register RFC webservice in uddi

    I have an rfc .I want to convert it to webservice and register it in UDDI.Can any one guide me for the same. Any help is appreciated.
    Edited by: anzar naik on Feb 24, 2010 7:45 AM

    Hi Vyas,
      Welcome back, hope things are fine at your end 
    Check these links, some good info on UDDI & related stuff.
      Re: UDDI...
    /message/423118#423118 [original link is broken]
    Re: Publishing in UDDI Registry
    UDDI - Simple Scenarios
    register External WSDL in UDDI registry
    Publishing in UDDI Registry
    Regards
    Vishnu

  • Consuming Flex & SOAP WebService

    I am attempting to consume a SOAP webservice and I am having trouble.
    How would you suggest that I consume a web service using the following xml?  Also, if you could provide a simple example that would be great!
    Thanks.
    HTTP/1.1 200 OK
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <GetViewResultsResponse xmlns="http://www.servicesource/datamanager/">
          <GetViewResultsResult>
            <PrimaryTableName>string</PrimaryTableName>
            <IsSystemView>boolean</IsSystemView>
            <DataTables>
              <NHRCViewResultDataTable>
                <TableOrViewID>guid</TableOrViewID>
                <TableName>string</TableName>
                <Columns xsi:nil="true" />
                <Rows xsi:nil="true" />
              </NHRCViewResultDataTable>
              <NHRCViewResultDataTable>
                <TableOrViewID>guid</TableOrViewID>
                <TableName>string</TableName>
                <Columns xsi:nil="true" />
                <Rows xsi:nil="true" />
              </NHRCViewResultDataTable>
            </DataTables>
            <Queries>
              <NHRCQueryDefinition>
                <NumberRowsToGet>int</NumberRowsToGet>
                <FirstRowToGet>int</FirstRowToGet>
                <MainTable xsi:nil="true" />
                <Tables xsi:nil="true" />
                <WhereClause xsi:nil="true" />
                <StructureOnly>boolean</StructureOnly>
                <ColumnListPrefix>string</ColumnListPrefix>
              </NHRCQueryDefinition>
              <NHRCQueryDefinition>
                <NumberRowsToGet>int</NumberRowsToGet>
                <FirstRowToGet>int</FirstRowToGet>
                <MainTable xsi:nil="true" />
                <Tables xsi:nil="true" />
                <WhereClause xsi:nil="true" />
                <StructureOnly>boolean</StructureOnly>
                <ColumnListPrefix>string</ColumnListPrefix>
              </NHRCQueryDefinition>
            </Queries>
            <ChangeLogTable>
              <TableOrViewID>guid</TableOrViewID>
              <TableName>string</TableName>
              <Columns>
                <NHRCViewResultColumn xsi:nil="true" />
                <NHRCViewResultColumn xsi:nil="true" />
              </Columns>
              <Rows>
                <NHRCViewResultRow xsi:nil="true" />
                <NHRCViewResultRow xsi:nil="true" />
              </Rows>
            </ChangeLogTable>
            <ViewTitle>string</ViewTitle>
            <ViewID>guid</ViewID>
            <DataVersion>dateTime</DataVersion>
            <CompareVersion>dateTime</CompareVersion>
            <LookupLists>
              <NHRCViewResultLookupList>
                <LookupTableID>guid</LookupTableID>
                <ColumnDetails xsi:nil="true" />
                <IsViewResults>boolean</IsViewResults>
                <UsedAsSubtable>boolean</UsedAsSubtable>
                <IsChangeTrackingTable>boolean</IsChangeTrackingTable>
                <CanAcceptChanges>boolean</CanAcceptChanges>
                <TableName>string</TableName>
              </NHRCViewResultLookupList>
              <NHRCViewResultLookupList>
                <LookupTableID>guid</LookupTableID>
                <ColumnDetails xsi:nil="true" />
                <IsViewResults>boolean</IsViewResults>
                <UsedAsSubtable>boolean</UsedAsSubtable>
                <IsChangeTrackingTable>boolean</IsChangeTrackingTable>
                <CanAcceptChanges>boolean</CanAcceptChanges>
                <TableName>string</TableName>
              </NHRCViewResultLookupList>
            </LookupLists>
            <ColumnDetails>
              <NHRCViewResultColumnDetails>
                <LookupTableID>guid</LookupTableID>
                <LookupListSortColumn>string</LookupListSortColumn>
                <IsPartOfDuplicateCheck>boolean</IsPartOfDuplicateCheck>
                <PrimaryFilterOrder>int</PrimaryFilterOrder>
                <IsPartOfErrorDefinition>boolean</IsPartOfErrorDefinition>
                <KeyFieldName>string</KeyFieldName>
                <ValueFieldNames xsi:nil="true" />
                <DisplayFieldCaption>string</DisplayFieldCaption>
                <ConsolidatedDisplayFieldName>string</ConsolidatedDisplayFieldName>
                <ConsolidatedDisplayFieldExpression>string</ConsolidatedDisplayFieldExpression>
                <OriginalFieldName>string</OriginalFieldName>
                <ColumnWidth>int</ColumnWidth>
                <DataType>string</DataType>
                <MaxLength>int</MaxLength>
                <AllowEmpty>boolean</AllowEmpty>
                <Visible>boolean</Visible>
                <DisplayOrder>int</DisplayOrder>
                <FieldReadOnly>boolean</FieldReadOnly>
                <IsSubtableLink>boolean</IsSubtableLink>
                <IsLookupFromView>boolean</IsLookupFromView>
                <IsSingleValueLookupTable>boolean</IsSingleValueLookupTable>
                <IsLookupOfLookup>boolean</IsLookupOfLookup>
                <LookupCriteria>string</LookupCriteria>
                <MinValue>double</MinValue>
                <MaxValue>double</MaxValue>
                <ValidationRegex>string</ValidationRegex>
              </NHRCViewResultColumnDetails>
              <NHRCViewResultColumnDetails>
                <LookupTableID>guid</LookupTableID>
                <LookupListSortColumn>string</LookupListSortColumn>
                <IsPartOfDuplicateCheck>boolean</IsPartOfDuplicateCheck>
                <PrimaryFilterOrder>int</PrimaryFilterOrder>
                <IsPartOfErrorDefinition>boolean</IsPartOfErrorDefinition>
                <KeyFieldName>string</KeyFieldName>
                <ValueFieldNames xsi:nil="true" />
                <DisplayFieldCaption>string</DisplayFieldCaption>
                <ConsolidatedDisplayFieldName>string</ConsolidatedDisplayFieldName>
                <ConsolidatedDisplayFieldExpression>string</ConsolidatedDisplayFieldExpression>
                <OriginalFieldName>string</OriginalFieldName>
                <ColumnWidth>int</ColumnWidth>
                <DataType>string</DataType>
                <MaxLength>int</MaxLength>
                <AllowEmpty>boolean</AllowEmpty>
                <Visible>boolean</Visible>
                <DisplayOrder>int</DisplayOrder>
                <FieldReadOnly>boolean</FieldReadOnly>
                <IsSubtableLink>boolean</IsSubtableLink>
                <IsLookupFromView>boolean</IsLookupFromView>
                <IsSingleValueLookupTable>boolean</IsSingleValueLookupTable>
                <IsLookupOfLookup>boolean</IsLookupOfLookup>
                <LookupCriteria>string</LookupCriteria>
                <MinValue>double</MinValue>
                <MaxValue>double</MaxValue>
                <ValidationRegex>string</ValidationRegex>
              </NHRCViewResultColumnDetails>
            </ColumnDetails>
            <ExpressionColumns>
              <NHRCViewResultExpressionColumn>
                <TableID>guid</TableID>
                <TableName>string</TableName>
                <ColumnName>string</ColumnName>
                <Expression>string</Expression>
                <Order>int</Order>
              </NHRCViewResultExpressionColumn>
              <NHRCViewResultExpressionColumn>
                <TableID>guid</TableID>
                <TableName>string</TableName>
                <ColumnName>string</ColumnName>
                <Expression>string</Expression>
                <Order>int</Order>
              </NHRCViewResultExpressionColumn>
            </ExpressionColumns>
            <Relations>
              <NHRCViewResultRelation>
                <ParentKey>string</ParentKey>
                <ChildKey>string</ChildKey>
                <RelationName>string</RelationName>
                <ParentTableName>string</ParentTableName>
                <ChildTableName>string</ChildTableName>
                <ParentTableID>guid</ParentTableID>
                <ChildTableID>guid</ChildTableID>
                <DependsOnExpressionColumn>boolean</DependsOnExpressionColumn>
              </NHRCViewResultRelation>
              <NHRCViewResultRelation>
                <ParentKey>string</ParentKey>
                <ChildKey>string</ChildKey>
                <RelationName>string</RelationName>
                <ParentTableName>string</ParentTableName>
                <ChildTableName>string</ChildTableName>
                <ParentTableID>guid</ParentTableID>
                <ChildTableID>guid</ChildTableID>
                <DependsOnExpressionColumn>boolean</DependsOnExpressionColumn>
              </NHRCViewResultRelation>
            </Relations>
          </GetViewResultsResult>
        </GetViewResultsResponse>
      </soap:Body>
    </soap:Envelope>

    Turns out I needed to set null values for all the other arguments in the definition that I wasn't using. After that Flex was translating it properly.

  • WebService - RFC - WebService Scenario

    Hello All,
    I have the following scenario:
    An external program wants to send customer data to R/3. in R/3 I have to run an RFC that creates a customer with this data and return the new customer number back to the external program. The external program will be using a web service for communicating. I have done a lot of XI but never Web Service.
    1. Can I do this synchronously without BPM or do I need a "proxy" RFC for the response?
    2. I guess I have to prepare a wsdl with the "define web service" tool in the integration builder. What do I do with this file? Do I have to deploy it? where? how?
    3. If I can do it synchronously with RFC, do I need to define a message interface for the RFC?
    Any pointers will be greatly appreciated.
    Thanks,
    Yoni

    Hi Yoni,
    1. Can I do this synchronously without BPM or do I need a "proxy" RFC for the response?
    Yes, you dont need BPM
    2. I guess I have to prepare a wsdl with the "define web service" tool in the integration builder. What do I do with this file? Do I have to deploy it? where? how?
    Import WSDL from WebService or create an outbound interface
    3. If I can do it synchronously with RFC, do I need to define a message interface for the RFC?
    No, you can import the RFC from R/3. It will be used as inbound interface.
    Regards,
    Udo

  • SOAP-RFC-WEBSERVICE

    Hai All,
    Please tell me how to do the following scenario in xi.
    <b>SOAP-RFC</b>
    1. sending soap request
    2.Mapping soap request to rfc request
    3.Mapping rfc response to a webservice request.
    4. Mapping webservice response to soap response.
    >>> Is it necessary to use bpm in this case... If yes, please tell me how to do this scenario in bpm.
    Message was edited by:
            SRI KRISHNA CHARAN

    Thanks for your reply.....,
    Yes i am able to get the wsdl file as external def in IR...
    But my problem is...
    lets take the scenario...
      <b>SOAP(Sync)-RFC(Sync)-JDBC(Sync)</b>
    1. Receiving soap request.
    2. Mapping soap request to rfc request.
    3. Mapping rfc response to jdbc request.
    4. Mapping  jdbc response to soap response.
    5. Sending soap response.
    Please tell me how can i desing and configure this scenario.
    Thanks & Regards,
    Sri Krishna Charan

  • Flex 4, Webservice client doesn't work after publishing in a web.

    Hi,
    I have a webservice written using gSoap and c.
    I'm using Flex 4 as a client to this webserivce.
    They both hosted on a same server and under the same domain.
    Flex client works fine under both debug and release builds running locally on my development PC.
    If I copy a relese build to www - webservice stops working.
    "onLoad" event never fires.
    After calling any method of mx:Webservice nothing happends, not "result" nor "fault".
    I didn't receive any error messages or other hints.
    Any help's suggested.
    Thanks.

    AUUUGH! Same issue for me.
    I try testing in the simulator and I can skip ahead or back to previous menus... but once I burn the project to a physical DVD, I get the "NOT PERMITTED" warning when I try to skip a story or go back. I basically have to wait. All buttons except SELECT and MENU are disabled.
    WHAT THE #&$% IS GOING ON...???
    I am in DVDSP 4.1.2 on a MacPro.
    This is URGENT. My client is coming TOMORROW to get the changes and I cannot get them to be controlled...!!!

  • Flex and Webservices

    Good morning!
    I have written a WSDL that soapClient.com reads ok. My problem is, Flex doesn't, and complains that there is no operation. What am I doing wrong?
    Is there a peculiarity in Flex's interpretation of WSDL?
    Thanks in advance for any idea !

    You have to mention Web Method name to be called of the web service.
    Suppose,
    I have created WebService Obj "ws" at flex end
    I have web method "CallDummyData" at server side
    then syntax would be:
    var ws:WebService = new WebService();
    ws.CallDummyData.send();
    If you want to pass parameters to web method then you can pass it using:
    -- String --
    ws.CallDummyData.send("Param1");
    -- Object --
    var objVal:Object = new Object();
    objVal.name = "MyName";
    ws.CallDummyData.send(objVal);
    If you are getting web method name dynamically then syntax should be:
    var _wsGeneralMethod:String = "CallDummyData" // Could be retrieved from server at run time
    ws.getOperation(_wsGeneralMethod).send();
    I guess this would help to resolve you problem. let me know if you need more details.
    If this helps you then please mark it as answered.
    Best Regards,
    Yogesh

  • ABAP RFC WebService

    Hi
    I have a RFC with a different name space
    for example /TESTNM/Z_RFC_TEST .
    WSDL generates an operation as below
    -TESTNM-Z_RFC_TEST
    Because of the "-" the Java Client proxies giving compilation problems . Does any one encountered this problem before ?? I can remove the "-" from the java but I am not sure when The PDK Java invokes operation
    TESTNMZ_RFC_TEST , it will work. Any help on this will be highly appreciated.
    Thanks and Regards
    Bhanu

    I'll answer my own question...
    In SE80 you create the Function Group and something called a Virtual End Point.  These are the only items that transport forward to you QA and eventually your production system.  Everything else has to be created in SOAMANAGER on the target systems. 
    In Development in SE80, when you create the Virtual End Point, this creates a corresponding entry visible in transaction SICF.  When you are done in SOAMANAGER, it creates three more entries in SICF.  The process of transporting the Virtual End Point does NOT create any entries in SICF in QA.  Don't let this be confusing.  In QA, SOAMANAGER will create all four SICF entries.
    Also, if you try to secure the web services using the S_SERVICE object, you must actually test the web service before you can add it to any roles.  This is because the USOBHASH table is not populated for the web service until you actually run the web service for the first time.

Maybe you are looking for

  • Creation of an instance of RSA Private Crt Impl object

    Hi All , I am working on an application which is very much like any encrypt/decrypt application with a catch. I want the keys to be created by entering the values myself, rather being generated from some KeyGenerator. I have the following data for a

  • Getting Software Update to work?

    Hi guys, We're looking into trying to get Software Update to work on our Xserve. The network team have put the IP address into their Inty client to allow us direct access to the net. Problem is that when I start up the service and click update list n

  • ATTACHMENT TIMES OUT! Mail, Safari and Firefox (Hotmail, ISP webmail)

    I have a problem recently appeared out of blue. It consists of the following: every time I try to send attachment the server times out (e-mails without attachments are sent swiftly). Mail asks for another server to be able to send e-mail. On Hotmail

  • PlayCenter3: variable bit rate: need to know numerical equival

    I am using PlayCenter 3 on my desktop computer and always rip MP3s using VBR (the setting: highest quality). In short, I need to know the information that that setting represents; specifically, the guaranteed minimum bit rate. On my notebook I must u

  • To know How to Use shp2sdo tool

    Hi I want to Insert some shape files into my databse. I Have shp2sdo tool. I didn't Understand how to insert using that tool. I am Very new to Oracle Spatial. Can any one please help me Please tell me in detail Now am using Oracle 9i. Thank you In Ad