Web Services demo - Webpage cannot be displayed

Hello,
I would like to run the example webpages in the Web Services demo project (http://ftp.ni.com/pub/devzone/tut/webservicedemo.z​ip), but none of the three pages can be displayed in internet explorer.
I have completed every step in the included Readme document, no problem occured when building and deploying the two examples. Also the System Webserver and Applications Webserver are enabled.
Please can anyone help me solve this issue?
Thanks in advance!
Regards,
Marco

Hi,
For those who ecountered the same problem: I figured it out how to fix it:
Try to add the port number of your Application webserver next to localhost in the URL. Like http://localhost:8080/Math/Sum/1/3.

Similar Messages

  • Need Suggestion to build a simple web service demo

    I'm planning to build a demo using java packages JAX* for my team using my workstation and another standalone box.
    I got a Sun One Web Services Platform DVD from JavaOne, but it only support Win200 or XP, too bad our company still using Win NT SP6.
    I only need a very simple web service that will bring data from server DB. I knew I can download the JWSDP1.2, but there is no tutorial right now. And I have tried JWSDP1.1 but not really understand what it is doing(because only Hello world service is working). I need to do some modification to change the default server port from 80 to 81, and I need to modified localhost to [my-machine-name] so that the other machine can talk to the JWSDP server.
    My question is how can I build up a web service demo really easy and quick and what tool should I used, any suggestion will be appreciated! Thanks in advance!
    Henry

    1. Use XML Spy Enterprise edition editor.
    2. Goto www.xmethods.com, select service you want to create demo of.
    3. Get its WSDL url.
    4. In XML Spy SOAP menu there is a command 'create new soap request'. Press that, enter the WSDL url. You will get a SOAP request.
    5. Edit SOAP request parameters. Type parameters of your choice.
    6. Press 'send request to server'. You will get SOAP response. It will contain result from the requested method.
    7. Paste that response inside a JSP.
    8. Write a local method which will return same response (remote method's return value) that came from remote web service.
    9. Paste that method inside abovementioned JSP. Replace static response in that JSP with the response generated by local method. The method parameters will come from client's SOAP request. Parse SOAP request to get request parameters. (As it's your demo, you know the data types of the parameters).
    10. Host that JSP on any Servlet/JSP engine.
    That makes your Web Service.
    You can use any package like Aapche SOAP, AXIS or JAX-RPC to generate a SOAP client. Use the URL of JSP(step 10) as "endpoint".
    Note: Indside JSP make sure that there in no endline and carriage return character. Otherwise it won't be a valid SOAP response.
    Good luck.

  • Error when running P6 web services Demo

    Hi All,
    I am trying to run P6 web services demo application, p6 web services server is running, however I get this error when running the demo application:
    org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
    Appreciate if someone can help me to resolve it.
    Thanks in advance

    If you are getting this error, then you are most likely compiling your code with a different JVM than what is shipped with the application server. Oracle9iAS Release 2 (9.0.2) uses the JDK1.3.1. I got this error when I compiled the code with JDK1.4.0_01.

  • OC4J Web Service Demo

    I am in the process of evaluating 9ias' web service support.
    I downloaded 9ias (developer's preview oc4j_extended.zip - 19MB). Installation was smooth and I was able to get it up running.
    However, I couldn't find any web service example from the welcome page (there are only 2 category of test samples: JSP and Servlets). So I looked into the folders and found out the web service demos in $ORA\j2ee\home\demo\web_services\java_services.
    I got an error when deployed the web service archive file by running step 3 in readme.txt -
    Error: javax.naming.NamingException: Lookup error: java.io.EOFException: Disconnected; nested except
    ion is:
    java.io.EOFException: Disconnected
    Please advise.
    Thanks
    Bob Sheng

    Try using rmi default port number:23798
    Ex.: java -jar admin.jar ormi://localhost_09:23791...
    Leonardo Antunes
    Brasil.

  • Web Service Demo at JavaOne

    Is there any chance that the Web Service Demo to be shown at JavaOne be
    available for download? I'm interested in looking under the covers of how
    the applet communicates with the WebLogic server using xmlp/soap or
    apache-soap.
    Thanks,
    Frank

    Looks like its available from 3rd june.
    http://developer.bea.com/techtracks/xml/index.jsp
    Frank Chum wrote:
    Is there any chance that the Web Service Demo to be shown at JavaOne be
    available for download? I'm interested in looking under the covers of how
    the applet communicates with the WebLogic server using xmlp/soap or
    apache-soap.
    Thanks,
    Frank

  • Web Services Demo (OTNMobileWrapper) not works

    I tested in my own database environment and also at my account on htmldb.oracle.com.
    - Wheather service works fine
    - Amazon works fine
    - OTNMobileWrapper did not
    I believe the URL and the Action are wrong!
    (the Urls in Wheather and Amazon I can call in the browser directly, the Url from OTNMobileWrapper was not found).

    yeah, i see what you mean regarding that "OTN Message Service" option in our web services demo. further inspection by a teammate reveals that more than a few of these OTN Live Web Services appear to not be working. i'm currently checking around to see what the deal is with that, but from an html db perspective, though, you should already know what you need to know: it is possible to call web services from within your html db applications. this particular one in our example appears to currently be unavailable (if you do feel it's our "URL and action", btw, please do send that info to [email protected]), but calls to the more stable ones like amazon, for instance, always work.
    hope this helps,
    raj

  • Calling a CAF program via web service generates QName cannot be null error, but only for 1/5 of the same call in a parallel for loop.

    I'm calling 5 identical web service calls using a parallel for loop in BPM. Obviously the data in each slightly differs. Why would this call suspend the process and give the following errors:
    handleCommunicationError( ErrorContextData, Throwable, TransitionTicket ): A technical error occurred.
    Interface namespace = myNamespace
    Interface name = myService
    Operation name = myOperation
    Connectivity type = WS
    Application name = myAppName
    Reference name = 8bd95deb-8cf1-453d-94e5-0576bb385149
    Message Id = null
    WS style = DOC
    Start time of WS call = 2014-02-26 17:51:23.297
    Return time of WS call = 2014-02-26 17:51:23.412
    Principal name = SAP_BPM_Service
    Root error message = local part cannot be "null" when creating a QName
    Error message = Could not invoke service reference name 8bd95deb-8cf1-453d-94e5-0576bb385149, component name myComp application name myappname
    com.sap.engine.interfaces.sca.exception.SCADASException: Could not invoke service reference name 8bd95deb-8cf1-453d-94e5-0576bb385149, component name
    myCompname
    at com.sap.engine.services.sca.das.SCADASImpl.invokeReference(SCADASImpl.java:341)
    at com.sap.glx.adapter.app.ucon.SCADASWrapperImpl.invoke(SCADASWrapperImpl.java:101)
    at com.sap.glx.adapter.app.ucon.UnifiedWebServiceCallObject.invokeWebServiceOperation(UnifiedWebServiceCallObject.java:101)
    at com.sap.glx.adapter.app.ucon.UnifiedWebServiceCallClass.invoke(UnifiedWebServiceCallClass.java:178)
    at com.sap.glx.core.dock.impl.DockObjectImpl.invokeMethod(DockObjectImpl.java:657)
    at com.sap.glx.core.kernel.trigger.config.Script$MethodInvocation.execute(Script.java:248)
    at com.sap.glx.core.kernel.trigger.config.Script.execute(Script.java:798)
    at com.sap.glx.core.kernel.execution.transition.ScriptTransition.execute(ScriptTransition.java:78)
    at com.sap.glx.core.kernel.execution.transition.Transition.commence(Transition.java:196)
    at com.sap.glx.core.kernel.execution.LeaderWorkerPool$Follower.run(LeaderWorkerPool.java:163)
    at com.sap.glx.core.resource.impl.common.WorkWrapper.run(WorkWrapper.java:58)
    at com.sap.glx.core.resource.impl.j2ee.J2EEResourceImpl$Sessionizer.run(J2EEResourceImpl.java:261)
    at com.sap.glx.core.resource.impl.j2ee.ServiceUserManager$ServiceUserImpersonator$1.run(ServiceUserManager.java:152)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:337)
    at com.sap.glx.core.resource.impl.j2ee.ServiceUserManager$ServiceUserImpersonator.run(ServiceUserManager.java:149)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:185)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:302)
    Caused by: java.lang.IllegalArgumentException: Could not process message for operation myOperation in web service plugin module.
    at com.sap.engine.services.sca.plugins.ws.WebServiceImplementationInstance.accept(WebServiceImplementationInstance.java:228)
    at com.sap.engine.services.sca.das.SCADASImpl.invokeReference(SCADASImpl.java:314)
    ... 19 more
    Caused by: java.lang.IllegalArgumentException: local part cannot be "null" when creating a QName
    at javax.xml.namespace.QName.<init>(QName.java:246)
    at javax.xml.namespace.QName.<init>(QName.java:190)
    at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceImpl.getInterfaceInvoker(DInterfaceImpl.java:126)
    at com.sap.engine.services.webservices.espbase.wsdas.impl.WSDASImpl.<init>(WSDASImpl.java:43)
    at com.sap.engine.services.webservices.espbase.wsdas.impl.WSDASFactoryImpl.createWSDAS(WSDASFactoryImpl.java:39)
    at com.sap.engine.services.sca.plugins.ws.tools.wsdas.WsdasFactoryWrapper.createWsdas(WsdasFactoryWrapper.java:30)
    at com.sap.engine.services.sca.plugins.ws.WebServiceImplementationInstance.initWsdas(WebServiceImplementationInstance.java:256)
    at com.sap.
    Surely if it was the service group unassign then reassign issue then none of the calls would have worked?

    Hi David,
    While a random error is still an error it will be difficult for support to find a problem for an error which is not reproducible. It is always a faster resolution if you can determine how to provoke the error and provide those details. If we can reproduce an error on internal systems then we can fix the problem quickly and without having to access your system.
    regards, Nick

  • Error running the PL/SQL consuming web services  demo

    I downloaded and installed the PL/SQL code from:
    http://technet.oracle.com/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html
    on Oracle 9i version 2 (on both Windows and Solaris) which can be used to consume simple web services. However, I got the following error running the local time demo:
    select time_service.GET_LOCAL_TIME('19104') from dualORA-30625: method dispatch on NULL SELF argument is disallowed
    ORA-06512: at "XN.DEMO_SOAP", line 84
    ORA-06512: at "XN.TIME_SERVICE", line 13
    It appears to occur upon doing this:
    resp.doc.getstringval()
    It seems to mean eith resp or resp.doc is null. BTW, the following:
    select utl_http.request('www.oracle.com') from dual
    works fine, so does the web service URL. Please
    help me get this work!
    Thanks a lot!

    I downloaded and installed the PL/SQL code from:
    http://technet.oracle.com/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html
    on Oracle 9i version 2 (on both Windows and Solaris) which can be used to consume simple web services. However, I got the following error running the local time demo:
    select time_service.GET_LOCAL_TIME('19104') from dualORA-30625: method dispatch on NULL SELF argument is disallowed
    ORA-06512: at "XN.DEMO_SOAP", line 84
    ORA-06512: at "XN.TIME_SERVICE", line 13
    It appears to occur upon doing this:
    resp.doc.getstringval()
    It seems to mean eith resp or resp.doc is null. BTW, the following:
    select utl_http.request('www.oracle.com') from dual
    works fine, so does the web service URL. Please
    help me get this work!
    Thanks a lot!

  • Problem consuming a MII BLS as a Web service. No data getting displayed

    Hi experts,
    I am trying to consuming a MII BLS as a Web service from Visual Basic .Net 2010. But its a failure. I am unable to view any data on the VB grid. I did piece of code referring to the article in
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0563b23-be97-2b10-02a0-fb8fac9ab39e
    I am totally new developer in Microsoft products. Here is the code that I used from the above white paper.
    Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Dim wsVcValues As New SapVcValues.XacuteWS
            Dim myInParams As New SapVcValues.InputParams
            Dim varResult As SapVcValues.Rowset
            'Pass your input parameters to the transaction
            myInParams.Plant = "1000"
            'Now lets call the transaction using the guest account
            varResult = wsVcValues.Xacute("guest", "guest", myInParams)
            DataGridView1.DataSource = varResult.Row
            DataGridView1.Refresh()
            varResult = Nothing
        End Sub
    End Class
    Here are some deviations when compared to the above article.
    1. Used MII 12.1 transction.
    2. Used VB .Net 2010 as the development environment.
    The transaction that I used has 1 action with simple query which returns the o/p xml.
    Please help! I am stuck.
    Regards,
    Rajesh.

    Hi Jeremy,
    You are right. I am getting a log in page when try to call the WS from the browser. I unchecked WSDLGenSecurityEnabled option. Now I am not redirected to log in page. But I am not getting the required output in the XML.
    I am using SAP MII 12.1Service Pack 6.
    Please find the XML the is getting displayed when I call the WS from browser below:
    =====================================================================================================
    <?xml version="1.0" encoding="UTF-8"?><definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.sap.com/xMII" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.sap.com/xMII">
        <!-- Types -->
        <types>
            <s:schema elementFormDefault="qualified" targetNamespace="http://www.sap.com/xMII">
                <s:complexType name="InputParams">
                    <s:sequence id="InputSequence">
                    <s:element maxOccurs="1" minOccurs="0" name="Input1" type="s:string"/><s:element maxOccurs="1" minOccurs="0" name="Input2" type="s:string"/></s:sequence>
                </s:complexType>
                <s:element name="XacuteRequest">
                    <s:complexType>
                        <s:sequence>
                            <s:element maxOccurs="1" minOccurs="0" name="LoginName" type="s:string"/>
                            <s:element maxOccurs="1" minOccurs="0" name="LoginPassword" type="s:string"/>
                            <s:element maxOccurs="1" minOccurs="0" name="InputParams" type="s0:InputParams"/>
                        </s:sequence>
                    </s:complexType>
                </s:element>
                <s:complexType name="Rowset">
                    <s:sequence>
                        <s:element maxOccurs="unbounded" minOccurs="0" name="Row" type="s0:Row"/>
                    </s:sequence>
                    <s:attribute name="Message" type="s:string"/>
                </s:complexType>
                <s:complexType name="Row">
                    <s:sequence id="RowSequence">
               <s:any maxOccurs="132" minOccurs="1" type="s:string"/></s:sequence>
                </s:complexType>
                <s:element name="XacuteResponse">
                    <s:complexType>
                        <s:sequence>
                            <s:element maxOccurs="1" minOccurs="0" name="Rowset" type="s0:Rowset"/>
                        </s:sequence>
                    </s:complexType>
                </s:element>
            </s:schema>
        </types>
        <!-- Messages -->
        <message name="XacuteSoapIn">
            <part element="s0:XacuteRequest" name="parameters"/>
        </message>
        <message name="XacuteSoapOut">
            <part element="s0:XacuteResponse" name="parameters"/>
        </message>
        <!-- Ports -->
        <portType name="XacuteWSSoap">
            <operation name="Xacute">
                <input message="s0:XacuteSoapIn"/>
                <output message="s0:XacuteSoapOut"/>
            </operation>
        </portType>
        <!-- Bindings -->
        <binding name="XacuteWSSoap" type="s0:XacuteWSSoap">
            <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
            <operation name="Xacute">
                <soap:operation soapAction="http://www.sap.com/xMII" style="document"/>
                <input>
                    <soap:body use="literal"/>
                </input>
                <output>
                    <soap:body use="literal"/>
                </output>
            </operation>
        </binding>
        <!-- Service mapping -->
        <service name="XacuteWS">
            <port binding="s0:XacuteWSSoap" name="XacuteWSSoap">
                <soap:address location="http://192.168.128.41:50700/XMII/SOAPRunner/MIIDemoHome/DashBoard/Test121TRX"/>
            </port>
        </service>
    </definitions>

  • Problem running web service demo 10gR2 form

    Hi all,
    I have downloaded the Oracle Forms 10gR2 Demos from OTN and I have the problem while running WEBSERVICES form. When I am trying to change value of the currency drop down list to call web services I am getting Java exception with the message “msg=connection refused”.
    However I verified the installation of web services http://127.0.0.1:8889/demowebservice/Forms90CurrencyConverter
    and its working fine.
    Any suggestion will be much appreciated.
    Thank you in advance.

    I am not an expert on web services, but I believe this message indicates that the server you are trying to connect to (local machine) refuses to talk to you. The reason why can be many.
    Also see:
    Problem Calling WebService in Form

  • Service Ticket view cannot be displayed

    Hi Experts,
    In the Web IC, when I try to click on the "Service Ticket" button from the navigation bar, I see the following error:
    Cannot display view ICCMP_BTSHEAD/BTSHeader of UI Component ICCMP_BTSHEAD
    An exception has occurred Exception Class  CX_BSP_INV_ATTR_NAME - BSP exception: An attribute with the name "BTCCODELOGSYS" is not defined 
    Method:  CL_BSP_PAGE_BASE=>IF_BSP_PAGE~SET_ATTRIBUTE 
    Source Text Row:  16
    Actually half of the screen is displayed and the top half is not displayed, but blank.
    Can anyone please tell me where I can add the attribute 'BTCCODELOGSYS".
    Thanks,
    John

    Hi,
    Open the SharePoint Central Administration,
    go to Application Management --> Manage Web Applications
    Click to select the web application that hosts your list (eg. SharePoint - 8080)
    At the Ribbon, select the General Settings and select Resource Throttling
    Then, you can see the 5000 List View Threshold limit and you can edit the value you want.
    Click OK to save it.
    Check this blog for more information:
    http://blogs.msdn.com/b/dinaayoub/archive/2010/04/22/sharepoint-2010-how-to-change-the-list-view-threshold.aspx
    Hope it could help
    Cheers, Hemendra-MCTS "Yesterday is just a memory,Tomorrow we may never see"

  • There is an error with your web service settings that cannot be repaired automatically. Please Contact Product Support

    I get the above error message (in the title of this post) when I try to setup my remote website.  When I try to access the remote website, I receive the error message below.
    Please let me know what I need to do to correct the error.  Thanks!
    When accessing my remote website on Windows Server 2012 Essentials, I receive the following error message:
    Server Error in '/' Application.
    Could not load file or assembly 'Wssg.Web.Internal, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.            
    Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Wssg.Web.Internal, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    Source Error:
    The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
    1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
      <%@ Page Language="C#" Debug="true" %>
    or:
    2) Add the following section to the configuration file of your application:
    <configuration>
       <system.web>
           <compilation debug="true"/>
       </system.web>
    </configuration>
    Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
    Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.                  
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Wssg.Web.Internal, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    Stack Trace:
    [FileNotFoundException: Could not load file or assembly 'Wssg.Web.Internal, Version=6.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
    Microsoft.WindowsServerSolutions.Web.RootSite._Default.InitializeCulture() +0
    ASP.default_aspx.FrameworkInitialize() +42
    System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +68
    System.Web.UI.Page.ProcessRequest() +119
    System.Web.UI.Page.ProcessRequest(HttpContext context) +99
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18447            
    Thanks. Paul Carvajal

    I'm not getting a return - my server name is Beast - is this correct?
    Get-ChildItemcert:\localmachine\my
    |where{$_.Subject-eq
    "CN=$env:BEAST"}|foreach{$_.Thumbprint}
    Thanks. Paul Carvajal

  • Web Service Demo

    I want to build a scenario (RFC -
    > XI ---> Webservice)
    I will be supplying the US $$$ in my ABAP program it goes to the XI via RFC and then XI place this request to a WEBSERVICE to get the converted Currency in Japen YEN.
    I know this is a Synchronous call. I want to know the Steps involved in R/3 Side, XI Side and on the Webservice side.
    Thanks a lot.

    Rohini,
    For RFC Sender , this blog by Michal will help,
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    In XI, import the WSDL of the webservice, create the request and response message mapping.
    Request -- Between RFC Req and Web Serviuce Req
    Response --Between WebService Response and RFC response
    One ionterface mapping between 2 synchronous Inetrafces for the RFC and the Webservice.
    All config in ID.
    ALso take a look at this blog ,
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    Regards,
    Bhavesh

  • Trying to install itunes on xp. Popup in top left corner "webpage cannot be displayed".

    Using IE8 and have security set to low and pop up blocker off. security allowes software to run without authenticity.
    Please help! Unable to do anything with my iPods since I wiped my computer!

    Can't you borrow a friend's external drive ?
    You could use mine but I live a bit far away (10 hours flight)... unfortunately for you ...
    If you have important data on your drive you should anyway consider such an external hard drive for easy, safe and fast backup ! Prices droped significantly and a low capacity (120 gig) external firewire drive shouldn't cost over $100.-- (unlike a computer, they easely fit in a safe when you are away for a long period...)
    You could ask someone (reliable) or Apple centre to change the internal drive by remplacing it with a new faster one. This way you may put the old drive in an empty (you should buy an external drive case, I suggest a sarotech FW/USB II and a maxtor drive) case you could use as backup drive.
    This solution is a little more expensive but has the advantage of a longer (+/-3 years) factory waranty on the drive ("ready to use" external drives are cheaper but usualy carry only one year waranty).
    Best regards
    coolapic
      Mac OS X (10.4.3)  
      Mac OS X (10.4.3)  

  • Display a PDF returned as a base64 encoded clob from web service

    I'm trying to display a PDF document returned from a SOAP v1.1 web service. I'm able to return the XML into a collection using a process of type 'web service', but am struggling to display the document.
    This is the code I'm using to (attempt to) display the document, which doesn't return anything. If I exclude the clobbase642blob conversion an Adobe Reader pop-up appears, but I get an error message stating it is not a supported file type or the file has been damaged, which I would expect since it's a clob rather than a blob.
    DECLARE
      l_length    NUMBER;
      l_file_name VARCHAR2 (4000);
      l_file CLOB;
      l_blobfile BLOB;    
      l_ext VARCHAR2 (4000);
    BEGIN
      SELECT xtab."fileContent", xtab."fileName"
      INTO l_file, l_file_name
      FROM apex_collections c,
              XMLTable(XMLNAMESPACES(DEFAULT 'http://www.stellent.com/Payslip_Services/'),'//Payslip_Get_FileResponse/Payslip_Get_FileResult/downloadFile' passing xmltype001
                COLUMNS "fileContent" clob PATH 'fileContent'
                      , "fileName" PATH 'fileName'
              ) xtab
    where c.collection_name = 'P15_PAYSLIP_GET_FILE_RESULTS';
    l_blobfile := apex_web_service.clobbase642blob(l_file);
    l_length := DBMS_LOB.getlength(l_file);
      If INSTR (l_file_name, '.', -1, 1) > 0 then
          l_ext := SUBSTR (l_file_name, INSTR (l_file_name, '.', -1, 1) + 1);
      End if;
      IF (UPPER (l_ext) = 'PDF') THEN
        OWA_UTIL.mime_header ('application/pdf', FALSE);
      ELSIF (UPPER (l_ext) = 'DOC') THEN
        OWA_UTIL.mime_header ('application/msword', FALSE);
      ELSIF (UPPER (l_ext) = 'TXT') THEN
        OWA_UTIL.mime_header ('text/plain', FALSE);
      ELSIF (UPPER (l_ext) = 'HTML') THEN
        OWA_UTIL.mime_header ('text/html', FALSE);
      ELSE
        owa_util.mime_header('application/octet', FALSE );
      END IF;
      HTP.p ('Content-length: ' || l_length);
      HTP.p ( 'Content-Disposition: attachment; filename="' || l_file_name || '"' );
      OWA_UTIL.http_header_close;
      WPG_DOCLOAD.download_file (l_file);
    END;
    Apex 4.2.2
    Oracle 11g 11.2.0.1.0
    Any suggestions would be appreciated.
    Thanks,
    Graham

    What Adobe product is this a question for? This forum is for XML/API functionality for Adobe Connect. I'll move this question to the appropriate forum.

Maybe you are looking for

  • I erased some revery files by trash and my mac is very slow

    I updated to Yosemite, then my mac goes too slow, trying to improve a deleted all trash, trash recovered some files and I deleted as well and now my mac is taking 30 to 50 minutes to start up I ran etrek and found this error messages: EtreCheck versi

  • Time Machine can no longer find backup disk

    I have a USB drive hooked up to my airport extreme that I used to use as a TimeMachine backup for my MacBook Pro. I use another external drive to back up my iMac, but it is connected to the iMac directly. The drive on the airport extreme used to back

  • Unable to find Database Item Name for Employee Category at assignment level

    Hi, What is the database item name for employee category at assignment level. I want to call employee category colomn of assignment level in fast formula. Thanks in advance...

  • I cant not control wlc 5760 (every thing CLI & GUI)

    After wlc 5760 reload (because of some problems.) I don't know this message. and I can not control wlc 5760 in CLI console. Please help me. %Error opening tftp://255.255.255.255/network-confg (Timed out) %Error opening tftp://255.255.255.255/cisconet

  • Passing Jbytearray to unsigned char

    Hello Group: I am newer in JNI and I have a little problem: I have a native method with the follow signature: public native int enroll(byte[] template); now I have it type data in C: typedef unsigned char FPIMAGE; /* fp image data object */ Implement