Creating a Web Service to handle flow between BPEL process and XML Gateway

I am new to Web Services. I have never created one, yet I have the task of designing the following for a project.
Any help as to what steps I need to take would be very very helpful. There is a lot of information on XML, SOA and WSDL out there that it can get very confusing, and sometimes you just need someone to point the way
What I need to do is create a Custom Send and a Custom Receive Program (both web services) handle the message flow between an Enterprise BPEL processes and a Deployed XML Gateway.
BPEL compresses this XML business object document (for faster transmission), and sends remotely to this Custom Receive web service, which in turn calls a decompress java program and then send the document to the XML gateway inbound web service.
The Custom Send web service does just the opposite. It needs to take the business object document from XML gateway, call the compress java program and then send to the Enterprise BPEL.
In a nutshell...these Custom Send/Receive Web services handle the message flow between the Enterprise BPEL process and the Deployed XML Gateway.
What I need help on...
-Creating this in JDeveloper- where do I get started?
-How does a web service receive a compressed file sent to me via BPEL? Does it just sit there waiting for it?
-Is this a synchronous or asynchronous design?
-Will this be 2 web services (Send and Receive) or do I make 1 with 2 functionalities
-How do I call the java compress/decompress program within the web service? (this java function is already created and ready to be called)
-Is this decompressed business object file an XML schema and an XML message? Or just a message?
-I need to send this to the XML Gateway Web Service to load. How does that work?
-I have a Generic XML Gateway WSDL file...I assume I need to take all the info I get and map it to this template? Is this true? How do I do that?
Like I said, any help would be appreciated. Links answers to my many questions would be fabulous.
-Jason

If you are talking about simple XML transformation of the SOAP payload between the client calling your service and the final destination of the message you are routing, the ESB approach may be a better fit.
If you have more complex transformation in mind, with major processing and rework of the message in the intermediary, you may be better of with using the POJO approach. Write your service and embed a callout to the other service in your implementation. If the two services share the same Java Model, you may even be able to re-use the same Java Bean.
To get SOAP Element instead of Java bean, you just need to use the noDataBinding option with either genProxy and topDownAssemble (or assemble). See the WS-Guide [1] for details. Chapter 18 will give you all the details about the different WSA command line parameters.
Hope this helps,
-Eric
[1] http://download-west.oracle.com/docs/cd/B31017_01/web.1013/b28974/toc.htm

Similar Messages

  • 11G - invoking an asynchronous Web service that is not a BPEL process

    Hi all,
    Is there an 11G example of implementing and invoking an asynchronous Web service that is not a BPEL process ? . In 10g there is an example for Axis web service (Oracle_Home\integration\orabpel\samples\interop\axis\BPELCallingAsyncAXIS ) but I can't find anything related to 11G so far.
    Thanks in advance,
    sasha

    Hey Chris.
    I am just starting to write a jcd that calls an external web service but cannot find any sample code nor instructions on how to do it in the supplied documentation. Could you send me a code sample from your one?
    Cheers
    Matt

  • Web service data control for asynchronous bpel process

    I have an async BPEL process that I want to call from a JSP page. I followed the tutorial for creating a data control for web services. When the DC was created, it created an initiate operation that requires the ReplyTo and MessageID. I thought these are internal to the runtime stack, so why are they part of the data control? How do I get around it?
    Thanks,
    Rico

    http://blogs.oracle.com/shay/2010/05/updateinsert_with_adf_web_serv.html

  • Invoking Web Service with PKI Authentication from BPEL process

    Hello --
    I am trying to test calling a Web service utilizing PKI-based authentication from BPEL running under the 10.1.2.0.2 Process Manager. When I access the service from a browser I am prompted for Username and Password the first time. When I attempt to access it from BPEL I receive this error:
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
    Is it possible to access this service from BPEL in 10.1.2.0.2? How can I pass the service the required credentials?
    Thank you for your time,
    Paul Camann

    I've gotten past the original error by importing the security certificate of the Web service into my keystore/truststore. I'm also running the process on SOA 10.1.3.1.0. Now when I invoke the Web service from the BPEL process I get this error:
    exception on JaxRpc invoke: HTTP transport error:
    javax.xml.soap.SOAPException: java.security.PrivilegedActionException:
    javax.xml.soap.SOAPException: Bad response: 403 Forbidden
    I've tried passing the credentials every way I can -- partner link properties, Oracle Web Services Manager, whatever -- and still get the same error. I would expect to see a 401 error for problems with credentials, not a 403.
    Any suggestions?
    Thanks for your time.
    Paul Camann

  • Creating a web service for F4 help

    Hi All,
    I want to create a web service that I can consume using JavaScript and thus can integrate with normal HTML web site. I want to achieve this by two ways
    Pass table name and field name to the service and it will return the default search help
    In some cases search helps are collective search helps and they have search criteria to filter data
    How can I tackle with the 2nd point. First one looks straight. Pass table-field and the system will pick default DDIC search help and return values in table. However in case of collective help, I need to cater for the search parameters and I am not aware of any FM that will allow me to do  it.
    Any help appreciated .
    Regards
    Abhi

    Hi Marcin and everyone,
    Thanks for the precious explanations.
    I created a client and I have an exception.
    1) I made a portal service from wsdl - client side.
    2) I created a DynPage.
    3) Here is the code :
    IMyBAPI4Service client = (IMyBAPI4Service) PortalRuntime.getRuntimeResources().getService(
    IMyBAPI4Service.KEY);
    IMyBAPI4Service securedClient = (IMyBAPI4Service) client.getSecurisedServiceConnection(                 request.getUser());
    //this is null.
    if (securedClient.getURLEndPoint().getURL() == null) {      
    securedClient.setURLEndPoint(new URLEndpoint("http://<server>:<port>/irj/servlet/prt/soap/com.sap.portal.prt.soap.MyBAPI4Service?style=doc_lit"));
    Bapi_Companycode_Getdetail_Input importParams =     new Bapi_Companycode_Getdetail_Input();
    importParams.setCompanycodeid("0500");
    Bapi_Companycode_Getdetail_Output exportParams = null;
    securedClient.execute_BAPI_COMPANYCODE_GETDETAIL(importParams);                         
    Do I have to use a secured client ? What is it ?
    The exception is :
    Problem at execution: SOAP Fault Error (java.lang.NoClassDefFoundError) : java.lang.NoClassDefFoundError
    Thanks Marcin....
    Message was edited by: David Fryda

  • First time creating a web service ... help!

    I work for a logistics company and I have been tasked with
    creating a web service that will allow clients to feed in XML
    packets and our server would then take the XML, confirm it's valid
    and then process a quote and then return this quote back to the
    client as an XML packet. Here is where my confusion arrises ...
    what type of returntype is an XML packet? a "string"?

    Basically yes, A long structured string. The cffunction tag
    also
    accepts a returnType of XML, I'm not sure which is best.
    fastcougar1 wrote:
    > I work for a logistics company and I have been tasked
    with creating a web
    > service that will allow clients to feed in XML packets
    and our server would
    > then take the XML, confirm it's valid and then process a
    quote and then return
    > this quote back to the client as an XML packet. Here is
    where my confusion
    > arrises ... why type of returntype is an XML packet? a
    "string"?
    >
    >

  • Set a custom path for the service endpoint associated to a BPEL process

    Hello,
    I have a BPEL process and I would like to change the endpoint address of the corresponding web service that corresponds to the BPEL process.
    To be more specific, by default, the web service corresponding to a BPEL process "MyProcess" has an endpoint like: http://MyMachine:9700/orabpel/default/MyProcess , supposing that the process is deployed in the default domain.
    What should I do to have an endpoint like
    http://MyMachine:9700/orabpel/default/MyPath/MyProcess ?
    Is it possible?
    Thanks in advance!
    Regards,
    Marinel

    Figured out that the configuration property 'location' for the PartnerLinkBinding Deployment Descriptor can be used for this purpose. Tried it and it is working out perfectly fine.
    Thanks,
    Vijay.

  • Creating a web service to consume price of a particular stock from ???

    hey,
    i'm new, donno much about web services in terms of writing it, but i do have some knowledge about wat it actually does...
    im here becuz i wanna create a web service to consume the price of a particular stock and then store the closing price along with the dates into a database
    now, im abit lost here.. how do i know where to get the information from? is it possible for me to write a web service to communicate with Yahoo! Finance or any other sites which allows consumption of information?

    If you are talking about simple XML transformation of the SOAP payload between the client calling your service and the final destination of the message you are routing, the ESB approach may be a better fit.
    If you have more complex transformation in mind, with major processing and rework of the message in the intermediary, you may be better of with using the POJO approach. Write your service and embed a callout to the other service in your implementation. If the two services share the same Java Model, you may even be able to re-use the same Java Bean.
    To get SOAP Element instead of Java bean, you just need to use the noDataBinding option with either genProxy and topDownAssemble (or assemble). See the WS-Guide [1] for details. Chapter 18 will give you all the details about the different WSA command line parameters.
    Hope this helps,
    -Eric
    [1] http://download-west.oracle.com/docs/cd/B31017_01/web.1013/b28974/toc.htm

  • 2004S MiniSAP ABAP: SAPGUI crashes when creating a Web Service

    I have installed the NW2004S ABAP Preview System from SDN on a VMWare Image (Windows XP, 1.7 GB Mem).
    No problems during the install. Also I was able to run the sample Web Dynpro Quiz Application.
    However when try to create a Web Service the SAP GUi crashes with the Windows Error Message "dispwork.exe has encountered a problem and needs to close." Interestingly enough the "dispwork.exe" process in the MMC continues to be green and I can reconnect.
    Here are the detailed steps if you want to try to re-produce:
    1) Select Package SAPBC_IBF_SCUSTOMER
    2) Select Function Module "BAPI_FLCUST_GetList"
    3) Right mouse click and Create -> Web Service
    4) Web Service Wizard opens, type in name for Web Service (Z_...) and continue with the default settings
    5) Creat as Local Object
    Result: After about 5 minutes of compiling the SAP GUI crashes. The Web Service is not created (checked in WSADMIN)
    Any help is greatly appreciated. Will reward points for hints which lead to a resolution.

    I'm glad to see it wasn't just me having this problem. I installed the SPS8 version of the 2004s ABAP trial a couple weeks ago and immediately tried to apply SPS9 and kernel patches, etc. (with a lot of help from your blog 3930, even though some things have changed since then).
    I ran into this same problem you describe but since there had been some other problems along the way too, I decided to uninstall the whole server and start over. Uninstallation and getting a clean installation again was a mess (maybe the new cleanup utility would have helped some) but I got past that.
    The second time through, I made a lot of improvements, which I'll list here since they may help others, but still ran into this problem in the XPRA_EXECUTION phase.
    Improvements to process:
    1) Backup database first, just in case
    2) Share the c:\SAP directory as Sapmnt so that SPAM can find the packages
    3) Add at least one extra batch process, since the default installation only gives one and more are needed for the support package installation (the easy way is to increase rdisp/wp_no_btc in the NSP* profile in C:\SAP\NSP\SYS\profile)
    4) While in the profile, change ztta/cua_area = 250000 to avoid some errors logged in trace files for having that too low
    5) Also in the profile, put the slash between the directory and file name in ssf/ssfapi_lib and sec/libsapsecu
    6) Also in the profile, add "dynpro/generate_in_separate_luw = N", as per note 949737
    7) Request and install a new license key before applying the support packages.
    All of the above were changes I made after finding errors or problems and these solve the problems. Some errors also led me to upgrade MAXDB from 7.60 build 32 to 33 (pretty painless if note 735598 is followed carefully) but I'm not sure that really solved anything.
    I tried hard to debug the WEBI_AFTER_IMPORT problem and narrowed it down to when it's trying to create a transformation for a function and XSLT_MAINTENANCE is called and then inside the Activate method and the Check method it calls. I ended up not able to solve this problem but also hoping that SPS10 would do so, as per note 973675. I just removed the AFTER_IMP method for WEBI from table OBJM temporarily while letting SPAM continue.
    I too will be waiting to see if SPS10 helps or if someone comes up with a solution. Ideally, a new version of the trial could be posted which incorporates the above improvements and includes SPS9 or SPS10 so that those installing it fresh don't have to go through so many issues...
    Message was edited by James Webster at 10/10/2006 5:36 p.m. EST to add point 7 to the list of improvements.

  • Any difference in creating a web service from a java class or session bean?

    Hi,
    The JDeveloper tutorial at http://www.oracle.com/technology/obe/obe1013jdev/10131/devdepandmanagingws/devdepandmanagingws.htm demonstrates creating a web service from a plain java class. I'm wondering:
    - Is it possible to create a web service from a stateless session bean instead of a java class? If so, what's the proper way to do this in JDeveloper? When I tried doing so in JDeveloper 10.1.3.0.4 (SU5) using the J2EE Web Service wizard, the wizard did not list the session bean in the Component To Publish dropdown (it does list any java classes available in the project). I can proceed by manually typing in the name of the session bean. After the wizard completes though, the @Stateless annotation that had been in my session bean class code is removed and replaced by a @WebService annotation. The end result is that it looks like it made no difference whether I had tried to create the web service from a session bean or plain java class as the annotations in the resulting web service code are the same (although if I had started from a session bean, the class for the web service still implements the Local/Remote EJB interface that the session bean originally implemented).
    - Assuming it's possible to create a web service from a stateless session bean, is there any advantage/disadvantage creating a web service from a java class vs a stateless session bean? I'm creating the web service from scratch so I also need to either build the java class or stateless session bean the web service would be based on from scratch too.
    Thanks for any ideas about this.

    Hi,
    EJB Session beans (EJB 3.0) are deployed as WebServices by annotating the class with @WebService and the methds with @WebMethod (both tags require you to add the JSR-181 library to your project (available in the JDeveloper list of libraries)). Unlike the J2E WebService, the EJB session bean service is turned into a WebService upon deployment. This means you obtain teh WSDL file after deployment
    - Assuming it's possible to create a web service from a stateless session bean, is there any advantage/disadvantage creating a web service from a java class vs a stateless session bean?
    The difference is that EJB Session bean based web services are integrated with the J2EE container, which means that they can leverage container services like transaction handling, data sources, security, JMS etc.
    Frank

  • In order to create a web service on SAP R/3 what are the prerequisites.

    Hi All
    I want to create a web service(for a bapi) on SAP R/3  which will be used by a third party application. I dont know anything about creating a web service. My question is <b>in order to create a web service do we need to run Sap R/3 on netweaver ?</b>. I cannot see create web service on my BAPI screen.
    Thanks

    Hi Dohr
    We are running 4.7 on WAS 6.20 .I heard ,if we have to activate webservices on WAS 6.20  it will expose all the RFCs and BAPIs as web services. Could you explain me what is the main difference between WAS6.20 and WAS6.40 in terms of creating web services and how do i activate web services.
    Thank you very much

  • Create a web service in jdev from an EJBSessionBean

    Hi,
    can someone tell me how to create a web service from an EJBSessionBean.java in jdev?
    I do like the EJBSessionBean was a simple java class but the web service doesn't work
    thanks

    hi again,
    i m going to tell you what i ve done:
    1- i created an entity bean from existing table(table users)
    2- then i create the session bean (methods are just the CRUD ones)
    3- after that i add a java service facade wich i use to generate a web service(all is good, generation is done and deployement of the web service is done without errors)
    4- then i run my web service. for exemple if i invoke the queryusersfindall it should display the data on the table, but what i get is an error:
    <env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://oracle.model/"
    xmlns:ns1="http://www.oracle.com/webservices/internal/literal">
    <env:Body>
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Internal Server Error (Caught exception while handling request: java.lang.IllegalArgumentException: NamedQuery of name: Users.findAll not found.)</faultstring>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    ----------------------------------------------------------------------

  • Creating a web service using websphere integration developer

    Hi! all, Iam trying to create a web service in websphere integration developer, of IBM,
    While creating a wsdl file, it asks for literals, there we need to check the corresponding literal based upon the requiremnet.
    I came to know that document literal is used for document inputs and outputs,where as rpc literal/rpc encoded is used when dealing with the primitive data types.
    I created a simple addition operation with rpc encoded its working,
    but i tried out with the rpc encoded , which is causing an error
    the err is :
    IWAB0135E An unexpected error has occurred.
    SOAPException
    Operation timed out: connect:could be due to invalid address
    Iam not getting how to resolve this error,
    Please let me know , if any has faced this kind of error , n knows how to solve.
    And also let me know exactly , the difference between the literals.
    Fine then,
    Thanks & Regards,
    D.Swetha.

    Unfortunately, OUT parameters are not supported in 9.0.3 as per this doc:
    http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/b10004/plsqlservices.htm#1030066
    JDeveloper's PL/SQL Web service support is built on top of the Oracle9iAS support so is subject to the same constraints. Support for OUT arguments is planned in future releases of Oracle9iAS and Oracle9i JDev.
    You may be able to construct a workaround using an approach described in this new DB Web services paper:
    http://otn.oracle.com/tech/webservices/htdocs/dbwebservices/Database_Web_Services.pdf
    where you use JPublisher/SQLJ to do the work and then another wrapper/sub class as the actual class that is published as a Web service. See the section that covers a strategy for publishing result sets which are an unsupported type but through a bit of extra work can be used within Web services. This loses the point-and-click tooling approach in JDeveloper but may solve the issue if it is a hard requirement.
    Mike.

  • Really impossible to create a web service for JBoss using eclipse's WTP?

    I'm starting to get nuts!!!
    I'm an experienced J2SE and J2ME Java developer... but I have huge problems creating a web service using eclipse WTP!
    The tutorials I found are for tomcat... But I want to code for JBoss and not for tomcat...!!!
    There must be somebody out there with the same issues...
    This tutorial works fine for Tomcat...
    http://www.eclipse.org/webtools/community/tutorials/BottomUpWebService/BottomUpWebService.html
    But if I do the same with JBoss... it's not possible to incoke my web service method... ok, I thought... just need to check google... BUT I didn't find any solution in the whole WWW. Found a lot of questions of people with the same problems... but no solution! :(
    Still getting that:
    ERROR [EngineConfigurationFactoryServlet] Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
    I know a little bit what a wsdd does... but isn't it the job of the WTP to create that file???
    I really hope you have some places for me to start, 'cause I don't know anymore places to ask for...
    Maybe this is a JBoss issue... I don't know...
    Or is there a tutorial on how to create a web Service using JBoss IDE?
    Sascha

    Hi Massimo,
    Quiet a few points here.
    1. Oracle Type objects do not map to XML Complex type
    2. Oracle Type objects do not map to Apex Page Item Types
    3. Apex Page Item types are substituted into the WS Request XML by a process which is part of the Web Service Reference creation through the Wizard in Apex.
    >
    After created the web service (without any errors), I click on test.
    - I can select the Operation --> CREATE_LINGUA
    - I can input data for Basic Authentication
    - I can't view Input Parameters --> Report returned no rows.
    I've tried with normal type like Varchar2 and all was ok.
    Is possible in Apex to use web services based on complex type, tipically an Array?
    >
    As you have guessed the Wizard driven Web Service Reference definition process cannot handle complex types of input parameters required by a Request. By definition the number of complex types possible are infinite, so they are not likely to come built in.
    Passing an array is no solution because finally the values passed have to be plugged into the right SimpleTypes inside a ComplexType in the Request.
    Based on your WSDL your Request will be
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cre="http://xmlns.oracle.com/orawsv/GRIMALDI/PKG_WEBSERVICES/CREATE_LINGUA">
       <soapenv:Header/>
       <soapenv:Body>
          <cre:SNUMBER-CREATE_LINGUAInput>
             <cre:PLINGUA-LINGUAT-CIN>
                <cre:LINGUAT>
                   <cre:CODICE>?</cre:CODICE>
                   <cre:DESCRIZIONE>?</cre:DESCRIZIONE>
                </cre:LINGUAT>
             </cre:PLINGUA-LINGUAT-CIN>
          </cre:SNUMBER-CREATE_LINGUAInput>
       </soapenv:Body>
    </soapenv:Envelope>However, all is not lost. You can always use the UTL_HTTP package API to construct your Request.
    Regards,

  • Primavera Create WBS Web Service

    I am calling the Primavera "Create WBS web service" to create a WBS hierarchy for a project. I am populating the following fields.
    <proj:WBS>
    <proj:Code>01019991</proj:Code>
    <proj:Name>Vendor Test</proj:Name>
    <proj:ProjectObjectId>1111</proj:ProjectObjectId>
    <proj:ParentObjectId>919191</proj:ParentObjectId>
    <proj:SequenceNumber>8</proj:SequenceNumber>
    <proj:Status>Active</proj:Status>
    </proj:WBS>
    My question is, is there any way I can create the entire hierarchy in one web service call.
    What it seems like that I have to create the parent first using the Create WBS Service to get the object Id. And then pass this Object ID in the ParentObjectId field of the each of the children and call the same service again to create the children with the correct hierarchy. I don't see any place where I can pass the Parent Code instead of the Parent ID.
    This becomes even more complex when I have to update the WBS structure.
    I have also seen that the AIA PIP between JDE and Primavera somehow does it, but I am not aware how.
    Thanks
    Asif

    I do not think it is possible with WBSService call. Check if ImportService can help in your case.
    Sachin Gupta

Maybe you are looking for

  • Result set too large

    Hi Experts,   When I run BI report on SAP portal, it shows me the message : Result set too large...., I had changed BICS_DA_RESULT_SET_LIMIT_MAX and BICS_DA_RESULT_SET_LIMIT_DEF, but I don't know how to(and where) config "safety belt", somebody can t

  • What is the repalcement of .exe file in Java  ??

    What is the repalcement of .exe file in Java . i want to launch my java code in .exe fashion just clickk and u get output..... but as far i have seen in java there is only class file as output and every time to launch the output of code u have to run

  • Camera Raw crashes with use of white balance eye dropper.

    Using PS CC2014.2.1 Since this update, whenever I use the white balance eyedropper in Camera Raw, if placed over an over exposed region, instead of the dialogue box popping up to warn that the area is too bright, the system just freezes. Have to laun

  • I have an app in my App Store under updates under purchased that I'd like to get removed from my phone. How do I do that?

    I have an app in my App Store under updates under purchased that I'd like to get removed from my phone. How do I do that?

  • How to create graphics in labview?

    Dear All, I'm a graduate student at University of Alabama at Birmingham, AL. I'm working on a project in which I have to design experiments for the undergraduate students to introduce them with the LabVIEW software. In one of the experiments I want t