Web servise  response problem

Hello all. I use  webservise in my web applicatiuon(Flex 3).I request to web servise and  receive  result with successully.
But sometimes I cannot result of web servise,because I receive this error messages.
1.Response cannot be decoded Raw responce/
2.RangeError Index '0' specified is out of bounds/
code example
<mx:WebService id="srv1" wsdl="http://localhost:8080/Report_/get_report_typesService?WSDL" endpointURI="http://localhost:8080/Report_/get_report_typesService" fault="defaultFault(event)">
     <mx:operation name="get_reports" resultFormat="xml"    result="get_input_data(event)" />
     </mx:WebService>   
srv1.get_reports.send(parseInt(text_pasword.text));
var get_xml_reports:XML=new XML(evt.result);
     xmlListColl = new XMLListCollection(get_xml_reports.children()._report_name);             

I tried surround try{}catch{}. servise is running and I receive.But still sometimes servise is not responsed and I still  same error mesages
1.Response cannot be decoded Raw responce/
2.RangeError Index  '0' specified is out of bounds/

Similar Messages

  • How to use a Web Service Response

    In the snps_users documentation it seems to be really easy but in fact...
    After invoking my web service I retrieve a XML file which is my response then we would like to use it.
    As written in the documentation I Export Response in XSD file, I create my XML Model but How to reverse the XSD ???
    There's 4 references to XSD into all the snps_users documentation but no one talking about.
    Moreover it's written See Creating and Reverse-Engineering a
    Model for an XML file for more information and that's what I'm doing but no way...
    So without the XSD I m trying to use the Response file like an XML file but I always have an error which looks like :
    java.sql.SQLException: No root found in the DTD file
    The Web Service Response XML File use NameSpace could the problem come from here ???
    If someone ever use it ...
    Thanks in advance.
    BM

    When I specify the XSD It raises another error,
    my URL is :
    jdbc:snps:xml?f=C:/Temp/File.xml&d=C:/Temp/File.xsd&s=REPON&nspg=xml
    Error message:
    java.sql.SQLException: A SAXException was caught while reading the model saying [Element value has no type]
    The XSD and the XML are generated by ODI after invoking a Web Service...
    Any idea ???

  • Set listbox items from web service response

    Hi All
    I am trying to set list box items from a web service response. Couple of issues over here:
    1. The user should be able to select multiple items from the list. Hence if I set "Allow multiple values" and set Commit on "exit", then after the web service returns the output, no data is displayed in the listbox. I need to click inside the list box to see the data returned by the web service. How to overcome this..??  ( However this problem (clicking inside the listbox to see the items) does not exist if "Allow multiple values" is unchecked and Commit is set on "Select". )
    2. After the list box is filled up, certain default values should be selected. This selection is based on one of the response field (which is actually a table with multiple values... ). Hence, how to capture this response field and set the default values in the above list..??
    3. The same case for a dropdown. The values are visible in dropdown. However, a default value should be selected and displayed after returning a response from web service. Again, this default value is dependant on another field in the response as in point no.2
    I am trying to use postExecute event as described in [this|http://forms.stefcameron.com/2009/03/23/pre-process-web-service-responses/] link...however not able to achieve the functionality. Please provide suggestions / inputs.
    Thanks
    Deepak

    Hello,
    first: I don´t know anything about the right solution. I am unaware of the existence of the solution, because there were quite many of question about this multiple selection problem and I don´t remember a single "answer".
    I can recommend you to simplify everything and create the functionality yourself. I have done that before to avoid these "Adobe-standard" problems. If you have a problem with autofill of the object, ask your WS to send you a single string and pass it yourself using scripting (JS).
    And if you have problems with multiple selection, create your own field/ object. Get the string of values, parse it, create multiple lines of the dynamic table with some suitable tool to check/ select the rows you need (use checkbox for example, and your text as a table row). This way you can selected anything you want with no problems at all. It wil only cost you some extra work.
    Regards, Otto

  • Retrieve error message of SAP provided web service in web service response

    Hi All,
    We have a SAP provided web service that sometimes fails to process data it is called with. This is not a problem as the data sometimes is just plain wrong (i.e. date field contains text). However, the error is only logged in SAP and can only be queried using SRT_UTIL.
    The problem is that the error is not reported back via the response. How can we set up the web service so that the error could be displayed by the calling party without logging into SAP?
    Thanks for the help in advance.
    Best Regards,
    Daniel

    Hi Calvin,
    The WS is indeed synchronous. The problem is not whether the error is captured or not. It is captured indeed but it is logged inside SAP only and not returned via the Web Service response mechanism. The error message says that error message can be retrieved using SRT_UTIL.
    This is a major problem as the users of the outside system calling SAP have no right to use SRT_UTIL to track down the error. They need to contact SAP basis in order to get to the end of it.
    What we need to achieve is to get back the same error message that can be seen with SRT_UTIL via the web service.
    Thanks.

  • How to use wsit with jeveloper for developing and testing web servises

    hi, all. Just want to ask one realy simple quastion.
    I'm new with web servises, so my question may be doesn't fall well into this section , but this community looks friendly for me and i hope to get some usefull links and advises.
    First of all could anybody say me if i'm righ or wrong with the following suggestions:
    1. What is the principal difference between axis 2 and wsit products? Do i understand right that they both extend or support so called jax-ws2 API and represent different approaches in that (are they competitors?), or this products serve for different sakes at all and could be used together? I want to understand without much digging how these products correlate with each other...
    2. If i'm right what is oracle favor? And if oas standard supply doesn't include wsit, how to install and use this product for creating interoperable web servises in jdeveloper enviroment? ...or jax-ws 2.1 wasn't included in oc4j v10 and will be the part of v11 only?
    Thanks in advance. Alex.
    Message was edited by:
    Timin
    Message was edited by:
    Timin

    Both Axis and WSIT are not Oracle products - so I'm not exactly sure why would you post the question here.
    JDeveloper has native support for JAX-RPC based Web services development in 10.1.3 and JAX-WS support in 11 - check out the online demos linked from the home page to see these in action.

  • New browser window from CRM Web UI causes problems

    Hi Experts,
    We have several links to internal web sites that CRM users can access from the web UI.  Problem is, whenever one of these links are selected, the user looses whatever it was they were doing in CRM and the main window displays the following message:
    The object you have selected is starting in a new browser window. You can continue working normally in the current application. However, you may have to navigate back to the page you were working on.
    Anyway to prevent this from happening?   Would very much appreciate any advice.
    Thanks,
    Stephen Brewer

    Hello Brewer,
    If your requirement is to open some URL say google.com etc in a now window, then there are only 2 ways
    1) Use Transaction Launcher
    2) Use PopUp Window.
    1) If you use transaction launcher, and created the link in your direct link group then on click of the link, the URL will open in new window but you cant avaoid the message that you get in the current window. Also, if users POPUP Blocker is ON, user will never come to know why the new window has not launch.
    2) This is very simple and straight forward approch for opening URL. However, POPUP windows in WEB UI are modal windows, so say on click on a button on Account Overview Screen, i open google.com in a popup then unless i close this popup , i can not work on the account overview screen . However, you can see the account overview screen as it is and you can resume back when the popup is closed. Also you can define the even handler on close event of pop up so you can pass the data to & fro between the webclient view and the pop up.
    to open some extrenal URL in a PopUp , You will need to create a blank view and attach it to a window. In .htm file of the view, you can use tag IFRAME and call your external URL here.
    Hope its helpful.
    Thanks & Rregards
    Prasad
    PS : the popup blocked problem will still be there however, it flashes a message like pop up blocker is ON in case of using popup window

  • Web service invocation problem on host hostname and port 8000 protocol : http logical port name : LP_WS_SMDAGENT_MONITORING

    hello colleagues,
    In the phase Connect Diagnostics dont show the Agent available in SLD, but when go to SLD i have the agents,
    Error,
    Connect Diagnostics Agent
    The table does not contain any data
    Agent availables in all SLD
    SOAP:1.007 SRT: Unupported xstream found: ("HTTP Code 401 : Unauthorized")
    Web service invocation problem on host hostname and port 8000 protocol : http logical port name : LP_WS_SMDAGENT_MONITORING
    Thanks

    OK, then pls follow below steps;
    - Go to step 'Create Users' in solman_setup System Preparation scenario and make sure the user SM_INTERN_WS has a green status. Use the 'Test Login' button to make sure the user is not locked and has correct credentials maintained in solman_setup
    - Immediately after checking the user status, navigate to Configure Connectivity->Enable Web Services and execute again the 'Create Logical Ports' automatic activity, in order to propagate the correct credentials to the Logical Port definitions.
    - If the above operation is not successful, repeat the two steps above, providing a different user Id in 'Create Users' step, eg SM_INTERN_W1. This will prevent situations where the user gets locked by Logical Ports using an obsolete password.
    Let me know the results.
    Regards,
    Vivek

  • Web service response processing inside a BPM

    Hi Experts,
    Please can you let me know if it is possible to achieve the following inside a BPM:
    u2022     Once you getting the web service  SOAP response, determine if itu2019s a SOAP fault or a normal web service response.
    u2022     If itu2019s a SOAP fault, create a retry loop with a wait step inside the BPM to try and retry the process (perhaps 5 times in 1 minute intervals).
    u2022     After the retry intervals, if the message is still in a failed step, force the BPM to go into an error state
    u2022     If the Web Service returns a normal response, log the response inside a database table and end the BPM
    If it is possible, please can you provide an example?
    Thank you,
    Brendon

    Hi
    Have you found the workaround?
    Sorry for refreshing topic. Flag mustUnderstand ='1' in response is unussual thing.
    BR

  • Web service response contains SOAP Headers with "mustUnderstand" true

    Hi
    I have a requirement where in I have to consume a web service as adaptive web service model, and while executing the service pass a mandatory parameter to the soap header. We are able to set the mandatory parameter to the soad header. We got the code snippet to do this from a wiki link
    http://wiki.sdn.sap.com/wiki/display/WDJava/FAQ-Models-AdaptiveWebService#FAQ-Models-AdaptiveWebService-WhatarethefunctionalgapsofthecurrentAdpativeWSModelImporter%3F
    On executing the service now through web dynpro we are getting the below error
    "Web service response contains SOAP Headers with "mustUnderstand" true which are not handled by the client runtime"
    Any thoughts on how to handle this mustUnderstand attribute with some code snippet? Appreciate all help.
    Thanks,
    KN.

    Hi
    Have you found the workaround?
    Sorry for refreshing topic. Flag mustUnderstand ='1' in response is unussual thing.
    BR

  • How to create web servise for Material Master catalog

    Hi Experts
    We would like to have a web servise foe the material master catalog.
    Please advise hoe we can implement this.
    Thanks,
    moshe

    hi stein,
    once you check below link it's helpful for your requirement :
    <IRRELEVANT LINKS>
    thanks,
    Edited by: Prateek Raj Srivastava on Dec 12, 2011 9:34 PM

  • How to develop and test web servises with wsit in jdeveloper enviroment

    hi, all. Just want to ask one realy simple quastion.
    I'm new with web servises, so my question may be doesn't fall well into this section , but this community looks friendly for me and i hope to get some usefull links and advises.
    First of all could anybody say me if i'm righ or wrong with the following suggestions:
    1. What is the principal difference between axis 2 and wsit products? Do i understand right that they both extend or support so called jax-ws2 API and represent different approaches in that (are they competitors?), or this products serve for different sakes at all and could be used together? I want to understand without much digging how these products correlate with each other...
    2. If i'm right what is oracle favor? And if oas standard supply doesn't include wsit, how to install and use this product for creating interoperable web servises in jdeveloper enviroment? ...or jax-ws 2.1 wasn't included in oc4j v10 and will be the part of v11 only?
    Thanks in advance. Alex.
    Message was edited by:
    Timin
    Message was edited by:
    Timin

    You have to use any type of Version Control (e.g subversion).
    You can read about Version Control. But I will talk about subversion in brief description:
    1- Setup subversion server.
    2- From subversion server create new Repository and define users (or use users from active directory).
    3- From JDeveloper Main Menu --> View --> Team -- > Versioning Navigator --> Create new connection to your subversion repository.
    4- Create new ADF application in JDeveloper.
    5- In Jdeveloper Main Menu ---> Versioning -- > Version Application -- > select the subversion connection.
    6- Add the application in subversion.
    7- All developer should make a connection to the repository they will see the ADF application.
    8- Right Click on the ADF application --> Check Out.
    9- All developer will take a copy of the ADF application in their local machine.
    10- If developer make changes in the application he can commit changes to repository and all others users can update changes.
    This is a quick and brief description of how to use subversion for team development.

  • Web Service response message problem

    Hi at all, I've got a problem with WebService component.
    I need to invoke the service and use the xml returned to fill
    the title of a panel.
    The service declaration is:
    <mx:WebService id="feedRequest"
    wsdl="
    http://jsuite:8080/axis/services/SoaTest?wsdl"
    useProxy="false"
    showBusyCursor="true"
    >
    <mx:operation name="getResult">
    <mx:request>
    <par>Test value</par>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    The xml return message is:
    <ROW><ROWSET><PARAMETRO>Test
    value</PARAMETRO></ROW></ROWSET>
    Now I want to fill the panel with "Test value" so:
    <mx:Panel x="10" y="10"
    width="475"
    height="400"
    layout="absolute"
    title="{feedRequest.getResult.lastResult.ROWSET.ROW.PARAMETRO}">
    The first row of mxml invoke the service:
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute"
    creationComplete="feedRequest.getResult.send()">
    The panel title is empty.... why ?
    If I set title="{feedRequest.getResult.lastResult}" the panel
    title is filled by the entire xml returned from service.....
    Could anyone explain to me what wrong in my test application
    Thank you

    One thing to remember about E4X syntax is that you don't
    explicitly refer to the root node. That's because the XML object
    is the root node. So in your corrected example, what you
    want is:
    feedRequest.getResult.lastResult.ROW.PARAMETRO
    The "lastResult" variable actually refers to the ROWSET node.
    One question though: Since this is a row set, do you have
    more than one ROW child? If so, the syntax needs to change to:
    lastResult.ROW[n].PARAMETRO
    where n is the n'th ROW child.
    Also, when you're debugging, put in some trace statements so
    you can see the structure of what you're getting. eg:
    trace(feedRequest.getResult.lastResult.toXMLString());

  • How can prevent http chunks receiving in a web service response?

    Hi guys,
    I'm developing a WS client mobile application, which consumes a Web Service (java based).
    Usually it works fine, but sometimes in the clinet I get: java.rmi.MarshalException: Unexpected Exception : unexpected end of stream
    This error occur when some big data has to be received from the server.
    I've done some research on this problem and find that this is caused because of sending of th response via HTTP chunks. Somehow the server and client sides does not
    communicates as expected.
    I have no access to the Web service implementation.
    Is there a workaround to solve this problem on the client side?
    Can I force WS client to not receive the response in http chunks?
    Thanks

    I managed to fix it by using the well known pattern:
    Web Service on the server(1) <--> Web Application(2) <--> Mobile Client(3).
    For communication between (1) and (2) was by using WS, and between (2) and (3) was made by plain http connection. Now the application is portable and don't have any limitations.
    radarada, thanks for the advice. It may work, may be I can try it when I have some time.
    Vladdy

  • Web Service Response Format (1.4 JAX/RPC)

    Hi, i have built a WS using a JDeveloper wizard to create a Java (1.4 JAX/RPC)Web Service.
    The problem is i need to be very specific about the format of the response. A typical response would be something like
    <env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://tempuri.org/">
    <env:Body>
    <ns0:SubmitMessageResponse>
    <ns0:SubmitMessageResult>Response String</ns0:SubmitMessageResult>
    </ns0:SubmitMessageResponse>
    </env:Body>
    </env:Envelope>
    This is a perfectly accepted example of XML, however the system that makes the call is not happy with the namespace tags.
    does anyone know of a way to format the response so it does not use namespacce tags.
    The result would be something similar to
    <env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://tempuri.org/">
    <env:Body>
    <SubmitMessageResponse>
    <SubmitMessageResult>Response String</SubmitMessageResult>
    <SubmitMessageResponse>
    </env:Body>
    </env:Envelope>
    I know this can be achieved by generating a web service that complies to the 1.3 standard, ideally i'd like to avoid this. Additionaly, altering the calling system is not an option.
    Many thanks
    Chris

    Hi,
    I cannot confirm whether or not this is a known issue or even a defect. Out of instinct I am building Web Services proxies in their own project because it generates artifacts e.g. for the return types that I don't want to see lying around in my Web Services project. So I assume that it is considered best practices to not put them into the same project to avoid file overrides
    Frank

  • Web service response doesn't include DTO contents

    Hi,
    I've created an EJB-based web service that takes two input parameters and returns as a response, a data transfer object (DTO) that contains several boolean values.  When I test this web service in the Web Service Navigator however, the response object contains a flat DTO-- meaning the DTO contains no contents.  For example...
    Incoming parameters
        userID (String) = some user ID
        systemID (String) = some system ID
    Outgoing parameters
        response
            (nothing contained within response--
             there should be boolean values here)
    Documentation doesn't seem to address this problem.  Does anyone know how to resolve this?
    Thanks in advance,
    Amy

    Check out, that the URL of the WebService is correct:
    "http://<YourServer>:<<b>ABAP_Port</b>>/sap/bc/srt/xip/sap/SXIDAL_FLIGHTSEATAVAIL_CHECK?sap-client=<<b>YourClient</b>>"
    Change the default values if necessary.
    Check in the client, if the role SAP_XI_APPL_SERV_USER (which should be applied to your user) is generated and has no errors.
    Regards
    Stefan

Maybe you are looking for