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!

Similar Messages

  • 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

  • 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

  • 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

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

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

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

  • Invoke multiple web services in single client

    hi everyone,
    Can we invoke multiple web services in a single client?.
    --web service                                                                                                                                                                           

    We can invoke..any number of services in a client.

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

  • Implementing Multiple Web Service operations

    Currently using JCAPS 5.1.3.2. Supposedly there is a way to implement a web service with multiple operations without using bpel. I haven't been able to figure out how to do this except by creating multiple WSDLs, each having one operation which invokes one jcd. Is there a way to do this with one WSDL?
    Thanks.
    Sharon

    Sharon,
    when you import a WSDL, you have to export the XSD nodes to an OTD in order to use them in a WebService Collabale JCD. With this JCD you create your own operation.
    Normally you have a Request and Reply element in your WSDL.
    I think you can define more of these "operations" in your WSDL which you can export to XSD nodes and then use in separate JCDs (= operation).
    You can handle only 1 operation per WebService collable JCD.
    Hope this helps some.
    Regards,
    Madere

  • Queries regarding creating Web Services in Oracle EBS 11i[Workaround found]

    Hi,
    We have an E-Business Suite 11i installation(11.5.10.2). In our implementation we are using some of the public APIs to insert & update data in EBS tables. Earlier this was done by calling the required PL/SQL procedures through dblinks.
    Now, we need to do the same by using Web Services. That is we need a Web Service which can be invoked from a different application(SAP) and the Web Service in turn will call the APIs.
    I am new to Web Services/SOA and as far as I could understand from reading the documentation, we need the following:
    1. Install Oracle 10g Application Server with BPEL Process Manager ONLY(Oracle AS Adapter will be installed as part of BPEL PM. The Oracle AS Adapter will connect 10gAS to EBS)
    2. JDeveloper to create and deploy the BPEL process.
    I have a few questions here:
    1. Are the above two points the only prerequisites for what I want to achieve? Do I need to install anything else?
    2. How do I expose the created Web Service? I mean how will the 3rd party application invoke this Web Service?
    Answers and/or links to helpful documents awaited.
    Regards,
    -Sujoy
    Found an alternate and more cost-effective solution. Turns out that the SAP PI/XI engine can use JDBC to connect to the Oracle DB. SAP PI/XI will host the Web Service and will internally access the API through a JDBC connection.
    Edited by: Sujoy on Feb 3, 2011 7:41 PM
    Edited by: Sujoy on May 16, 2012 6:49 PM

    Hi Helios,
    I had checked the note that you are referring to before posting here. It did provide me with a start but otherwise it wasn't a great help (also some of the links are broken) . Since I am quite new to this...I am not sure whether I am proceeding in the right direction. An example/tutorial is what would be pretty useful.
    Thanks anyway!
    -Regards,
    Sujoy

  • Question regarding a web service functionality in JDeveloper

    Hi guys,
    I used JDeveloper to create a very simple Celsius to Fahrenheit converter web service. One Java class, one method, taking in a float as an argument and returns a float. I created the web service. When I deployed it to a remote OC4J, I got a com.mysql.jdbc driver cannot be found error...which threw me off. As it turns out in the Connections tab, I had a node created under Databases for accessing MySQL that is installed on my machine. So it seems JDeveloper was trying to transfer those settings as well to the remote OC4J...when I deleted that node, the problem went away and the web service got deployed ok. Why is that? Is there any way to tell JDeveloper to ignore that and deploy the Web Service?
    Thanks in advance.

    Hi,
    In the Preferences dialog's Deployment tab, the 'Bundle Default data-sources.xml During Deplyment' checkbox is checked by default. This file will define the data source for each defined database connection. Can you try unchecking this and try deploying the web service ?
    Havent got a MySQL db connection myself to try reproducing, Will seearound if I get access to one to reproduce inthe meanwhile..
    Regards,
    Sunil..

  • Launch multiple web services with 1 click

    Hi all,
    I am looking into an extension of our ApEx solution. Current situation:
    - ApEx is used to fill in information (descriptions on reports). BIP is used to save this information in a file with a certain lay-out
    - works as follows: user adds/changes information, presses a button and a file is saved somewhere (webservice -> BIP -> FTP output)
    The change that I want to implement:
    some fields are used on multiple output files. I would like to update all outputs after changing 1 field. This would mean: if a description is changed, I need to go into each report that needs the output, and launch the web service manually. Of course this is a tedious job and very error-prone. I would like to automate this. Whenever a field is saved, launch the web service for each report containing this field.
    The biggest problem I'm having is launching the web service inside some sort of loop? Any tips/hints?
    Thanks!

    Hi all,
    I am looking into an extension of our ApEx solution. Current situation:
    - ApEx is used to fill in information (descriptions on reports). BIP is used to save this information in a file with a certain lay-out
    - works as follows: user adds/changes information, presses a button and a file is saved somewhere (webservice -> BIP -> FTP output)
    The change that I want to implement:
    some fields are used on multiple output files. I would like to update all outputs after changing 1 field. This would mean: if a description is changed, I need to go into each report that needs the output, and launch the web service manually. Of course this is a tedious job and very error-prone. I would like to automate this. Whenever a field is saved, launch the web service for each report containing this field.
    The biggest problem I'm having is launching the web service inside some sort of loop? Any tips/hints?
    Thanks!

  • Query regarding calling web services in Visual Composer

    Hi Experts,
       I am thankful for your help for posting this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e017128
    I am following the same steps but I am unable to find the system in visual composer after creating it in portal.
    I got another document also related to it...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ceea45f3-0c01-0010-049c-c2b001f590fb
    But in this document when I am giving the WSDL URL name its not accepting. It is showing as invalid.So I am unable to proceed forward. Please help soon...
    Regards
    Nutan

    Hi Nutan,
    Try to define the web service system directly in the portal. Through VC you can encounter problems.
    Regards,
    Natty

  • Failure to deploy Multiple Web Services per EAR deployment

    Hi,
    I am developing web services using EJB 3.0 beans using annotations. The deployment of EAR fails when I have more than ONE Web services in a single EAR file. The exception I get is as below. Can anybody tell me if it is not possible to package more than one service in a single EAR and each web service and its supporting classes have to go in separate EAR file.
    When I deploy One Service per EAR, the deployment works fine.
    Regards,
    Vikrant.
    ##0#0#Error##Plain###com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Exception occured during web services deployment. Unable to extract web services deployment data for archive Pem1101EJB.jar, application sap.com/Pem1101EAR.
         at com.sap.engine.services.webservices.server.deploy.ws.WSDeployProcess.extractWebServicesJ2EEEngineDescriptors(WSDeployProcess.java:304)
         at com.sap.engine.services.webservices.server.deploy.ws.WSDeployProcess.extractWebServicesJ2EEEngineDescriptors(WSDeployProcess.java:272)
         at com.sap.engine.services.webservices.server.deploy.ws.WSDeployProcess.init(WSDeployProcess.java:166)
         at com.sap.engine.services.webservices.server.deploy.WSBaseAbstractDProcess.makeProcess(WSBaseAbstractDProcess.java:307)
         at com.sap.engine.services.webservices.server.deploy.WebServicesDeployManager.deployWebServices(WebServicesDeployManager.java:1051)
         at com.sap.engine.services.webservices.server.deploy.WebServicesDeployManager.deploy(WebServicesDeployManager.java:248)
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:506)
         at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:249)
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:215)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:384)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:418)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:2194)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:318)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:275)
         at com.sap.engine.services.dc.gd.impl.ApplicationDeployer.deploy(ApplicationDeployer.java:109)
         at com.sap.engine.services.dc.gd.impl.InitialApplicationDeployer.performDeployment(InitialApplicationDeployer.java:113)
         at com.sap.engine.services.dc.gd.impl.InitialGenericDeliveryImpl.deploy(InitialGenericDeliveryImpl.java:55)
         at com.sap.engine.services.dc.cm.deploy.impl.OnlineDeployProcessor.performDelivery(OnlineDeployProcessor.java:160)
         at com.sap.engine.services.dc.cm.deploy.impl.BulkOnlineDeployProcessor.deploy(BulkOnlineDeployProcessor.java:48)
         at com.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor$DeployProcessorHelper.visit(AbstractDeployProcessor.java:178)
         at com.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:83)
         at com.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor.deploy(AbstractDeployProcessor.java:77)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.performDeploy(DeployerImpl.java:631)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.doDeploy(DeployerImpl.java:488)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deploy(DeployerImpl.java:209)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deploy(DeployerImpl.java:154)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImplp4_Skel.dispatch(DeployerImplp4_Skel.java:875)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:351)
         at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:70)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:61)
         at com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:36)
         at com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest(FCAConnectorImpl.java:882)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:52)
         at com.sap.engine.services.cross.fca.MessageReader.run(MessageReader.java:59)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:108)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:287)
    Caused by: java.lang.NullPointerException
         at com.sap.engine.services.webservices.server.deploy.j2ee.ws.J2EE14Convertor.convert(J2EE14Convertor.java:650)
         at com.sap.engine.services.webservices.server.deploy.j2ee.ws.J2EE14Convertor.convert(J2EE14Convertor.java:460)
         at com.sap.engine.services.webservices.server.deploy.j2ee.ws.J2EE14Convertor.convertJ2EEModule(J2EE14Convertor.java:297)
         at com.sap.engine.services.webservices.server.deploy.j2ee.ws.J2EE14Convertor.convertJ2EEModule(J2EE14Convertor.java:219)
         at com.sap.engine.services.webservices.server.deploy.ws.WSDeployProcess.extractWebServicesJ2EEEngineDescriptors(WSDeployProcess.java:289)
         ... 35 more

    Hi,
    Is the problem solved?
    I am also facing a similar issues and getting the following error
    "Unable to extract web services deployment data for archive ".
    Further, its a Java EE application and it doesn't contain any web service. Why am i getting this error while deploying?
    Any body can help me out in this?
    Thanks in advance,
    Venkat.

Maybe you are looking for