Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-23-2010, 02:26 PM   #1
flexnewbie06
Registered User
 
Join Date: Aug 2006
Posts: 2
Default [Flex2] Webservice - Complex Type - Enoding Error

I am getting an encoding error on sending this webservice to jboss server.

The webservice looks like:

<mx:WebService id="StatsWebservice" useProxy="false" showBusyCursor="false" fault="showFault(event)">
<mxperation name="retrieveReports" result="loadNewTabs(event)" fault="showFault(event)" resultFormat="e4x">
<mx:request xmlns="http://schemas.xmlsoap.org/wsdl/">
<RequestData>
<criteria>
<reportType>dslam</reportType>
<maxResults>100</maxResults>
<reportkey>
<name>node-id</name>
<value>{wsnodeId}</value>
</reportkey>
</criteria>
</RequestData>
</mx:request>
</mxperation>
</mx:WebService>

The error I get is :
fault occurred[FaultEvent fault=[RPC Fault faultString="Error #1069: Property name not found on String and there is no default value." faultCode="EncodingError" faultDetail="null"] messageId=null type="fault" bubbles=false cancelable=true eventPhase=2]


Can anyone tell me, does this mean when the request is packaged into the soap envelope it doesn't know how to encode the <name> element? Should this complex type be sent using some kind of definitions for encoding. The server is accepting a RequestData type with a criteria type...

Any help would be hugely appreciated!!
flexnewbie06 is offline   Reply With Quote
Old 04-24-2010, 05:33 PM   #2
drkstr
Flexpert
 
drkstr's Avatar
 
Join Date: Sep 2006
Location: Seattle, WA: USA
Posts: 1,587
Default

I'm not very familiar with SOAP, but I believe Flex Builder has a code generator for hooking up to SOAP services.

Here is some more information on the process.

http://www.adobe.com/devnet/flex/art...uilder_ws.html

You should be able to find an answer there.
drkstr is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:21 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.