Java代碼
package com;
public class LoginDemo {
public String validate(String username
String message =
if(username
message =
}
return message;
}
}
Java代碼
<?xml version=
<service id=
class=
<adapters>
<adapter
</adapters>
<default
<channel ref=
</default
<destination id=
<properties>
<source>com
</properties>
</destination>
</service>
Java代碼
<?xml version=
<mx:Application xmlns:mx=
<mx:Script>
<![CDATA[
import mx
import mx
import ntrols
[Bindable]
var returnValue:String;
var username
var password
function sendRequest():void{
username
password
ro
ro
}
function results(event:ResultEvent):void{
returnValue=event
}
function faultHandler(event:FaultEvent):void{
Alert
}
]]>
</mx:Script>
<mx:RemoteObject id=
</mx:RemoteObject>
<mx:Panel height=
<mx:Label x=
<mx:Label x=
<mx:TextInput id=
<mx:TextInput id=
<mx:Button x=
<mx:Label x=
</mx:Panel>
</mx:Application>
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26973.html