Webservice Entity service interface

I can consume a webservice made in JPA with BC entity based of a service interface

Alex,
My read of [url http://docs.oracle.com/cd/E26098_01/web.1112/e16182/bcextservices.htm#CHDJCEHG]the documentation is that you can base EO's on the service data objects exposed by Application Modules, not necessarily on a generic web service.
John

Similar Messages

  • External WebService Definitions linked to Service Interface in PI 7.1

    I have a WSDL defining datatypes and services with port locations etc... that I have imported into PI7.1 Enterprise Service Builder.  This defines a service that I would like to use in my Aris models for a SOA example.  However I guess I need to make a "Service Interface" from the "External Definition" but I can not find where to click to do this.  I can not believe this is so hard so I must be clicking in the wrong place.
    So how do I bind in existing Services into my Middleware?
    Thanks in advance,
    Doug

    I found this blog which is basically exactly what I am trying to do.
    RFC -> XI -> WebService - A Complete Walkthrough (Part 1)
    In this article the WSDL is imported but:
    At my first try i used the messages getDistanceRequest and getDistanceResponse in my mapping but later found out that it wasnt the message structure that the webservice expected.
    To get the structure of the relevant request and response messages you can test the webservice with an editor like XML Spy.
    This I understand as the Service interfaces, messages and datatypes need to be manually defined, and can not be read directly out of the WSDL.
    Is this true?
    Thanks,
    Doug

  • Creating Entity Object from Service Interface - JDeveloper version 11.1.1.3

    In our project, we don't intend to have any JDBC connection to a database and want to create all my entity objects using SDO web services deployed in a remote server. I could create an entity object based on a SDO web service deployed in the standalone WL server successfully. But at the time of Development,when I select ADF Business Component --> Entity Object, it always takes to a screen that prompts for a JDBC connection, if you have no connection defined in the project yet. To bypass this, I need to create a valid connection to a local DB and then I can go the next page that prompts me to to choose service interface and asks for a WSDL URL. How do I get around creating a JDBC connection and create a service interface based data source directly?
    To get around this issue, I created a connection to a local DB by providing a wrong password to make sure that we don't need a valid db connection. The application module (Business Component Browser) works fine when the DB connection is broken. But when I create a JSF page and put the data control there, if we don't have the DB connection established it gives error during deployment.I tried deleting the unused connection, but that gives a lot of errors during deployment. My question is;
    1. How can I create a service interface based data source by-passing the requirement for a connection?
    2. If that's not possible - how can I cleanly delete the JDBC connection and all it's dependencies, so that, it deploys and runs without error

    Frank,
    Thanks for your response.
    I have made some progress in last two days and solved some of the original issues. I deleted the fake JDBC connection from connection.xml that I had to use to go to the second screen that lets me select the WSDL for the service interface. After that, I checked off the "Auto Generate and Synchronize ..." option from Application --> Application Properties --> Deployment. (thanks to Steve Muench's blog post on this subject). After that, I could deploy the JSF page and the page shows up with no problem.
    However, when I try to run the App Module that was created from the WSDL (service interface), it brings up a pop-up with heading "Password Required" that says "Enter the password for" and asks for a user name and password (not sure what they are as they take any value and takes me to the next screen). After that, I can open the View and navigate through it. When i change some data and try to commit - it makes the change to the data and stores in the DB but gives an error saying "(oracle.jbo.NotConnectedException) JBO-25200: Application module is not connected to a database."
    Also, the data control created from the service interface had operations called Commit and Rollback. I used the Commit on JSF page and that does the exact same thing too. Any idea?
    Also - when we consume a SDO WSDL to create the entity object - how can we access the SOAP Request and Response objects? We have to implement WS-Security by instrumenting the SOAP header and need to get a handle on that. Is there a mechanism similar to JAX-WS handler framework for SDO?
    R,
    Chandan

  • How to create entity object (Business Component) using service interface

    Hi,
    I have tried to create one entity object (ADF Business Component) in JDeveloper 11g using service interface option instead of database schema but getting Failed to read service WSDL URL: http://....?wsdl message.
    I have tried with axis default service Admin & Version wsdl and got same error message.
    Regards,
    Devang

    Hi,
    +"Oracle ADF Business Components application modules offer built-in support for web services and for publishing rows of view object data as service data objects (SDOs). This means that you can use an application module both as a local component and as a remotely accessible service, thereby using the same component to support interactive web user interfaces and web service clients. Entity objects that you create in your local Business Components project can utilize SDOs that the service-enabled application module exposes on its service interface."+
    This means that you don't use Axis services but ADF Business Components Services. I am not sure this functionality made it in Boxer, but surely will in the next
    Frank

  • Create Entity Object from Service interface?

    An option for creating an EO is to use a "Business Components service interface". Is this referring to a App Mod service interface, web service WSDL or what? Am having a real problem attempting to decipher this and cannot find any mention of how to do this in the doc. Any help is appreciated.
    Thanks for a quick response - or for that matter any response - Casey

    Additional info:
    Created a simple AM - Emp and Dept for VOs in the data model. Added a simple service method to the AM - input String, return String and is exposed via the client interface.
    Followed the following steps as per the doc (Fusion Developer's Guide for Oracle Application Development Framework) to create a service interface:
    To create the web service:
    +1. In the Application Navigator, right-click the application module and choose Open+
    AppModule.
    +2. In the application module overview editor, select Service Interface from the+
    navigation list.
    Problem - I do not have a 'Service Interface' in the navigation list.
    So how do I create a service interface - what have I missed?????
    BTW - Using JDev 11.1.1.0.1
    Thanks - Casey

  • Obejct key mismatch between webservice and entity service

    Hi
    I created one web service using entity service in one caf project. Now i created another project. I have one entity service in this project which is using the previous web service. when i am testing my second project using service browser, I am getting object key values which are different from what i am getting using web service browser.
    Anyone has any idea regarding this?
    Regards
    Saurabh

    Hi Sauragb,
    the different object keys is normal, because even when you apply remote persistency caf core stores the "startup" attributes in an database. So when using a entity service you will always have attributes like key, createdBy, lastChangedBy... stored in lokal CAF Database.
    And that's why you have different keys.
    best Regards,
    Rene

  • Error after Deploying a new Entity Service

    After deploying an entity service and testing it via the testtool the following error occured. Do you have an idea about the reason for this strange behaviour?
    Thanks in advance.
    ERROR. Exception thrown in method create. The transaction is marked for rollback.: javax/jdo/InstanceCallbacks -
    Loader Info -
    ClassLoader name: [siemens.com/sm3kshtlog] Parent loader name: [Frame ClassLoader] References:   common:service:http;service:servlet_jsp   service:ejb   common:service:iiop;service:naming;service:p4;service:ts   service:jmsconnector   library:jsse   library:servlet   common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl   library:ejb20   library:j2eeca   library:jms   library:opensql   common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore   interface:resourcecontext_api   interface:webservices   interface:cross   interface:ejbserialization   sap.com/cafcore   library:cafmetamodellib   library:cafruntimeapilib   sap.com/cafruntimeear Resources:   C:\usr\sap\P7D\JC00\j2ee\cluster\server0\apps\siemens.com\sm3kshtlog\EJBContainer\clientjars\clientsiemens.comsm3kshtlogejbmodule.jar   C:\usr\sap\P7D\JC00\j2ee\cluster\server0\apps\siemens.com\sm3kshtlog\EJBContainer\applicationjars\siemens.comsm3kshtlogejbmodule.jar   C:\usr\sap\P7D\JC00\j2ee\cluster\server0\apps\siemens.com\sm3kshtlog\src.zip Loading model: {parent,references,local} -
    The error occurred while trying to load "com.siemens.sm3k.shtlog.besrv.sigdatsource.SigDatSourceJDO".:

    Hi Samir,
    you could be right...
    it could be, that our metadata are inconsistent, because we had before problems with the automatic code generation.
    What should we do, if we have such a inconsistency of our ejbmodule, dictionary and metadata model?
    is there a way to repair the project?
    Undeploy and Redeploy doesn't have an effect on this.
    We cannot start again, because we put in 10days of development?
    Thanks for any help.
    Greetings Jens

  • Create Complex Web Service using ADF BC Service Interface

    Hi,
    We have a requirement to create a number of web services with complex data types. The data types model a logical database entity and therefore contain multiple "rows" of data.
    In the most simple example, we have an entity Person and Person Address where 1 person and have multiple person addresses. We need to create a web service that encapsulates these entities and the relationship. For example the web service payload would contain:
    +<Person>+
    --<firstname/>
    --<lastname/>
    --<dob/>
    --<sx/>
    --<address>
    ----<line1/>
    ----<line2/>
    ----<postcode/>
    ----<country/>
    --</address>
    +</person>+
    We have created ADF BC components for each entity and the relationships. Now we are attempting to use the ADF BC Service Interface functionality to expose web service methods that would create and update the underlying VO/EO/Database tables with one call (i.e. create a record in table Person and one in Person Address).
    Creating a service interface for each entity VO works fine but we require a complex service encapsulating the logical entity of Person.
    Does anyone know if this is possible with ADF BC Service functionality? Or should we be looking for alternative method of generating these web services?
    Any advice greatly appreciated.
    Edited by: Jon on Feb 3, 2012 2:50 PM

    Hi,
    Did you go through following links
    http://blogs.oracle.com/middleware/entry/calling_web_services_using_adf_11g
    http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/webservices/ws.html

  • How to avoid redeclaring your web service interface?

    Hi there,
    How can one avoid having to redeclare your wsdl interface on
    each mxml page where it is accessed? I only want to declare the web
    service and the operation is has once and then just include it in
    the component where I use it to access/update data.
    I am new to flex so this may be obviouse to other but not me.
    I tried including it in its own mxml file and then using the normal
    component include tag to include it. I get errors about not being
    able to access the webservice via its id.
    e.g.
    Error: Access of undefined property WebService.
    [mxmlc] WebService.getSiteOptions.send();
    thanks

    The solution is to place the web definition in a separate
    file and then use the "include" like functionality of defining your
    own namespace in the xml. You do the include in the main
    application file.
    eg
    <mx:Panel
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:webservice="webservice.*"
    width="100%"
    height="100%"
    title="Reports Menu"
    creationComplete="onInit();" >
    On the main application page to include your web service file
    do a
    <webservice:webservices id="services"/>
    The webservices.mxml file will contain your definitions.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    height="0"
    visible="false">
    <mx:Script>
    <![CDATA[
    import mx.rpc.soap.mxml.WebService;
    import mx.rpc.events.FaultEvent;
    import mx.controls.Alert;
    [Bindable]
    public var webServiceWSDL:String ="
    http://127.0.0.1:8080/jumpingbean/services/AddWebService?wsdl";
    public function onServiceFault(evt:FaultEvent):void
    var err:Error = new Error(evt.fault.faultCode + " , " +
    evt.fault.faultString);
    parentApplication.showError(err);
    public function onSuccess(evt:Event):void
    Alert.show(evt.toString());
    ]]>
    </mx:Script>
    <!-- ======================================== -->
    <!-- Remote Services -->
    <!-- ======================================== -->
    <mx:WebService id="webservice"
    wsdl="{this.webServiceWSDL}" service="ValueAddWebService"
    port="AppWebServiceHttpPort" fault="onServiceFault(event)"
    showBusyCursor="true" >
    etc
    In your child components you can refer to the component by
    doing a "parentApplication.services.webservice"

  • PI 7.1 "stateless" service interfaces prerequisites and limitations

    are there  any prerequisites and limitations for "stateless" Service interfaces.
    We are directly implementing PI 7.1, (i.e not upgrading form 7.0 or 3.0).
    so for all our service interfaces, shall we safely use tne interface pattern "statelss" instead of "Stateless(xi 3.0 compatible)".
    if use the "stateless", are there any addition prerequisites or constraints/limitations.
    can we use abap proxies, java proxies, providing webservices via xi, and consuming other webserivces in xi, all adapters, asynch, synch scenarios with "stateless" interface patterns.
    In short, are there any things that can be done using "Stateless(xi 3.0 compatible)" and cannot be done using  "stateless" interface
    are there any specific requirements for using "Stateless(xi 3.0 compatible)" even in newly implemented PI 7.1
    thanks in advance,
    Madhu.

    When it is an upgrade from 7.0 to 7.1 the default Interface pattern is Stateless (XI 30 Compatible)
    Using Stateless Interface Patterns wont cause any harm/ restriction on any of the development.
    The only twist will be in the way a condition is specified in the Receiver Determination.
    For any Interface pattern (other than Stateless(XI30 Compatible)) you wont be able to see the message structure in the Condition Editor of Receiver Determination. All other functionality (Async, Sync, Proxy) will be available.
    In such a case Condition should be specified as shown in this blog: /people/abhishek.salvi/blog/2009/07/15/sap-pi71-receiver-determination-xpath-and-you
    Regards,
    Abhishek.

  • In application services i am using entity services

    hi all
    i have created application services in entity services i have created findAll ()method that method i have accessed in application services by
    getEntityServices.findAll .and i have made application service as a webservices but when i am testing this method in wsnavigator
    this method gives error.please reply soon
    com.sap.engine.services.webservices.wsnavigator.WSNavigatorException: null
    Exception id: [02004C4F4F50004E000006FA00000E4000042DBF06435C4C]

    Hi, I tested the application using the CAF Runtime Configuration service test and it was an authorization Issue. The entity was set to check permissions. I disabled this in NWDS and it works fine now

  • Failure in SDOSerializer.deserialize - Invoking AMImpl's Service Interface

    Hi,
    I have a typical Issue while invoking a Service Interface creation using ADF BC.
    Steps done:
    1. I generated the service interface using AMImpl.
    2. Modified the WSDL to include soap headers.
    <wsdl:input>
    <soap:body use="literal"/>
    *<soap:header message="tns:getTransactionHeader"*
    part="transaction" use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    *<soap:header message="tns:getTransactionHeader"*
    part="transaction" use="literal"/>
    </wsdl:output>
    3. Modified the Service classes (Service.java and ServiceImpl.java) to include the holders for the soap headers.
    Now the method looks like this in the Service.java class:
    List<SellingDayCalendar> getXYZ(@WebParam(mode = WebParam.Mode.IN,
    name="unitName")
    String unitName, @WebParam(mode = WebParam.Mode.IN, name="salesDate")
    Timestamp salesDate, *@WebParam(name = "transactionHeaderType", mode = WebParam.Mode.INOUT,*
    targetNamespace =
    *"/com/gm/vstar/model/core/common/",*
    header = true, partName = "transaction")
    Holder<TransactionHeaderType> transaction
    ) throws ServiceException;
    4. I have created the POJO class called TransactionHeaderType.java which implements Serializable interface.
    While I run the service by including headers or try to invoke the proxy from my JSF page, I get the following exception:
    Target URL -- http://localhost:7101/MyServicesApplication-MyServicesModel-context-root/MyService
    <ServerMessages> <severeMessage> oracle.webservices.provider.ProviderException: oracle.j2ee.ws.common.databinding.common.spi.DatabindingException: Failure in SDOSerializer.deserialize.
         at oracle.j2ee.ws.server.jaxws.JAXWSRuntimeDelegate.processMessage(JAXWSRuntimeDelegate.java:494)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:1187)
         at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:1081)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:581)
         at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:232)
         at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:192)
         at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:459)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.jbo.server.svc.ServiceContextFilter.doFilter(ServiceContextFilter.java:78)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: oracle.j2ee.ws.common.databinding.common.spi.DatabindingException: Failure in SDOSerializer.deserialize.
         at oracle.j2ee.ws.common.databinding.runtime.sdo.SDOSerializer.deserialize(SDOSerializer.java:383)
         at oracle.j2ee.ws.common.jaxws.runtime.SoapInvocationSerializer.deserialize(SoapInvocationSerializer.java:298)
         at oracle.j2ee.ws.server.jaxws.SoapEndpointSerializer.deserializeRequest(SoapEndpointSerializer.java:86)
         at oracle.j2ee.ws.server.jaxws.ServiceEndpointRuntime.processMessage(ServiceEndpointRuntime.java:320)
         at oracle.j2ee.ws.server.jaxws.ServiceEndpointRuntime.processMessage(ServiceEndpointRuntime.java:196)
         at oracle.j2ee.ws.server.jaxws.JAXWSRuntimeDelegate.processMessage(JAXWSRuntimeDelegate.java:479)
         ... 34 more
    Caused by: oracle.j2ee.ws.common.databinding.common.spi.DatabindingException: Deserialization failure. Invalid data type: com.gm.vstar.model.core.common.TransactionHeaderType
         at oracle.j2ee.ws.common.databinding.runtime.sdo.SDOSerializer.deserializePrimitives(SDOSerializer.java:520)
         at oracle.j2ee.ws.common.databinding.runtime.sdo.SDOSerializer.deserializePart(SDOSerializer.java:470)
         at oracle.j2ee.ws.common.databinding.runtime.sdo.SDOSerializer.deserializeNewPart(SDOSerializer.java:432)
         at oracle.j2ee.ws.common.databinding.runtime.sdo.SDOSerializer.deserialize(SDOSerializer.java:362)
         ... 39 more
    <ServerMessages> <severeMsgServletException> An error occurred for port: {com/gm/vstar/model/utility/service/applicationmodule/common/}MyServiceSoapHttpPort: oracle.webservices.provider.ProviderException: oracle.j2ee.ws.common.databinding.common.spi.DatabindingException: Failure in SDOSerializer.deserialize..
    Any solutions would be appreciated.
    Thanks,
    Ajith

    Hi,
    its JDeveloper and ADF on this forum. For EM related questions, you should try the EM forum
    Frank

  • Service Interfaces in PI 7.0?

    Hi Experts,
    PI 7.0 has been installed
    I just checked the SPROXY transaction in ECC, It shows the service interfaces not message interfaces...
    I was getting confused..cos i think service interfaces are only in PI 7.1 and its very different from 7.0
    can i have ur thoughts on this?

    hi,
    >>>So will this service interface change anything?..I guess not cos its just a message interface with multiple operations..pls correct me ?
    not exactly
    there is one huge change - no more standard proxy methods
    check out my blog
    /people/michal.krawczyk2/blog/2009/06/20/pixi-abap-proxies-say-goodbye-to-executeasynchronous-method
    >>>Also , If down the line they ask for 7.1?...is it a seprate entity all together?.or
    the new methods will work with 7.1 with no problem
    Regards,
    Michal Krawczyk

  • Java DC calling Operation on Entity Service

    I have three entities (Entity Services) and one Application Service.
    Application Service needs a operation to pull data from each entity based on the input parameter (name, type String).
    The operation, builds an object with attributes from all three entities, and returns that newly created object.
    I have a Java DC, that's going call this operation on the Application Service.
    Question: How Java DC would know the object type of the object returned by the operatio on the custom operation on the Application Service?
    Is it possible to do something like this or is there a better way to do this?
    BTW, This Java DC is being used as Callable Object in GP.
    Can I create a Service Endpoint for the Application Service and build the Callable Object directly against the Application Service. Then how to invoke method on the Application Service? How to handle the Object returned by the Application Service method?

    At first, I'd say you shouldn't be needed a java dc with gp interface if you have a CAF application service.
    GP has a CO for CAF application service you can use out of the box to reference a method of an application service you've deployed on your server. Pretty straight forward. No need of endpoint if service is deployed locally.
    That is assuming you don't have any particular requirements I'm not aware of here.

  • ADF BC Service interface components Production redeployment?

    Hi,
    Do ADF BC service interfaces support the weblogic server feature of production redeployment or side-by-side deployment? The use case is i deploy version 1.0 of my ADF BC webservice. After some changes I deploy version 2.0 of the same service. All clients currently connected to version 1.0 should continue using the same without any interruptions. All new clients should be redirected to version 2.0. After all clients of version 1.0 disconnect, version 1.0 of the service should be retired.
    regards,
    Satyajith

    Hi,
    isn't this a matter of deploying the EAR file and versioning it in WLS ? I am not familiar with this re-deployment option in WLS, but I don't think its the EAR file that should have this information.
    Frank

Maybe you are looking for