Multiple Webservices

Hi,
How to add multiple webservices in a Single Ear file.
My Requirement:
I Have a ear which have different EJB jars for different modules.
Now I want to publish different EJB modules as webservice.
If I am right , now only one service can be published from
one Ear. How to make my other modules also published as webservice
from same EAR.
regards
Boney Jose

Hello,
Manoj has an example of packaging multiple web services [1]. See if
this example helps.
HTH,
Bruce
[1]
http://manojc.com/?sample12
Boney Jose wrote:
>
Hi,
How to add multiple webservices in a Single Ear file.
My Requirement:
I Have a ear which have different EJB jars for different modules.
Now I want to publish different EJB modules as webservice.
If I am right , now only one service can be published from
one Ear. How to make my other modules also published as webservice
from same EAR.
regards
Boney Jose

Similar Messages

  • Transaction Locking during multiple Webservice - persistent webs sessions

    Hi All,<br>
    <br>
    Yesterday evening we had a discussion concerning ESA architecture. We want to create (web)services for accessing the SAP business objects (using XI) and use these (web)services via visual composer, webdynpro or custom java development.<br>
    <br>
    It does not seem a big problem to perform creations and reads of transaction, but when we want to change objects, we saw some problems concerning locking/commiting and rollbacks.<br>
    <br>
    From our GUI we would like to be able to go in edit mode and from that moment on, the transaction should be locked. We then want to change certain parameters and commit only when we push the save button.<br>
    <br>
    We can invoke a webservice wich tries to lock the transaction, but at the moment the XI scenario is completed (=the lock is created), the program at SAP side (=proxy in our case) is also finished and the lock is automaticly removed. How can we do locking, when using webservices via XI?<br>
    <br>
    The problem of the rollback and commit we can partially solve by putting more logic in the GUI, but we don't want to do that. How can we do a change of a business object and remember this change without doing a commit on the SAP system.... . Same problem for the rollback.<br>
    <br>
    Is there a away to keep a session "alive" during multiple webservice calls or to simulate it? Every webservice invokation happens in a different context...isn't it?<br>
    <br>
    <br>
    <b>Just to make it a bit more clear.</b><br>
    <br>
    Suppose we create 6 service related to the business object bupa (business partner).<br>
    - read<br>
    - change<br>
    - commit<br>
    - rollback<br>
    - lock<br>
    - unlock.<br>
    <br>
    We create a GUI which uses these services.<br>
    <br>
    <b>Step1:</b> we want to see bupa in detail, so the read webservice is called and the retrieved details are shown in the GUI<br>
    <b>Step2:</b> we want to go in edit mode, so the lock webservice is called to lock the bupa. The bupa should stay locked, untill the unlock is called. Here occurs the problem. The webservice lock is called, XI will trigger the proxy on the SAP system. This proxy will lock the bupa. As soon as the proxy-program is completed, the bupa lock will automaticly be removed ... . We want to keep this lock!<br>
    <b>Step3:</b> we change the bupa using the change webservice. Only the user who locked the bupa should be able to change it.<br>
    Problem concerning the locking occurs: standard we don't know who locked the bupa (this is done by the generic RFC user, configured in sm59). Should we pass some kind of GUID towards the proxy and build some additional logic to know which end-user in fact locked it... . Using the userid isn't sufficient, because a user could logon multiple time simultanously.<br>
    <br>
    Another problem is that we want to change the bupa, without having to do a commit yet.De commit should be called only when pushing the save button. When the proxy is ended and we did not do a commit, the changes are lost normally ... .<br>
    <br>
    What we in fact want to do is Simulate the bsp behaviour.<br>
    <b>Step4:</b>We want to perform a save of the things we changed or a reset. This means the commit or rollback webservice is called.<br>
    <b>Step5:</b> We want to unlock the bupa by calling the unlock webservice.<br>
    <br>
    <br>
    Please give me your comments.<br>
    <br>
    Kind regards<br>
    Joris<br>
    <br>
    Note: Transaction Locking during multiple Webservice "sessions".
    Message was edited by:
            Joris Verberckmoes

    There are multiple strategies how to resolve this. They require that the last change time is available in the changed object, and also that the client keeps the value of the change time when it read the data.
    1. First one wins
    Immediately before posting the changes, the current change time is read from the server. In case it is different from the client buffer, then the client changes are discarted.
    Example:
    1. Client A reads data
    2. Client B reads data
    3. Client B changes its buffer
    4. Client B checks if server change time has changed (result is no)
    5. Client B writes his changes to the server
    6. Client A changes its buffer
    7. Client A checks if server change time has changed (result is yes)
    8. Client A discarts its changes
    2. Last one wins
    Easy. Client just writes his changes to the server, overwriting any changes that might have occured since it read the data.
    Example:
    1. Client A reads data
    2. Client B reads data
    3. Client B changes its buffer
    4. Client B writes his changes to the server
    5. Client A changes its buffer
    6. Client A writes its changes to the server -> changes from client B are lost
    3. Everybody wins
    Most complicated. In case of concurrent changes, the client is responsible for merging his changes with the changes from other clients and to resolve any conflicts.
    Example:
    1. Client A reads data
    2. Client B reads data
    3. Client B changes its buffer
    4. Client B checks if server change time has changed (result is no)
    5. Client B writes his changes to the server
    6. Client A changes its buffer
    7. Client A checks if server change time has changed (result is yes)
    8. Client A merges its changes with changes from client B
    9. Client A writes his changes to the server
    "Last one wins" is definitely not water-proof. But even with the other strategies, data can potentially get lost in the short timeframe when the change time is checked and the actual update.
    To make it more secure, server support is required. E.g. the client could pass the change time from its read access to the server. The server can then reliably reject the update if the change data has been updated in beetween by another client.

  • How to maintain EOIO for JMS to multiple webservices scenario

    Hi,
    I have a requirement that
    how to maintain EOIO for JMS to multiple webservices scenario.
    JMS queue has multiple messages, each message has to be sent to either of 2 receivers.
    How to maintain EOIO in case, when there are 2 receivers.
    Regards
    Sekhar

    Hi,
    since messages are split between 2 webservices receivers, each would have its own SOAP adapter.
    So if order of messages in the JMS queues is M1, M2, M3 and M4 . There is a field based on which split happens.
    Say, if M1 and M3 have to go Webservice1 (will have its own mapping)
    and M2 and M4 have to go Webservice2. (will have its own mapping)
    we'll have two receivers in the receiver determination and hence two Interface determinations.
    The result should be
    M1 delivered to Webservice1
    M2 delivered to Webservice2
    M3 delivered to Webservice1
    M4 delivered to Webservice2
    How will we maintain EOIO in this case?
    Regards,
    Balaji.M

  • Session between multiple Webservice calls from PI7.0

    Hello XI SDNers,
    I am unable to overcome my Webservice session problem using SOAP (Axis) adapter. My scenario is as follows:
    I am calling a external Webservice deployed in Axis webservice engine from PI7.0, during my first call:  I call synchronous "Login" webservice and I became the response "User is Logged in"
    during my second synchronous call "GetItem", the webservice returns "The user doesn't have valid session". The two synchronous calls are executed from same scenario one after another!
    I lost my session after the "Login". Is there any way in PI 7.0 to maintain the session?
    Note: I tried the same scenario using XML SPY SOAP client, it is working!!!  it is maintaining the session between multiple webservice calls.
    Is there any suggestions to overcome this problem?
    Thanks and regards,
    Satish.

    Hi Satish,
       We are working on the same sort of scenarios, where we have to call more than one webservice in a sequential fashion using the same session id details.
        What we did was we built new xsds adding session details node using the webserive request and response xsds. And we are maintaining a sessions table which contains session id and  status fields in PI. So we send webservice request with the session id details. We wrote an UDF to get the session details from PI and set the status field as busy so that no other request uses the same session details.
       Webserive response again contains the sessions details which can be used for the next webservice request.
      Finally after all the calls set back the status to Active in PI table.
    Webservice Calls From a User Defined Function
    /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
    Hope this helps.
    Thanks,
    Vijaya.

  • How to do single sign on for multiple webservices in flex application

    Hi Experts,
    I have created a flex application and using few webservices in that application. When I run the application its asking logon details for each and every webservice I used. However I want to do single sign On without providing logon details for each and every webservice.Please suggest me.
    Thanks and advance.

    Hi,
    if yout projects are deployed in their own Java EE context root then you have multiple applications, though logically you count them as one. Use OSSO or Oracle SSO (where OSSO should be fine since all deployments share the same instance)
    Frank

  • Multiple Webservice calling

    Hi All,
    How to call more than one webservice from a Flex Panel ?
    I have multiple cmbobox that values are listing from different webservices.
    When I get one combobox values, other combos are not getting....
    please give me a solution for recover from this problem...
    Thanks
    Tuoj

       private function call_webservices():void
          post_submit_ip_to_iad_service.send();
          post_submit_ip_to_ani_service.send();
        <mx:HTTPService id="post_submit1"
          url="??"
          method="POST"
          result="result_handler1(event)"
          fault="fault_handler(event)">
        </mx:HTTPService>
        <mx:HTTPService id="post_submit2"
          url="??"
          method="POST"
          result="result_handler2(event)"
          fault="fault_handler(event)">
        </mx:HTTPService>
        <mx:Button label="Submit" click="call_webservices();"/>

  • Call multiple Webservices

    We have a report to be built using webservices,
    I got the key columns in the report using webservice_1, few of the columns to be derived using webserive_2 like by passing lookupcode to get the description.
    now my question how to invoke webserivece_2 for each record?
    Any clue.

    This is a prime use case for BPEL, as integrating multiple web services is exactly what it's meant to do. You could then call the new BPEL-based web service from APEX.
    Tyler

  • Multiple Webservices in Xcelsius

    I'm pulling in data from a number of different SQL servers etc. and I want to create a webservice or services that will pull the different sections of data into separate worksheets in Xcelsius. I have Xcelsius Engage 2008 (not Server or Enterprise). Can I do this or do I have to have Server to bring in more than one lump of data?

    I'm using Engage as well.
    While Xcelsius engage allows you to only make one direct connection to a web service there is another way.
    You can connect your excel model to many web services if you use the xml mapping functionality in excel.    These mappings are imported to your Xcelsius model along with anything else in your excel model.
    Once you imported you will find that the multiple web service connections are still active. 
    The only compromise is that there seems to be less flexiblity when attempting to use input parameters with the web service  (Excel doesn't seem to have a method to let you supply input to a web service.)

  • How to combine multiple webservices into one WSDL file

    Gurus,
    I have 4 four webservices(ws1,ws2,ws3 & ws4) defined in XI. Normally in XI when we define webservice ,WSDL file will be generated for each interface. Now I have 4 related interfaces, so 4 WSDL files will generated. Suppose if I have 100 webservices then 100 WSDL files need to be generated & need to send to other party to consume our services, which is very tedious task & to track also. So is it possible to combine related webservices into one WSDL file? Your inputs will be highly appreciated.
    Regards,
    Santhosh

    Hi,
             Instead of trying to combine the interfaces, you can try to define your interface mapping with 4 sender interfaces with in one interface mapping . I think this may give you the result you are expecting.
                      If you want entire content to be in one interface , then, define single interface which can accomadate, all message ocntent of all 4 interfaces.Means your sender message to contain the 4 datatypes internally.
    Regards,
    Reyaz

  • Multiple webservices in 1servlet context

    Hi,
    I have approx 8 jcds in a project.
    1 connectivity map with 1 external ws/soap external system, which is linked to all the jcds.
    Deployed ok - no errors at all.
    However, it seems that i cannot call 7 of the web services. The last one (alphabettically, and im assuming last one deployed) is the only one i can call, the others do not seem to be recognized.
    The WSDLs are created fine, but when called, the logical host does not recognize the operation.
    Does this mean that i will have to create another 7 external soap/http systems and have 7 different servlet contexts, or am i missing something really simple here?
    Weemort

    1 "New Web Service" JCD exposed as a web service = 1 SOAP Server Exernal. Each JCD is an independent web service with its own "servlet context". Servlet context is set in teh SOAP Server external ergo each JCD needs a distinct external to be a distinct service.
    Why not use a multi-operation WSDL to create an eInsight-based service implementation is you need a single servlet context for multiple pieces of funcitonality?

  • Client consuming multiple webservices that have shared classes

    My Java client application is accessing two webservices (ServiceA and ServiceB). Both of these webservices us a shared class (CoolRect). I use wscompile to generate stub files for these webservices. When I try to use CoolRect, it gives an "ambiguous" error. Basically I must declare my CoolRect like:
    ServiceA.CoolRect rectA;
    ServiceB.CoolRect rectB;
    The problem is that I cannot assign one to the other:
    rectA = serviceA.getCoolRect();
    rectB = rectA;
    This generates an "incompatible types" error. These are identical classes from common source base used by the webservices. Is there some way to get wscompile to generate stubs so this isn't a problem? All solutions appreciated. Thanks

    Hi Javier...
    Thanks for helping out, though I didn't see any change after applying the configs you suggested.
    The changed config contains the following:
    access-list local_redistribute_out standard permit 172.31.255.0 255.255.255.0
    route-map local_redistribute_out permit 10
    match ip address local_redistribute_out
    router ospf 1000
    router-id 192.168.210.1
    network 10.21.0.0 255.255.0.0 area 1
    network 192.168.210.0 255.255.255.252 area 0
    area 1
    log-adj-changes
    redistribute static subnets route-map local_redistribute_out
    crypto dynamic-map VPN_SOFTWARE_CLIENT 10 set transform-set ESP-AES-256-SHA
    crypto dynamic-map VPN_SOFTWARE_CLIENT 10 set security-association lifetime seconds 288000
    crypto dynamic-map VPN_SOFTWARE_CLIENT 10 set reverse-route
    crypto map EXTERNAL_MAP 1 ipsec-isakmp dynamic VPN_SOFTWARE_CLIENT
    I can confirm the following:
    ASA# ping 10.21.9.42
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 10.21.9.42, timeout is 2 seconds:
    Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
    After doing the capture, the show capture capin indicated 0 packets captured, 0 packets shown.
    My pertinent local routing table entries contain:
    $ netstat -rn |grep utun0
    default            utun0              UCSI            2        0   utun0
    10.21/16           172.31.255.7       UGSc            0       13   utun0
    172.31.255.7       172.31.255.7       UH              3        0   utun0
    172.31.255.255     utun0              UHW3Ii          0       56   utun0     12
    192.168.210        172.31.255.7       UGSc            1       11   utun0
    216.185.64.6       utun0              UHW3Ii          0      586   utun0    140
    I hope you see something in here that can help.
    Thanks.
    Ken.

  • Calling multiple webservices depend on the condition

    Hi friends,
    i need a solution for my ccbpm flow.
    we are getting request from Webservice1 , and it is going to Webservice2. Here it will check the conditon in webservice2.
    if the conditon is true from there it will go to Webservice3.
    Unless Webservice2 will send a message to Webservice1.
    we are using CCBPM flow for this.
    for this i taught like if-else conditon.
    but i do't know how to use this condition.
    could any one provide solution for this.
    are if there is any other way to do this in CCBPM .
    note: i need it in CCBPM only.
    please help me on this.

    Firstly, you dont need ABAP proxy any more for a scenario which involves commmunication only between WS and BPM (i should say PI).
    in the above given flow can I take at first receiver mode u201CS/A Bridgeu201D because need to send response to the first webservice1.
    And could you tell if I used this S/A bridge , where can I close this S/A bridge.
    Sync-Async bridge should be used only if you want to send response to WS1 in any case i.e. response should always be sent to WS1 irrespective of any condition.
    The send step in which you are sending the response to WS1 will close the S/A bridge.
    From webservice3 the response need to go to webservice1.
    So can I take here the step like SyncSend(WS3Req_To_Ws1Res).
    When WS3Rep needs to be send to WS1 then you need not include it as a SYNCSend...it should be an ASYNCSend..... SYNCSend should be used only if WS1 is again going to send you some details back
    Question 3:
    How to replace ABAP Proxies in my Entire flow.
    Case1-->
    You need not worry about proxies anymore.....now you will be importing WSDL into External Definitions in Integration repository and using the same to build Message Mapping and Message Interface.
    You will get these wsdl files from the webservice applications with whom BPM (PI) will be talking.
    Case2 -->
    In your case firstly WS1 will send you a request....so now you need to provide them with the wsdl generated in PI....so that they can establish the communication.
    How to create the wsdl file?...check it here: /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    Just refer till Pt.2 of Testing section
    All the sender/ receiver protocol in your case will be SOAP.....i.e. only SOAP sender/ receiver channels needs to be created
    No channel is to be ccreated when BPM is the sender/ receiver
    Regards,
    Abhishek.

  • Webdynpro with multiple webservice

    hi am new to net weaver.. .  trying to import more than one web service in web dynpro application. Is this possible????
    can anybody help me ..
    Thanks in advance.......
    regards
    Krish.

    You will have to create a model for each web service and then use it in WD 4 JAVA
    Refer to the tutorial on link - http://help.sap.com/saphelp_nw04/helpdata/en/da/2bf042493ef54499a77394ef6be096/frameset.htm
    Thanks,
    GLM

  • Project with RFC to WebService..

    Requirement : Solutions for RFC to WebService..
    Data Flow :
    1. RFC call to WebService
    2. WebService will serach concern record and will reply back to RFC
    <RFC> <Synch Outbound Interface> <RFC Adapter> <PI 7.1> <SOAP Adapter> <Synch Inbound Interface> <WebService>
    Suggest me complete roadmap for the scenario, as i m bit confused to use wether workout on java function for searching concern record from multiple webservices or anything else is possible.
    Thanks and Regards,

    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    /people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    those are based on PI 7.0 but that is quite similar to what you will do in 7.1
    Are you looking for something other than that?

  • Inbound interface as webservice?

    I hava developed a simple file to file scenarion with all data types message types and msg mappings etc.
    sender file(XML) contains two nos and receiver file contains the result (addition) of these nos.
    now i want to expose inbound interface(receiver) as a web service so that i can get the addition result from any other application like java or .net.
    so is it possible to expose inbound interface as web service?
    If yes, please tell me the required steps.
    Regards,
    Piyush

    Hi,
    ><i>Means I have to make and outbound interface( containing two messages) and using SOAP Adapter(sender), I can expose that web service.</i>
    So far, so good . You are on the right track.
    ><i>Now I should import the same wsdl using inbound interface and SOAP adapter(receiver)</i>
    No. What you would need is an external webservice or your own webservice published on some URL. The link i gave in my previous post has multiple webservices. Search in it for the calculator webservice .
    This webservice will give you a WSDL. Now, use this WSDL in your XI as your  Inbound Message Interface with the request and response messages. And use the SOAP adapter as to make the call to the Webservice.
    Ofcourse, you can write your own webservice which does the addition, publish it.
    but, the procedure in XI will be the same. Import the WSDL and do the needful mapping and configuration.
    More on this document,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-a651295aeaa9
    Regards,
    Bhavesh

Maybe you are looking for

  • How can I Delete an Administrator Account??

    So I have a Mac Mini where Im the Administrator Account,(have a total of 3 accounts for sis and bro) but i have recently bought me a MacBook Pro, so i want to delete my old account on the Mac Mini, and make my sister the new Administrator...Does anyb

  • Highest supported Sun java for forms 10.1.2.0.2?

    Hello everyone, According to Oracle's "client platform statement of direction 10gr2" web page, the highest officially supported version of Sun java for our environment (XP, IE 6, Forms 10.1.2.0.2) is 1.5.0_06. Is this indeed correct? The Sun site has

  • Bad string error!

    hello, for my application, I am using combo box for displaying IP addresses. when i go to that corresponding panel from Main Menu buy clicking 'GoToIPdiplay' menu item, the output throughs "Object Identifier: bad string supplied to set value " error

  • Apex & Joomla (CSM)

    Hello everyone. Before I start writing I have to let you know that my English is no so good, I'm from Colombia and here is my case. I'm a Apex fanatic and now I'm building a website for a community where moderator users can make schedule to appointme

  • Folders not listed under proper account

    First I set up Mail with an IMAP account from Fastmail.fm. The account is listed under INBOX and all the folders I have on Fastmail are properly listed under the account name. Then, I added another IMAP account from Netscape (AOL). This account is al