Problem execution web service which display a table

Hi everybody,
I create a web dynpro appication which calls an Adaptative Web Service.
The associated RFC ZTEST_ROD takes 2 inputs parameters and delivers a table like this:
     - Field Import: MATNR type MATNR     WERKS type WERKS_D
     - Field Tables: TABLE_DEST like ZSTRUCT_ARTICLE
When i import the Webservice in WebDynpro, i have the following model binding:
Context:
  Request_ZTEST_ROD
     Response
          ZTEST_ROD_Response
               TABLE_DEST
                    Item
                         LABST
                         LGORT
                         MAKTG
     ZTEST_ROD
          MATNR
          WERKS
For The inputView, i link the context binding:
     ZTEST_ROD->MATNR and WERKS
For the ResultView, i link the context binding:
     Response->ZTEST_ROD_Response->TABLE_DEST->Item     LABST,LGORT and MAKTG     
and i create a table associated to Response->ZTEST_ROD_Response->TABLE_DEST->Item
At last, when i execute the application, i obtain the text:
"Exception on execution of web service on destination 'DEFAULT_WS_EXECUTION_DEST'
for operation 'ZTEST_ROD' in interface"
With NO information in the log defaultTrace.trc
Any suggestions about this problem ?
rewarded points ...
Thanks a lot!
Rodolphe
Edited by: Rodolphe LALOUX on Aug 21, 2008 9:34 AM
Edited by: Rodolphe LALOUX on Aug 21, 2008 9:34 AM
Edited by: Rodolphe LALOUX on Aug 21, 2008 9:34 AM

Hi Rodolphe,
I am not an expert in ABAP. Have a basic understanding of it. RFC have in itself, input parameters, output parameters
and Table parameters. Now whatever is defined as Table parameter can be used both for input and output.So you can pass
any number of records as input in this parameter and then RFC applies some business logic according to what input
you have provided in input and table parameter and send back the output in output parameters and as set of records in
same Table parameter.
In general it is not necessary that you give any input in Table parameter BUT if RFC is exposed as web service then due to some
reason it becomes necessary that whatever you have provided as Table parameter you should provide atleast one blank record
for each of the Table Parameter.
Hope I have not confused you.
Regards,
Gopal

Similar Messages

  • How to provide a (web)service which delivers a process context?

    Hi folks,
    i have designed a process with Process Composer so far.
    Several tasks read and write data into the process context.
    What i want to do now is providing a (web)service which gets an process instance number as input and delivers the data from the corresponding process context as output.
    Maybe someone can explain me the steps that are needed to implement that?
    TIA
    Michael

    Hi Michael,
    In case you want to have an 'instant view' on the process data context that might be an option.
    Nevertheless I would not recommend doing so / be careful if there is no other possibility. Maybe it makes sense to define specific check points where data could be synchronized. You would benefit of a more clean process model and a reduced number of outgoing web service calls which in fact would also speed up process execution.
    I am somehow curious what you are planning to achieve. Could you elaborate on that?
    Best regards,
    Martin

  • Problem while testing a BAPI Web Servicei face this problem in web service

    i face this problem in web service bapi when i am carrying out the submit test... so can anyone help me???
    HTTP/1.1 500 Internal Server Error
    Set-Cookie: <value is hidden>
    content-type: text/xml; charset=utf-8
    content-length: 803
    sap-srt_id: 20080610/144609/v1.00_final_6.40/DD36B8E7DE44B5F19BA900145E6770F3
    server: SAP Web Application Server (1.0;700)
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Body><soap-env:Fault><faultcode>soap-env:Client</faultcode><faultstring xml:lang="en">Deserialisation failed</faultstring><detail><n0:SimpleTransformationFault xmlns:n0="http://www.sap.com/transformation-templates"><MainName>/1BCDWB/WSS0080610064309718000</MainName><ProgName>/1BCDWB/WSS0080610064309718000</ProgName><Line>128 </Line><Valid>X</Valid><ReferenceFault><DescriptionText>Error accessing the ref. node 'EMPLOYEENUMBER'</DescriptionText><RefName>EMPLOYEENUMBER</RefName></ReferenceFault><Caller><Class>CL_SRG_RFC_PROXY_CONTEXT</Class><Method>IF_SXML_PART~DECODE</Method><Positions>1 </Positions></Caller></n0:SimpleTransformationFault></detail></soap-env:Fault></soap-env:Body></soap-env:Envelope>

    Hi,
    since I did not find that BAPI in my system: what is the exact name?
    Did you test the BAPI directly in ABAP, i.e. function builder SE37, successfully?
    Currently it looks to me as if you did not provide sufficient business data.
    Did you specify the employee number before executing the call?

  • Can universe connect to restful web service which is not soap based

    Can universe connect to restful webservice? I know it is allowed to connect to SOAP webservice. Currently is using WSDL1.1.
    How about restful web service which does not have any wsdl file?

    Hi,
    there is a chapter - Security Configuration at Message Level
    in XI config guide which specifies everything you need - this is what you need
    so I hope no further explanations are necessary
    Regards,
    Michal Krawczyk

  • Connection pooling problem in web service call

    Hi,
    I want to create some REST web services which will be called frequently by other applications (making calls at each 4-5 seconds).
    During the day there can be several instances active (20-30) which will use those web services. In conclusion there will be many database calls.
    What's the best solution to avoid seeing JDBC connection failure in weblogic console and to use connection pooling properly?
    1. Use createRootApplicationModule and after that call release
    2. Get the datasource instance and after that do whatever business (get VOs, methods etc.)
    ...or there is another solution?
    Thanks.
    Edited by: DorinS on 03.11.2011 12:02

    Hi,
    If the POJO you use to expose the service stays in memory then you don't need to close the AM reference. However, what you really want to do is to use JDBC Datasources with your AM configuration so the server manages a pool of database connections the AM then reaches out to
    Frank

  • Call Web Service and display return values in table

    Hi all,
    I am calling a self-implemented web service with visual composer. The webservice returns the following data shown below.
    Each item like carID, carBrand etc. should be displayed in an output table.
    The problem is, that he doesn't display any data at all. Is there a problem with the webservice data which is returned or do I have to do some further settings in visual composer?
    Thank you for your help! Kind regards, Patrick.
      <?xml version="1.0" encoding="utf-8" ?>
    - <ArrayOfCar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://IBM-W2003-EAI/GetCarList">
    - <Car>
      <CarID>A-471</CarID>
      <CarBrand>Alfa</CarBrand>
      <CarModel>156</CarModel>
      <Kw>100</Kw>
      <Ps>136</Ps>
      <Km>79000</Km>
      <Year>1998</Year>
      <Price>7500,0000</Price>
      <Url />
      <Status>Available</Status>
      </Car>
    - <Car>
      <CarID>A-736</CarID>
      <CarBrand>Audi</CarBrand>
      <CarModel>A4</CarModel>
      <Kw>110</Kw>
      <Ps>150</Ps>
      <Km>87000</Km>
      <Year>2000</Year>
      <Price>15780,0000</Price>
      <Url />
      <Status>Reserved</Status>
      </Car>
    </ArrayOfCar>

    Hi Shai,
    the webservice is working well, trying to test it with webservice navigator.
    He also returns the correct number of rows (because there appears slider beneath the table output and I also counted the rows), but there is no data displayed in visual composer.
    I have got no further ideas, what the problem is...
    THank you for your support.
    Kind regards, PAtrick.

  • Problem verify web services HelloWorld JAX-RPC

    I have executed the tutorial Jax-RPC HelloWorld,
    but when I verify the web service my browser display
    A Web Service is installed at this URL.
    This endpoint is incorrectly configured. Please check the location and contents of the configuration file.
    which it is the problem?
    you can help me?
    thanks

    Check if the endpoint property of the build.properties file
    (ex. endpoint=...ttp://localhost:8080/SmsWSservice/SMS/SmsWSIF)
    matches exactly (is case sensitive) the url pattern element content (ex. <servlet-mapping>
              <servlet-name>JAXRPCEndpoint</servlet-name>
              <url-pattern>/SMS/*</url-pattern>
         </servlet-mapping>) of the web.xml file.
    In the examples above the url-pattern "SMS" must match the part of the URL between "...ttp://localhost:8080/SmsWSservice/" and the reference of the interface ("SmsWSIF).
    Hope it helps

  • Problem using web service

    Hi
    I am trying this example http://www.netbeans.org/download/flash/platform_55/platform_ws/
    but i get the next error. I am using netbeans 5.5 with glassfish.
    wsgen successful
    DPL5306:Servlet Web Service Endpoint [PropiedadesWebService] listening at address [http://dani:8080/WebAAE/PropiedadesWebServiceService]
    deployed with moduleid = WebAAE
    naming.bind
    [TopLink Warning]: 2006.08.28 08:50:42.703--ServerSession(33416332)--property toplink.server.platform.class.name is obsolete, property toplink.target-server should be used instead.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.718--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Particularpropvalues] is being defaulted to: Particularpropvalues.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.718--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Mapareasgroups] is being defaulted to: Mapareasgroups.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.718--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Areas] is being defaulted to: Areas.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.718--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Wufallosbajada] is being defaulted to: Wufallosbajada.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.718--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Versions] is being defaulted to: Versions.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.718--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Compradores] is being defaulted to: Compradores.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.734--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Usuarios] is being defaulted to: Usuarios.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.734--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.IdiomasTextos] is being defaulted to: IdiomasTextos.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.734--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Myareas] is being defaulted to: Myareas.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.734--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Myareasgrupos] is being defaulted to: Myareasgrupos.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.750--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Excluidos] is being defaulted to: Excluidos.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.750--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Mydescripciones] is being defaulted to: Mydescripciones.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.750--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Configuracion] is being defaulted to: Configuracion.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.750--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Lendes] is being defaulted to: Lendes.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.750--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Clavesint] is being defaulted to: Clavesint.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.750--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Empleados] is being defaulted to: Empleados.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.765--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Mensajes] is being defaulted to: Mensajes.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.765--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Wuhistorylog] is being defaulted to: Wuhistorylog.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.765--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Wuhistorylogdetail] is being defaulted to: Wuhistorylogdetail.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.765--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Wuclientesmovimientos] is being defaulted to: Wuclientesmovimientos.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.765--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Claves] is being defaulted to: Claves.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.765--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.IdiomasEtiquetas] is being defaulted to: IdiomasEtiquetas.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.765--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Fotos] is being defaulted to: Fotos.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.781--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Historico] is being defaulted to: Historico.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.781--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Propiedades] is being defaulted to: Propiedades.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.796--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Busqueda] is being defaulted to: Busqueda.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.796--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Clientes] is being defaulted to: Clientes.
    |#]
    [TopLink Config]: 2006.08.28 08:50:42.796--ServerSession(33416332)--The alias name for the entity class [class org.aae.jose.Contadores] is being defaulted to: Contadores.
    |#]
    Em: no es null
    DPL5306:Servlet Web Service Endpoint [PropiedadesWebService] listening at address [http://dani:8080/WebAAE/PropiedadesWebServiceService]
    Invoking wsimport with http://localhost:8080/WebAAE/PropiedadesWebServiceService?WSDL
    wsimport successful
    DPL5306:Servlet Web Service Endpoint [PropiedadesWebService] listening at address [http://dani:8080/WebAAE/PropiedadesWebServiceService]
    Wrong WSHandlerResolver: null
    DPL5306:Servlet Web Service Endpoint [PropiedadesWebService] listening at address [http://dani:8080/WebAAE/PropiedadesWebServiceService]
    Invoking wsimport with http://localhost:8080/WebAAE/PropiedadesWebServiceService?WSDL
    wsimport successful
    DPL5306:Servlet Web Service Endpoint [PropiedadesWebService] listening at address [http://dani:8080/WebAAE/PropiedadesWebServiceService]
    Wrong WSHandlerResolver: null
    [TopLink Warning]: 2006.08.28 08:51:00.203--ServerSession(33416332)--property toplink.server.platform.class.name is obsolete, property toplink.target-server should be used instead.
    |#]
    topLink_version
    application_server_name_and_version
            platform=>MySQL4Platform
            user name=> ""
            connector=>JNDIConnector datasource name=>null
    );|connecting|#]
            ;|connected_user_database_driver|#]
            platform=>MySQL4Platform
            user name=> ""
            connector=>JNDIConnector datasource name=>null
    );|connecting|#]
            ;|connected_user_database_driver|#]
    login_successful
    StandardWrapperValve[PropiedadesWebService]: PWC1406: Servlet.service() for servlet PropiedadesWebService threw exception
    javax.servlet.ServletException
            at com.sun.enterprise.webservice.NewJAXWSServlet.doPost(NewJAXWSServlet.java:130)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
            at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:246)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:619)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:550)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:780)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:251)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:205)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
    Caused by: javax.xml.ws.WebServiceException: javax.xml.bind.MarshalException
    - with linked exception:
    [javax.xml.bind.JAXBException: java.util.Vector nor any of its super class is known to this context]
            at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:248)
            at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:124)
            at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:91)
            at com.sun.xml.ws.encoding.CodecFacade.encode(CodecFacade.java:170)
            at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:182)
            at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:223)
            at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:97)
            at com.sun.enterprise.webservice.NewJAXWSServlet.doPost(NewJAXWSServlet.java:125)
            ... 32 more
    Caused by: javax.xml.bind.MarshalException
    - with linked exception:
    [javax.xml.bind.JAXBException: java.util.Vector nor any of its super class is known to this context]
            at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:246)
            at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:64)
            at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:96)
            at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:239)
            ... 39 more
    Caused by: javax.xml.bind.JAXBException: java.util.Vector nor any of its super class is known to this context
            at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:223)
            at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:238)
            at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:587)
            at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:29)
            at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:132)
            at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:101)
            at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:286)
            at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:619)
            at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:241)
            ... 42 more
    Caused by: javax.xml.bind.JAXBException: java.util.Vector nor any of its super class is known to this context
            at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:477)
            at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:582)
            ... 48 more
    |#]I try to connect a mysql database.
    I write the code source.
    propiedades.java
    package org.aae.jose;
    import java.io.Serializable;
    import java.math.BigDecimal;
    import java.util.Date;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.NamedQueries;
    import javax.persistence.NamedQuery;
    import javax.persistence.Table;
    import javax.persistence.Temporal;
    import javax.persistence.TemporalType;
    * @author daniel
    @Entity
    @Table(name = "propiedades")
    public class Propiedades implements Serializable {
        @Id
        @Column(name = "Referencia", nullable = false)
        private String referencia;
        @Column(name = "referenciacliente", nullable = false)
        private String referenciacliente;
        /** Creates a new instance of Propiedades */
        public Propiedades() {
        public Propiedades(String referencia) {
            this.referencia = referencia;
        public String getReferencia() {
            return this.referencia;
        public void setReferencia(String referencia) {
            this.referencia = referencia;
        public String getReferenciacliente() {
            return this.referenciacliente;
        public void setReferenciacliente(String referenciacliente) {
            this.referenciacliente = referenciacliente;
        public int hashCode() {
            int hash = 0;
            hash += (this.referencia != null ? this.referencia.hashCode() : 0);
            return hash;
        public boolean equals(Object object) {
            if (object == null || !this.getClass().equals(object.getClass())) {
                return false;
            Propiedades other = (Propiedades)object;
            if (this.referencia != other.referencia && (this.referencia == null || !this.referencia.equals(other.referencia))) return false;
            return true;
        public String toString() {
            //TODO change toString() implementation to return a better display name
            return "" + this.referencia;
    }Service Web
    package org.aae.jose;
    import java.util.List;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.jws.WebService;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.Name;
    import javax.persistence.EntityManager;
    import javax.persistence.EntityManagerFactory;
    import javax.persistence.Persistence;
    import javax.persistence.PersistenceContext;
    import javax.transaction.UserTransaction;
    * @author daniel
    @WebService()
    @PersistenceContext(name="persistence/LogicalName", unitName="WebAAE")
    public class PropiedadesWebService {
        /* Sample Web Service Operation */
        @WebMethod(operationName="sample_operation")
        public String operation(@WebParam(name="param_name") String param) {
            // implement the web service operation here
            return param;
        EntityManager em;
        public PropiedadesWebService() {
            try {
                Context ctx = (Context) new InitialContext().lookup("java:comp/env");
                em =  (EntityManager) ctx.lookup("persistence/LogicalName");
                if (em == null) {
                    System.out.println("Em: es null");
                else {
                    System.out.println("Em: no es null");               
                // TODO:
                // em.persist(object);    utx.commit();
            } catch (Exception ex) {
    /*            Logger.getLogger(getClass().getName()).log(Level.SEVERE,"exception caught", e);
                throw new RuntimeException(e);*/
                ex.printStackTrace();
        @WebMethod()
        public List<Object> getPropiedades() {
            return em.createNativeQuery("Select propiedades.referenciaCliente FROM propiedades").getResultList();
        @WebMethod()
        public List<Object> getPropiedad(String ref) {
            return em.createNativeQuery("Propiedades.findByReferenciacliente", "referenciacliente").getResultList();
    }persistence.xml
    <?xml version="1.0" encoding="UTF-8"?>
        <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
          <persistence-unit name="WebAAE" transaction-type="JTA">
            <provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider>
            <jta-data-source>jdbc/aae</jta-data-source>
            <properties>
                <property name="toplink.plataform.class.name" value="oracle.toplink.essentials.platform.MySQL4Platform"></property>
            </properties>   
          </persistence-unit>
        </persistence>I am trying to connect me to a Mysql database.
    When i run the service getPropiedades() I get the error that I have shown before.
    Any idea?
    thank you very much

    Hello Alka,
    My bet is that somewhere another servlet is being configured with the name "InitializeServlet". I would suggest re-naming the servlet-name (and change it wherever else you are referring to it in web.xml) and give it a try.
    With WebLogic Portal, library modules are used which each come with their own web.xml file that gets "merged" into the one in your webapp, so it isn't always easy to see what servlets are being deployed.
    Kevin

  • PL/SQL Web Service failing to generate Table of Raw datatype

    Trying to generate web services from pl/sql stored procs. Most work fine, but getting the following errors:
    Error(33,5): field _lazyArray not found in class mergepkg.MergewsSignatures
    Error(26,14): method setArray(byte[][]) not found in class mergepkg.MergewsSignatures
    which I'm thinking seems to be related to a table of raw type
    TYPE fields IS TABLE OF table.field%TYPE INDEX BY BINARY_INTEGER;
    where table.field%TYPE is RAW(64)
    I read that LONG and LONG RAW are not allowed, but my (limited) understanding is that RAW converts to byte.
    Any insights appreciated.

    Hi Steffen,
    I did manage to get it to work by doing the following:
    drop type longcredit_list
    drop type longcredit_obj
    create type longcredit_obj as object
    (credit varchar2(200),
    parlrepid number(6),
    mbrid number(6),
    rdgid number(6))
    create type longcredit_list as table of longcredit_obj
    create or replace package longcredit_pck as
    function get_longcredit(initials in varchar2) return longcredit_list;
    end longcredit_pck;
    create or replace package body longcredit_pck as
    function get_longcredit(initials in varchar2) return longcredit_list
    as
    v_longcredit_obj longcredit_obj:=longcredit_obj(null,null,null,null);
    v_longcredit_list longcredit_list:=longcredit_list();
    i number:=1;
    cursor getlist is
    select distinct a.credit, a.parlrepid, a.mbrid, a.rdgid
    from member_credits_test_vw a
    where upper(init) = upper(initials)
    order by a.parlrepid;
    begin
    for rec in getlist loop
    v_longcredit_obj.credit := rec.credit;
    v_longcredit_obj.parlrepid := rec.parlrepid;
    v_longcredit_obj.mbrid := rec.mbrid;
    v_longcredit_obj.rdgid := rec.rdgid;
    v_longcredit_list.extend;
    v_longcredit_list(i):=v_longcredit_obj;
    i:=i+1;
    end loop;
    return v_longcredit_list;
    end get_longcredit;
    end longcredit_pck;
    Also, before deploying, in jdeveloper, in the deploy file, I select the property filters under web-inf\classes and check all the classes that are unchecked (see thread id 505217).
    Also, the database I'm using now is v. 10.2.0.3.0.
    Thanks for your suggestion!
    Carmen.

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

  • Problem with web service that returns an object with a String that have som

    Hi everybody:
    I have a problem with a web service I am doing, I have made a web service that returns a collection of objects, the objects have a set of properties, there is one property that is a String,this property consists in a text fragment that could have some characters that are considered special in XML like &, <, >, " and that's why when I execute the service from a client an exception is thrown:
    {code}
    Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Could not read XML stream.. Nested exception is com.ctc.wstx.exc.WstxParsingException: Expected a text token, got START_ELEMENT.
    at [row,col {unknown-source}]: [9,646]
    org.codehaus.xfire.fault.XFireFault: Could not read XML stream.. Nested exception is com.ctc.wstx.exc.WstxParsingException: Expected a text token, got START_ELEMENT.
    at [row,col {unknown-source}]: [9,646]
    at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
    at org.codehaus.xfire.client.Client.onReceive(Client.java:410)
    at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
    at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
    at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
    at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
    at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
    at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
    at org.codehaus.xfire.client.Client.invoke(Client.java:336)
    at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
    at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
    at $Proxy0.search(Unknown Source)
    at cu.co.cenatav.webservices.client.Client.main(Client.java:26)
    {code}
    I know that this is happening because special characters are sent by the soap message but I don't know how to solve this problem.
    How could I avoid this exception ?
    I hope you can help me.
    Regards.
    Ariel

    Hi,
    BPEL and BPEL PM do not have a good support for SOAPENC-Array: it would be very difficult to create such an array in BPEL or to receive it and manipulate it.
    The (unfortunately very intrusive) work around is to change the WSDL of the service to use a XML type defined using XML schema. This is all the more painful that JDev 9.0.4 does not have strong support for complex types.
    In general though, I would highly recommend this best practice:
    1) Start by define the WSDL contract first
    2) Then generate the server side skeleton to implement it
    3) Use BPEL as the client to this contract.
    By starting with the contract first, you make sure that 1) your interfaces are clean and coarse grained.
    2) things like java objects, sessions, etc to not leak through the interface (which would be the worst thing that could happen because it would closely link the client and the server.
    Sorry for not being more helpful. This will get radically cleaner in Oracle AS 10.1.3.
    Edwin

  • Problem with web service for document template

    Hi, I am trying to set up a web service to use with a word template (I use the template designer). The problem is that when I press the 'Test Page' button in the web service tool, I get an error : "Error retrieving URL to Web service test page ...'. I have searched the forum and made sure that the correct J2EE hostname/port is being used, as well as making sure the user/ password is set for the service. I have no idea how to proceed, please help me!
    Best Regards Eva
    ps. I can press the WSDL button in the web service tool and the web page opens correctly displaying the xml. Also, I create the template with static text as well as the posts requested by the service and the word document opens displaying only the static text...

    Hello,
    Where have you made this setup. Is it in the WSADMIN or in the SOAMANAGER??
    Regards,
    Varsha

  • Trying to get the input parameter of a web service fxn based on table value

    Hello--
    I am new to ADF and Jdev 11g (I am a forms developer). I had created a web service from a pl/sql stored db package. I can successfully execute a function with an input parameter from ADF Faces.
    Instead of the input parameter being enterable by the user, I would like it to be based on a selected ADF table column value. How would I correlate the selected row column value as the function input parameter?
    I played with an ADF output text based on the ADF table column with the PartialTriggers value set to the ADF table...which updates the output text based on the column selected. Do I use some sort of partial trigger on the input parameter?
    From a forms point of view, I am looking for the "Copy Value from Item" property :)

    Hi,
    Not sure if this would help you.
    But if your table is bound to a ViewObject, it will be easier to get the current selection.
    Supose your table is bound to iterator1.
    In your backBean code:
    DCBindingContainer dcBindings = (DCBindingContainer)getBindings();
    DCIteratorBinding iterator =dcBindings.findIteratorBinding("iterator1");
    Row row = iterator.getCurrentRow();
    Object selectedValue = row.getAttarbute(<value of the column you are looking for>);
    public BindingContainer getBindings() throws Exception {
    try {
    if (this.bindings == null) {
    FacesContext fc = FacesContext.getCurrentInstance();
    this.bindings =
    (BindingContainer)fc.getApplication().evaluateExpressionGet(fc,
    "#{bindings}",
    BindingContainer.class);
    return this.bindings;
    } catch (Exception ex) {
    displayMessage("Error occurred. Please contact your IT Adminstrator.");
    return this.bindings;
    Let me know if this helps.
    -Makrand

  • Problem for web service path for Xcelsius engage in flash object

    Hi, All
    I had created one xcelsius through Web Service of SAP B1.it works well.
    but when I run the flash object came from xcelsius by explorer,it gives one message
    "Can not access external data"
    thier I have to give path for swf file and web service path -- (which is given at the time of connection of xcelsius through web service in data manager)
    and I have to run the web service then it shows
    the dash board made from Xcelsius very well.
    but when i change the path of same web service to other m/c then flash file does work and it gives message
    "Can not access external data"
    but in practical my web service path can be changed, it should not fixed for path which is given in data manager in Xcelsius.
    I am using Xcelsius Engage 2008 sp3
    please give suggetions for solve the problem
    thanks in advance

    Hi Venky CRMIT, Bruce007
    Aside from the question, I tried another methods and I have succeeded calling webservice. A reference URL is
    http://www.webbasedcrmsoftware.com.au/crm-on-demand-tutorials/65-java-access-to-crm-on-demand#_Toc224720963
    Main cause may be jsessionID as you guess. When I try with EAI, I have send login information and message call at once, so URL may be incorrect.
    Thank you for your help.

  • Binary data problem with web services on JRockit but not Sun JDK

    I have a problem with binary data in SOAP and JRockit
    (jrrt-3.0.0-1.6.0-linux-x64.bin) . I have an set of web services based
    on EJB 3.0 which return images as byte arrays inside a SOAP envelope
    to be consumed by .NET 2 services. The host app server is Oracle
    Application Server 10.3.1 on RHEL Linux update 4, on 64 bit Xeon 5500
    series HP blade hardware.
    While most images are fine most of the time, one particular image
    gives this message when being consumed in the .NET client:
    The '■' character, hexadecimal value 0x1F, cannot be included in a
    name. Line 2, position 380038.
    The MSDN suggests that this is usually caused by non-escaping of reserved XML characters like < but this isn't one of those.
    The SOAP looks ok and for the life of me I can't see why this ought to
    be a problem, especially since the problem doesn't arise running with
    the SUN JDK 1.6_06 64 bit)
    When making the same call from the OAS Enterprise Manager, I can make the same call with no problem (but the data is just rendered as character data in a browser) which maybe suggests some incompatibility with how JRockit is serializing the data ?
    Any ideas, I would be very happy to hear - JRockit gives a 15% or so
    speed boost to the website that these services power so obviously we
    want to use it if possible.
    Edited by: RichLiv on Nov 14, 2008 4:54 AM

    Seems to be the case that using MTOM stops this problem with JRockit. Strange but apparently true (so far).

Maybe you are looking for