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
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