As a follow on to what Dave said, you can also redeploy the same
implementation as a different named service using rpc/encoded.


Carson 


____________________________________________
 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile: 1.703.489.6466
 


-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Wolf
Sent: Saturday, December 24, 2005 2:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to fix Send Element not resolvable error
call from WS in Flex!

The WSDL shows this service is encoded with Document/Literal.  You
cannot change the encoding type from the client.  This is a servant
implementation issue.  Whoever wrote the service however can change it
easily.

We have had issues in the past with Document/Literal in passing
CompelxTypes in (read objects), but usually it works with the types as a
return.  You should iterate over the object you get back and see if it
is polymorphic with the ComplexType (object) you expect back.

--
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY


--- In flexcoders@yahoogroups.com, "flexhtoo" <[EMAIL PROTECTED]> wrote:
>
> Thanks for your emphasis in my problems.
> 
> Please check my code with WSDL and inline XSD. The following are the 
> whole application with WS. It has return one object but it can not 
> show in XML and toString() method produce useless string "[object 
> Object]" so that I cann't not display properly message how do I?
> 
> How to konw web service return type which is RPC or Documents Literal?
> 
> Can change RPC and Documents format in client?
> 
> 
> 
> #################################################################
> 
> <?xml version="1.0"?>
> <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml";
>       width="600" height="400">
>       
>       <mx:WebService id="myService" showBusyCursor="true"
useProxy="false"
>               port="MyPort"
>               wsdl="ServletWSService.xml">    
>               <mx:operation name="getAccount" 
>                       fault="showErrorDialog(event)"
result="log(event);">

>                       <mx:request>
>                               <arg0>1</arg0>
>                       </mx:request>
>               </mx:operation>
> 
>       </mx:WebService>
>       
>       <mx:VBox>               
>               
>               <mx:Button id="account" label="Get Account"
>                       click="try{
>                                       myService.getAccount.send();
>                               }catch(e:Error){
>                                       Alert.show('Send ' + e.message);
>                               }"/>    
>       </mx:VBox>
> 
> 
>       <mx:Script>
>       <![CDATA[
>               import mx.rpc.events.FaultEvent;
>               import mx.rpc.events.ResultEvent;
>               import mx.controls.Alert;
>               
>               import flash.xml.*;
>               public function log(event:ResultEvent) {
>               
>                       trace("Result from WS: " +
event.result.valueOf().toString());
>               }
>               public function showErrorDialog(error:FaultEvent) {
>               
>                       Alert.show("Error : " + error.fault);
>               }
>               
>       
>       ]]>
>       </mx:Script>
> </mx:Application>
> 
> 
> 
> <?xml version="1.0" encoding="UTF-8"?><definitions 
> xmlns="http://schemas.xmlsoap.org/wsdl/";
> xmlns:tns="http://servlet.ws.test.jumino.com/ServletWS";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> targetNamespace="http://servlet.ws.test.jumino.com/ServletWS";
> name="ServletWSService">
>   <types>
>       <xsd:schema version="1.0"
> targetNamespace="http://servlet.ws.test.jumino.com/ServletWS";
> xmlns:xs="http://www.w3.org/2001/XMLSchema";>
>       
>         <xsd:element name="getAccount" type="ns4:getAccount"
> xmlns:ns4="http://servlet.ws.test.jumino.com/ServletWS"/>
>       
>         <xsd:complexType name="getAccount">
>           <xsd:sequence>
>             <xsd:element name="arg0" type="xsd:int"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       
>         <xsd:element name="getAccountResponse"
> type="ns5:getAccountResponse"
> xmlns:ns5="http://servlet.ws.test.jumino.com/ServletWS"/>
>       
>         <xsd:complexType name="getAccountResponse">
>           <xsd:sequence>
>             <xsd:element name="return" type="ns6:account"
> minOccurs="0"
xmlns:ns6="http://servlet.ws.test.jumino.com/ServletWS"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       
>         <xsd:complexType name="account">
>           <xsd:sequence>
>             <xsd:element name="accountCategory" type="xsd:short"/>
>             <xsd:element name="accountMember" type="ns7:member"
> minOccurs="0"
xmlns:ns7="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="accountRating" type="xsd:short"/>
>             <xsd:element name="accountState" type="xsd:short"/>
>             <xsd:element name="accountType" type="xsd:short"/>
>             <xsd:element name="activeInd" type="xsd:boolean"/>
>             <xsd:element name="addresses" type="ns8:address"
> minOccurs="0"
xmlns:ns8="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="aliasName" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="businessType" type="xsd:short"/>
>             <xsd:element name="competitor" type="ns9:competitor"
> minOccurs="0"
xmlns:ns9="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="contact" type="ns10:contact"
> minOccurs="0"
xmlns:ns10="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="contacts" type="ns11:contact"
> nillable="true" maxOccurs="unbounded" minOccurs="0"
> xmlns:ns11="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="createDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="createUserId" type="xsd:long"/>
>             <xsd:element name="deputyContact" type="ns12:contact"
> minOccurs="0"
xmlns:ns12="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="desciption" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="enterpriseId" type="xsd:long"/>
>             <xsd:element name="fullname" type="xsd:string"
minOccurs="0"/>
>             <xsd:element name="id" type="xsd:long"/>
>             <xsd:element name="partner" type="ns13:account"
> nillable="true" maxOccurs="unbounded" minOccurs="0"
> xmlns:ns13="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="partneraccount" type="ns14:account"
> minOccurs="0"
xmlns:ns14="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="permission" type="xsd:int"/>
>             <xsd:element name="searchIndexEntry"
> type="ns15:searchIndexEntry" minOccurs="0"
> xmlns:ns15="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="updtDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="updtUserId" type="xsd:long"/>
>             <xsd:element name="validUntilDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       
>         <xsd:complexType name="member">
>           <xsd:sequence>
>             <xsd:element name="account" type="ns16:account"
> nillable="true" maxOccurs="unbounded" minOccurs="0"
> xmlns:ns16="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="description" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="group" type="ns17:group" minOccurs="0"
> xmlns:ns17="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="id" type="xsd:int"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       
>         <xsd:complexType name="group">
>           <xsd:complexContent>
>             <xsd:extension base="ns18:account"
> xmlns:ns18="http://servlet.ws.test.jumino.com/ServletWS";>
>               <xsd:sequence>
>                 <xsd:element name="member" type="ns18:member"
> minOccurs="0"/>
>                 <xsd:element name="name" type="xsd:string"
minOccurs="0"/>
>               </xsd:sequence>
>             </xsd:extension>
>           </xsd:complexContent>
>         </xsd:complexType>
>       
>         <xsd:complexType name="address">
>           <xsd:sequence>
>             <xsd:element name="account" type="ns19:account"
> minOccurs="0"
xmlns:ns19="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="activeInd" type="xsd:boolean"/>
>             <xsd:element name="createDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="createUserId" type="xsd:long"/>
>             <xsd:element name="enterpriseId" type="xsd:long"/>
>             <xsd:element name="id" type="xsd:long"/>
>             <xsd:element name="isMain" type="xsd:boolean"/>
>             <xsd:element name="permission" type="xsd:int"/>
>             <xsd:element name="updtDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="updtUserId" type="xsd:long"/>
>             <xsd:element name="usage" type="xsd:short"/>
>             <xsd:element name="validUntilDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       
>         <xsd:complexType name="competitor">
>           <xsd:sequence>
>             <xsd:element name="account" type="ns20:account"
> nillable="true" maxOccurs="unbounded" minOccurs="0"
> xmlns:ns20="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="activeInd" type="xsd:boolean"/>
>             <xsd:element name="competitorState" type="xsd:short"/>
>             <xsd:element name="contact" type="ns21:contact"
> nillable="true" maxOccurs="unbounded" minOccurs="0"
> xmlns:ns21="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="createDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="createUserId" type="xsd:long"/>
>             <xsd:element name="description" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="enterpriseId" type="xsd:long"/>
>             <xsd:element name="id" type="xsd:long"/>
>             <xsd:element name="keyProduct" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="name" type="xsd:string" minOccurs="0"/>
>             <xsd:element name="opportunities" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="permission" type="xsd:int"/>
>             <xsd:element name="strengths" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="threats" type="xsd:string"
minOccurs="0"/>
>             <xsd:element name="updtDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="updtUserId" type="xsd:long"/>
>             <xsd:element name="validUntilDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="weaknesses" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="winPercentage" type="xsd:decimal"
> minOccurs="0"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       
>         <xsd:complexType name="contact">
>           <xsd:complexContent>
>             <xsd:extension base="ns22:account"
> xmlns:ns22="http://servlet.ws.test.jumino.com/ServletWS";>
>               <xsd:sequence>
>                 <xsd:element name="account" type="ns22:account"
> minOccurs="0"/>
>                 <xsd:element name="anniversary" type="xsd:dateTime"
> minOccurs="0"/>
>                 <xsd:element name="annualIncomeAmount"
> type="xsd:decimal" minOccurs="0"/>
>                 <xsd:element name="annualIncomeCurrency"
> type="xsd:short"/>
>                 <xsd:element name="assistant" type="ns22:account"
> nillable="true" maxOccurs="unbounded" minOccurs="0"/>
>                 <xsd:element name="birthdate" type="xsd:dateTime"
> minOccurs="0"/>
>                 <xsd:element name="childrenNames" type="xsd:string"
> minOccurs="0"/>
>                 <xsd:element name="contactCompetitor"
> type="ns22:competitor" minOccurs="0"/>
>                 <xsd:element name="contactMembership"
> type="ns22:contactMembership" minOccurs="0"/>
>                 <xsd:element name="contactRelationship"
> type="ns22:contactRelationship" minOccurs="0"/>
>                 <xsd:element name="department" type="xsd:string"
> minOccurs="0"/>
>                 <xsd:element name="deputy" type="ns22:account"
> nillable="true" maxOccurs="unbounded" minOccurs="0"/>
>                 <xsd:element name="doNotBulkPostalMail"
> type="xsd:boolean"/>
>                 <xsd:element name="doNotEMail" type="xsd:boolean"/>
>                 <xsd:element name="doNotFax" type="xsd:boolean"/>
>                 <xsd:element name="doNotPhone" type="xsd:boolean"/>
>                 <xsd:element name="doNotPostalMail"
type="xsd:boolean"/>
>                 <xsd:element name="education" type="xsd:short"/>
>                 <xsd:element name="familyStatus" type="xsd:short"/>
>                 <xsd:element name="firstName" type="xsd:string"
> minOccurs="0"/>
>                 <xsd:element name="gender" type="xsd:short"/>
>                 <xsd:element name="governmentId" type="xsd:string"
> minOccurs="0"/>
>                 <xsd:element name="jobRole" type="xsd:string"
> minOccurs="0"/>
>                 <xsd:element name="jobTitle" type="xsd:string"
> minOccurs="0"/>
>                 <xsd:element name="lastName" type="xsd:string"
> minOccurs="0"/>
>                 <xsd:element name="middleName" type="xsd:string"
> minOccurs="0"/>
>                 <xsd:element name="nickName" type="xsd:string"
> minOccurs="0"/>
>                 <xsd:element name="numberOfChildren"
type="xsd:short"/>
>                 <xsd:element name="ouMembership"
> type="ns22:organizationalUnit" nillable="true" maxOccurs="unbounded"
> minOccurs="0"/>
>                 <xsd:element name="preferredContactMethod"
> type="xsd:short"/>
>                 <xsd:element name="preferredSpokenLanguage"
> type="xsd:short"/>
>                 <xsd:element name="preferredWrittenLanguage"
> type="xsd:short"/>
>                 <xsd:element name="reportToContact"
> type="ns22:contact" minOccurs="0"/>
>                 <xsd:element name="reportsTo" type="ns22:contact"
> nillable="true" maxOccurs="unbounded" minOccurs="0"/>
>                 <xsd:element name="salutation" type="xsd:string"
> minOccurs="0"/>
>                 <xsd:element name="salutationCode" type="xsd:short"/>
>                 <xsd:element name="suffix" type="xsd:string"
> minOccurs="0"/>
>                 <xsd:element name="toContactRelationship"
> type="ns22:contactRelationship" minOccurs="0"/>
>               </xsd:sequence>
>             </xsd:extension>
>           </xsd:complexContent>
>         </xsd:complexType>
>       
>         <xsd:complexType name="contactMembership">
>           <xsd:sequence>
>             <xsd:element name="activeInd" type="xsd:boolean"/>
>             <xsd:element name="contact" type="ns23:contact"
> nillable="true" maxOccurs="unbounded" minOccurs="0"
> xmlns:ns23="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="createDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="createUserId" type="xsd:long"/>
>             <xsd:element name="effectiveOn" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="enterpriseId" type="xsd:long"/>
>             <xsd:element name="id" type="xsd:long"/>
>             <xsd:element name="organizationalUnit"
> type="ns24:abstractOrganizationalUnit" minOccurs="0"
> xmlns:ns24="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="permission" type="xsd:int"/>
>             <xsd:element name="updtDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="updtUserId" type="xsd:long"/>
>             <xsd:element name="validUntilDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       
>         <xsd:complexType name="abstractOrganizationalUnit">
>           <xsd:sequence>
>             <xsd:element name="activeInd" type="xsd:boolean"/>
>             <xsd:element name="contactMembership"
> type="ns25:contactMembership" minOccurs="0"
> xmlns:ns25="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="createDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="createUserId" type="xsd:long"/>
>             <xsd:element name="creditLimit" type="ns26:creditLimit"
> minOccurs="0"
xmlns:ns26="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="description" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="enterpriseId" type="xsd:long"/>
>             <xsd:element name="id" type="xsd:long"/>
>             <xsd:element name="name" type="xsd:string" minOccurs="0"/>
>             <xsd:element name="permission" type="xsd:int"/>
>             <xsd:element name="updtDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="updtUserId" type="xsd:long"/>
>             <xsd:element name="validUntilDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       
>         <xsd:complexType name="creditLimit">
>           <xsd:sequence>
>             <xsd:element name="activeInd" type="xsd:boolean"/>
>             <xsd:element name="createDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="createUserId" type="xsd:long"/>
>             <xsd:element name="creditCurrency" type="xsd:short"/>
>             <xsd:element name="creditLimitAmount" type="xsd:decimal"
> minOccurs="0"/>
>             <xsd:element name="currentCreditUsageAmount"
> type="xsd:decimal" minOccurs="0"/>
>             <xsd:element name="enterpriseId" type="xsd:long"/>
>             <xsd:element name="expectedCreditUsageAmount1"
> type="xsd:decimal" minOccurs="0"/>
>             <xsd:element name="expectedCreditUsageAmount2"
> type="xsd:decimal" minOccurs="0"/>
>             <xsd:element name="expectedCreditUsageAmount3"
> type="xsd:decimal" minOccurs="0"/>
>             <xsd:element name="id" type="xsd:long"/>
>             <xsd:element name="isCreditOnHold" type="xsd:boolean"/>
>             <xsd:element name="legalEntity"
> type="ns27:abstractOrganizationalUnit" minOccurs="0"
> xmlns:ns27="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="permission" type="xsd:int"/>
>             <xsd:element name="updtDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="updtUserId" type="xsd:long"/>
>             <xsd:element name="validUntilDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       
>         <xsd:complexType name="contactRelationship">
>           <xsd:sequence>
>             <xsd:element name="activeInd" type="xsd:boolean"/>
>             <xsd:element name="complimentaryClose" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="contact" type="ns28:contact"
> minOccurs="0"
xmlns:ns28="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="createDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="createUserId" type="xsd:long"/>
>             <xsd:element name="enterpriseId" type="xsd:long"/>
>             <xsd:element name="id" type="xsd:long"/>
>             <xsd:element name="permission" type="xsd:int"/>
>             <xsd:element name="salutation" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="toContact" type="ns29:contact"
> nillable="true" maxOccurs="unbounded" minOccurs="0"
> xmlns:ns29="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="updtDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="updtUserId" type="xsd:long"/>
>             <xsd:element name="validUntilDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       
>         <xsd:complexType name="organizationalUnit">
>           <xsd:complexContent>
>             <xsd:extension base="ns30:abstractOrganizationalUnit"
> xmlns:ns30="http://servlet.ws.test.jumino.com/ServletWS";>
>               <xsd:sequence>
>                 <xsd:element name="contact" type="ns30:contact"
> minOccurs="0"/>
>                 <xsd:element name="costCenter" type="xsd:string"
> minOccurs="0"/>
>                 <xsd:element name="fromOrganizationalUnitRelationship"
> type="ns30:organizationalUnitRelationship" minOccurs="0"/>
>                 <xsd:element name="legalEntity"
> type="ns30:legalEntity" minOccurs="0"/>
>                 <xsd:element name="organizationalUnitState"
> type="xsd:short"/>
>                 <xsd:element name="toOrganizationalUnitRelationship"
> type="ns30:organizationalUnitRelationship" minOccurs="0"/>
>               </xsd:sequence>
>             </xsd:extension>
>           </xsd:complexContent>
>         </xsd:complexType>
>       
>         <xsd:complexType name="organizationalUnitRelationship">
>           <xsd:sequence>
>             <xsd:element name="activeInd" type="xsd:boolean"/>
>             <xsd:element name="createDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="createUserId" type="xsd:long"/>
>             <xsd:element name="description" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="enterpriseId" type="xsd:long"/>
>             <xsd:element name="fromUnit"
> type="ns31:organizationalUnit" nillable="true" maxOccurs="unbounded"
> minOccurs="0"
xmlns:ns31="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="id" type="xsd:long"/>
>             <xsd:element name="name" type="xsd:string" minOccurs="0"/>
>             <xsd:element name="organizationalUnitRelationshipState"
> type="xsd:short"/>
>             <xsd:element name="permission" type="xsd:int"/>
>             <xsd:element name="relationshipType" type="xsd:short"/>
>             <xsd:element name="toUnit" type="ns32:organizationalUnit"
> nillable="true" maxOccurs="unbounded" minOccurs="0"
> xmlns:ns32="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="updtDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="updtUserId" type="xsd:long"/>
>             <xsd:element name="validUntilDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="weight" type="xsd:decimal"
minOccurs="0"/>
>             <xsd:element name="weightIsPercentage"
type="xsd:boolean"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       
>         <xsd:complexType name="legalEntity">
>           <xsd:complexContent>
>             <xsd:extension base="ns33:account"
> xmlns:ns33="http://servlet.ws.test.jumino.com/ServletWS";>
>               <xsd:sequence>
>                 <xsd:element name="industry" type="xsd:short"/>
>                 <xsd:element name="name" type="xsd:string"
minOccurs="0"/>
>                 <xsd:element name="numberOfEmployeesCategory"
> type="xsd:short"/>
>                 <xsd:element name="organizationalUnit"
> type="ns33:organizationalUnit" nillable="true" maxOccurs="unbounded"
> minOccurs="0"/>
>                 <xsd:element name="revenueReport"
> type="ns33:revenueReport" minOccurs="0"/>
>                 <xsd:element name="stockExchange" type="xsd:string"
> minOccurs="0"/>
>                 <xsd:element name="tickerSymbol" type="xsd:string"
> minOccurs="0"/>
>               </xsd:sequence>
>             </xsd:extension>
>           </xsd:complexContent>
>         </xsd:complexType>
>       
>         <xsd:complexType name="revenueReport">
>           <xsd:sequence>
>             <xsd:element name="activeInd" type="xsd:boolean"/>
>             <xsd:element name="createDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="createUserId" type="xsd:long"/>
>             <xsd:element name="enterpriseId" type="xsd:long"/>
>             <xsd:element name="id" type="xsd:long"/>
>             <xsd:element name="legalEntity" type="ns34:legalEntity"
> minOccurs="0"
xmlns:ns34="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="permission" type="xsd:int"/>
>             <xsd:element name="reportNumber" type="xsd:short"/>
>             <xsd:element name="reportedRevenue" type="xsd:decimal"
> minOccurs="0"/>
>             <xsd:element name="reportingCurrency" type="xsd:short"/>
>             <xsd:element name="reportingQuarter" type="xsd:short"/>
>             <xsd:element name="reportingYear" type="xsd:short"/>
>             <xsd:element name="updtDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="updtUserId" type="xsd:long"/>
>             <xsd:element name="validUntilDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>           </xsd:sequence>
>         </xsd:complexType>
>       
>         <xsd:complexType name="searchIndexEntry">
>           <xsd:sequence>
>             <xsd:element name="account" type="ns35:account"
> nillable="true" maxOccurs="unbounded" minOccurs="0"
> xmlns:ns35="http://servlet.ws.test.jumino.com/ServletWS"/>
>             <xsd:element name="accountRating" type="xsd:short"/>
>             <xsd:element name="accountState" type="xsd:short"/>
>             <xsd:element name="accountType" type="xsd:short"/>
>             <xsd:element name="activeInd" type="xsd:boolean"/>
>             <xsd:element name="aliasName" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="createDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="createUserId" type="xsd:long"/>
>             <xsd:element name="description" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="emailAddress" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="enterpriseId" type="xsd:long"/>
>             <xsd:element name="fullName" type="xsd:string"
minOccurs="0"/>
>             <xsd:element name="id" type="xsd:long"/>
>             <xsd:element name="isMain" type="xsd:boolean"/>
>             <xsd:element name="permission" type="xsd:int"/>
>             <xsd:element name="phoneCityArea" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="phoneCountryPrefix" type="xsd:short"/>
>             <xsd:element name="phoneLocalNumber" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="phoneNumberFull" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="postalCity" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="postalCode" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="postalCountry" type="xsd:short"/>
>             <xsd:element name="postalStreet" type="xsd:string"
> minOccurs="0"/>
>             <xsd:element name="updtDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="updtUserId" type="xsd:long"/>
>             <xsd:element name="validUntilDtTm" type="xsd:dateTime"
> minOccurs="0"/>
>             <xsd:element name="webUrl" type="xsd:string"
minOccurs="0"/>
>           </xsd:sequence>
>         </xsd:complexType>        
>       </xsd:schema>
> 
> 
>   </types>  
>   <message name="getAccount">
>     <part name="parameters" element="tns:getAccount"/>
>   </message>
>   <message name="getAccountResponse">
>     <part name="parameters" element="tns:getAccountResponse"/>
>   </message>
>   <portType name="ServletWS">    
>     <operation name="getAccount">
>       <input message="tns:getAccount"/>
>       <output message="tns:getAccountResponse"/>
>     </operation>
>   </portType>
>   <binding name="MyPortBinding" type="tns:ServletWS">
>     <soap:binding transport="http://schemas.xmlsoap.org/soap/http";
> style="document"/>    
>     <operation name="getAccount">
>       <soap:operation soapAction="urn:GetAccount"/>
>       <input>
>         <soap:body use="literal"/>
>       </input>
>       <output>
>         <soap:body use="literal"/>
>       </output>
>     </operation>
>   </binding>
>   <service name="ServletWSService">
>     <port name="MyPort" binding="tns:MyPortBinding">
>       <soap:address
> location="http://192.168.0.7:8080/SlickPOC-WebModule/ServletWSService";
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
>     </port>
>   </service>
> </definitions>
> 
> 
> 
> ###############################################################
> 
> Thanks,
> Flexhtoo
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
> >
> > Well that would explain why getAllPerson doesn't work, the WSDL
only has
> > getPerson :-)  I can't tell if getPerson is supposed to take any 
> > parameters, it doesn't look like it.  Also not sure if this will 
> > only take a literal request or support RPC encoding.  I don't have 
> > time now set up something to simulate this but first thing to try is

> > calling getPerson instead of getAllPerson.
> > 
> > Matt
> > 
> > -----Original Message-----
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of flexhtoo
> > Sent: Friday, December 23, 2005 2:43 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: How to fix Send Element not resolvable 
> > error call from WS in Flex!
> > 
> > ### There are WSDL ###
> > <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <definitions

> > targetNamespace="http://ws.test.com/Hello";
> > name="HelloService" xmlns:tns="http://ws.test.com/Hello";
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> > xmlns="http://schemas.xmlsoap.org/wsdl/";>
> >   <types>
> >     <xsd:schema>
> >       <xsd:import namespace="http://ws.test.com/Hello";
> > schemaLocation="HelloService_schema1.xsd"/>
> >     </xsd:schema>
> >   </types>  
> >   <message name="getPerson">
> >     <part name="parameters" element="tns:getPerson"/>
> >   </message>
> >   <message name="getPersonResponse">
> >     <part name="parameters" element="tns:getPersonResponse"/>
> >   </message>
> >   <portType name="Hello">  
> >     <operation name="getPerson">
> >       <input message="tns:getPerson"/>
> >       <output message="tns:getPersonResponse"/>
> >     </operation>
> >   </portType>
> >   <binding name="MyPortBinding" type="tns:Hello">
> >     <soap:binding transport="http://schemas.xmlsoap.org/soap/http";
> > style="document"/>
> >     <operation name="getPerson">
> >       <soap:operation soapAction="urn:GetPerson"/>
> >       <input>
> >         <soap:body use="literal"/>
> >       </input>
> >       <output>
> >         <soap:body use="literal"/>
> >       </output>
> >     </operation>
> >   </binding>
> >   <service name="HelloService">
> >     <port name="MyPort" binding="tns:MyPortBinding">
> >       <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
> >     </port>
> >   </service>
> > </definitions>
> > 
> > 
> > 
> > ### And that WSDL import one xsd file describe in the following. ###
> > 
> > <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <xs:schema 
> > version="1.0" targetNamespace="http://ws.test.com/Hello";
> > xmlns:xs="http://www.w3.org/2001/XMLSchema";>
> > 
> >   <xs:element name="getPerson" type="ns1:getPerson"
> > xmlns:ns1="http://ws.test.com/Hello"/>
> > 
> >   <xs:complexType name="getPerson"/>
> > 
> >   <xs:element name="getPersonResponse" type="ns2:getPersonResponse"
> > xmlns:ns2="http://ws.test.com/Hello"/>
> > 
> >   <xs:complexType name="getPersonResponse">
> >     <xs:sequence>
> >       <xs:element name="return" type="ns3:person" minOccurs="0"
> > xmlns:ns3="http://ws.test.com/Hello"/>
> >     </xs:sequence>
> >   </xs:complexType>
> > 
> >   <xs:complexType name="person">
> >     <xs:sequence>
> >       <xs:element name="age" type="xs:int"/>
> >       <xs:element name="name" type="xs:string" minOccurs="0"/>
> >     </xs:sequence>
> >   </xs:complexType>
> >   
> > </xs:schema>
> > 
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]>
wrote:
> > >
> > > Can you post the WSDL?  This makes it seem like the webservice
wasn't
> > > able to figure out how to call the getAllPerson method either
because
> > > the name is wrong or the parameters are wrong.  Are there
perhaps two
> > > getAllPerson methods (with different parameters)?
> > > 
> > > Matt
> > > 
> > > -----Original Message-----
> > > From: flexcoders@yahoogroups.com 
> > > [mailto:[EMAIL PROTECTED]
> > On
> > > Behalf Of flexhtoo
> > > Sent: Thursday, December 22, 2005 1:04 AM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] How to fix Send Element not resolvable error
> > call
> > > from WS in Flex!
> > > 
> > > <mx:WebService id="PersonService" destination="wsDest"
> > > useProxy="false"  
> > > wsdl="http://localhost:8080/myHelloWorld/ServletWS?WSDL";>
> > >     <mx:operation name="getAllPerson"
> > >         fault="showError(event);"
> > >         result="log(event);">
> > >     </mx:operation>
> > > </mx:WebService>
> > > 
> > > <mx:Button id="allPerson" label="Get AllPerson"
> > >     click="try{
> > >               PersonService.getAllPerson.send();
> > >           }catch(e:Error){
> > >               Alert.show("Send: " + e.message);
> > >           }"/>
> > > 
> > > <mx:Script>
> > >   <![CDATA[
> > >           import mx.rpc.events.FaultEvent;
> > >           import mx.rpc.events.ResultEvent;
> > >           import mx.controls.Alert;
> > >           
> > >           public function log(event:ResultEvent) {
> > >           // function implementation
> > >                   trace("Result from WS: " +
> > > event.result.toString());
> > >           }
> > >           public function showErrorDialog(error:FaultEvent) {
> > >           // function implementation
> > >                   Alert.show("Error : " + error.fault);
> > >           }
> > >   ]]>
> > >   </mx:Script>
> > >           
> > > 
> > > There are my Web Service all flex application. It has call from 
> > > WSDL
> > > Send: Element http://www.ourtest.org:/getAllPerson not resolvable 
> > > error had come out.
> > > 
> > > How to fix it this error!
> > > 
> > > 
> > > 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
> > >
> > 
> > 
> > 
> > 
> > 
> > 
> > --
> > 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 --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet
Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/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



 





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/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