Insert web services result into textbox in JSP

Basically, I had using HTML to create a textbox in the earlier:
<input id="Destination" style="z-index: 140; left: 413px; position: absolute; top: 238px"
type="text" disabled="disabled" name="Destination" />
Then now I had using JSP to consume the web services:
<%-- start web service invocation --%><hr/>
<%
try {
if(request.getParameter("btn")!=null)
     org.tempuri.CheckTravelBooking service = new org.tempuri.CheckTravelBooking();
     org.tempuri.CheckTravelBookingSoap port = service.getCheckTravelBookingSoap();
java.lang.String bookingID = request.getParameter("ID");
// out.println("Result=" +bookingID);
     // TODO process result here
     org.tempuri.ArrayOfString result = port.checkBooking(bookingID);
// out.println("Result="+bookingID);
// for(int i=0; i<result.getString().size(); i++)
{%>
<table>
<tr>
<td> <%=result.getString().get(0)%></td>
<td> <%=result.getString().get(1)%></td>
<td> <%=result.getString().get(2)%></td>
<td> <%=result.getString().get(3)%></td>
<td> <%=result.getString().get(4)%></td>
<td> <%=result.getString().get(5)%></td>
<td> <%=result.getString().get(6)%></td>
<td> <%=result.getString().get(7)%></td>
<td> <%=result.getString().get(8)%></td>
<td> <%=result.getString().get(9)%></td>
<td> <%=result.getString().get(10)%></td>
</tr>
</table>
<%
} catch (Exception ex) {
     // TODO handle custom exceptions here
out.println(ex.getMessage());
%>
<%-- end web service invocation --%><hr/>
How should I insert my result in the web services to my textbox that had been designed in the earlier???

If you separate the code into
JSP - reserve only for HTML and front end logic
Servlet - to communicate between JSP and Business Layer/Database Layer
Business layer - to communicate with database layer
the code will be more manageable, than putting all code in just one JSP file.
The above structure is called Model-View-Controller MVC , if you study that what you are trying to do will be much easier.

Similar Messages

  • HotFix 2 breaks web service results of type xsd:anyType

    I have a client that accesses a number of web services that
    return results as type xsd:anyType (the results are complex XML
    hierarchies that change according to db values). Before HotFix 2,
    in in my ResultEvent.RESULT event handler, I could get access to
    the result via the ResultEvent.result property. But since HotFix 2,
    the ResultEvent.result property is always null for web services
    results of type xsd:anyType (for other result types,
    ResultEvent.result is correct).
    This is a major nuisance!! I assume this is a bug, so can
    anyone suggest any workarounds while I wait for Adobe to fix it? I
    can access the result as a string via the EventResult.message.body
    member. And from there, I can parse the XML, and perform an
    XML-to-ValueObject conversion... does that sound reasonable? Does
    anyone have an examples of XML-to-ValueObject conversion code to
    help get me started?
    Any hints or tips would be most welcome ;)
    Thanks!
    Paul C.

    This has become a huge problem for me... it's boken my
    applications in *many* places :(
    Is there no-one with any suggestions?
    Paul C.

  • ORA-02263 when creating Report on Web Service Result

    Hi,
    I'm using Application Express 4.2.1.00.08 and I'm having problems creating a report on web service result.
    This is the tutorial I'm using: http://docs.oracle.com/cd/E14373_01/appdev.32/e13363/web_serv.htm (yes, I realize it's intended primarily for APEX 3.2).
    I am able to create the web service, but when creating a report on web service result, I get the following error in the last step:
    ORA-20001: Unable to create form on table. ORA-02263: need to specify the datatype for this column.
    I have tried creating a report on the same web service result on apex.oracle.com (Application Express 4.2.1.00.08) and I don't get the error, and I am able to create the report.
    The same thing happens with another web service, so I'm puzzled.
    What could be the problem?
    Thank you.

    I wasn't able to solve the original problem, but I was able to recreate the process manually, using APEX_WEB_SERVICE.PARSE_RESPONSE function, documented here:http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_web_service.htm#autoId10
    Thanks again for your help!

  • Displaying Web Service Results in a Report

    have a web service registered with APEX (GET_DAY_OF_THE_WEEK).
    It tests fine from the Web Service References Panel.
    I am trying to follow the steps in the Oracle Database Application Express
    User's Guide [Release 2.2 Part Number B28550-01] under the Displaying Web
    Service Results in a Report topic.
    When I get to step 6 = "For Result Tree to Report On, select the portion of the
    resulting XML document that contains the information you want to include in the
    report." ... THERE IS NO PLACE TO -->"...select the portion of the resulting
    XML document that contains the information you want to include in the report".
    Is this a bug? Is there a workaround?
    Steve

    Hi,
    I'm having a similar problem - I have a work_date column and I want to use a date picker to select tasks performed between 2 dates.
    For example, on Page 3 I have a username,client_name and task fields. I have 2 date pickers, one for start date and one for end date, and a submit button.
    I want to be able to select '01-AUG-10' from the start_date, then '31-AUG-10' from the end_date, then redirect to a page (Page 41) when I click the button to run this:
    select username,client_name,task,work_date
    from replicon where
    username = :P3_USERNAME and
    work_date between to_date(:P3_START_DATE,'DD-MON-RR') and
    to_date(:P3_END_DATE,'DD-MON-RR')
    order by work_date
    but I'm getting this error:
    ORA-01858: a non-numeric character was found where a numeric was expected
    The date format is "DD-MON-RR', and the work_date column is a "DATE" data type.
    The button items are "P3_USERNAME","P3_START_DATE" and "P3_END_DATE" with the same values (&P3_USERNAME etc), and the button redirects to page 41.
    I can't see how I can pass the username, start_date and end_date from Page 3 to Page 41. Am I using the correct ITEMS, or is it the query?
    Help appreciated.

  • How to access and display a Web Service from a WSDL in JSP or JSTL ?

    Dear All,
    We need to access a Web Service which is hosted as WSDL How to access a WSDL file from JSP or JSTL, parse and display the SOAP response in JSP page.
    Any simple example or URL as reference to an example will be useful for me.
    It seems io tags of jakarta is able to send soap message, but how to display it in JSP.
    Yours,
    Sankar.B

    Dear Sir,
    Yes. I would like to know more about the Forte and how to consume WSDL file from JSTL. The following are my querirs.
    1. How to connect the declared JNDI from a JSP page. i.e: the Datasource - ex: booksDS
    2. We connect the Tomcat server using JNDI as jdbc/scott. But, if I give jdbc/scott in JSTL as datasource={jdbc/scott}, we could not able to connect. We use the following code in a JSP page to connect the DB from a JSP page. (Its quite easy to modify, so we use the connection in a JSP page.)
    3. How to Consume a WSDL url from JSTL. Ex: If there is a URL : http://localhost/ws/MathService.asmx?wsdl OR http://www.xmethods.com/test/BabelFish
    4. How to display the result. We tried via SOAP from io taglib of Jakarta, but gives us an SOAP (it also looks like xml) response. But, how to use the value from that soap response in IE client thru JSTL/JSP.
    5. Whether this JSTL tool will be available with Forte Enterprise/Community Edition. If so EE, whats the price.
    Please Reply Immediatly. We tried, trying, going to try to display a wsdl response, but not able to display in IE thru JSP/JSTL. But, weve tested the www.gotdotnet.com examples of asp.net web services, we are thru. Its quite easy it seems in .NET. But, we feel whether even there is not even one example in JSTL/ Java Web Services Dev. Pack to utilise a web service in full cycle. The example which uve given is thru servlets. We dont use servlets. Cos, its very easy to edit JSP pages, instead of compiling the serv. and using it.
    I hope ull reply for all the above queries, since ur from SUN.
    Expecting your fav. reply.
    Yours,
    Sankar.B

  • Bug in APEX 4.0.2 when parsing web service results?

    Receiving ORA-19010: Cannot insert XML fragments error in APEX 4.0.2 when trying to create and run a "Form and Report on Web Service" on any Oracle SES 11.1.2 web service operation
    Steps to recreate this error:
    SES
    - Install Oracle SES 11.1.2
    - Create a file source against a directory containing files and then crawl
    - Verify via the built-in SES gui that you can search and retrieve results
    APEX
    - Install APEX 4.0.2
    - Create a new database application from scratch
    - Create a new web service reference:
    shared components ->
    web service references ->
    create ->
    based on wsdl ->
    UDDI search: no ->
    http://[sesip:port]/search/query/OracleSearch?wsdl ->
    create reference
    (That creates a web service to Oracle SES with the default name of OracleSearchService)
    - Test the new web service:
    shared components->
    web service references ->
    test ->
    getAllAttributes (or whatever you want to test) ->
    test ->
    You will see a valid & correct raw XML request and response
    - Create a new web service search form/results using the apex wizard in the following manner:
    create page ->
    form ->
    form and report on web service ->
    next ->
    web reference type: generated from wsdl ->
    next ->
    web service reference: OracleSearchService. Operation: getAllAttributes (....BUT YOU CAN PICK ANY OPERATION - THEY ALL WILL FAIL. See http://download.oracle.com/docs/cd/E14507_01/apirefs.1112/e14433/oracle/search/query/webservice/client/OracleSearchService.html for documentation for all the SES web service operations).
    next ->
    next ->
    result tree to report on: Attributes (or whatever appropriate for the operation you chose) ->
    next ->
    select all columns to display ->
    finish
    - Now run the page, entering nothing or "en" for locale (or whatever is appropriate for the operation you chose) and then Submit
    - No matter what operation is chosen, no matter what parameters are entered, always receive "ORA-19010: Cannot insert XML fragments" error!
    PS - We can (and have) created and used APEX 3.1.2.00.02 against SES 10.1.8.3.0's web services without issue.

    Damir,
    I've tried to replicate this on apex.oracle.com, and could not. I sent a JPG file to my Yahoo account using the name 'Report (2011.05.01).jpg', and didn't encounter any issues. The name of the file received on Yahoo was still 'Report (2011.05.01).jpg'.
    I reviewed the code in APEX_MAIL. There isn't anything in there that would modify the filename as you suggest.
    Is there a chance it's being changed in your SMTP server / relay?
    Joel

  • Trouble using web service results

    I am trying to consume a .NET generated web service. I successfully generated the
    web service based on the WSDL and Apex could see all of the methods/actions.
    However, when I make a call to this service, either via the web service test module,
    or from the "report on a web service" I don't get a result set that I can use because
    all of the < and > are escaped with & lt l; and & gt ; .
    I also created a manual reference to one of the methods. Here is the call:
    <?xml version='1.0' encoding='UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <SOAP-ENV:Body><ns1:GetFacilitySiteAsXml xmlns:ns1="http://ecy.wa.gov/FacilitySiteSearch/WebService">">
    <fsId xsi:nil="true" /><ns1:fsName>#P229_FAC_NAME#</ns1:fsName><ns1:nameSearchType>B</ns1:nameSearchType>
    <ns1:alternateNameReqFlag>N</ns1:alternateNameReqFlag>
    <ns1:programId></ns1:programId>
    <ns1:addressLine1></ns1:addressLine1>
    <ns1:cityName></ns1:cityName>
    <ns1:countyName></ns1:countyName>
    <ns1:stateName></ns1:stateName>
    <ns1:zipCode></ns1:zipCode>
    </ns1:GetFacilitySiteAsXml></SOAP-ENV:Body>
    </SOAP-ENV:Envelope>What I get back is
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetFacilitySiteAsXmlResponse xmlns="http://ecy.wa.gov/FacilitySiteSearch/WebService"><GetFacilitySiteAsXmlResult>& lt ;FacilitySiteList& gt ;
      & lt ;FacilitySite& gt ;
        & lt ;FS_ID& gt ;1519876& lt ;/FS_ID& gt ;
        & lt ;COMMON_NM& gt ;Austin Co& lt ;/COMMON_NM& gt ;
        & lt ;LINE_1_AD& gt ;1601 LIND AVE SW                        & lt ;/LINE_1_AD& gt ;
        & lt ;CITY_NM& gt ;RENTON                   & lt ;/CITY_NM& gt ;
        & lt ;GIS_VER_IND_CD& gt ;Y& lt ;/GIS_VER_IND_CD& gt ;
        & lt ;STATE_CD& gt ;WA& lt ;/STATE_CD& gt ;
        & lt ;ZIP_CD& gt ;98055     & lt ;/ZIP_CD& gt ;
        & lt ;GIS_CALC_LAT_DECIMAL_NR& gt ;47.46504& lt ;/GIS_CALC_LAT_DECIMAL_NR& gt ;
        & lt ;GIS_CALC_LONG_DECIMAL_NR& gt ;122.22355& lt ;/GIS_CALC_LONG_DECIMAL_NR& gt ;
        & lt ;LAST_UPD_DT& gt ;1997-06-26T00:00:00-07:00& lt ;/LAST_UPD_DT& gt ;
      & lt ;/FacilitySite& gt ;
      & lt ;FacilitySite& gt ;
        & lt ;FS_ID& gt ;3697762& lt ;/FS_ID& gt ;
        & lt ;COMMON_NM& gt ;Austin Farm& lt ;/COMMON_NM& gt ;
        & lt ;LINE_1_AD& gt ;320 Elma Gate Rd E                      & lt ;/LINE_1_AD& gt ;
        & lt ;CITY_NM& gt ;Oakville                 & lt ;/CITY_NM& gt ;
        & lt ;GIS_VER_IND_CD& gt ;Y& lt ;/GIS_VER_IND_CD& gt ;
        & lt ;STATE_CD& gt ;WA& lt ;/STATE_CD& gt ;
        & lt ;ZIP_CD& gt ;98568-9614& lt ;/ZIP_CD& gt ;
        & lt ;GIS_CALC_LAT_DECIMAL_NR& gt ;46.832520217201633& lt ;/GIS_CALC_LAT_DECIMAL_NR& gt ;
        & lt ;GIS_CALC_LONG_DECIMAL_NR& gt ;123.18333821662898& lt ;/GIS_CALC_LONG_DECIMAL_NR& gt ;
        & lt ;LAST_UPD_DT& gt ;2002-08-29T11:21:23.08-07:00& lt ;/LAST_UPD_DT& gt ;
      & lt ;/FacilitySite& gt ;
      & lt ;FacilitySite& gt ;
        & lt ;FS_ID& gt ;2049& lt ;/FS_ID& gt ;
        & lt ;COMMON_NM& gt ;AUSTIN MACK& lt ;/COMMON_NM& gt ;
        & lt ;LINE_1_AD& gt ;2739 6TH AVE S                          & lt ;/LINE_1_AD& gt ;
        & lt ;CITY_NM& gt ;SEATTLE                  & lt ;/CITY_NM& gt ;
        & lt ;GIS_VER_IND_CD& gt ;Y& lt ;/GIS_VER_IND_CD& gt ;
        & lt ;STATE_CD& gt ;WA& lt ;/STATE_CD& gt ;
        & lt ;ZIP_CD& gt ;98134     & lt ;/ZIP_CD& gt ;
        & lt ;GIS_CALC_LAT_DECIMAL_NR& gt ;47.57915& lt ;/GIS_CALC_LAT_DECIMAL_NR& gt ;
        & lt ;GIS_CALC_LONG_DECIMAL_NR& gt ;122.32588& lt ;/GIS_CALC_LONG_DECIMAL_NR& gt ;
        & lt ;LAST_UPD_DT& gt ;1999-03-19T00:00:00-07:00& lt ;/LAST_UPD_DT& gt ;
      & lt ;/FacilitySite& gt ;
      & lt ;FacilitySite& gt ;
        & lt ;FS_ID& gt ;1634623& lt ;/FS_ID& gt ;
        & lt ;COMMON_NM& gt ;Austin Mike& lt ;/COMMON_NM& gt ;
        & lt ;LINE_1_AD& gt ;16407 N SUNRISE DR                      & lt ;/LINE_1_AD& gt ;
        & lt ;CITY_NM& gt ;NINE MILE FALLS          & lt ;/CITY_NM& gt ;
        & lt ;GIS_VER_IND_CD& gt ;Y& lt ;/GIS_VER_IND_CD& gt ;
        & lt ;STATE_CD& gt ;WA& lt ;/STATE_CD& gt ;
        & lt ;ZIP_CD& gt ;99026     & lt ;/ZIP_CD& gt ;
        & lt ;GIS_CALC_LAT_DECIMAL_NR& gt ;47.809727& lt ;/GIS_CALC_LAT_DECIMAL_NR& gt ;
        & lt ;GIS_CALC_LONG_DECIMAL_NR& gt ;117.569984& lt ;/GIS_CALC_LONG_DECIMAL_NR& gt ;
        & lt ;LAST_UPD_DT& gt ;2005-07-21T22:17:23.177-07:00& lt ;/LAST_UPD_DT& gt ;
      & lt ;/FacilitySite& gt ;
      & lt ;FacilitySite& gt ;
        & lt ;FS_ID& gt ;63488523& lt ;/FS_ID& gt ;
        & lt ;COMMON_NM& gt ;Austin Pavolka& lt ;/COMMON_NM& gt ;
        & lt ;LINE_1_AD& gt ;7711 CUSTER RD W                        & lt ;/LINE_1_AD& gt ;
        & lt ;CITY_NM& gt ;TACOMA                   & lt ;/CITY_NM& gt ;
        & lt ;GIS_VER_IND_CD& gt ;Y& lt ;/GIS_VER_IND_CD& gt ;
        & lt ;STATE_CD& gt ;WA& lt ;/STATE_CD& gt ;
        & lt ;ZIP_CD& gt ;98467-2643& lt ;/ZIP_CD& gt ;
        & lt ;GIS_CALC_LAT_DECIMAL_NR& gt ;47.1872& lt ;/GIS_CALC_LAT_DECIMAL_NR& gt ;
        & lt ;GIS_CALC_LONG_DECIMAL_NR& gt ;122.51625& lt ;/GIS_CALC_LONG_DECIMAL_NR& gt ;
        & lt ;LAST_UPD_DT& gt ;1997-06-23T00:00:00-07:00& lt ;/LAST_UPD_DT& gt ;
      & lt ;/FacilitySite& gt ;
      & lt ;FacilitySite& gt ;
        & lt ;FS_ID& gt ;27413953& lt ;/FS_ID& gt ;
        & lt ;COMMON_NM& gt ;AUSTIN POWDER CO& lt ;/COMMON_NM& gt ;
        & lt ;LINE_1_AD& gt ;2852 CENTRALIA ALPHA RD                 & lt ;/LINE_1_AD& gt ;
        & lt ;CITY_NM& gt ;ONALASKA                 & lt ;/CITY_NM& gt ;
        & lt ;GIS_VER_IND_CD& gt ;Y& lt ;/GIS_VER_IND_CD& gt ;
        & lt ;STATE_CD& gt ;WA& lt ;/STATE_CD& gt ;
        & lt ;ZIP_CD& gt ;98570-9600& lt ;/ZIP_CD& gt ;
        & lt ;GIS_CALC_LAT_DECIMAL_NR& gt ;46.62614& lt ;/GIS_CALC_LAT_DECIMAL_NR& gt ;
        & lt ;GIS_CALC_LONG_DECIMAL_NR& gt ;122.78492& lt ;/GIS_CALC_LONG_DECIMAL_NR& gt ;
        & lt ;LAST_UPD_DT& gt ;2001-06-01T00:00:00-07:00& lt ;/LAST_UPD_DT& gt ;
      & lt ;/FacilitySite& gt ;
    & lt ;/FacilitySiteList& gt ;</GetFacilitySiteAsXmlResult></GetFacilitySiteAsXmlResponse></soap:Body></soap:Envelope>NOTE: I added the spaces into the & lt ; so that they would not be translated to <
    This issue I appear to be having is that when this result is put into the collection and
    then converted into XML everything between <GetFacilitySiteAsXmlResult> and
    </GetFacilitySiteAsXmlResult> is considered a single string. Therefore using XPath
    queries to get the FsID and Common Name doesn't work.
    I talked to the developers of this service and they believe this is a character set issue.
    I confirmed that my DAD is using UTF-8. So it would appear as though Apex and the
    Web Service are on the same page here. The developer followed up with the following:
    From   http://www.w3.org/TR/2004/REC-xml-20040204/
    2.4 Character Data and Markup
    Text consists of intermingled character data and markup. [Definition: Markup takes the
    form of start-tags, end-tags, empty-element tags, entity references, character
    references, comments, CDATA section delimiters, document type declarations,
    processing instructions, XML declarations, text declarations, and any white space that
    is at the top level of the document entity (that is, outside the document element and
    not inside any other markup).]
    [Definition: All text that is not markup constitutes the character data of the document.]
    The ampersand character (&) and the left angle bracket (<) MUST NOT appear in their
    literal form, except when used as markup delimiters, or within a comment, a processing
    instruction, or a CDATA section. If they are needed elsewhere, they MUST be escaped
    using either numeric character references or the strings "&" and "<" respectively. The
    right angle bracket (>) MAY be represented using the string ">", and MUST, for
    compatibility, be escaped using either ">" or a character reference when it appears in
    the string "]]>" in content, when that string is not marking the end of a CDATA section.
    In the content of elements, character data is any string of characters which does not
    contain the start-delimiter of any markup and does not include the CDATA-
    section-close delimiter, "]]>". In a CDATA section, character data is any string of
    characters not including the CDATA-section-close delimiter, "]]>".
    To allow attribute values to contain both single and double quotes, the apostrophe or
    single-quote character (') MAY be represented as "'", and the double-quote character (")
    as """.Do I need to do something else in order to read and parse this result set as XML
    properly?
    Regards, Tony

    Thanks for the reply but we are using Netweaver 2004.  I want the document for loading data from webservice to BW .  The webservice is built on J2ee development .Please send me the links.
    I am assign points for u r reply.
    Thanks and regards,
    shahid

  • Testing web service results in no response, but HTTP Error 500

    Hi All,
    I've already solved my problem, but I wanted to share my results. It took two days of pain, so you could imagine how wonderful I felt when it was solved. :)
    Problem: I am exposing PL/SQL procedures as web services, using JDeveloper 10.1.3. I noticed that when I expose procedures that return complex types (like records), it caused all of the web service calls to die silently. I couldn't see any other errors except Apache's HTTP 500 error. But when I ran the web service locally using JDeveloper's OC4J engine, I didn't receive any errors. Everything worked. I looked at the opmn/logs/* dir, and still no signs of the real error. So I set out to learn where I could view more logs, and I eventually found the error inside $ORACLE_HOME/j2ee/MyConatiner/log/MyContainer*/oc4j/log.xml, after I increased the verbosity.
    Solution: I found the "NoClassFound" error after I fiddled with j2ee-logging.xml. The funny part is, the error did not show up in the ERROR or INTERNAL_ERROR module types. Some of the wrapper Java classes that were generated to deal with complex types (records) and even arrays, were not being included in the EAR/WAR file for deployment! That's why when I ran the web service locally using JDeveloper, there were no errors (since the classes were present). Now, before I deploy I always check what is being deployed... :)
    Here's what I learned through the process. Hope it's helpful!
    keywords: http 500 error empty test response reply web service deploy complex data types arrays logs pl/sql procedures functions
    Debugging
    There are several places where logging occurs on Oracle Application Server 10.1.3.
    This is not a complete list, but it covers the main areas. Let's assume our OC4J
    container is called MyContainer:
    OPMN
        * tail -f $ORACLE_HOME/opmn/logs/*MyContainer*
        * To adjust the verbosity, use the Enterprise Manager web interface: click on
          the container, then on the Administration -> Logger Configuration. Now you can
          set the logging level for different components.
    Apache
        * tail -f $ORACLE_HOME/Apache/Apache/logs/*log
        * The file names depend on the ErrorLog? and CustomLog? directives in
           httpd.conf. You can adjust the verbosity by changing the LogLevel
           Apache directive.
    J2EE
        * tail -f $ORACLE_HOME/j2ee/MyContainer/log/MyContainer*/oc4j/log.xml
        * You can adjust the verbosity by editing
           $ORACLE_HOME/j2ee/MyContainer/config/j2ee-logging.xml. Look for the
           <logger> element, and set its 'level' attribute to 'TRACE:32' for the most
           information.
        * From experience, these logs are the best. :-)
    Oracle
        * tail -f $ORACLE_HOME/Apache/Apache/logs/oracle/log.xml
        * To enable and configure this logging system, add the following to your httpd.conf:
          OraLogMode oracle
          OraLogSeverity TRACE:32
          OraLogDir ORACLE_HOME/Apache/Apache/logs/oracle
        * More info: http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b25211/servlog.htm

    Thanks for sharing your tips on this forum, as it will be useful for other users, that run into this issue.
    Feedback like this will also help us improve error reporting in the next release, as missing class files in the packaged application is a common issue when developers are moving from the embeded oc4j instance packaged with JDewveloper to standalone instances.
    -Eric

  • Transformer tags in search web service results.

    Hiya All,
    I have a customer requirement to pass a transformer tag back from a search web service in the return record set. As part of the SWS the description and the OpenDocumentURL it will always contain references to existing portal objects.
    SearchRecord.Description = "<pt:openerLink xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/' pt:objectID='210' pt:classID='512' pt:mode='2'>view community</pt:openerLink>";
    When this is being displayed through the portal federated search results the transformer tag is not being converted into a URL.
    The view source looks like
    <td valign="top" colspan="1" class="listSubtitle" >portlet test
    <span class="listText" ><pt:openerLink xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/' pt:objectID='210' pt:classID='512' pt:mode='2'>view community</pt:openerLink></span></td>
    We are using .Net with the 5.1EDK against portal 5.0.4.
    Cheers
    Bob

    The only thing I can think of is upping your logging on the web server and see what you can find in there or on your WCA.  What application server are you using?

  • How to put data into textbox using JSP

    How can I put data into a textbox using JSP?
    This code prints to a html page but I want it inside an text area:
    // Print out the type and file name of each row.
            while(ftplrs.next())
                int type = ftplrs.getType();
                if(type == FtpListResult.DIRECTORY)
                    out.print("DIR\t");
                else if(type == FtpListResult.FILE)
                    out.print("FILE\t");
                else if(type == FtpListResult.LINK)
                    out.print("LINK\t");
                else if(type == FtpListResult.OTHERS)
                    out.print("OTHER\t");
                out.print(ftplrs.getName() +"<br>");
            }I have tried with the code below:
    <textarea name="showDirectoryContent" rows="10" cols="70">
    <%
           // Print out the type and file name of each row.
            while(ftplrs.next())
                int type = ftplrs.getType();
                if(type == FtpListResult.DIRECTORY)
    %>
                    <%= "DIR\t" %>
    <%            else if(type == FtpListResult.FILE) %>
                    <%= "FILE\t" %>
    <%            else if(type == FtpListResult.LINK)  %>
                    <%= "LINK\t" %>
    <%            else if(type == FtpListResult.OTHERS) %>
                    <%= "OTHER\t" %>
    <%            String temp = ftplrs.getName() +"<br>");
                  <%= temp > <br>
    %>
    </textarea>I get the following error:
    Location: /myJSPs/jsp/grid-portal-project/processviewfiles_dir.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile Note: sun.tools.javac.Main has been deprecated.
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\processviewfiles_dir_3.java:151: 'else' without 'if'.
    else if(type == FtpListResult.FILE)
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\processviewfiles_dir_3.java:165: 'else' without 'if'.
    else if(type == FtpListResult.LINK)
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\processviewfiles_dir_3.java:179: 'else' without 'if'.
    else if(type == FtpListResult.OTHERS)
    ^
    C:\tomcat\jakarta-tomcat-3.3.1\work\DEFAULT\myJSPs\jsp\grid_0002dportal_0002dproject\processviewfiles_dir_3.java:193: ';' expected.
    String temp = ftplrs.getName() +"");
    ^
    4 errors, 1 warning
         at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
         at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:733)
         at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
         at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
         at java.lang.Thread.run(Thread.java:536)
    Please help???

    Yes indeed this works:
    <textarea name="showDirectoryContent" rows="10" cols="70">
    <%
           // Print out the type and file name of each row.
            while(ftplrs.next())
                int type = ftplrs.getType();
                if(type == FtpListResult.DIRECTORY)
    {%>
                    <%= "DIR\t" %>
    <%}            else if(type == FtpListResult.FILE)  {%>
                    <%= "FILE\t" %>
    <%}            else if(type == FtpListResult.LINK)  {%>
                    <%= "LINK\t" %>
    <%}            else if(type == FtpListResult.OTHERS) %>
                    <%= "OTHER\t" %>            
                  <%= ftplrs.getName() %>
    <%
    %>

  • Getting web service results from double click event

    I have an Elixir ILOG Org Chart and I want to add nodes dynamically when a user clicks on the node.  When the click event fires, Can I assign the results of the webservice result to the node as children of that node; similar to what someone would do when calling a function in another language like Java or C#.  For instance I have a method that handles the double click or single click of a user on a node in my Org Chart:
    private function doubleClickHandler(event:OrgChartEvent):void{
         event.item.appendChild(getResults(_id, _idSecond, "") );
    private function webServicehandler_Result(event:ResultEvent):XML{
         return event.result;
    getResults(x,y,z) is the function that calls the web service and returns XML results of all the employees/people that are underneith the object that was double clicked on.  Will this work?

    Use the change event.

  • Converting string data from a web service respons into XML structure of XI

    Hi,
    We receive a string structure from a web service.
    The string structure has an xml type format, that is all the tags and its content are in one line .
    The WSDL file of the webservice defines its response structure as a string type.
    How do i convert this string into proper XML structure (predefined by me in Integration repository).
    OR how do i make XI understand this string as an XML structure for further processing.
    Later i have to map this XML message type into IDoc.
    Himani

    Hi Himani,
    Please find the code for ur requirement -
    String need to parse -<response_webservice><from_date>20080101</from_date><to_date>20080202</to_date></response_webservice>
    Below mentioned code will convert it to -<MT_DATA><FROMDATE>20080202</FROMDATE><TODATE>20080101</TODATE></MT_DATA>
    Create a Message type and map it like this using java mapping ( no need to use Graphical mapping).
    Use MT_DATA as source and map it to your target structure .
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.StringReader;
    import java.util.HashMap;
    import java.util.Map;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.transform.TransformerFactoryConfigurationError;
    import org.w3c.dom.DOMException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.Text;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    public class XMLParser {
         private Map param = null;
         public static void main(String[] args) {
              try {
                   XMLParser wdb = new XMLParser();
                   wdb.parse();
              } catch (Exception e) {
                   e.printStackTrace();
         public void setParameter(Map param) {
              this.param = param;
              if (param == null) {
                   this.param = new HashMap();
         public void parse() {
              String document = "<response_webservice><from_date>20080101</from_date><to_date>20080202</to_date></response_webservice>";
              try {
                   Document sdoc;
                   DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                   // Using factory get an instance of document builder
                   DocumentBuilder db = dbf.newDocumentBuilder();
                   // parse using builder to get DOM representation of the XML file
                   sdoc = db.parse(new InputSource(new StringReader(document)));
                   Element docEle = sdoc.getDocumentElement();
                   NodeList nl = docEle.getElementsByTagName("from_date");
                   Element lstElmnt = (Element) nl.item(0);
                   NodeList nl1 = docEle.getElementsByTagName("to_date");
                   Element fstElmnt = (Element) nl1.item(0);
                   System.out.println(fstElmnt.getFirstChild().getNodeValue());
                   System.out.println(lstElmnt.getFirstChild().getNodeValue());
                   Document tdoc = db.newDocument();
                   Element structure = createElement("MT_DATA", null, tdoc);
                   tdoc.appendChild(structure);
                   Element statement = createElement("FROMDATE", fstElmnt.getFirstChild().getNodeValue(), tdoc);
                   structure.appendChild(statement);
                   Element statement2 = createElement("TODATE", lstElmnt.getFirstChild().getNodeValue(), tdoc);
                   structure.appendChild(statement2);
                   System.out.println("Struct is :::"+tdoc.getDocumentElement().toString());               
              } catch (DOMException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              }  catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (FactoryConfigurationError e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (ParserConfigurationException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (SAXException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (TransformerFactoryConfigurationError e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         static Element createElement(String elementName, String content,
                   Document document) {
              Element returnElement;
              returnElement = document.createElement(elementName);
              if (content != null) {
                   Text T = document.createTextNode(content);
                   returnElement.appendChild(T);
              return returnElement;
         static Element createElement(String elementName, String content,
                   String attributeName, String attributeValue, Document document) {
              Element returnElement = createElement(elementName, content, document);
              returnElement.setAttribute(attributeName, attributeValue);
              return returnElement;
    Regards,
    Kishore

  • How to retrieve web service results that are stored in an array?

    Hi, everyone,
    I am using a manually created web service reference in APEX3.0.1 to call an external web service for a simple company search. Here is the WSDL:
    http://ws.strikeiron.com/DnBBusinessProspectLinkage2?WSDL
    The web referene is tested fine. And here is a sample test result:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <Header xmlns="http://schemas.xmlsoap.org/soap/envelope/">
    <SubscriptionInfo xmlns="http://ws.strikeiron.com">
    <LicenseStatusCode>0</LicenseStatusCode>
    <LicenseStatus>Valid license key</LicenseStatus>
    <LicenseActionCode>7</LicenseActionCode>
    <LicenseAction>No hit deduction for invocation</LicenseAction>
    <RemainingHits>4921</RemainingHits>
    <Amount>0</Amount>
    </SubscriptionInfo>
    </Header>
    <soap:Body>
    <CompanySearchResponse xmlns="http://www.strikeiron.com">
    <CompanySearchResult>
    <ServiceStatus>
    <StatusNbr>213</StatusNbr>
    <StatusDescription>Successful search</StatusDescription>
    </ServiceStatus>
    <ServiceResult>
    <Count>2</Count>
    <CandidateCompanies>
    <CandidateCompany>
    <CompanyName>MSC SOFTWARE CORPORATION</CompanyName>
    <StreetAddress>2 MACARTHUR PL</StreetAddress>
    <City>SANTA ANA</City>
    <State>CA</State>
    <PostalCode>927075924</PostalCode>
    <Phone>7145408900</Phone>
    <CountryCode>US</CountryCode>
    <BranchIndicator>Headquarters</BranchIndicator>
    <TradingName />
    <ConfidenceCode>8</ConfidenceCode>
    <MatchGrade>BAAAAZZ</MatchGrade>
    <MatchNameGrade>Similar</MatchNameGrade>
    <MatchNamePercent>62</MatchNamePercent>
    <MatchStreetNumberGrade>Same</MatchStreetNumberGrade>
    <MatchStreetNumberPercent>100</MatchStreetNumberPercent>
    <MatchStreetNameGrade>Same</MatchStreetNameGrade>
    <MatchStreetNamePercent>100</MatchStreetNamePercent>
    <MatchCityGrade>Same</MatchCityGrade>
    <MatchCityPercent>100</MatchCityPercent>
    <MatchCountryStateGrade>Same</MatchCountryStateGrade>
    <MatchCountryStatePercent>100</MatchCountryStatePercent>
    <MatchPOBoxGrade>Not provided</MatchPOBoxGrade>
    <MatchPOBoxPercent>-1</MatchPOBoxPercent>
    <MatchPhoneGrade>Not provided</MatchPhoneGrade>
    <MatchPhonePercent>-1</MatchPhonePercent>
    </CandidateCompany>
    <CandidateCompany>
    <CompanyName>TYRA TECHNOLOGIES, INC</CompanyName>
    <StreetAddress>2 MACARTHUR PL</StreetAddress>
    <City>SANTA ANA</City>
    <State>CA</State>
    <PostalCode>927075924</PostalCode>
    <Phone>7145408900</Phone>
    <CountryCode>US</CountryCode>
    <BranchIndicator>Headquarters</BranchIndicator>
    <TradingName />
    <ConfidenceCode>8</ConfidenceCode>
    <MatchGrade>BAAAAZZ</MatchGrade>
    <MatchNameGrade>Similar</MatchNameGrade>
    <MatchNamePercent>62</MatchNamePercent>
    <MatchStreetNumberGrade>Same</MatchStreetNumberGrade>
    <MatchStreetNumberPercent>100</MatchStreetNumberPercent>
    <MatchStreetNameGrade>Same</MatchStreetNameGrade>
    <MatchStreetNamePercent>100</MatchStreetNamePercent>
    <MatchCityGrade>Same</MatchCityGrade>
    <MatchCityPercent>100</MatchCityPercent>
    <MatchCountryStateGrade>Same</MatchCountryStateGrade>
    <MatchCountryStatePercent>100</MatchCountryStatePercent>
    <MatchPOBoxGrade>Not provided</MatchPOBoxGrade>
    <MatchPOBoxPercent>-1</MatchPOBoxPercent>
    <MatchPhoneGrade>Not provided</MatchPhoneGrade>
    <MatchPhonePercent>-1</MatchPhonePercent>
    </CandidateCompany>
    </CandidateCompanies>
    </ServiceResult>
    </CompanySearchResult>
    </CompanySearchResponse>
    </soap:Body>
    </soap:Envelope>
    Here is my xpath defined in the report:
    /CompanySearchResponse/CompanySearchResult/ServiceResult/CandidateCompanies
    According to the WSDL file, the candidate companies are stored in an array. I am having problem to retrieve this values from the array. The web service ref is called but it returns nothing.
    Anyone in the forum can tell me what I did wrong?
    Thanks in advance!
    Jeff

    Hi, did you manage to figure this out? I'm having a similar problem with arrays.
    Also, i'm looking at how I can pass an array of values as input to the webservice call.. eg if I were calling a stock ticker service that allows you to supply a list of tickers as input so that you can get all your responses in one call. Anyone any thoughts on that?
    Cheers,
    Paul.

  • XML/Web Service Load into Delta queue

    Hello,
    What is the mechanism to push an XML file into the BW delta queue for use by an XML/SOAP or Web service based datasource? There is no XI in the picture so the XI based how/to papers are not germane to this question. The HOWTO paper on XML load has a script for loading an XML file but it errors out on creation of the Activex object, plus it needs XML parser etc. Is there an SAP approved way of routinely loading XML files into the delta queue versus some test script?

    This can be done in BW.
    Try the links given below, also there is a How to document available from SAP on this.
    http://help.sap.com/saphelp_bw33/helpdata/en/9f/9b8f3c855f0454e10000000a11405a/content.htm
    http://www.sapteched.com/presentations/session.asp?sid=140
    Thanks.

  • Question about get web service result in actionscript and convert data format

    Hi, All
    I have question about how to get dataset from web services
    and put it in tree structure. I have 2 questions about this:
    1, How can I get data correctly in actionscript?
    I have no problem to get data by
    <mx:ArrayCollection id="acFolder"
    source="{mx.utils.ArrayUtil.toArray(MyGServices.getFolder.lastResult)}"
    />
    And display in datagrid.
    But when I try to use
    public function
    handleFolderContents(event:mx.rpc.events.ResultEvent):void{
    arData=mx.utils.ArrayUtil.toArray(event.result);
    acData=new ArrayCollection(arData);
    input.text=acData.getItemAt(0).id;
    Seems I can’t get data, it always say:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    2, how to convert data format
    I get data from web service and want to convert it to tree
    structure, as mention below:
    I get:
    <Array>
    <id>111</id>
    <Name>Production1</Name>
    </Array>
    <Array>
    <id>222</id>
    <Name>Production2</Name>
    </Array>
    Convert to:
    <mx:XMLList id="treeData">
    <node>
    <node label="Production1" data="111">
    <node label="Production2" data="222"/>
    </node>
    </node>
    </mx:XMLList>
    Please help me.
    Thanks.

    First, don't specify the package path in the argument
    declaration. Instead import the event object:
    import mx.rpc.events.ResultEvent;
    The docs state this emphatically.
    Second, try "lastResult", in place of "result":
    arData=mx.utils.ArrayUtil.toArray(event.lastResult); // I am
    not positive about this. I maybe recall reading that result was ok
    for the event object, but maybe not.
    Finally, why do you want to convert the xml? You certainly
    could, but it would be a manual process, recursively reading the
    existing xml nodes and building the new structure, but again, why?
    Just use a labelFunction if necessary to display the nodes as
    you wish.
    Tracy

Maybe you are looking for

  • IPod will work in iTunes -  but wont show changed on iPod

    I can make playlists on my iPod in iTunes and add and remove songs, however when i eject my ipod, the changes are not on my iPod, and then when i re-sync my iPod, it doesnt show that i made any changed on iTunes What is the problem?

  • Oracle E-Business Suite, Internal Server Error

    Hi All, I'm getting "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected] and inform them of the time the error occurred

  • Extended Withholding Tax & MIRO - total balance

    I have the following situation: Extended withholding tax is active in company code and the withholding tax type is defined for invoice posting. Everything seems to work correctly except for the following detail: if the invoice has additional charges

  • How Do You Create Artist Separation In iTunes Playlists?

    I find that some of the time the same artist will play back to back in my Playlists on iTunes. How do you adjust 'Playlists" to NOT play artists back to back and give the playlist "artist seperation? Thanks!

  • The correct procedure to install PeopleTools 8.49

    Dear Friends, Hello. I am still not sure the correct procedure to install PeopleTools 8.49. I have done the following: Step 1: Install Windows Server 2003 Step 2: Install MS SQL Server 2005 Step 3: Install BEA WebLogic 8.1 Step 4: Download 7 disks of