JDev: Generating Web Services for Streaming Attachments

Hi,
I am a newbie in this field. I am trying to generate web service code using JDev (10.1.3.3). I have an interface class and the implementation class. When I am trying to generate J2EE Web Service for the implementation class, I am getting the following error:
"The selected class doesn't contain any public method publishable in a web service".
Following is my code:
Interface:
package testing;
import oracle.webservices.attachments.Attachments;
public interface ImageStore extends java.rmi.Remote {
public void storeImage (String name, String desc, Attachments attachments) throws java.rmi.RemoteException;
Impl:
package testing;
import java.io.InputStream;
import javax.activation.DataHandler;
import oracle.webservices.attachments.Attachment;
import oracle.webservices.attachments.Attachments;
import oracle.webservices.attachments.IncomingAttachments;
public class ImageStoreImpl {
public static String storeImage(String name, String desc, Attachments attachments) throws Exception {
IncomingAttachments incomingAtts = attachments.getIncomingAttachments();
if (incomingAtts == null || !incomingAtts.hasNextAttachment())
throw new Exception("Expected request attachments");
Attachment imageAtt = incomingAtts.nextAttachment();
String id = imageAtt.getId();
DataHandler dataHandler = imageAtt.getDataHandler();
InputStream imageStream = dataHandler.getInputStream();
//-- Store image metadata and stream image bytes
if (incomingAtts.hasNextAttachment())
throw new Exception("Expected only one attachment");
return "success";
Can someone please let me know how can I generate the web service for this code using JDev.
Thanks,
J

Hi J,
Why is the concrete class not implementing the ImageStore interface? Anyways, I believe the ImageStoreImpl#storeImage method cannot be static if you want to generate a WS.
Furthermore, you should consider posting your question in the JDev 10G (JDeveloper and ADF forum as this one is for 11G.
Olivier

Similar Messages

  • JDev: Generating Web Services for Streaming Attachment

    Hi,
    I am a newbie in this field. I am trying to generate web service code using JDev (10.1.3.3). I have an interface class and the implementation class. When I am trying to generate J2EE Web Service for the implementation class, I am getting the following error:
    "The selected class doesn't contain any public method publishable in a web service".
    Following is my code:
    Interface:
    package testing;
    import oracle.webservices.attachments.Attachments;
    public interface ImageStore extends java.rmi.Remote {
    public void storeImage (String name, String desc, Attachments attachments) throws java.rmi.RemoteException;
    Impl:
    package testing;
    import java.io.InputStream;
    import javax.activation.DataHandler;
    import oracle.webservices.attachments.Attachment;
    import oracle.webservices.attachments.Attachments;
    import oracle.webservices.attachments.IncomingAttachments;
    public class ImageStoreImpl {
    public static String storeImage(String name, String desc, Attachments attachments) throws Exception {
    IncomingAttachments incomingAtts = attachments.getIncomingAttachments();
    if (incomingAtts == null || !incomingAtts.hasNextAttachment())
    throw new Exception("Expected request attachments");
    Attachment imageAtt = incomingAtts.nextAttachment();
    String id = imageAtt.getId();
    DataHandler dataHandler = imageAtt.getDataHandler();
    InputStream imageStream = dataHandler.getInputStream();
    //-- Store image metadata and stream image bytes
    if (incomingAtts.hasNextAttachment())
    throw new Exception("Expected only one attachment");
    return "success";
    Can someone please let me know how can I generate the web service for this code using JDev.
    Thanks,
    J

    Can anyone please help me -- I am really stuck.
    Thanks,
    J

  • How to generate web services for OAS with wsdl extension

    Hi,
    I wanted to know how to generate web services from Oracle Application Server especially with .wsdl extension and with document/literal style.
    I know that earlier there was a tool called SmartConnect from BEA WebLogic.
    But that will work only with ALSB (Aqua logic Service Bus). I guess that ALSB has been renamed as Oracle Service Bus by Oracle after the acquisition of WebLogic. My question is what is the new name for the SmartConnect Tool from WebLogic, which generates wsdl very easily from Oracle database.
    I am unable to know the new name for SmartConnect and how to download that tool from Oracle web site.
    Also, I want to know, whether there is any other way to generate the wsdl from Oracle, if so, please let me know.
    Regards
    Raman

    Hi Jeethandra,
    Please refere to the below link might be some help.
    [http://help.sap.com/saphelp_mdmgds55/helpdata/en/45/069152856241e1e10000000a1553f6/frameset.htm]
    regards
    shankar

  • How to generate web services for MDM Taxanomy Tables?

    Hi Experts,
    I have a Taxonomy table called eClass in material repository which contains the Hierarchical data. The data[Attributes of this table ] can be seen only in Taxonomy Mode, I want to generate the web service using MDM Web Service Generator. The service should perform the CRUD operation over this table and retrieve the attributes. I generated the service for this table but I am not able to retrieve the attributes. Please help me out for this situations. Any pointers regarding this will be appreciated.
    Thanks & Regards
    Jeetendra

    Hi Jeethandra,
    Please refere to the below link might be some help.
    [http://help.sap.com/saphelp_mdmgds55/helpdata/en/45/069152856241e1e10000000a1553f6/frameset.htm]
    regards
    shankar

  • Problem accessing JDev Generated Web Service on PL/SQL Package

    Hi,
    I'v generated a web service from a pl package using the wizard in JDev for use with Adobe Flex builder. Adobe says they support two types of web services, WSDL 1.1 RPC-Encoded and Document-literal. When I create the web service as Document literal, I am able to consume the web service without errors, however, adobe cannot parse the xml because of the namespace tags. I then created an RPC-encoded type of webservice but then when I run my Flex application, it gives following error:
    [WSDLError faultString="Type tns1:text_xml not resolvable" faultCode="WSDL.BadType" faultDetail="null"]
         at mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::parseMessage()
         at mx.rpc.soap::WSDLOperation/parseMessages()
         at mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::invokePendingCall()
         at mx.rpc.soap::Operation/send()
         at Function/http://adobe.com/AS3/2006/builtin::apply()
         at mx.rpc.soap.mxml::Operation/send()
         at SandBox/__btnGetEmployees_click()
    It seems that it does not like either something in the encoded message or the WSDL. Below is my WSDL:
    <definitions name="FamWS" targetNamespace="http://labsoma/FamWS.wsdl">

         <types>

         <schema targetNamespace="http://www.oracle.com/webservices/internal">
    <import namespace="http://labsoma/FamWS.wsdl/types/"/>

         <simpleType name="text_xml">
    <restriction base="string"/>
    </simpleType>
    </schema>

         <schema targetNamespace="http://labsoma/FamWS.wsdl/types/">
    <import namespace="http://www.oracle.com/webservices/internal"/>

         <complexType name="ArrayOfGetFamRowUser">

         <complexContent>

         <restriction base="soap11-enc:Array">

         <sequence>
    <element name="item" type="tns:GetFamRowUser"/>
    </sequence>
    <attribute ref="soap11-enc:arrayType" wsdl:arrayType="tns:GetFamRowUser[]"/>
    </restriction>
    </complexContent>
    </complexType>

         <complexType name="GetFamRowUser">

         <complexContent>

         <extension base="tns:GetFamRowBase">

         <sequence>
    <element name="firstName" type="string"/>
    <element name="id" type="decimal"/>
    <element name="lastName" type="string"/>
    </sequence>
    </extension>
    </complexContent>
    </complexType>

         <complexType name="GetFamRowBase">
    <sequence/>
    </complexType>
    </schema>
    </types>
    <message name="FamWS_getFamBeans"/>

         <message name="FamWS_getFamBeansResponse">
    <part name="result" type="tns0:ArrayOfGetFamRowUser"/>
    </message>
    <message name="FamWS_getFamXMLRowSet"/>

         <message name="FamWS_getFamXMLRowSetResponse">
    <part name="result" type="tns1:text_xml"/>
    </message>
    <message name="FamWS_getFamXMLSource"/>

         <message name="FamWS_getFamXMLSourceResponse">
    <part name="result" type="tns1:text_xml"/>
    </message>

         <portType name="FamWS">

         <operation name="getFamBeans">
    <input message="tns:FamWS_getFamBeans"/>
    <output message="tns:FamWS_getFamBeansResponse"/>
    </operation>

         <operation name="getFamXMLRowSet">
    <input message="tns:FamWS_getFamXMLRowSet"/>
    <output message="tns:FamWS_getFamXMLRowSetResponse"/>
    </operation>

         <operation name="getFamXMLSource">
    <input message="tns:FamWS_getFamXMLSource"/>
    <output message="tns:FamWS_getFamXMLSourceResponse"/>
    </operation>
    </portType>

         <binding name="FamWSSoapHttp" type="tns:FamWS">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

         <operation name="getFamBeans">
    <soap:operation soapAction="http://labsoma/FamWS.wsdl/getFamBeans"/>

         <input>
    <soap:body use="encoded" namespace="http://labsoma/FamWS.wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>

         <output>
    <soap:body use="encoded" namespace="http://labsoma/FamWS.wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="result"/>
    </output>
    </operation>

         <operation name="getFamXMLRowSet">
    <soap:operation soapAction="http://labsoma/FamWS.wsdl/getFamXMLRowSet"/>

         <input>
    <soap:body use="encoded" namespace="http://labsoma/FamWS.wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>

         <output>
    <soap:body use="encoded" namespace="http://labsoma/FamWS.wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="result"/>
    </output>
    </operation>

         <operation name="getFamXMLSource">
    <soap:operation soapAction="http://labsoma/FamWS.wsdl/getFamXMLSource"/>

         <input>
    <soap:body use="encoded" namespace="http://labsoma/FamWS.wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>

         <output>
    <soap:body use="encoded" namespace="http://labsoma/FamWS.wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="result"/>
    </output>
    </operation>
    </binding>

         <service name="FamWS">

         <port name="FamWSSoapHttpPort" binding="tns:FamWSSoapHttp">
    <soap:address location="http://glaptop.sharpanalytics.com:8888/SandBox-GetNums-context-root/FamWSSoapHttpPort"/>
    </port>
    </service>
    </definitions>
    I'm not a XML or Web Service guru, so I hope somebody out there has had similar or can help bridge the gap of my Web Service ignorance.
    Thanks

    There are samples and more information on calling Web services from the database here:
    http://otn.oracle.com/tech/webservices/database.html

  • Error when generating Web Services Proxy for SCA Application Module

    Hello,
    I'm trying to create Web Services for a simple Application Module with JDeveloper 11g (11.1.1.3.0).
    I start a new ADF Project, I create an Application Module as simple as possible : it contains only a simple View Object on the DEPT Entity.
    On my Application Module, I choose "Service Interface" and I add my View Object in the service interface.
    I test my Web Service in the Embedded Weblogic Server, it works well. (I succeed in using the Get operation, for example).
    But when I try to generate a Web Service proxy (right-click on the WSDL File -> Generate Web Service Proxy), It always fail with such errors :
    oracle.jdeveloper.webservices.tools.WsdlValidationException: Error creating model from wsdl "file:/C:/JDeveloper/mywork/ApplicationAppelServiceSCA/Model/src/model/common/AppModuleService.wsdl": 'unset' is already defined'Bytes' is already defined'ref' is already defined'Duration' is already defined'Types' is already defined'Character' is already defined'type' is already defined'Day' is already defined'nestedInterfaces' is already defined'Date' is already defined'datagraph' is already defined'Type' is already defined'Integer' is already defined'ModelsType' is already defined'ChangeSummaryType' is already defined'instanceClass' is already defined'Month' is already defined'DataObject' is already defined'javaClass' is already defined'LongObject' is already defined'DateTime' is already defined'dataObject' is already defined'YearMonth' is already defined'ShortObject' is already defined'Long' is already defined'types' is already defined'JavaInfo' is already defined'IntObject' is already defined'Boolean' is already defined'DoubleObject' is already defi...
    Can someone help me to understand this error ?
    i never manually edited the WSDL File, so I don't understand why the generated WSDL or XSD files might contain errors.
    Thanks for your Help,
    Laurent

    We have the same problem, and the problem was in the xsd import:
    The wdsl import a schema that import other schema, the second import use a relative path, that was wrong.
    So check the xsd import sequence....

  • Problem using WSDL from SAP in IBM's RAD for generating web service client

    When importing a WSDL from the ABAP stack on a SAP 6.40 system into IBM's RAD tool for generating a web service client there are errors with the soap fault classes that get generated.  The WSDL declares the types for the faults with WebServiceName.RfcException and these have elements of name, text, and message.  When the tools see this in the WSDL they generate classes that extend the Java exeception class and this causes an error because the "message" name conflicts with the standard java exception message.  Has anyone else ran into this problem?  It seems like a basic problem many java tools for generating web service client proxies would have because the soap faults get turned into java exceptions.  This name conflict of the java exception with the WSDL fault definition means that code always needs to be adjusted and cannot simply use the classes that are generated from the WSDL.  Anyone run across this or a similar problem in the java environment using the SAP WSDL?
    Aaron

    Hi,
    Hello again .
    Have you tried your service using soapui ?
    You can use your WSDL as input .
    In order to eliminate eclipse problem try this service:(I just did)
    http://www.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL
    Regards.
    package main;
    import java.io.FileInputStream;
    import java.rmi.RemoteException;
    import java.util.Properties;
    import org.oorsprong.www.websamples_countryinfo.CountryInfoServiceSoapType;
    import org.oorsprong.www.websamples_countryinfo.CountryInfoServiceSoapTypeProxy;
    import org.oorsprong.www.websamples_countryinfo.TCountryCodeAndName;
    public class Main {
    public static void main(String[] args) {
      try {
       final Properties properties = new Properties();
       properties.load(new FileInputStream("properties.ini"));
       System.getProperties().putAll(properties);
      } catch (final Exception exception) {
       exception.printStackTrace();
      new Main();
    public Main() {
      try {
       final CountryInfoServiceSoapType infoServiceSoapType = new CountryInfoServiceSoapTypeProxy();
       final TCountryCodeAndName[] tCountryCodeAndNames = infoServiceSoapType.listOfCountryNamesByName();
       for (final TCountryCodeAndName tCountryCodeAndName : tCountryCodeAndNames) {
        System.out.println(tCountryCodeAndName.getSName());
      } catch (final RemoteException exception) {
       exception.printStackTrace();

  • Have problem when generate Web Service from bapi function

    Dear all,
    Please kindly help me about generating Web Service from BAPI function, It does not success only this attached function.
    I have done so many function without any problems.
    I found 1 case that I use specific variable to be an import/ export then, it can't create as well.
    As for this one, I try so many changes but I can't success it as well.
    This is my function on R/3 4.6C, Dot net connector 2.0, Dot net Frame Work 1.1.
    FUNCTION Z_BAPI_ATTACHMENT_CREATE.
    ""Local interface: Type: Remote-enabled module
    *"  IMPORTING
    *"     VALUE(P_BOTYPE) LIKE  BORIDENT-OBJTYPE
    *"     VALUE(P_BO_ID) LIKE  BORIDENT-OBJKEY
    *"     VALUE(P_MSGTYP) LIKE  SOFM-DOCTP
    *"     VALUE(P_DOCTY) LIKE  BORIDENT-OBJTYPE
    *"     VALUE(P_RELTYP) LIKE  BRELTYP-RELTYPE
    *"     VALUE(P_FNAME) LIKE  RLGRAP-FILENAME
    *"     VALUE(P_OBJDES) TYPE  SO_OBJ_DES
    *"  EXPORTING
    *"     VALUE(RETURNMESSAGE) TYPE  CHAR50
    INCLUDE : <cntn01>.
    P_BOTYPE  TYPE  BORIDENT-OBJTYPE DEFAULT 'BUS2105'
    P_BO_ID   TYPE  BORIDENT-OBJKEY
    P_MSGTYPE TYPE  SOFM-DOCTP DEFAULT 'URL'
    P_DOCTY   TYPE  BORIDENT-OBJTYPE DEFAULT 'MESSAGE'
    P_RELTYP  TYPE  BRELTYP-RELTYPE DEFAULT 'ATTA'
    P_FNAME   TYPE  RLGRAP-FILENAME
    P_OBJDES  TYPE  SO_OBJ_DES
    TYPES: BEGIN OF ty_message_key,
    foltp TYPE so_fol_tp,
    folyr TYPE so_fol_yr,
    folno TYPE so_fol_no,
    doctp TYPE so_doc_tp,
    docyr TYPE so_doc_yr,
    docno TYPE so_doc_no,
    fortp TYPE so_for_tp,
    foryr TYPE so_for_yr,
    forno TYPE so_for_no,
    END OF ty_message_key.
    DATA : lv_message_key TYPE ty_message_key.
    DATA : lo_message TYPE swc_object.
    DATA : lt_doc_content TYPE STANDARD TABLE OF soli-line
    WITH HEADER LINE.
    First derive the Attachment's ( MESSAGE )document type.
    p_docty = 'MESSAGE'.
    CASE p_reltyp.
    In case of URls
      WHEN 'URL'.
        p_msgtyp = 'URL'.
    In case of Notes / Private Notes
      WHEN 'NOTE' OR 'PNOT'.
        p_msgtyp = 'RAW'.
      WHEN 'ATTA'.
    Take given parameter e.g. 'DOC', 'PDF' etc.
    P_MSGTYP = 'EXT'.
      WHEN OTHERS.
    ....exit
        EXIT.
    ENDCASE.
    Create an initial instance of BO 'MESSAGE' - to call the
    instance-independent method 'Create'.
    swc_create_object lo_message 'MESSAGE' lv_message_key.
    define container to pass the parameter values to the method call
    in next step.
    swc_container lt_message_container.
    Populate container with parameters for method
    swc_set_element lt_message_container 'DOCUMENTTITLE' p_objdes.
    swc_set_element lt_message_container 'DOCUMENTLANGU' 'E'.
    swc_set_element lt_message_container 'NO_DIALOG' 'X'.
    swc_set_element lt_message_container 'DOCUMENTNAME' p_docty.
    swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
    In case of URLs..it should be concatenated with &KEY& in the begining.
    CASE p_msgtyp.
      WHEN 'URL'.
      lt_doc_content = '&KEY&http://www.rmtiwari.com' .
        CONCATENATE '&KEY&' p_fname INTO lt_doc_content.
        APPEND lt_doc_content.
    In case of Notes or Private Notes, get the data from files on appl
    server or from wherever(? - remember background).
      WHEN 'RAW'.
        lt_doc_content = p_fname.
        APPEND lt_doc_content.
    In case of PC File attachments
      WHEN OTHERS.
        OPEN DATASET p_fname FOR INPUT IN BINARY MODE.
        IF sy-subrc EQ 0.
          DO.
            READ DATASET p_fname INTO lt_doc_content.           "2 of 27
            IF sy-subrc EQ 0.
              APPEND lt_doc_content.
            ELSE.
              EXIT.
            ENDIF.
          ENDDO.
          CLOSE DATASET p_fname.
        ENDIF.
    ENDCASE.
    'DocumentContent' is a multi-line element ( itab ).
    swc_set_table lt_message_container 'DocumentContent' lt_doc_content.
    Size is required in case of File attachments
    DATA : lv_doc_size TYPE i.
    DATA : l_file_lines TYPE i.
    DESCRIBE TABLE lt_doc_content LINES l_file_lines.
    READ TABLE lt_doc_content INDEX l_file_lines.
    lv_doc_size = ( 255 * ( l_file_lines - 1 ) ) +
    STRLEN( lt_doc_content ).
    swc_set_element lt_message_container 'DOCUMENTSIZE' lv_doc_size .
    Refresh to get the reference of create 'MESSAGE' object for attachment
    swc_refresh_object lo_message.
    swc_call_method lo_message 'CREATE' lt_message_container.
    Get Key of new object
    swc_get_object_key lo_message lv_message_key.
    Now we have attachment as a business object instance. We can now
    attach it to our main business object instance.
    Create main BO object_a
    data: LO_IS_OBJECT_A type SIBFLPORB. "type SIBFLPORB is unknown, so I
    DATA: lo_is_object_a TYPE borident.
    lo_is_object_a-objkey = p_bo_id.
    lo_is_object_a-objtype = p_botype.
    LO_IS_OBJECT_A-CATID = 'BO'.
    Create attachment BO object_b
    data: LO_IS_OBJECT_B type SIBFLPORB. "type SIBFLPORB is unknown
    DATA: lo_is_object_b TYPE borident.
    lo_is_object_b-objkey = lv_message_key.
    lo_is_object_b-objtype = p_docty.
    LO_IS_OBJECT_B-CATID = 'BO'.
    *TRY.
    *CALL METHOD CL_BINARY_RELATION=&gtCREATE_LINK
    EXPORTING
    IS_OBJECT_A = LO_IS_OBJECT_A
    IS_OBJECT_B = LO_IS_OBJECT_B
    IP_RELTYPE = P_RELTYP.
    CALL FUNCTION 'BINARY_RELATION_CREATE'
      EXPORTING
        obj_rolea    = lo_is_object_a
        obj_roleb    = lo_is_object_b
        relationtype = p_reltyp
      EXCEPTIONS
        OTHERS       = 1.
    Check if everything OK...who cares!!
    COMMIT WORK.
    if sy-subrc = 0.
      RETURNMESSAGE = 'S-Success'.
    else.
      RETURNMESSAGE = 'E-Error'.
    endif.
    ENDFUNCTION.
    Thanks in advance,
    Benjawan
    Edited by: Nitipat Chadchavalpanichaya on Oct 20, 2008 9:02 AM

    There is no any error message show up. It just the class
    Z_BAPI_ATTACHMENT_CREATE  doesn't create autometically as normal. I showed you as below.
    That means I can't call class z_bapi_attachment_create.
    ' <autogenerated>
    '     This code was generated by a SAP. NET Connector Proxy Generator Version 2.0
    '     Created at 21/10/2551
    '     Created from Windows
    '     Changes to this file may cause incorrect behavior and will be lost if
    '     the code is regenerated.
    ' </autogenerated>
    Imports System
    Imports System.Text
    Imports System.Collections
    Imports System.ComponentModel
    Imports System.Runtime.InteropServices
    Imports System.Xml.Serialization
    Imports System.Web.Services
    Imports System.Web.Services.Description
    Imports System.Web.Services.Protocols
    Imports SAP.Connector
      '@ <summary>
      '@ Client SAP proxy class
      '@ </summary>
      <WebServiceBinding(Name:="dummy.Binding", Namespace:="urn:sap-com:document:sap:rfc:functions")> _
      Public Class PRAttachment
        Inherits SAPClient
        '@ <summary>
        '@ Initializes a new PRAttachment.
        '@ </summary>
        Public Sub New()
        End Sub
        '@ <summary>
        '@ Initializes a new PRAttachment with a new connection based on the specified connection string.
        '@ </summary>
        '@ <param name="connectionString">A connection string (e.g. RFC or URL) specifying the system where the proxy should connect to.</param>
        Public Sub New(ByVal ConnectionString As String)
          MyBase.New(ConnectionString)
        End Sub
        '@ <summary>
        '@ Initializes a new PRAttachment and adds it to the given container.
        '@ This allows automated connection mananged by VS component designer:
        '@ If container is disposed, it will also dispose this SAPClient instance,
        '@ which will dispose a contained connection if needed.
        '@ </summary>
        '@ <param name="Cont">The container where the new SAPClient instance is to be added.</param>
        Public Sub New(ByVal Cont As Container)
          MyBase.New(Cont)
        End Sub
      End Class

  • Web Services for a State Machine Based VI

    Hello,
    I am new to the Web Services approach but so far I have managed to build a simple VI which is used with Web Services to display a Graph and make some simple calculations.
    However, I have a more complex application which uses a State Machine architecture to command some circuitry using the NI USB 6211 device. This program includes different states and all the action takes place inside a while loop. This loop uses shift registers to pass the states arround (the JKI State Machine).
    My question is: Could such a program be used with the Web Services without modifying this structure?
    In the programs that I have tried, if I place the execution inside a While structure then I get no result with the Web Services. 
    An example of a simple program which includes a while loop and the Web Services approach would be helpful, if possible.
    Thank you in advance.

    Hello again,
    I was trying to do what Nathand indicated.
    1. "Put a functional global in it that stores whatever value you want to be queried over the web,"
    So I opened a new Project and added the Index.vi just to generate the numbers continuously. This VI writes to a global variable entitled "GlobalOutput.vi".
    This works as I have attached the jpg image.
    2. "and make that VI accessible through VI server."
    This I am not so sure I did correctly. I opened the Tools->Options->VI Server, and here at the section Exported VIs, I added the GlobalOutput.vi. I have attached the image.
    3. "Then, in your web services VI, open a VI server connection to that functional global and run it, by reference, to obtain the value stored there."
    Now I have created another VI, called ServerConnection.vi which runs the GlobalOutput.vi. I have attached the image with the error I get. Something is wrong in what I am doing. In the end I thought that I would create a Web Service for this last vi and basically be able to read the global variable.
    As I understand it, you have a VI which runs locally, in a while loop and updates some global variables. Then another vi reads the values of those global variables.
    It is this last vi that you should create a web service and interogate to find out the values of those variables. What am I missing?
    Thank you in advance.
    Attachments:
    GlobalVariable.JPG ‏21 KB
    ViServer.JPG ‏36 KB
    error message.JPG ‏38 KB

  • Web service that streams a clob to the calling application

    I need to produce a web service that streams a clob to a calling application: what I have currently is a web service that contains calls to htp, thinking this would serve as a way for a user to download a clob from the procedure that the web service is based on (see Trouble calling htp in a web service procedure
    I can't get that approach to work at all, so rather than repeatedly bang my head against the wall I'll raise the following question: is there a standard approach whereby a clob can be streamed to the application consuming the web service? Note that I have limited myself in that I'm consuming the WS using APEX - APEX would like to store a returned value from a FUNCTION web service in a page item or a collection, but I will need to be returning very large CLOBs at times, so this is not an option.
    I'm sure there must be examples of web services being used to return large streams of data returned by stored procedures but I can't seem to find them Could anyone point me in the right direction?

    Ok, I've had to change tack. I've now recreated the web service and have handled the large CLOB as a streaming attachment: this performs well when running the test in Enterprise Manager as it returns a big CLOB very quickly. My problem is consuming this big SOAP message. I have tried calling this web service from a PLSQL procedure shown below but I get the following error:
    ORA-29541: class XMLDBMASTER.oracle/jpub/runtime/dbws/DbwsProxy could not be resolved
    When testing the WS there is obviously a automatically generated stub that will handle the returned SOAP message and it's streaming attachment. How is calling this from a DB procedure different, must I supply a proxy to the procedure manually?
    Please, if anyone has any clue could they give me a shout? (Procedure below)
    PROCEDURE run_ws (p_resid IN VARCHAR2,p_filename VARCHAR2, p_filter_str IN VARCHAR2)
    AS
    l_service UTL_DBWS.service;
    l_call UTL_DBWS.call;
    l_result ANYDATA;
    l_wsdl_url VARCHAR2(1024);
    l_service_name VARCHAR2(200);
    l_operation_name VARCHAR2(200);
    l_input_params UTL_DBWS.anydata_list;
    v_mime VARCHAR2 (48) := NULL;
    v_length NUMBER;
    v_clob CLOB;
    v_file_name VARCHAR2 (2000);
    v_buf VARCHAR2 (32000);
    v_amt NUMBER := 4000;
    v_pos NUMBER := 1;
    BEGIN
    l_wsdl_url := 'http://ltp003357.sepanet.sepa.org.uk:8888/getXMLclob/getXMLclob';
    l_service_name := 'getXMLclob';
    l_operation_name := 'getClob';
    l_service := UTL_DBWS.create_service (
    wsdl_document_location => URIFACTORY.getURI(l_wsdl_url),
    service_name => l_service_name);
    l_call := UTL_DBWS.create_call (
    service_handle => l_service,
    port_name => NULL,
    operation_name => l_operation_name);
    l_input_params(1) := ANYDATA.ConvertVarchar2(p_resid);
    l_input_params(2) := ANYDATA.ConvertVarchar2(p_filename);
    l_input_params(3) := ANYDATA.ConvertVarchar2(p_filter_str);
    l_result := UTL_DBWS.invoke (
    call_handle => l_call,
    input_params => l_input_params);
    UTL_DBWS.release_call (call_handle => l_call);
    UTL_DBWS.release_service (service_handle => l_service);
    v_clob:=ANYDATA.AccessClob(l_result);
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Content-length: ' || v_length);
    HTP.p ('Content-Disposition: attachment; filename="' || NVL('user_test','user_query.xml') || '"');
    OWA_UTIL.http_header_close;
    BEGIN
    v_pos := 1;
    LOOP
    DBMS_LOB.READ (v_clob
    , v_amt
    , v_pos
    , v_buf
    v_pos := v_pos + v_amt;
    HTP.prn (v_buf);
    END LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;
    END;
    END run_ws;

  • Error generating Web service /BIC/CQZDS_WEB00001000 how to over come this?

    HI,
    Experts,
    I have created Web service source system by taking: target system BI and source system XI.
    After creation of Info objects i have created data source in RSA1 there will no error displayed while CHECK but while activating the data source it was displaying errors like:
    1) Error generating Web service /BIC/CQZDS_WEB00001000
    2) Error when activating DataSource ZDS_WEBSERVICE                BIDCLNT100
    what will be the reason for this error plezase provide me good idea or provide step by step web service scenarious.
    Thank you,
    Shabeer Ahmed.

    Hi
    Web AS 6.40 you can create a Web Service Proxy directly in Transaction SE80. Create a new package and right click on it. Choose Create -> Enterprise service / Web service -> Proxy object. Now you can choose how you want to provide the WSDL Source.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80fa3dff-ce76-2a10-3f94-f3df8f2db5a2

  • Problem generating Web Service with business methods in multiple EJB's

    Hi,
    I'm I a "web service novice" but I'm working with an
    application which was developed in an earlier version
    of Studio which has
    ~30 business method coming from ~12 EJB's. When I attempt
    to recreate the Web Service in Java Studio Enterprise 7 (had same problem versions 5 and 6) I have trouble. When I execute the "Generate Web Service Files" command I get complilation errors in the <webservice_name>.java file. It is obvious that the
    protected Map theJNDIMap = makeJNDIMap();
    protected Map makeJNDIMap() {
         Map m = new HashMap();
         // This map might get changed at deployment time
         m.put(......
    is all screwed up. Entries are missing and the closing bracket isn't even there.
    Is there some user error on my part?
    Is this a know bug (I couldn't any info. and I get the same behavior on the current and older versions of Studio)?
    Is there a workaround? I can fix this particular java file and compile it sucessfully. However, I'm still missing many of the other web service files that should be generated for me.
    All the tutorials on web services that I've done to looked over all get there business method from 1 EJB :(
    Please advise,
    Freda Phelps

    I had a problem too. Successfully created an EJB and its test application. Tested the same using Web client and works fine. Now created a web service from EJB methods. It created the skeletons. When tried creating Web Svc test client or web svc other files..it gives me an exception saying xmlservices.jar doesnt exist in the C:\Docs and Settings\<$username>\.jstudio\Ent04Q4modules. I have searched for this file and copied (overwritten) it into this directory. But still i cant proceed further.

  • How to write a web service for uploading a file

    Hi all,
    I want to write a web service for uploading a file to some specified folder under application server, how to do that? Thanks

    I believe the "difference" that you're seeing is that one web service is "RPC" style (The Hello World example) and one web service is "Document" style (The WSDL you have downloaded).
    Document-style web service methods always have one element as a parameter, and this parameter manifests itself as a SOAPElement in the service interface.
    RPC-style web services are true "remote procedure calls", and are more functional in nature, in that they accept multiple parameters. JAX-RPC will bind these parameters to generated Java types.

  • OER: Generate Web Service Proxy REX in JDeveloper

    Hi,
    I want to generate a Web Service Proxy for REX (OER version 11.1.1.5.0) using JDeveloper 11.1.1.5.0. I am using JAX-RPC Weblogic Style. When I start the Web Service Proxy Generator it fails with the following error:
    "The WSDL document contains the following errors:
    Operation "assetTypeTabsRead" and "assetTabApprove" have conflicting SOAPAction avlues. Do not overload any operation or given unique SOAPAction value to each operation binding.
    And many more (42481) ...."
    I am looking for the correct way to generate a Service Proxy foor REX and JDeveloper. Any help is appreciated.
    Best regards,
    Sjoerd
    Edited by: Sjoerd Aalbers on Dec 11, 2011 2:18 PM

    'Generate Web Service Stub/Skeleton' option in 10.1.2, was replaced by 'Generate Web Service Proxy' in 10.1.3

  • Web Services for Oracle 8i

    Is there any means for the Oracle 8i Platform to implement a Webservice to
    access Business Logic in stored precedures?
    We were evaluating IONA's XML Collaboration Suite and their Oracle Adaptor
    but we are not satisfied with the level of control the adaptor provides.
    Do you have any suggestions?
    Best regards,
    Andreas

    Yes, you can publish stored procedures as Web services. Two approaches:
    1. Check out the new Web services sample that came out the other day, example two where SQLJ is used to wrap a Java class as a stored procedure, the connection is then wired into the generated class and finally it is published as a Java Web service using Oracle9i JDeveloper 9.0.2. See:
    http://otn.oracle.com/sample_code/tech/java/web_services/
    and look at the Tax Calculator viewlet/code.
    2. This is essentially the same way that the OC4J PL/SQL Web service samples work too (using SQLJ to generate a Java PL/SQL proxy), but the OC4J sample (url below), provides a more parametric way to pass the connection information to the proxy by using a parameter in the web.xml file. Check out:
    http://download.oracle.com/otn/java/oc4j/how-to-web-services.zip
    See the readme and work with the sample in plsqlws.zip
    This one is a both better and worse from a developers perspective compared to the first Oracle9i Jdeveloper oriented example. The good part, depending on your perspective, is that it is all command line based (some people like this, some people don't) and uses the longer term approach to publishing stored procedures as Web services for Oracle9iAS with the parameters passed in via the web.xml. The bad part is the example is a little hard to follow because many of the pieces are already created for you rather than explaining how they were created. The first example at least shows pretty much all the steps but doesn't quite elegantly solve the connection problem that the OC4J sample does.
    In July/August, Oracle9i JDeveloper will be updated to publish stored procedures using the Oracle9iAS infrastructure (basically the web.xml fix) ... although once you understand it, it is fairly easy to manually do it inside of JDeveloper.
    Hope this gets you going.
    Mike.

Maybe you are looking for