When you requested
http://localhost:8080/MyWebService/schema/HelloService_schema1.xsd from
the browser does it show up correctly?  I just saw schema importing
working in another case, though it was Flex 2, I thought we had it
working in 1.5 but there may be problems...

Matt

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of flexhtoo
Sent: Tuesday, December 27, 2005 9:00 AM
To: [email protected]
Subject: [flexcoders] Why not XSD import not use in WSDL file in Flex
WebService!

The following are that I call Web-Service in Flex! But I have one
problem  in this from.

<mx:WebService id="ws"
    wsdl="http://localhost:8080/MyWebService/HelloWebService?WSDL";
    service="HelloService"    
    userProxy="false"
    showBusyCursor="true"
    fault="Alert.show('WSDL Load error');">

    <mx:operation name="getHelloWorld"
        concurrency="single"
        resultFormat="e4x"
        fault="opFaultHandler(event)"
        result="opResultHandler(event)"/>
</mx:WebService>

<mx:Button label="Hello World"
click="ws.getHelloWorld.send([{message:"Hello Flex!!!"}])"/>

<mx:Script>
   <![CDATA[
    
    // Implement the event handler
    ........
   ]]>
</mx:Script>
    



In this situtation I haven't click could not result! 
It shown up error "tns:helloWorld" cannot resolve!

That time I copy the WSDL manually and for fix this problem that I
remove the 
<xsd:schema>
<xsd:import namespace="http://com.test.application/HelloWS";
schemaLocation="http://localhost:8080/MyWebService/schema/HelloService_s
chema1.xsd"/>
</xsd:schema>
with its schemalocation in browse and copy the entire schema into that
text.

And then I run it. It's ok. Why can't import XSD in WSDL!


And then Another Problem!
It is RPC not Doc Lit...


I want to konw how to and what change this source for Document Lit.


Flexhtoo.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to