Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Webservice defined in SAP R/3 in Flex builder using <mx:Webservice

Former Member
0 Kudos

Hi All,

I am calling R/3 webservices in Flex builder using <mx:webservice> tag. but the wsdl is not accepting additional parameters like &, = ....

when I try to run this code Flex builder is generating an error

<mx:WebService id="ws" wsdl="http://localhost.com:8088/sap/bc/srt/rfc/sap/Z_SIMPLE_TEST_WS?<b>sap-client=030</b>&wsdl<b>=1.1</b>"

useProxy="false"

result="handleResult(event)"

fault="handleFault(event)" showBusyCursor="true" >

and when I remove the <b>sap-client=030&</b> and <b>=1.1</b> from the wsdl, the program gets executed, however SAP is calling client 010 as that is the default client.

I would appreciate if anyone can tell how to pass the parameter sap-client=030 in Flex.

Thanks,

Madhavi

Message was edited by:

Madhavi<b></b>

Message was edited by:

Madhavi

2 REPLIES 2

athavanraja
Active Contributor
0 Kudos

its because of the & sign. instead use it like below it will work.

Z_SIMPLE_TEST_WS?sap-client=030&emp;wsdl=1.1

in the above line replace 'e' in emp with 'a' (amp)

Raja

0 Kudos

Hi Raja,

Thankyou very much. It workd as u said.

Thanks once again.

Madhavi