Application Development and Automation 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: 
Read only

WebService(Error)- Security error accessing url

Former Member
0 Likes
551

Hi Friends

I am try to call Webservice from SAP to Flex Its Giving

Error <b>faultCode -Security error accessing url and Channel.Security.Error </b> Plz any ideas?

My Code is ..

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

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">

<mx:Script>

<![CDATA[

import mx.rpc.events.ResultEvent;

[Bindable]

private var wordBack:String;

[Bindable]

private var abapWSDL:String = "http://xyz2160.wdf.sap.corp:51380/sap/bc/srt/rfc/sap/ZWS_ZVENDFUN?sap-client=400&wsdl=1.1";

private function wsHandler(event:ResultEvent):void

{

wordBack=String(event.result);

}

private function faultHandler(event:mx.rpc.events.FaultEvent):void

{

mx.controls.Alert.show(event.fault.faultCode,);

mx.controls.Alert.show(event.fault.faultString,);

}

]]>

</mx:Script>

<mx:WebService id="wsData"

wsdl="{encodeURI(abapWSDL)}"

result="wsHandler(event)"

fault="faultHandler(event)">

<mx:operation name="Zvendfun" result="wsHandler(event)">

<mx:request xmlns="">

<Lifnr>{word1.text}</Lifnr>

</mx:request>

</mx:operation>

</mx:WebService>

<mx:Label text="" fontSize="40"/>

<mx:TextInput id="word1"/>

<mx:Button label="Send Data" click="wsData.Zvendfun.send()"/>

</mx:Application>

let me know where i am wrong in my code,

has anyone developed any applications with Flex using the WebService (WSDL) If so any chance you might pass it on so I can use for testing?

Thanks in advance

Regards

Ram

2 REPLIES 2
Read only

athavanraja
Active Contributor
0 Likes
449

Hi Sriram,

Before answering to your query.

Since you are only 15 posts old in SDN here is some of basic forum manners expected.

1. do not delete/modify your orginal question after getting an answer

2. when you get an answer for your question, atleast let the other member know whether his solution worked or not or atleast a simple thanks

3. if you find the answers helpful/solved your problem you can choose to award points to the answers.

Hope you will follow this in the future and have a wonderfultime in SDN community.

(

)

Cooming to your current query.

it looks like you need crossdomain.xml, search this forum with key word "crossdomain" you will find the answer.

Regards

Raja

Message was edited by:

Durairaj Athavan Raja

Read only

Former Member
0 Likes
449

Thank u