How to call a SAP service from adobe flex

Advertisement
Hi experts,
I need to call a webservice create from SAP BAPI  my URL is: http://xxxxxxxxx:8000/sap/bc/srt/wsdl/bndg_DD90E166ACE1B1F18AD8001B789FF0AD/wsdl11/allinone/ws_policy/document?sap-client=200, with this URL I can test the webservice from WsNavigator.
The operation is ZimrfcVerifOtUbica and the input structure is:
ZimrfcVerifOtUbica
> PiNumeroAlmacen (input parameter)
> PiOTransporte (input parameter)
The output structure is:
ZimrfcVerifOtUbicaResponse
>PoMessage (output parameter)
I've created a view with two inputfield (one to PiNumeroAlmacen, one to PiOTransporte), one button and one label (to put the result value).
but I don't know how to call the WS, I tried with this code:
<mx:WebService id="ZCCONVERTERService"
     wsdl="http://xxxxxxxxx:8000/sap/bc/srt/wsdl/bndg_DD90E166ACE1B1F18AD8001B789FF0AD/wsdl11/allinone/ws_policy/document?sap-client=200;" useProxy="false" >
          <mx:operation name="ZimrfcVerifOtUbica" resultFormat="e4x">
               <mx:request >
                    <PiNumeroAlmacen>AGR</PiNumeroAlmacen>
                    <PiOTransporte>01000</PiOTransporte>
               </mx:request>
          </mx:operation >
     </mx:WebService>
and I get this error: [RPC Fault faultString="Could not load WSDL" faultCode="Server.NoServicesInWSDL" faultDetail="No <wsdl:service> elements found in WSDL at ."].
I tried with actionscript and runtime library but I get this error: java.lang.Exception: Unsupported element in WSDL file: UnknownExtensibilityElement
I tried put in Data--> Import Web Service and I put the URL and I get Unable to load the WSDL.  Specify another URI.
Other thing is for this webservice I've created a logic destination, and this webservice is used in a webdynpro aplication and works correctly. But now I need to use the same webservice in flex.
Could you help me to call to this webservice?
Thanks in advance.
Jose
Advertisement

Replay

I have could do it, but now I'm trying to do the same with a SAP standard service.
Any idea?
Regards,
Jose

How to call standard ITS service from custom ITS service

Hi, I have a requierement in ITS where I need to call standard ITS service(CATW) from custom service upon clicking on Accept button. how to achieve this? Thanks in advance.Hi  Sarada Nukala, You can call the service url from first service button. To

Problems calling context-sensitive AIRHelp from Adobe Flex App

Hi everyone... I´m having problems calling context-sesitive AIRHelp from Flex. I can launch the help from flex using the following code (flex), but allways starts on the default topic. private function invocarAirHelp(tema:String):void {       var app

Calling LiveCycle Data Services from a Flex application within AIR

Hi there, I was experimenting with AIR by migrating some of the Flex TestDrive sample applications and trying to run them as stand-alone apps. Following the examples I found on some blogs, I managed to run the applications that use WebService and HTT

Crossdomain.xml issue - Accessing SAP from adobe FLEX

Hi All, We are in the process of trying to integrate 4 SAP bapis exposed as Web services from adobe flex. When we do so we are getting a "security error accessing URL" The URL of our flex application is: http://10.10.0.48:8081/water0305/iden.htm

QName error while calling a web service from Sourcing

I need to call a web service from Sourcing script. The web service team has provided us the WSDL and I have generated the required stubs using wsimport and packaged the required java classes in a custom JAR. Now while calling a web method using this

Calling a web service from a Java application

Does anyone have sample code showing how to call a web service over from a Java application? I'm deploy to HP-UX and seeking out the most standard and reliable approach. Thank you in advance.Keith, Download JWSDP 1.2, look at the tutorial for JAXRPC,

Calling a Portal Service from within a Web Dynpro DC

Hello, I am trying to call a Portal Service from within a Web Dynpro development component without sucess. Can anyone give me some hints on the necessary steps in order to accomplish this task? Thanks DizHi Diz, I tried doing the same thing by follow

How to call a jar file from oracle forms (6i)

Hi, I'm working with oracle 6i. I want to know that how to call a .jar file from forms menu. when I use HOST('<path>\test.jar') it is working in 'Client Server' any way. but the problem is I use application server in order to run my form. so my form

I recently cracked the screen on my iphone 5c, i would like to switch to a previously owned iphone 4.  How can i switch my service from my current device to my old iphone 4?

i recently cracked the screen on my iphone 5c, i would like to switch to a previously owned iphone 4.  How can i switch my service from my current device to my old iphone 4?Ask your carrier. (122404)Read other 2 answers

Call a Web Service from JavaFX running als WebStart or embed in a Browser

Calling a Web Service from a JavaFX running as a application all is fine. Wenn run the same JavaFX as WebStart or Browser embed I get a runtime exception: ================================= Java-Plug-in 10.7.2.10 JRE-Version verwenden 1.7.0_07-b10 Jav

How to call j2me emulator instance from a java program?

hi, how to call j2me emulator instance from a java program? i tried public void startApp(){ try{ platformRequest("tel:+5550000"); }catch(Exception e){ e.printStackTrace(); from a j2me midlet itself, but it gave illegal access exception. do i nee

Calling https web service from pl/sql

hi, i've to call a web service from my database, after some research, i've tryed to use utl_dbws package to get the job, i've managed to put to work some of the examples i saw, that allways use http. My webservice is invoked using https with some use

How to Call a jasper report from Oracle Forms 6i.

Hi Can anybody tel me how to Call a jasper report from ORacle Forms 6i. Thanks & Regards BangoForms 6i client/server? Use the HOST command to call the report. Since a Jasper report is just a call to a url, it will be something like: v_url := '<your

How to access a web service from a XLet

Hello, I am new in software development to ITV and I dint find too many usefull information teaching how to access a web service from a XLet running in a STB. Are there anybody who can give me some help, maybe sample or tutorial? Gratefull Davidhi, y

Help calling a web service from pl/sql

Hi, i have a web service that is called from a php, i needed to do this but from pl sql: this is the call of web service from php: <?PHP //Variables de prueba - Se tienen que tomar los valores de la base de datos, de la compra y el usuario $p_id_emec

How to call a Java class from another java class ??

Hi ..... can somebody plz tell me How to call a Java Class from another Java Class assuming both in the same Package?? I want to call the entire Java Class  (not any specific method only........I want all the functionalities of that class) Please pro

How to call a j-frame from a main frame

I use both NetBean 5.5 and Forte for Java4 i would like to know how to call a j-frame from a main jframe window when a button is clicked after action performed or moused clicked is set i.e Main jframe (window) has a button ---> (grades) click it shou

How to call a .jar file from a java bean?

any body knows how to call a .jar file from a java bean?Crosspost! http://forum.java.sun.com/thread.jspa?messageID=4349619Read other 3 answers

How to call a maintenance view  from a program

Hello Abapers, Can anybody explain with some examples. How to call a mainetenance view from a program. Thanks Ranjith.Use FM 'VIEW_MAINTENANCE_CALL'. REPORT  zmaintaintest. VARIABLES / CONSTANTS                           CONSTANTS:                  c