Getting Fault String in Web Service response

Hi,
I developed a Web Service and deployed it on Glassfish Server. When I am trying to call web service some times I am getting following error
<faultstring>String index out of range: 0</faultstring>What is the meaning of this ? How to solve this ?
Regards,
Ajay Sharma

Either cal it with values that do not cause a String index to be out of range or change the webservice to deal with the case that causes this differently. Either way the starting point is finding out where in the webservice the String index is out of range.

Similar Messages

  • How to get, handle and check web service response?

    Hello All!
    We test web services and try to use e-Tester for this.
    We have some problems with validation of service response. Maybe somebody can help or advice us?
    Service method returns the list of Cards (total is about 300 items) with attributes.
    Below is the sample of one card properties.
    - <Cards>
    - <UserCard>
    - <characteristics>
    - <item>
    <Name>ARM</Name>
    <Value>78</Value>
    </item>
    - <item>
    <Name>BAT</Name>
    <Value>40</Value>
    </item>
    - <item>
    <Name>SPD</Name>
    <Value>30</Value>
    </item>
    - <item>
    <Name>STR</Name>
    <Value>40</Value>
    </item>
    </characteristics>
    <ID>1</ID>
    <FirstName>A.J.</FirstName>
    <LastName>Burnett</LastName>
    <PlayerName>A.J. Burnett</PlayerName>
    - <Team>
    <Name>Blue Jays</Name>
    <City>Toronto</City>
    </Team>
    <cardid>1</cardid>
    - <Flags>
    <IsFavorite>false</IsFavorite>
    <IsForPosters>false</IsForPosters>
    <IsForTrade>false</IsForTrade>
    <IsToppCard>false</IsToppCard>
    </Flags>
    <Count>0</Count>
    </UserCard>
    + <UserCard>
    + <UserCard>
    + <UserCard>
    In one test case we need to check the state of Count property (0 or 1) for all cards, count the quantity of cards with Count=1 and check that it equals to 8.
    So the question is how to get the service request to the VBA for analyzing and verification?
    Thanks a lot!

    Have any other ideas?

  • 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

  • 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

  • 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

  • Fault Handling in Web Services

    Hi,
    Can anyone please point me to any document which explains about the fault handling in Web Services using Bottom-up Approach?
    Thanks

    Can you give some further information?
    Do you want to throw a fault an your webservice and you are asking how this fault is seen by the service requestor? If you throw a exception it is mapped to
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="RuntimeFault" targetNamespace="http://schemas.oracle.com/bpel/extension" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/">
    <message name="RuntimeFaultMessage">
    <part name="code" type="xsd:string"/>
    <part name="summary" type="xsd:string"/>
    <part name="detail" type="xsd:string"/>
    </message>
    </definitions>
    Have you tried
    http://www.oracle.com/technology/products/ias/bpel/pdf/orabpel-Training-Segment06.pdf?
    This is top down but perhaps you can learn from it.

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

  • Generating Faults in a Web Service

    I'm having trouble getting my web service to generate a fault message in the WSDL. Even though the jws class throws exception com.bea.jws.SoapFaultException, there is no sign of a fault message in the WSDL that I generated using Workshop. In the sample code below I tried generating the SoapFaultException in a couple of different ways. How do I get Workshop to generate the fault message in the WSDL for me?
    public class pathwayWS implements com.bea.jws.WebService
    * @common:control
    private empPathway.pathwayJCS.pathway pathway;
    static final long serialVersionUID = 1L;
    * @common:operation
    public EmpAddResponse0 empAdd (message.inEmpAdd addMessage) throws com.bea.jws.SoapFaultException
    EmpAddResponse0 m_employee;
    EmpAddResponse1 m_error;
    Object response = pathway.addEmployee(empPathway.empConstants.pathwayName,
    empPathway.empConstants.serverClassName,
    addMessage.employeeInfo.employee_number,
    addMessage.employeeInfo.empName.first,
    addMessage.employeeInfo.empName.last,
    addMessage.employeeInfo.empName.middle,
    addMessage.employeeInfo.regnum,
    addMessage.employeeInfo.branchnum);
    if ( response instanceof EmpAddResponse0) {
    m_employee = (EmpAddResponse0) response;
    } else if ( response instanceof EmpAddResponse1) {
    m_error = (EmpAddResponse1) response;
    XmlString fault = XmlString.Factory.newInstance();
    fault.set(m_error.reply_code);
    throw new com.bea.jws.SoapFaultException(fault);
    } else {
    m_error = new EmpAddResponse1();
    m_error.reply_code = "-1";
    m_error.error_text = "Unexpected response received from pathway control";
    XmlString empErrorDoc = XmlString.Factory.newInstance();
    empErrorDoc.set(m_error.reply_code);
    com.bea.jws.SoapFaultException fault = new com.bea.jws.SoapFaultException(new XmlObject[]{empErrorDoc});
    throw fault;
    return m_employee;
    }

    The sample code in the PDK uses:
            iusermaint = userFactory.newUser(username);
            //Save the data permanently.
            iusermaint.commit();
            //Save the new user's unique name and ID to the strings.
            uniqueName = iusermaint.getUniqueName();
            uniqueID = iusermaint.getUniqueID();
            //Create user account using the unique name and ID read
            //from the system before and the password read from the bean.
            IUserAccount iUserAccount = accountFactory.newUserAccount(uniqueName, uniqueID);
            iUserAccount.setPassword(password);
            //Save the data permanently.
            iUserAccount.commit();
    The difference to your code is that they appear to get the uniquieID from the just created user, whereas you have hardcoded it...
    Cheers

  • Re: Why doesn't WL7.0 support get/post bindings for web services ...

    hi!!!
    Could you pls point to any code example.
    thanks
    Pushpa
    "Richard Berger" <[email protected]> wrote:
    >
    Manoj: Thanks for the answer - do you have or can you point me at any
    code samples
    that accomplish this? (Yes, .NET is limited to strings/ints in their
    get/post
    bindings).
    Thanks so much!
    RB
    PS - Also, can you explain any apparent discrepancy between your answer
    and what
    the WL documentation stated (again, it may be my misunderstanding).
    "manoj cheenath" <[email protected]> wrote:
    WL 7.0 does allow you to access the web service through
    the browser. It even allows you to invoke service methods
    with complex type arguments (.Net only supports primitive
    types) and also to view the request and response soap
    message for the invocation.
    regards,
    -manoj
    "Richard Berger" <[email protected]> wrote in message
    news:[email protected]...
    This might be a naive question, but according to the documentation,WL 7.0
    does
    not support http post/get bindings for web services. Thus, for meto
    access a
    web service, I need to write a "middle tier" of some sort (I used
    the
    automatically
    generated Java proxy code and JSP). All works fine, but it seems
    like
    it
    would
    sure be nice to have HTML forms access web services without havingto
    write a
    middle tier.
    NET does this and it is extremely useful - is there a reason that
    BEA
    chose not
    to provide this feature? (e.g. is it architecturally unsound in anyway?
    or is
    there an easy way to simulate it?). Given some of the Web Workshoppositioning
    re: ease of use and .NET comparison, this seems like an omission.
    Any insights are greatly appreciated.
    Enjoy,
    RB
    PS - Here's the info from the documentation
    Web Services Description Language (WSDL) 1.1 Specification
    WSDL is an XML-based language that describes Web services. WSDL definesWeb services
    as a set of endpoints operating on messages; these message containeither
    message-style
    or RPC-style information. The operations and messages are describedabstractly
    in WSDL, and then bound to a concrete network protocol and messageformat
    to define
    an endpoint. Related concrete endpoints are combined into abstractendpoints (services).
    WSDL is extensible to allow the description of endpoints and theirassociated
    messages regardless of what message formats or network protocols areused
    to communicate,
    however, the only bindings described in the specification describehow to
    use
    WSDL in conjunction with SOAP 1.1, HTTP GET/POST, and MIME.
    Note: WebLogic Server supports only SOAP 1.1 bindings.
    The WSDL 1.1 Specification is available at http://www.w3.org/TR/wsdl.

    This isn't a straight FORM Post as in the http binding support in WSDL. It posts
    a soap message.
    It's apparent that Workshop supports form-post and form-get.
    But I dont see how it is done with straight WebLogic webservices. Does WebLogic
    server read the web-services.xml or the WSDL file? I dont see a way to put in
    http-post binding in the former and in the latter it seems to be ignored.
    Can someone clarify.
    Thanks.
    Chu-chi
    "manoj cheenath" <[email protected]> wrote:
    Here is a live example:
    http://65.193.192.35:7001/base/SoapInteropBaseService
    Here is an example that you can download:
    http://manojc.com/?sample2
    This is how you run it:
    http://manojc.com/?tutorial/doc/howtorun.html
    More info can be found from the edocs:
    7.0:
    http://edocs.bea.com/wls/docs70/webserv/index.html
    8.1:
    http://edocs.bea.com/wls/docs81/webserv/index.html
    Regards,
    -manoj
    http://manojc.com
    "pushpa krishna" <[email protected]> wrote in message
    news:[email protected]...
    hi!!!
    Could you pls point to any code example.
    thanks
    Pushpa
    "Richard Berger" <[email protected]> wrote:
    Manoj: Thanks for the answer - do you have or can you point me at
    any
    code samples
    that accomplish this? (Yes, .NET is limited to strings/ints in their
    get/post
    bindings).
    Thanks so much!
    RB
    PS - Also, can you explain any apparent discrepancy between your answer
    and what
    the WL documentation stated (again, it may be my misunderstanding).
    "manoj cheenath" <[email protected]> wrote:
    WL 7.0 does allow you to access the web service through
    the browser. It even allows you to invoke service methods
    with complex type arguments (.Net only supports primitive
    types) and also to view the request and response soap
    message for the invocation.
    regards,
    -manoj
    "Richard Berger" <[email protected]> wrote in message
    news:[email protected]...
    This might be a naive question, but according to the documentation,WL 7.0
    does
    not support http post/get bindings for web services. Thus, for
    me
    to
    access a
    web service, I need to write a "middle tier" of some sort (I used
    the
    automatically
    generated Java proxy code and JSP). All works fine, but it seems
    like
    it
    would
    sure be nice to have HTML forms access web services without havingto
    write a
    middle tier.
    NET does this and it is extremely useful - is there a reason that
    BEA
    chose not
    to provide this feature? (e.g. is it architecturally unsound in
    any
    way?
    or is
    there an easy way to simulate it?). Given some of the Web Workshoppositioning
    re: ease of use and .NET comparison, this seems like an omission.
    Any insights are greatly appreciated.
    Enjoy,
    RB
    PS - Here's the info from the documentation
    Web Services Description Language (WSDL) 1.1 Specification
    WSDL is an XML-based language that describes Web services. WSDL
    defines
    Web services
    as a set of endpoints operating on messages; these message containeither
    message-style
    or RPC-style information. The operations and messages are describedabstractly
    in WSDL, and then bound to a concrete network protocol and messageformat
    to define
    an endpoint. Related concrete endpoints are combined into abstractendpoints (services).
    WSDL is extensible to allow the description of endpoints and theirassociated
    messages regardless of what message formats or network protocols
    are
    used
    to communicate,
    however, the only bindings described in the specification describehow to
    use
    WSDL in conjunction with SOAP 1.1, HTTP GET/POST, and MIME.
    Note: WebLogic Server supports only SOAP 1.1 bindings.
    The WSDL 1.1 Specification is available at http://www.w3.org/TR/wsdl.

  • Why doesn't WL7.0 support get/post bindings for web services ...

    This might be a naive question, but according to the documentation, WL 7.0 does
    not support http post/get bindings for web services. Thus, for me to access a
    web service, I need to write a "middle tier" of some sort (I used the automatically
    generated Java proxy code and JSP). All works fine, but it seems like it would
    sure be nice to have HTML forms access web services without having to write a
    middle tier.
    .NET does this and it is extremely useful - is there a reason that BEA chose not
    to provide this feature? (e.g. is it architecturally unsound in any way? or is
    there an easy way to simulate it?). Given some of the Web Workshop positioning
    re: ease of use and .NET comparison, this seems like an omission.
    Any insights are greatly appreciated.
    Enjoy,
    RB
    PS - Here's the info from the documentation
    Web Services Description Language (WSDL) 1.1 Specification
    WSDL is an XML-based language that describes Web services. WSDL defines Web services
    as a set of endpoints operating on messages; these message contain either message-style
    or RPC-style information. The operations and messages are described abstractly
    in WSDL, and then bound to a concrete network protocol and message format to define
    an endpoint. Related concrete endpoints are combined into abstract endpoints (services).
    WSDL is extensible to allow the description of endpoints and their associated
    messages regardless of what message formats or network protocols are used to communicate,
    however, the only bindings described in the specification describe how to use
    WSDL in conjunction with SOAP 1.1, HTTP GET/POST, and MIME.
    Note: WebLogic Server supports only SOAP 1.1 bindings.
    The WSDL 1.1 Specification is available at http://www.w3.org/TR/wsdl.

    Manoj: Thanks for the answer - do you have or can you point me at any code samples
    that accomplish this? (Yes, .NET is limited to strings/ints in their get/post
    bindings).
    Thanks so much!
    RB
    PS - Also, can you explain any apparent discrepancy between your answer and what
    the WL documentation stated (again, it may be my misunderstanding).
    "manoj cheenath" <[email protected]> wrote:
    WL 7.0 does allow you to access the web service through
    the browser. It even allows you to invoke service methods
    with complex type arguments (.Net only supports primitive
    types) and also to view the request and response soap
    message for the invocation.
    regards,
    -manoj
    "Richard Berger" <[email protected]> wrote in message
    news:[email protected]...
    This might be a naive question, but according to the documentation,WL 7.0
    does
    not support http post/get bindings for web services. Thus, for meto
    access a
    web service, I need to write a "middle tier" of some sort (I used theautomatically
    generated Java proxy code and JSP). All works fine, but it seems likeit
    would
    sure be nice to have HTML forms access web services without havingto
    write a
    middle tier.
    NET does this and it is extremely useful - is there a reason that BEAchose not
    to provide this feature? (e.g. is it architecturally unsound in anyway?
    or is
    there an easy way to simulate it?). Given some of the Web Workshoppositioning
    re: ease of use and .NET comparison, this seems like an omission.
    Any insights are greatly appreciated.
    Enjoy,
    RB
    PS - Here's the info from the documentation
    Web Services Description Language (WSDL) 1.1 Specification
    WSDL is an XML-based language that describes Web services. WSDL definesWeb services
    as a set of endpoints operating on messages; these message containeither
    message-style
    or RPC-style information. The operations and messages are describedabstractly
    in WSDL, and then bound to a concrete network protocol and messageformat
    to define
    an endpoint. Related concrete endpoints are combined into abstractendpoints (services).
    WSDL is extensible to allow the description of endpoints and theirassociated
    messages regardless of what message formats or network protocols areused
    to communicate,
    however, the only bindings described in the specification describehow to
    use
    WSDL in conjunction with SOAP 1.1, HTTP GET/POST, and MIME.
    Note: WebLogic Server supports only SOAP 1.1 bindings.
    The WSDL 1.1 Specification is available at http://www.w3.org/TR/wsdl.

  • Differing Web Service responses between 10.1.3.3 and 11g

    In our production environment we have deployed several ESB projects. I am currently going through these projects and attempting to update them to 11g. These projects follow the same basic design. In the 101.3.4 environment they consist of an exposed routing service generated from a schema document which routes to a Web service adapter. The exposed service is called from our asset management system the service adapter is invoking a PeopleSoft Asynchronous one way web service. In 11g this became two web service adapters (the first as an exposed one-way service) linked by a mediator.
    In our 101.3.4 environment this process worked without exceptions. After upgrading the project our asset management system would raise an exception after each call to the exposed service. Interestingly I can check em and also PeopleSoft and the payload is successfully delivered. When I review the instance in em there are no faults or exceptions. I have auditing turned on and can see that the service, mediator and reference steps have all successfully completed. When I look at the log for the particular instance I do receive a warning which states:
    Error parsing envelope: most likely due to an invalid SOAP message.: Unexpected EOF in prolog\r\n at [row,col {unknown-source}]: [1,0]
    I used soapUI to debug the service calls. If I call the PeopleSoft web service without using the mediator project I receive the following response:
    Tue Aug 18 20:55:37 PDT 2009:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
    Tue Aug 18 20:55:37 PDT 2009:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
    Tue Aug 18 20:55:37 PDT 2009:DEBUG:<< "Date: Wed, 19 Aug 2009 03:57:01 GMT[\r][\n]"
    Tue Aug 18 20:55:37 PDT 2009:DEBUG:<< "Content-Length: 0[\r][\n]"
    Tue Aug 18 20:55:37 PDT 2009:DEBUG:<< "Content-Type: text/xml; charset=UTF-8[\r][\n]"
    Tue Aug 18 20:55:37 PDT 2009:DEBUG:<< "X-Powered-By: Servlet/2.4 JSP/2.0[\r][\n]"
    When I call the exposed service in my 10.1.3.4 ESB project I receive the following response:
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< "Date: Wed, 19 Aug 2009 03:57:25 GMT[\r][\n]"
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< "Content-Length: 212[\r][\n]"
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< "Content-Type: text/xml;charset=utf-8[\r][\n]"
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< "X-Powered-By: Servlet/2.4 JSP/2.0[\r][\n]"
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< "[\r][\n]"
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">[\n]"
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< " <soapenv:Body/>[\n]"
    Tue Aug 18 20:57:26 PDT 2009:DEBUG:<< "</soapenv:Envelope>"
    You will notice that what is returned is a soap envelope which has an empty body.
    If i then make the call through the 11g exposed service I get the following response:
    Tue Aug 18 20:58:46 PDT 2009:DEBUG:<< "HTTP/1.1 202 Accepted[\r][\n]"
    Tue Aug 18 20:58:46 PDT 2009:DEBUG:<< "HTTP/1.1 202 Accepted[\r][\n]"
    Tue Aug 18 20:58:46 PDT 2009:DEBUG:<< "Date: Wed, 19 Aug 2009 03:58:46 GMT[\r][\n]"
    Tue Aug 18 20:58:46 PDT 2009:DEBUG:<< "Content-Length: 0[\r][\n]"
    Tue Aug 18 20:58:46 PDT 2009:DEBUG:<< "Content-Type: [\r][\n]"
    Tue Aug 18 20:58:46 PDT 2009:DEBUG:<< "X-ORACLE-DMS-ECID: 0000ICkncqY0bq3pzk8DyW1ANuRl000035[\r][\n]"
    Tue Aug 18 20:58:46 PDT 2009:DEBUG:<< "X-Powered-By: Servlet/2.5 JSP/2.1[\r][\n]"
    Tue Aug 18 20:58:46 PDT 2009:DEBUG:<< "[\r][\n]"
    I believe the exception being thrown by the asset management system is a result of the zero length, empty content-type being returned from my mediator service or possibly the fact that the return code is 202 as opposed to 200.
    First I would like to know if anyone has experienced the same behavior and whether this behavior is by design. Is a response required from all services even if they are one way?
    Second if this is by design is it possible within the mediator project to force a return code of 200 and a response that includes an empty soap envelope?
    Of course any other solutions are welcome as well. I am leaning towards a solution which can be implemented within my mediator project as I have much more flexibility there then either of the other participating systems.
    Thank you very much.

    After exploring this issue with Oracle Support and doing some of my own research I believe that the issue is not the SOA Suite but rather the third party system which was calling exposed service in the SOA Suite. According to the link below both the response returned from the 10.1.3.4 esb project and the 11.1.1.1 mediator project are valid. What is returned from calling a one-way service appears to be up to the implementer of the service.
    http://www.w3.org/TR/2006/NOTE-soap11-ror-httpbinding-20060321/
    "This SOAP 1.1 request optional response HTTP binding, in conjunction with the SOAP 1.1 binding [SOAP 1.1], can be used for sending request messages with an optional SOAP response. This binding augments the SOAP 1.1 binding by allowing that the HTTP [RFC 2616] response MAY have a 202 status code and the response body MAY be empty. Note that the HTTP [RFC 2616] specification states "the 202 response is intentionally non-committal" and so any content in the response body, including a SOAP Envelope, MAY not be an expected SOAP response"

  • Flex 4 - Complex objects in a web service response are null

    I'm using a web service (imported by the data services tool) that returns an array of objects.  The service returns the array just fine, except the objects aren't being created correctly.
    The objects (we'll call them CPs for now) contain some strings, an int, and 3 other complex objects.  The basic fields (strings, ints, booleans) show up just fine, but the complex objects all show up as null.
    The web service is working properly, and I can see that the response it's getting is correct.
    If anybody has any help regarding this issue, I'd greatly appreciate it.
    Thanks!

    There should be classes generated by the tool that map to the types in the
    WSDL, and then the actual webservice response has to match the types in the
    WSDL.  If there is some discrepancy, the conversion will not happen
    correctly.
    Also, the generated classes must be linked into the SWF.  If you comment
    them out of your code somehow, then they won't be available for the
    conversion.  Generate a link-report and make sure they are in.
    You might also have trouble if you do not use the generated WebService and
    go directly to mx:WebService.

  • Extracting the data from web service response

    Hi,
    I called a web service and in response got an XML data, now I have to extract the values and store in table
    My steps,
    1,call web service
    2,stored response in CLOB column
    3,Then used following query
    SELECT loc.*
    FROM my_xml PO,
    XMLTable(XMLNAMESPACES(
    'urn:schemas-microsoft-com:xml-diffgram-v1' as "diffgr"
    ,'http://api.***.com/' as "ns0"
    ,'/ns0:DataSet/diffgr:diffgram/NewDataSet/OptOutAll'
    PASSING xmltype.createxml(PO.xml_data)
    COLUMNS
    "Email" CHAR(100) PATH 'Email',
    "Reason" CHAR(150) PATH 'Reason'
    ) As loc
    WHERE ROWNUM <= 10;
    I have written it by using this example
    But it is not working, dont know why
    /Zab

    If I use the following sample XML (stored in XMLType table TMP_XML) :
    <?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <soap:Body>
        <GetOptOutAllResponse xmlns="http://api.***.com/">
          <GetOptOutAllResult>
            <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas- microsoft-com:xml-msdata">
              <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
                <xs:complexType>
                  <xs:choice minOccurs="0" maxOccurs="unbounded">
                    <xs:element name="OptOutAll">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="OptOutTime" type="xs:dateTime" minOccurs="0"/>
                          <xs:element name="Email" type="xs:string" minOccurs="0"/>
                          <xs:element name="MailingList" type="xs:string" minOccurs="0"/>
                          <xs:element name="SendQueueId" type="xs:int" minOccurs="0"/>
                          <xs:element name="Reason" type="xs:string" minOccurs="0"/>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:choice>
                </xs:complexType>
              </xs:element>
            </xs:schema>
            <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
              <NewDataSet xmlns="">
                <OptOutAll diffgr:id="OptOutAll1" msdata:rowOrder="0" diffgr:hasChanges="inserted">
                  <OptOutTime>2012-05-09T22:40:00+02:00</OptOutTime>
                  <MailingList>information</MailingList>
                  <SendQueueId>111111</SendQueueId>
                  <Reason>Subscriber confirmed</Reason>
                </OptOutAll>
                <OptOutAll diffgr:id="OptOutAll2" msdata:rowOrder="1" diffgr:hasChanges="inserted">
                  <OptOutTime>2012-06-07T22:30:00+02:00</OptOutTime>
                  <MailingList>information</MailingList>
                  <SendQueueId>111111</SendQueueId>
                  <Reason>Subscriber confirmed</Reason>
                </OptOutAll>
                <OptOutAll diffgr:id="OptOutAll3" msdata:rowOrder="2" diffgr:hasChanges="inserted">
                  <OptOutTime>2012-06-14T00:20:00+02:00</OptOutTime>
                  <MailingList>information</MailingList>
                  <SendQueueId>111111</SendQueueId>
                  <Reason>Subscriber confirmed</Reason>
                </OptOutAll>
                <OptOutAll diffgr:id="OptOutAll4" msdata:rowOrder="3" diffgr:hasChanges="inserted">
                  <OptOutTime>2012-06-19T20:50:00+02:00</OptOutTime>
                  <MailingList>information</MailingList>
                  <SendQueueId>111111</SendQueueId>
                  <Reason>Subscriber confirmed</Reason>
                </OptOutAll>
              </NewDataSet>
            </diffgr:diffgram>
          </GetOptOutAllResult>
        </GetOptOutAllResponse>
      </soap:Body>
    </soap:Envelope>Then I can do :
    SQL> SELECT x.*
      2  FROM tmp_xml t
      3     , XMLTable(
      4         XMLNamespaces(
      5           'http://www.w3.org/2003/05/soap-envelope' as "soap"
      6         , 'urn:schemas-microsoft-com:xml-diffgram-v1' as "diffgr"
      7         , 'http://api.***.com/' as "ns0"
      8         )
      9       , '/soap:Envelope/soap:Body/ns0:GetOptOutAllResponse/ns0:GetOptOutAllResult/diffgr:diffgram/NewDataSet/OptOutAll'
    10         PASSING t.object_value
    11         COLUMNS OptOutTime  TIMESTAMP WITH TIME ZONE PATH 'OptOutTime'
    12               , MailingList VARCHAR2(100)            PATH 'MailingList'
    13               , Reason      VARCHAR2(150)            PATH 'Reason'
    14       ) x
    15  ;
    OPTOUTTIME                          MAILINGLIST                    REASON
    09/05/12 22:40:00,000000 +02:00     information                    Subscriber confirmed
    07/06/12 22:30:00,000000 +02:00     information                    Subscriber confirmed
    14/06/12 00:20:00,000000 +02:00     information                    Subscriber confirmed
    19/06/12 20:50:00,000000 +02:00     information                    Subscriber confirmed
    Are you getting anything different?

  • Web Service response not working...

    Hi, does anyone see anything wrong with this code? It
    executes the web service fine but the returned response it is not
    showing up in the text area...
    TIA
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:WebService id="foo" wsdl="
    http://server01:8080/services/Login?wsdl">
    <mx:operation name="synchronousInvoke">
    <mx:request>
    <searchtype>2</searchtype>
    <searchvalue>arth</searchvalue>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    <mx:Button label="Get Data"
    click="foo.synchronousInvoke.send()" x="261" y="405"/>
    <mx:TextArea text="{foo.synchronousInvoke.result}"
    x="261" y="46" width="565" height="339"/>
    </mx:Application>

    Hi, does anyone see anything wrong with this code? It
    executes the web service fine but the returned response it is not
    showing up in the text area...
    TIA
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:WebService id="foo" wsdl="
    http://server01:8080/services/Login?wsdl">
    <mx:operation name="synchronousInvoke">
    <mx:request>
    <searchtype>2</searchtype>
    <searchvalue>arth</searchvalue>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    <mx:Button label="Get Data"
    click="foo.synchronousInvoke.send()" x="261" y="405"/>
    <mx:TextArea text="{foo.synchronousInvoke.result}"
    x="261" y="46" width="565" height="339"/>
    </mx:Application>

Maybe you are looking for