<html>
<head>
<meta name="generator" content="Windows Mail 17.5.9600.20461">
<style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst,
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle,
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head>
<body dir="ltr">
<div data-externalstyle="false" dir="ltr" style="font-family: 'Meiryo', 'Calibri', 'Segoe UI', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif';font-size:11.4975pt;">
<div>いつもお世話になっております。阿形と申します。</div><div><br></div><div data-signatureblock="true"><div>S2BlazeDS1.0.2 + FlashBuilder4.7 + Tomcat6.0 を使用してサンプルソフト</div><div>を作成しています。ですが下記内容のエラーが出てしまい、先に進めない</div><div>状況です。お手数おかけしますが、原因等ご教授いただけたら幸いです。</div><div><br></div><div>エラー内容</div><div><br></div><div> [FaultEvent fault=[RPC Fault faultString="No destination with id 'service.helloWorldService' is registered with any service." faultCode="Server.Processing" faultDetail="null"] messageId="BA173E90-EC0E-5BF2-E31C-5C95612992FE" type="fault" bubbles=false cancelable=true eventPhase=2]</div><div><br></div><div>MXML</div><div><br></div><div><?xml version="1.0" encoding="utf-8"?><br><mx:Application width="1024" height="768" xmlns:mx="<a href="http://www.adobe.com/2006/mxml" target="_parent">http://www.adobe.com/2006/mxml</a>"> <br> <mx:Script source="Hello.as" /> <br> <mx:RemoteObject id="myservice" destination="service.helloWorldService" fault="faultHandler(event)"><br> <mx:method name="getHelloString" result="onResult(event)" fault="onFault(event)" /><br> </mx:RemoteObject> <br> <mx:VBox> <br> <mx:Label text="Hello World!!" id="text1" /> <br> <mx:Button label="JAVAへ送信" click="goRemoteObject()" /> <br> </mx:VBox><br></mx:Application></div><div><br></div><div>ActionScript</div><div><br></div><div>import mx.controls.Alert;<br>import mx.rpc.events.ResultEvent;<br>public function goRemoteObject() :void{ <br> myservice.getHelloString();<br>}<br>/** * 結果の取得(成功時) */<br>public function onResult(event:ResultEvent):void {<br> text1.text = event.result.toString();<br>}/** * 結果の取得(失敗時) */<br>public function onFault(fault:Object):void {<br> Alert.show(String(fault));<br>}<br>public function faultHandler(fault:Object):void {<br> Alert.show(String(fault));<br>}</div><div><br></div><div>Java</div><div><br></div><div>package jp.ne.equipment.report.service;</div><div><br></div><div>public class HelloWorldService {<br> public String getHelloString() {<br> return "Hello World Flex Java!! ";<br> }<br>}<br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>
</div>
</body>
</html>