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.

Similar Messages

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

  • Using Web Services on the Crystal Report Server XI to return reports

    <p>Hi,</p><p>I&#39;m trying to setup for the first time a Crystal Reports Server XI R2 and put a couple of reports onto the server.  This is so I can access the reports on the crystal reports server using using the crystal web services and finally display the reports in an ASP.NET web application.</p><p>So far I have installed the server, created a couple of reports, put them on the server, and tested to see that I can access the reports using the Central Management Console.  This all works fine and the reports are returned.</p><p> Ok, now for the bit that&#39;s not working.</p><p> I&#39;ve got a C# ASP.NET web application, and I&#39;ve followed a couple of <a href="http://support.businessobjects.com/documentation/product_guides/cr_net/vs_2005/html/crtsktutorialsotherdynamicpulldownwebservicehelpermethod.htm" target="_blank" title="Adding a Helper Method to Access Crystal Reports Web Services">tutorials</a> to give me an idea of what I should be doing to use the Web Services that are provided:  </p><ul><li>ServerFileReportManager.asmx</li><li>ServerFileReportService.asmx </li></ul><p>However, it appears that when I list the child objects on the crystal server:</p><blockquote><font size="2" color="#008080"><font size="1"><em><font size="2"><p><font size="1">serverFileReport = <font color="#0000ff">new</font> <font color="#008080">ServerFileReport</font>();<br /></font><font size="1">serverFileReport.ReportPath = <font color="#800000">""</font>;<br /></font><font size="1"><br />reportManagerRequest = <font color="#0000ff">new</font> <font color="#008080">ReportManagerRequest</font>();<br /></font><font size="1">reportManagerRequest.ExtraData = serverFileReport.GetExtraData();<br /></font><font size="1">reportManagerRequest.ParentUri = serverFileReport.ToUri();<br /></font><font size="2" color="#008080"><font size="1"><em><br />ReportManagerResponse</em></font></font><font size="1"><em> reportManagerResponse = <font color="#0000ff">new</font> <font color="#008080">ReportManagerResponse</font>();<br />reportManagerResponse = serverFileReportManagerProxy.ListChildObjects(reportManagerRequest);</em></font></p></font></em></font></font></blockquote><p><font size="1"><font size="1">I always get a</font> <font size="2"><font size="1"><em>reportManagerResponse.ReportUris</em></font></font></font><font size="1"> with a count of 0.  Now the thing is I know that I have a couple of reports on the Crystal Server, but for some reason they&#39;re not been picked up.   I must be missing something.</font></p><p><font size="1"><font size="1">Does anyone have any ideas??? Please</font>!</font></p><p>Many thanks in advance,<br />Chris</p><p>Current Set-up:</p><ul><li>Crystal Reports Server XI R2 (11.5)</li><li>Virtual Directory of the web services: crystalreportviewers115 </li><ul><li>(Physical Path - C:\Program Files\Business Objects\common\3.5\crystalreportviewers115)</li></ul><li>Development Environment: Visual Studio 2005</li></ul>

    <p>I looks like your mixing technologies here.   You are using <strong>Crystal Report Server</strong> and the <strong>Crystal Report Web Services</strong> that come with Visual Studio.</p><p>I know that this might seem like they are the same product, and the naming does seem confusing but I&#39;ll try and make it easy for you to understand.</p><p><strong>Crystal Reports Server</strong> - This is a managed reporting solution which allows you to distribute your reports via the web.  It has features like scheduling and built in security.</p><p>It appears that you have a handle on what Crytal Report Server is from what you have been able to accomplish those far.  You have created your report and published it to Crystal Report Server and viewed it via the Central Management Console.  Crystal Reports Server has two methods for accessing the reports programatically.</p><p>1. The Enterprise SDK</p><p>2. The Web Services SDK</p><p><a href="/node/353">Check out this white paper that compares these two SDKs </a></p><p><a href="/node/256">This paper describes the Web Services SDK.</a></p><p>In the above paper there is a getting started section which points you to the Developer Library which shows you how to install the web services on your Crytal Reports Server machine.</p><p>Crystal Reports Server does not have the Business Object web services installed by default so I would suggest following the directions in the <a href="http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/devsuite.htm">Developer Library.</a></p><p>The directions wont talk about Crystal Reports Server but these are the directions to get the Web Services installed. </p><p>There is another web services technology which you are writing code for which is called <strong>Crystal Report Web Services.  </strong>This technology comes with Visual Studio 2003.  It provides un-managed reports via webservices.  Un-managed means these reports are not published to Crystal Reports Server.</p><p>So basically your problem is that your code is for <strong>Crystal Report Web Services </strong>but you are trying to view reports published to <strong>Crystal Reports Server.</strong>  To take advantage of scheduling and security and web service access I would suggest using Crystal Reports Server and install the Business Objects Platform webservices to access the reports. </p><p>I hope that&#39;s clear.<br /></p><p>Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a></p>

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

  • 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

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

  • 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

  • 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

  • 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

  • Possible Bug: Web Service Results Collection Error

    Doing some testing with APEX 4.02 on our development area, and running into an error..
    Running a form/report built off of a web service reference, form prompts for an input, data is returned from web service to report just fine, but when I go into session view collections, I am given a report error: ORA-19011 Character string buffer too small.
    Is this a known issue with collections and web services? I can confirm this was NOT an issue in 3.2, since we have just updated to 4.02 in past 48 hrs..
    Thank you,
    Tony Miller
    Webster, TX
    I cried because I did not have an office with a door until I met a man who had no cubicle.
    -Dilbert

    Tony:
    Thanks for reporting the issue. There was a change in the session pop-up page to include reporting on the new xmltype column in collections. Unfortunately the wrong function is being called on the xmltype column to display its contents. This will be fixed in an upcoming release.
    Application Express 4.0 Web service support makes use of this new xmltype column in a collection. Therefore if you call a web service that returns a large XML document, and you click the session toolbar, you will receive the error.
    Regards,
    Jason

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

  • Problems creating a web service that uses the report generation toolkit

    Hi,
           Im trying to develop a web service using labview 2013.
    I create a html form that is correctly communicating with my labview method and part of the web service functionality is to create a report from the data obtained in the html form published.
    I realized that using the report generation toolkit inside of the web service method the server cannot generate a report. ( If I run the same Vi before publishing the web service it works on the server but it doesnt work after I deploy it)
    I thought that maybe Im unable to use the report generation toolkit VIs inside of the web service because Im not incluiding the (dynamic VIs labview uses when they run), I tried to add the excel dynamic library to the proyect but with no success.
    I also tried to use VI SERVER to call a VI that generates the report using the report generation toolkit  in the method that runs when the web service is call but  it doesnt work either.
    How can I deploy a web service able to use  the report generation toolkit ?, how can I deploy a web service able to use VI server ?
    Any help is really appreciated.
    Erwin Franz 
    Erlab

    The issue you are running into is actually a limitation intended by Microsoft.  They don't want windows services to be able to call into the ActiveX interface for Microsoft Office for security reasons.  If you are deploying your web service to the NI Application Web Server on Windows you will run into this problem since the web server is a Windows Service.
    While I haven't tested this, you may be able to work around this by packaging your Web service with a LabVIEW EXE rather than deploying to the NI Application Web server. 
    Mark
    LabVIEW R&D

  • Calling a Web Service in a SSRS Report - Error Converting String to Generic List of Strings

    Hello,
    I am using SSRS version 2005 and am trying to call a web service to retrieve data for a SSRS report.  I've looked on Google and MSDN for the past 2 days and have exhausted all options.  Here are the details...
    The web service method I am calling accepts 4 parameters...
    Parameter 1 = Generic list of strings
    Parameter 2 = DateTime
    Parameter 3 = Int
    Parameter 4 = Int
    I have created a function (on the CODE tab in report properties) in my report that gets passed a comma delimited string and returns a Generic List of Strings that I use to format Parameter 1.  The code for the function is as follows:
    Public Function GetIDs(ByVal IDList as String) As List(Of String)
       Dim stringArray() = IDList.Split(",")
       Dim genericList As New List(Of String)(stringArray)
       Return genericList
    End Function
    I am passing a string to the function that looks something like this:
    "1,2,3,4"
    When I try to PREVIEW the report, I get an error that reads:
    "There is an error on line 0 of custom code: [BC30002] Type 'List' is not defined"
    I've tried changing the function declaration to pass back a string array:
    Public Function GetIDs(ByVal IDList as String) As String()
        Return IDList.Split(","c)
    End Function
    This returned the error (from the web service): 
    "Error in line 5 position 22.  Expecting state 'Element'.. Encountered 'Text' with name ", namespace"
    I have also tried changing the function declaration to pass back an array: 
    Public Function GetIDs(ByVal IDList as String) As ARRAY
    This also produced the error:
    "Error in line 5 position 22.  Expecting state 'Element'.. Encountered 'Text' with name ", namespace"
    I know that this particular web service method DOES work because it is coded to accept nulls in the first parameter.  So... when I call the method with nulls, it returns a recordset of ALL data (this works fine).  Only when I pass a string to the function (which "filters" the recordset by the ID list), does the error occur.
    Is SRSS limited with respect to VB.NET code so that the List(Of String) statement is not recognized?  Has anyone done this before and if so, how did you convert a comma delimited string to a Generic List of Strings within a function in the SSRS report?
    Any info would be greatly appreciated.
    Thanks!
    Bob

    Hi Bob,
    By default, in custom code, in order to use a variable or function that is not in the "System" namespace, we need to provide the full name.
    In this case, the full name of the "List" is "System.Collections.Generic.List"
    So, to solve the issue, please use the following code:
    Public Function GetIDs(ByVal IDList as String) As System.Collections.Generic.List(Of String)
    Dim stringArray() = IDList.Split(",")
    Dim genericList As New System.Collections.Generic.List(Of String)(stringArray)
    Return genericList
    End Function
    If you have any more questions, please feel free to ask.
    Thanks,
    Jin Chen
    Jin Chen - MSFT

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

  • Displaying Web Service XML Return

    Hi,
    I'm looking for some help with web services. I have created a web service based on a PL/SQL package (using JDeveloper wizards) and deployed this successfully to Oracle 10g App server.
    I can execute the webservice through a java client and get each of the attributes defined in the WSDL.
    Now my problem is that I need to be able to execute the webservice through a HTML page and have the resultant SOAP/XML passed through to the HTML page so it can be dealt with by the Stylesheet. I cannot get the XML to be passed through to the calling HTML page.
    I have a HTML/JS page that can execute the service - but it does not return anything which I think is because the webservice doesn't have an explict return in it.
    Any help would be most appreciated.
    Regards
    Neil Catton

    Please install patch from OSS note 506603. This should correct the problem.

Maybe you are looking for