PDA

View Full Version : Problem calling SOAP call in Flex 2


rayj
10-06-2006, 06:26 PM
Calling SOAP calls in ActionScript is a pain! Why isn't there a proxy class generation tool for ActionScript?

At this point I'm stuck trying to make a call. I have the following code:

<mx:operation name="ListingsQuery" concurrency="single" fault="wsFault(event)" result="wsResult(event)" resultFormat="e4x">
<mx:request xmlns="http://paypercall.ingenio.com">
<listingsReq>
<terms>mortgage</terms>
<location>San Francisco</location>
<numListings>25</numListings>
<totalListingsCountLimit>0</totalListingsCountLimit>
<filterSpecification>
<localFilter>All</localFilter>
<adultFilter>AllListings</adultFilter>
</filterSpecification>
<ipAddress>127.0.0.1</ipAddress>
</listingsReq>
</mx:request>
</mx:operation>

The actual SOAP message sent, however, looks like this:
...(header excluded)
<SOAP-ENV:Body>
<item>
<terms>mortgage</terms>
<location>San Francisco</location>
<numListings>25</numListings>
<totalListingsCountLimit>0</totalListingsCountLimit>
<filterSpecification>
<localFilter>All</localFilter>
<adultFilter>AllListings</adultFilter>
</filterSpecification>
<ipAddress>127.0.0.1</ipAddress>
</item>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


The problem is the tag <listingsReg> has been turned into a tag called <item>!
How the heck did it become <item>? I don't even have that work in my code, the WSDL, no where! Freakin' odd and it's got me stuck.

Anyone have a clue as to what I may have done wrong?

Ray

FreakLucky
06-25-2009, 11:21 AM
Calling SOAP calls in ActionScript is a pain! Why isn't there a proxy class generation tool for ActionScript?

At this point I'm stuck trying to make a call. I have the following code:

<mx:operation name="ListingsQuery" concurrency="single" fault="wsFault(event)" result="wsResult(event)" resultFormat="e4x">
<mx:request xmlns="http://paypercall.ingenio.com">
<listingsReq>
<terms>mortgage</terms>
<location>San Francisco</location>
<numListings>25</numListings>
<totalListingsCountLimit>0</totalListingsCountLimit>
<filterSpecification>
<localFilter>All</localFilter>
<adultFilter>AllListings</adultFilter>
</filterSpecification>
<ipAddress>127.0.0.1</ipAddress>
</listingsReq>
</mx:request>
</mx:operation>

The actual SOAP message sent, however, looks like this:
...(header excluded)
<SOAP-ENV:Body>
<item>
<terms>mortgage</terms>
<location>San Francisco</location>
<numListings>25</numListings>
<totalListingsCountLimit>0</totalListingsCountLimit>
<filterSpecification>
<localFilter>All</localFilter>
<adultFilter>AllListings</adultFilter>
</filterSpecification>
<ipAddress>127.0.0.1</ipAddress>
</item>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


The problem is the tag <listingsReg> has been turned into a tag called <item>!
How the heck did it become <item>? I don't even have that work in my code, the WSDL, no where! Freakin' odd and it's got me stuck.

Anyone have a clue as to what I may have done wrong?

Ray
but i can't see the <item>! tag in you example. pls share the code.

Best,
Lucky