Is it possible to define multiple web services in one project?

I'd like to publish multiple components within one project as web services. but when I try to create it using the project New menu, it only prompts me and allows me to select one component . So does this mean only one web service can exist in one project?

Sunil
Thanks for the prompt reply.
I think I should have worded my question more clearly.
I have a project with multiple Java classes. I'd like to convert two of them into web services.
There are two ways to co this.
1. I right click on each class and select the Generate J2EE Web Service option. This will work correctly and allow multiple web services to be generated.
but this is not what I want to do .
What we are trying to do is to generate web services at the project level. I am following instructions in OTN web services tutorial :
http://www.oracle.com/technology/obe/obe1013jdev/ws/wsandascontrol.htm
So , this is what I do :
1. Right-click on my project and select New from the context menu.
2. In the New Gallery, expand Business Tier in the Categories list and select Web Services, then select Java Web Service from the Items list. Click OK.
3. In the Select J2EE Web Service Version dialog, select J2EE 1.4 (JAX-RPC) Web Service, then click OK.
4. Click past the welcome page
5. This brings me to the page where I can select the web service and class.
This is where I am stuck - it seems I can only select one web service here . Unless I am missing something.
Or should I just repeat the process multiple times - running the wizard once for each class ?
Thanks for the help.

Similar Messages

  • Multiple Web Services in one Jdeveloper project

    Hi all,
    I'm currently trying to implement a series of web services, all relating to one application. I'm using the top-down approach, where I generate the web service from a WSDL file, and add my implementation to the generated classes. The WSDL file imports all sorts of XML Schemas (xsd-files) and Jdeveloper correctly generates all the necessary java-classes for me. Lets call the first web service I create WS-1.
    This all works fine and I'm a happy panda. I can call the web service, it works, I can modif the wsdl and regenerate the web service to e.g. change the input etc. All this works.
    Just until the point where I want to create a second web service (lets call this WS-2). This new web service doesn't use all the XML Schemas that the first web service does, it is more simple with regards to in-/output. The problem arises when I modify WS-2 and Jdeveloper regenerates the Web service files (.java and the files in the WEB-INF/wsdl-directory). When I do this, it deletes the imported xsd-files that WS-1 uses (removes them from WEB-INF/wsdl).
    And when I regenerate WS-1 to get my xsd-files in again, then when I regenerate WS-2 it imports all the unnecessary xsd-files into the wsdl for WS-2.
    Something tells me, that there is a connection or shared library between all web services in one Jdeveloper project. That they all imports and uses the xsd-files in WEB-INF/wsdl.
    Is this true? Can't I have multiple web services (and wsdl-files) using different types (schema definitions) in the the same Jdeveloper project?
    One solution I can think of, is to have all my web services in different projects under the same application. But is this really necessary?
    I'm using Jdeveloper 10.1.3.3.0.

    Hi,
    pure from a coder instinct I think I would prefer them to be in separate projects for better reuse and clean separation. If I need project 1 to access aclass from Project 2, I can check the dependency check box in the project properties. Is there any business requirement that makes you think having all of these in a single project will help ?
    Frank
    Btw.: I agree that JDeveloper shouldn't constraint developers from doing what they want and if this is a limitation the feel free to file a bug

  • Multiple web services or one with many methods? when are threads created?

    Hey guys,
    I was just wondering how do you implement your web services - if you create one wsdl location with many methods (meaning one @WebService and lots of @WebMethod), or leave one class for each method, having many wsdl locations.
    A follow-up question would be: does each web service call create a thread, even if it's different calls to the same web service?
    Thanks for answering.

    Hi,
    pure from a coder instinct I think I would prefer them to be in separate projects for better reuse and clean separation. If I need project 1 to access aclass from Project 2, I can check the dependency check box in the project properties. Is there any business requirement that makes you think having all of these in a single project will help ?
    Frank
    Btw.: I agree that JDeveloper shouldn't constraint developers from doing what they want and if this is a limitation the feel free to file a bug

  • OWSM and Webservices -Define policies once for multiple web services

    I thought that through using OWSM we had the possibility to use the same Policy Lines for multiple web services.
    Mostly when web services are used/integrated within an application, the same rules need to be defined and I thought this requirement could be met when using OWSM.
    But you need to define the policy requirements on each web service that's passing through a gateway or agent, why isn't it supported to define policy lines one level higher to be able to use the same requirements for multiple web services?

    Nathalie,
    For this purpose OWSM allows you to use Template Policy Pipelines.
    For individual services, you can than replace the pipeline with the Template.
    But I have to agree with you here: the templating functions are rough on the edges, e.g. limited editing capabilities.
    Hope this helps.
    Best regards, Sjoerd

  • Problem when defining a web service

    Hello,
    I have defined several BAPI that I am calling from an external application by exopsing those BAPI using the SOAP adaptor.
    All goes well for all of them except one.
    For the one having problems the Integrantion engine is routing that call to different webservice than the one I expect it to do it,
    these are some of the paramenters I use when defining the web service in the Integration Builder:
    Interface name: MI_BAPI_PPMSRVAPS_GETLIST
    Communitcation chanel: CC_SOAP_BAPI_PPMSRVAPS_GETLIST
    Address: http://sapxi:50000/xisoapadapter/messageservlet?channel=:BS_WEBSERVICE_GREYCON:CC_SOAP_BAPI_PPMSRVAPS_GETLIST
    but instead when I test the generated wsdl using soapUI: the integration engine returns this error:
    Canceled with Errors 02.06.2010 15:04:22 02.06.2010 15:04:23   [websericename]     [namespace]MI_BAPI_PDSSRVAPS_GETLIST
    My guess is that at some point I defined wrong the web service but I have no way to redefine it or revert how it was defined.
    I redefined the webservice with correct parameters, but there is no change in behaviour.
    I checked server address and port (it is the exact same of the other BAPIs that work)
    Where can I see all defined web services when they are defined via the Integration builder define web service option?
    How to delete a webservice published this way?
    Any advise?
    Any help is very much appreciated.
    Regards,
    Mauricio Pego

    Hello there.
    Error: 404 Not Found
    Description: The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
    Possible Tips:- for HTTP_RESP_STATUS_CODE_NOT_OK 404
    u2022 404 is an HTTP response code that indicates that the resource in question couldn't be found. Usually this is due to an incorrect URL, so it is better to cross check all URLs. Check pipeline URL in the SLD in the business system of the Integration Server For this go to SLD->Business System-><yourIntegrtaion Server>->Pipeline URL: It should be like this http://<host>:<port>/sap/xi/engine?type=entry Where host is the host name of the Integration Server and port is the HTTP(8xxx) port. To verify this in Integration Server you can do like this. Go to SXMB_ADM->Integration Engine Configuration->Choose Edit from Menu -> Change Global Configuration Data to switch to change mode. Then select System Landscape - Load Configuration. (This is not required always)
    u2022 Check that the port really is the ICM HTTP Port and not the J2EE port i.e SMICM then menu GOTO --> SERVICES and check the port number for HTTP. It should be HTTP port
    u2022 If the error is Page cannot be displayed, cannot find server in https configurations Check and correct the SSL configuration for the ABAP and the J2EE side of the system
    u2022 If the error is because of integration server when using Proxy communications then check these. i.e SXMB_ADM->Integration Engine Configuration->Corresponding Integration Server enrty should be dest://<Http Integration server-Destination> Where < Http Integration server -Destination > is the RFC destination (SM59) of type HTTP connection (type H) to the Integration Server. In this case, host name, port, and path prefix are saved in the RFC destination.
    Try some of the recommendations that most apply to your case.
    Hope it helps!
    Regards,
    Caio Cagnani

  • Combine multiple web services with the same SQL query into one

    Hello,
    I would like to ask a question regarding combine multiple similar web services into one. Can you please tell me if it is possible to combine 4-5 web services into one since they built on the same SQL query with 5 different criterias or condition so that the user can enter any of the 5 criterias to populate the data on the form instead of having 5 different web services?
    e.g Query: Select appName, permit#, address, phone, description, type, section, from table where appName = can be 'appName, permit#, address, phone, or description' to populate the rest of the data to the form.
    Does any one have ever done some thing like this in Workbench ES? If so please assist. I know it can be easier to build it in Visual Basic, C#, or dot.net but the requirement is to build it in workbench ES.
    Thanks in advance,
    Han Dao

    If you are querying for Name, PhoneNumber, and SSN, and you queried for all people with a phone number that started with 867, you would have a potentially long list of people.  So to keep track of all of the people, we store each record in XML complex elements.  The root node is just any name you want, and the repeating element is the complex element name. 
    So using the example from above, I'm going to specify the following:
         Root Node: Result
         Repeating Element: Person
    So now when I do a query, my resultXML will look like:
    <Result>
          <Person>
                 <Name>Alex</Name>
                 <PhoneNumber>867-5309</PhoneNumber>
                 <SSN>111-11-1111</SSN>
          </Person>
    </Result>
    If your query returned multiple results (like ours would probably), it would look like:
    <Result>
          <Person>
                 <Name>Alex</Name>
                 <PhoneNumber>867-5309</PhoneNumber>
                 <SSN>111-11-1111</SSN>
          </Person>
          <Person>
                 <Name>Han</Name>
                 <PhoneNumber>867-2169</PhoneNumber>
                 <SSN>222-22-2222</SSN>
          </Person>
    </Result>
    So Result and Person is just to give a little bit of structure to the xml result (containers really).  So you can name them whatever is helpful for you.
    The column name mappings map the query columns (Name, PhoneNumber, SSN) to some node in the XML (Name, PhoneNumber, SSN).  So you don't need to specify which field maps to what in the form.  Just copy the column names to the element name so you have a 1-to-1 naming.  If you want to manipulate the XML a bit though, you could do:
    Column Name               Element
    Name                            YourName
    PhoneNumber                Phone
    SSN                              Secret
    which would then make your xml look like:
    <Result>
          <Person>
                 <YourName>Alex</YourName>
                 <Phone>867-5309</Phone>
                 <Secret>111-11-1111</Secret>
          </Person>
    </Result>
    It lets you change the XML element names to whatever you want. Otherwise by default they take on their column names.
    In your form, you could bind to the WSDL through the Data Connections pane and point it to your web service.  This will then create form elements that you can just drag and drop allowing you to have the information available when the service gets ran.  Once the service is called, you can modify the field's data to get whatever information you need in order to populate other form fields. 
    If that is too confusing, feel free to send me your form (e-mail is on profile page) and I'll add comments to it to show you how to set up the form for the web service call (and also give me the link to your webservice)

  • Certificate error while connecting to multiple web service

    I am having a web service test client through which I can connects and get reports from multiple web services.
    In Development unix box, we are using "self-signed certificate" using keystore type JKS. In Production server, we are using certificate from CA.
    The web service is running in Development and in Production.
    Now I have developed single test client with a drop down selection for different web services. For example, if we select "Development", the request will go the development web service and if we select "Production", the request will go to Production web service.
    Now while connecting to Develpment service, we are settings the below certificates details Because we are using the self signed certificate.
    System.setProperty("javax.net.ssl.keyStore",keyStoreFileLocation);
    System.setProperty("javax.net.ssl.keyStorePassword",keyStorePassword);
    System.setProperty("javax.net.ssl.keyStoreType", keyStoreType);
    System.setProperty("javax.net.ssl.trustStoreType",trustStoreType);
    System.setProperty("javax.net.ssl.trustStore",trustStoreFileLocation);
    System.setProperty("javax.net.ssl.trustStorePassword",trustStorePassword);
    I am clearing the System properties using the System.clearProperty() while pointing to Production service. because in Production we are using the CA certificate from Thawte so these details are not required at all and our JRE (java 5) is pre configured to support that CA certificate.
    I am using Resin-2.1.12, axis1.2 and java5.
    Now the problem is
    (1) for the first time, when I send the request to Production Service URL, the report gets generated. For the next time when we are running against Development, it's giving below certificate error.
    sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    (2) Now restart resin and run the test client against Developemnt service URL, here report gets generated and for the next time, run the test client against Production, it's giving the certificate error.
    So for the 2nd request, it always gives the error irrespective of the web service instance selected.
    Please suggest ....thanks in advance.

    Hi  ,
    No, due to the issue is happening only on one computer.
    The error "(401) Unauthorized" usually indicates that the connection has been established but the permission check fails.  InfoPath Form Services uses the application pool identity of the web
    application to connect to resources.
    Does the account  which login the computer have permission to connect to User Profile Service Application?
    For a workaround, you can go to IIS Manager , set the User Profile Application Pool to Anonymous Access and try again.
    Also you can have a look at the blog:
    http://sharepointconnoisseur.blogspot.in/2011/04/how-to-resolve-401-unauthorized-error.html
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Define a Web service in XI 7.1

    How can I define a web service in PI 7.1 in SOAP adapter
    Thanks

    Hi
    Go to the tools -> define web service
    5 steps to follow-
    Introduction
    give the url of the web server
    give the sender service name
    give the message type
    then overview, save the WSDL file.
    Dheeraj Kumar

  • Defining + testing Web Service

    Hi,
    I've defined a web service from ID and loaded the WSDL into XML Spy and trying to SOAP request from the WSDL.
    But I get the following error when I try to validate the WSDL.
    Unable to locate a reference to a supported schema type (DTD, W3C Schema) within this document instance.
    however I've the following XML tag in my WSDL
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:p1="http://Webservice.com/xi/WS00" name="MI_AVG_OUT" targetNamespace="http://Webservice.com/xi/WS00">
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://Webservice.com/xi/WS00" targetNamespace="http://Webservice.com/xi/WS00">
    I dont see the option 'Create new SOAP request' since the WSDL is not validated.
    And another question..when I defined Webservice, I had to input Message interface twice
    in 'Specify the Interface' step and (step 5 in <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/31/daa0404dd52b54e10000000a1550b0/content.htm">help.sap.com</a>)
    in 'Specify the Sender' step (step 7 in <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/31/daa0404dd52b54e10000000a1550b0/content.htm">help.sap.com</a>)
    What is the difference between these two...I mentioned my synchronous o/b interface MI_AVG_OUT and its namespace. Is that right?
    Thanks in advance
    praveen

    I tried and tested the same WSDL using oxygen. It is working perfectly well.
    I donno why XML spy was saying it as invalid, but I got what I wanted.

  • Regarding multiple web service

    Hi,
    I am working on web services in EJB.
    for securing the web service, we use jboss-wsse security.
    Can i have multiple web services with few web services being secured and the others in-secured?
    Thanks in advance.

    Friends,
    Can you please help me out with this logic? Thanks!

  • Is it possible to call a web service via UWL XML configuration?

    Hello
    Is it possible to call a web service via UWL XML configuration?
    If yes then an example would be great.
    Roy

    Hi Roy,
    Yes, yes it is possible.
    Yesterday only I came across the following document which will answer your questions:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f4843e-314f-2a10-2a88-8c4afa20dda6?overridelayout=t…
    ~Ashvin

  • Can't have multiple Web Service connections in SP1

    Hello,
    I'm currently interested in adding more than 1 Web Service connection to a particular xcelsius file, but after adding the first connection, the option is disabled in the Data Manager screen. Is there a workaround for this, since before service pack 1 you could have any amount of connections and as off upgrading this was changed.
    Regards

    Yeah I totally agree, It's like someone giving you a bunch of new appliances for your home but then telling you that your not going to have any electricity.  This product is pretty much usless to me now.
    Just the thought of having to partially develop in one version of xcelsius and then port over to a version that has SP1 installed makes me ill.  From what I can tell Xcelsius Engage Server still has multiple web service connection functionality enabled (http://www.businessobjects.com/product/catalog/xcelsius_engage/comparison.asp), I'm interested to see what the cost will be to upgrade to Server.

  • Define External Web services in SPRO. in SRM

    Hi SRM Gurus,
    We are doing an Upgrade from SRM3.0 to SRM7.0 with MDM.
    In SRM 7.0 -SPRO -We have to do the config in  Define External Web services
    What are the parameters to maintain.
    I read from SDN that
    Following parameters are not required in SRM 7.0. It was for ITS.
    ~OkCode ADDI
    ~target _top
    ~forcetarget yes
    ~caller CTLG
    You need additional parameter in SRM 7.0.
    returntarget _parent - for this what is the input parameters
    Hi Masa /Muthu
    Can you list down what  are the Input parameters required for this config and the details?
    Regards
    G.Ganesh Kumar

    Hi Masa,
    We have deployed the SRM-MDM Catalog Search UI in Portal.
    we tried accessing the http://<Portal Host>:<Portal Port>/SRM-MDM/SRM_MDM
    Then we got a screen (Search UI App screen), where in we have provided the MDM Server name, then the MDM Server Password, then presses the Connect button, then below this, it displayed the Repository name created in the MDM. We have selected the Repository, then provided the Credentials of a User (Name: T_CORP) in MDM which has "Catalog Manager", and the "UI Configuration Manager" Roles. Please note that these Role names were created by us in MDM. Is it the right procedure or do we have any standard Roles delivered by SAP in MDM to map? If any standard Roles are available, where we need to check these.
    Once the Credentials of MDM User is provided, and then selected the "Login" button.
    Then we are getting the below error.
    "java.lang.IllegalArgumentException: Table with Code 'null' does not exist in the repository 'Repository' or is one of the system table (e.g. Workflows) that is not exposed in repository schema"
    Please clarify; we are not configuring any values in iViews. Where we need to do this, I mean name of the iView, and what values do we need provide generally? We are just running the Search UI App application; I don't think it is an iView, because the URL shows the Application name details, etc...
    Please guide us, how to fix this Error.
    Regards
    G.Ganesh Kumar

  • Define external web services

    Hello all,
    We are running CCM 1.0.Have a doubt regarding "defining the external web services" in catalog content management.
    In the documents it says " you must define external web services to define the connection to:
    1.] CCM catalogs; 2.] OCI Catalogs
    What is the difference between the two?? Are CCM catalogs not OCI compliant?
    I always thought that once we load catalogs in CAT and CSE..that is it.What are these OCI catalogs now??
    Please help
    Sam

    Sam,
    I can help you to define external webservices -
    You can define webservices using <b>WF_EXTSRV</b>.
    You will have to enter service id, Log, Servers, and Port, specify your system access data for HTTP. You can get these details from your BASIS team. You will have to specify path for your BSP (Web Page).
    Select the call mode as <b>'Dialog Based Services'</b>.
    After this you will have to define import/export parameters. Normally export parameters is a 'Decision' made by the user (Approved / Rejected).
    You will have to maintain entry for your service id and Web task in table <b>SWLWPTSSID</b>. (Use SM30 to do it).
    Hope these details will help you.
    Regards.
    Pras

  • Multiple web services sharing same session?

    I was wondering if anyone has ever implemented multiple web services for an application that allowed the web services to share the same session?
    Furthermore, I was wondering if support might be included/buried in the WSDL spec. somewhere?

    There are a number of standards emerging to support long-running conversations among Web services as well as Web service composition. Can you expand on what you're trying to achieve?
    Doron.
    Collaxa, Inc.

Maybe you are looking for

  • Slide Show Problems--Please help

    In Go Live CS 7.0.2, why does my slide show preview fine, but when I upload it to the internet it doesn't work? Please Help! Trouble page... http://www.ifsoinklined.com/Pages/traditional.html Thanks!

  • I need someones honest opinion about my classe's lab final

    hello, my name is Professor John Mane, i am teaching AP java in a high school and would like to know if anyone thinks that this would be good for the lab final- i would like to know if anyone can do it and if can, how long it takes you to do it, than

  • MB51 item category of purchase order missing

    Dear guru , I need to see in MB51 the item category of purchase order for all the 101 goods receipts mvt  in order to distinguish subcontracting from standard purchasing. How can I obtain this ? Thanks in advance

  • STAD - get the 'transaction code' and 'program name'

    Hi, I was wondering if someone knows about a bapi with which I can get only the "transaction code" and "program name". I need to get those for a specified user, but I don't want to set on a trace, that's why I'd like to use the transaction STAD. If a

  • Calling javascript from subdomain

    I have the swf file on the main domain and I call them from a subdomain. All works fine except javascript. Does anybody ahve an idea why? The same code that I use on a subdomain I use on the main domain too, and there javascript calls work. Thanks