Amicuk Programming Answers

Webservice Response

-0001-11-30   Views:0


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
<element name="GetCustResponse">
<element maxOccurs="unbounded" name="GetCustItem"
<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"
<element name="SqlStateResponse" nillable="true"
type="tns1:SqlStateResponse" />
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
Thanks In Advance

The replay answer
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.

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 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="[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]

How can I add data to a spreadsheet rather than creating a new one each time I download it.Hi, Normally, the browser shows a pointer over a hyperlink. You might have the script set up slightly different than Peter. A quick fix is as following: Identi [More]
Hello everyone .. i need help of your expertise I am creating billing document on R/3 and we have made it such that the F2 document flows onto GTS and creates a Customs export declaration The issue here is i have created the billing docs but i cannot [More]
Dear all , Finish material is not showing in the goods movement tab .So that movement type 101 is not possible at the prod ord confirmation . Goods movement is accepting in mb31. So plz suggest meAbhay, I think you are asking for Auto GR,whereby upon [More]
wat is the executable program to upload purchase  order data from flat file to purchase order application ME21Hi , Hope you can write a call transaction program for this  or you might go for this BAPI called <b>BAPI_PO_CREATE</b> to create pur [More]
Iphoto says  albums are currently synchronizing and wont quit. Force quit doesn't work either, what can I do?Shut the computer down and then relaunch.  If, when you relaunch iPhoto it starts the synchronizing again and you can't quit, do the same as [More]
Im making an applet that draws somehting and my drawing is bigger than my applet i want to only view it in a n applet viewer so how do i resize the window automaticly so at start up i get a big enough window to fit my drawing in.try n add this in ur [More]
how to upload data for many pernrs through a single fm in a standard infotype ???? please help me...CALL FUNCTION 'HR_INFOTYPE_OPERATION'       EXPORTING         INFTY                  = '2010'         NUMBER                 = P2010-pernr "wa_ot_calc [More]
On both my Macs - a Mac mini and a MacBook Air - the Genius Mix item does not display in the sidebar. I've tried turing off and on Genius, updating it, etc, and nothing works. This did work when the feature was first released, and I turned it off aft [More]
Hi All, Pls let me know any one about the Functionality in MIRO and J1IEX. How the TAX code would flow in both, and the Tax rates in MIRO and J1IEX. And these ED, Basic Ecess & Sec Higher Edu Cess where it will be stord in different table. Let me kno [More]
PS CS6 update 13.0.5 will not install. Installation failed. Error Code: U44M2P7. What is the problem. please?Are you on a Mac and have a perpetual license (non-subscription) to CS6?   Otherwise the update is not applicable. If you are indeed on a Mac [More]