Skip to main content
Participant
August 7, 2008
Question

Extending HttpService

  • August 7, 2008
  • 11 replies
  • 1583 views
Hello,<br /><br />I am trying to extend the class mx.rpc.http.mxml.HTTPService. It works but when I try to use an inner tag for the request, I get a compilation "Could not resolve <test> to a component implementation". It seems that the compiler is trying to find a class matching for the content of the <myns:request> tag when it shouldn't.<br /><br />Exemple:<br /> <myns:HttpService<br /> result="read_result(event)" <br /> fault="main_fault(event)" <br /> showBusyCursor="true" <br /> method="POST" <br /> id="srv_read" <br /> url="{urlSvr}"> <br /> <myns:request><br /> <test>coucou<test><br /> </myns:request><br /> </myns:HttpService><br /><br />I have seen a jira case similar to this in http://bugs.adobe.com/jira/browse/SDK-14688.<br /><br />Is there a solution to this problem ?<br /><br />Thanks<br /><br />toni
This topic has been closed for replies.

11 replies

matt_chotin
Inspiring
August 7, 2008
HTTPService has some hardcoded compiler support for its MXML parsing and it's possible we have a bug in there. Might be worth debugging the MXML compiler, look for HTTPService in the compiler and you can see where elements get parsed and used.<br /><br />Matt<br /><br /><br />On 8/7/08 7:05 AM, "aparolini" <member@adobeforums.com> wrote:<br /><br />A new discussion was started by aparolini in<br /><br />Developers --<br /> Extending HttpService<br /><br />Hello,<br /><br />I am trying to extend the class mx.rpc.http.mxml.HTTPService. It works but when I try to use an inner tag for the request, I get a compilation "Could not resolve <test> to a component implementation". It seems that the compiler is trying to find a class matching for the content of the <myns:request> tag when it shouldn't.<br /><br />Exemple:<br /><myns:HttpService result="read_result(event)" fault="main_fault(event)" showBusyCursor="true" method="POST" id="srv_read" url="{urlSvr}"><br /><myns:request><br /><test>coucou<test><br /></myns:request><br /> </myns:HttpService><br /><br />I have seen a jira case similar to this in http://bugs.adobe.com/jira/browse/SDK-14688.<br /><br />Is there a solution to this problem ?<br /><br />Thanks<br /><br />toni<br /><br />________________________________<br />View/reply at Extending HttpService <a href=http://www.adobeforums.com/webx?13@@.59b6194b><br />Replies by email are OK.<br />Use the unsubscribe <a href=http://www.adobeforums.com/webx?280@@.59b6194b!folder=.3c060fa3> form to cancel your email subscription.