NOCer
07-02-2008, 03:29 PM
I am trying to get some data from something called and iLON via SOAP. I am currently doing this in some javascript code on another page and i want to do this in flex so i can take some charts I've already made and use this data.
attached is my code.
here is the error i am getting
Channel.Security.Error
Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (wsdl address)
I can visit http://--IP--/WSDL/v4.0/iLON100.wsdl and see the WSDL. in my javascript code the url is working as http://--IP--/WSDL/iLON100.wsdl (change: removed '/v4.0')
i have also downloaded the WSDL and saved it into my project and referenced it from there. in those cases i get
InvokeFailed
Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (../wsdl/iLON100.wsdl)
here is my code
<?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.*;
private function worked(event:ResultEvent):void {
myText.text = "IT WORKED";
}
private function failed(event:FaultEvent):void {
myText.text = event.fault.faultCode.toString() + "\n" + event.fault.faultDetail;
}
]]>
</mx:Script>
<mx:WebService id="soap" wsdl="../wsdl/iLON100.wsdl" fault="failed(event)" result="worked(event)" showBusyCursor="true">
<mx:operation name="iLON100" fault="failed(event)" resultFormat="xml">
<mx:request xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<SystemService_Read_Info xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLONSystemService>
<UCPTsystemInfoType>SI_NETWORK</UCPTsystemInfoType>
</iLONSystemService>
</SystemService_Read_Info>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:TextArea id="myText" width="600" height="400"/>
</mx:Application>
attached is my code.
here is the error i am getting
Channel.Security.Error
Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (wsdl address)
I can visit http://--IP--/WSDL/v4.0/iLON100.wsdl and see the WSDL. in my javascript code the url is working as http://--IP--/WSDL/iLON100.wsdl (change: removed '/v4.0')
i have also downloaded the WSDL and saved it into my project and referenced it from there. in those cases i get
InvokeFailed
Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (../wsdl/iLON100.wsdl)
here is my code
<?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.*;
private function worked(event:ResultEvent):void {
myText.text = "IT WORKED";
}
private function failed(event:FaultEvent):void {
myText.text = event.fault.faultCode.toString() + "\n" + event.fault.faultDetail;
}
]]>
</mx:Script>
<mx:WebService id="soap" wsdl="../wsdl/iLON100.wsdl" fault="failed(event)" result="worked(event)" showBusyCursor="true">
<mx:operation name="iLON100" fault="failed(event)" resultFormat="xml">
<mx:request xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<SystemService_Read_Info xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLONSystemService>
<UCPTsystemInfoType>SI_NETWORK</UCPTsystemInfoType>
</iLONSystemService>
</SystemService_Read_Info>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:TextArea id="myText" width="600" height="400"/>
</mx:Application>