Sitemap

Amicuk Programming Answers

Webservice Response

-0001-11-30   Views:0

Advertisement

Hi Flex Experts, I have a sample webservice which returns the following response. <element name="GetCustResponse"> <complexType> <sequence> <element maxOccurs="unbounded" name="GetCustItem" nillable="

Hi Flex Experts,
I have a sample webservice which returns the following
response.
<element name="GetCustResponse">
<complexType>
<sequence>
<element maxOccurs="unbounded" name="GetCustItem"
nillable="true">
<complexType>
<sequence>
<element name="id" nillable="true" type="xsd:string"
/>
<element name="lname" nillable="true" type="xsd:string"
/>
<element name="mgr_id" nillable="true" type="xsd:string"
/>
</sequence>
</complexType>
</element>
<element name="SqlStateResponse" nillable="true"
type="tns1:SqlStateResponse" />
</sequence>
</complexType>
</element>
Based on the above response definition I should expect to see
result as follows : (There are 3 GetCustItem records)
result = mx.utils.ObjectProxy
GetCustItem = mx.collections.ArrayCollections
[0] = mx.collections.ArrayCollections
[1] = mx.collections.ArrayCollections
[2] = mx.collections.ArrayCollections
SqlStateResponse = mx.utils.ObjectProxy
But instead I am seeing the following : Basically the first
GetCustItem is treated as a column header!!!
result = mx.utils.ObjectProxy
GetCustItem = mx.collections.ArrayCollections
[0] = mx.rpc.xml.ComplexString
[1] = mx.rpc.xml.ComplexString
[2] = mx.rpc.xml.ComplexString
[3] = mx.collections.ArrayCollections
[4] = mx.collections.ArrayCollections
SqlStateResponse = mx.utils.ObjectProxy
Any comments ? Could be a problem with the Flex Client side
API ?
Thanks In Advance

The replay answer
Advertisement
OK.. I should have been more specific. The output I have
shown is from the DEBUG view of the Flex Builder and it's the
result object of the ResultEvent. The mapping shows how the
response objects are treated within the Flash world.
So in effect the client side Flash API is messing up the
response as it's converting the first array collection of customer
details as column header for the data.
Let me know if you need more details.
Thanks

Go to See the other 3 answers

Webservice response (XML response) with tag not mandatory

Category:DefaultRelease time:2015-10-11Views:130

Hello all, I have a problem with a webservice response. I implemented a wsdl who created some method to call webservices (Methox X, Y ,Z). I call the method 'X' with a table of string who have3 values in input, and I have in a  XML Answer of the webs[More]

Send back IDOC ack with details  to  webservice response ?

Category:DefaultRelease time:2015-10-11Views:130

Hi Friends , Can we send IDOC acknowledgment  as SOAP response . Our scenario is say for example create SO via Webservice call . Our requirement is to use IDOC only not RFC/BAPI etc . Even we know that IDOC is asynchronous we need to return the SO nu[More]

Webservice response times --How can we improve ?

Category:DefaultRelease time:-0001-11-30Views:130

Hi All, I am making two different calls to a Function module from java 1. web service   2. Jco When I go to STAD transaction i can see webservice response timings are more compared to Jco. What intresting here for is CPU timings and DB timings. Some[More]

WebService response charset problems

Category:DefaultRelease time:-0001-11-30Views:130

Some time ago I posted a problem regarding unicode characters in WebService responses from WL7.0. I received a patch that helped partially - after the patch was applied, WL no longer threw any exception when an utf character was included in the respo[More]

How to work with Arrays (or Lists) in WebService responses?

Category:DefaultRelease time:2015-10-11Views:130

Good Evening! In a BPEL process I invoked a some Webservice which return me a list of persons. Like this: <response> <personList> <person>Person1</person> <person>Person2</person> <person>Person3</person> &l[More]

Catching error messages in Webservice response

Category:DefaultRelease time:2015-10-11Views:130

Hi, The webservice I am trying to call from ABAP is throwing address not found exception which is caught by cx_ai_system_fault exception class. This class only returns <faultcode> and <faultstring> but not <ErrorCode> and <ErrorMsg>[More]

Setting webservice response content type / charset header

Category:DefaultRelease time:2015-10-11Views:130

I have a webservice .war file. I need to set the content-type/charset http header and add another http header. I wrote a filter to do that and had partial success. The other header (pics-label) is indeed sent in the response with the correct value. H[More]

WebService Response not resolvable

Category:DefaultRelease time:2015-10-11Views:130

When my webservice run send(), it returns the following error [WSDLError faultString="Element http://tempuri.org/dcli.xsd:dgInfoWrapper not resolvable" faultCode="WSDL.BadElement" faultDetail="null"] But dgInfoWrapper is the[More]

Webservice Response Attachement Deserialize XOP Include Error

Category:DefaultRelease time:2015-10-11Views:130

Hello experts, I am consuming a non SAP Webservice. The response contains a HTML attachment and the XOP Include element can not be interpreted. The Response: <ns2:html_content><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include&quo[More]

WebService response object in XML - parsing attributes

Category:DefaultRelease time:2015-10-11Views:130

Hi- new to Flex and I'm trying to parse out the attributes of the response object. I can get the entire object and see that its working, but I cant get just a single attribute. It pulls weather info for world cities. For example, I just want the loca[More]

Webservice response in BPM scenario

Category:DefaultRelease time:2015-10-11Views:130

I am doing a BPM scenario where I take data from ERP asynchronously using proxy and send it as a request to a third party synchronous webservice. The webservice gives a response and I am using the response to send it further along to other systems. E[More]

Hot
Anyone know of a way to have Test Stand create a database? My company standard MS Office suite is Microsoft Access 2010, and TestStand does not support the .accmdb extension type(format), so I have to create new databases using old formats. I'm worri [More]
In a form I am designing I need a 'clear' or 'reset' button that clears the entire form. This is easy to do, of course, but alas my form has a file upload field, and in Safari I just can't get that field to go back to it's default empty state. is the [More]
So my Lion install went fine except that my wife no longer comes up as user with a login. She does however appear user "System Preferences > Users & Groups" as a "group" and the directory is still there. How to restore?I'm happy [More]
I recently had to reset my computer, and now when I'm trying to download Adobe PS that I purchased directly from the site, the installer finishes about 50% then says it's failed because I have a counterfeit version. I know I did not purchase a counte [More]
hello... I have an iMac OS 9.2.2 and i am trying to update everything but am running into a problem finding a flash player that is supported inorder to view images or videos on the internet (ex.hallmark e-card). I have been battling and recently down [More]
There no After Effects App. in creative cloud. I cant download it. I need it badly Help me plsIf it doesn't show up, your system doesn't support it. Read the system requirements. MyleniumRead other 3 answers [More]
After purchasing Adobe Photoshop Elements 13 I go to download the product and receive a link to a page that say 'Access Denied'. This happens when I try to download the trial, use the Akami downloader, and when I try to download the file directly. An [More]
Trying to up date but box pops up saying "The ipod software update server couldn't be contacted" any help?Try: - Powering off and then back on your router. - iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update ser [More]
Hi: I'm hoping someone can shed some light on this strange case. A table is being loaded from a 3-party source. One column is a 5-digit identifier. For whatever reason a space is coming in as a 6th character. Let's ignore the fact that we can fix the [More]
Hi all, The description of java.nio.charset.Charset class says "Support for new charsets can be added via the service-provider interface defined in the CharsetProvider class. " but I even can't find the service-provider interface. Does anyone kn [More]