How to run a Spring Web service?

Hi,
I have to deploy a WAR with OAS 10.1.3.3. That WAR contains a Web service build on the Spring Fwk 2.0.6. It runs on Tomcat and Jetty without problems.
I get an error when I try to call a Web service operation:
Caused by: oracle.j2ee.ws.saaj.soap.SOAPVersionMismatchRuntimeException:
Envelope namespace must be: http://schemas.xmlsoap.org/soap/envelope/ is http://trivadis.com/amexcoCard/schemas
     at oracle.j2ee.ws.saaj.soap.SOAPDoc.createRootElement(SOAPDoc.java:98)
     at oracle.j2ee.ws.saaj.soap.SOAPDoc.createNodeFromType(SOAPDoc.java:44)
     at oracle.j2ee.ws.saaj.soap.SOAPPartImpl$SOAPPartDocument.createNodeFromType(SOAPPartImpl.java:593)
     at oracle.xml.parser.v2.XMLDocument.createElement(XMLDocument.java:2122)
     at oracle.xml.parser.v2.DocumentBuilder.startElement(DocumentBuilder.java:262)
     at oracle.xml.xslt.XSLEventHandler.reportStartElement(XSLEventHandler.java:267)
     at oracle.xml.xslt.XSLEventHandler.startElement(XSLEventHandler.java:389)
     at oracle.xml.xslt.XSLTContext.reportNode(XSLTContext.java:345)
     at oracle.xml.xslt.XSLTContext.reportNode(XSLTContext.java:368)
     at oracle.xml.xslt.XSLTContext.reportNode(XSLTContext.java:1303)
     at oracle.xml.xslt.XSLCopyOf.processAction(XSLCopyOf.java:141)
     at oracle.xml.xslt.XSLNode.processChildren(XSLNode.java:480)
     at oracle.xml.xslt.XSLTemplate.processAction(XSLTemplate.java:205)
     at oracle.xml.xslt.XSLApplyTemplates.processAction(XSLApplyTemplates.java:242)
     at oracle.xml.xslt.XSLApplyTemplates.processAction(XSLApplyTemplates.java:142)
     at oracle.xml.xslt.XSLNode.processChildren(XSLNode.java:480)
     at oracle.xml.xslt.XSLTemplate.processAction(XSLTemplate.java:205)
     at oracle.xml.xslt.XSLStylesheet.execute(XSLStylesheet.java:581)
     at oracle.xml.xslt.XSLStylesheet.execute(XSLStylesheet.java:548)
     at oracle.xml.xslt.XSLProcessor.processXSL(XSLProcessor.java:333)
     at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:437)
     ... 25 moreDuring deloyment I have changed the class loading. here is my orion-application.xml
<orion-application ...>
...      <imported-shared-libraries>
            <import-shared-library name="Apache Commons Collection"/>
            <import-shared-library name="Backport java.util.concurrent"/>
            <import-shared-library name="JAXB"/>
            <remove-inherited name="soap"/>
      </imported-shared-libraries>
</orion-application> I have tried many different configuration and excluded oracle.xml, WS related libs and so on, but I never managed to run a request on the Spring WS
What else can I do?
Any hints are welcome,
Thanks, Markus

Hi Jacco,
What is the proper version of oracle.xml? I'm not sure that the Oracle XML Parser stuff is the root of my problems.
Just another fact: When I removed all inherited libs during deployment, OAS can't deploy and start my Web service because of a NullPointerException:
Operation failed with error:
Unexpected exception parsing XML document from class path resource [context/applicationContext.xml];
nested exception is javax.xml.parsers.FactoryConfigurationError:
Provider oracle.xml.jaxp.JXDocumentBuilderFactory could not be instantiated:
java.lang.NullPointerException Why does OAS still needs oracle.xml.jaxp.JXDocumentBuilderFactory??

Similar Messages

  • How do I invoke a web service?

    I'm new to web services... and I have to find a way to connect to the microsoft reporting services web service....
    But well I don't know how to connect to a web services...
    Can someone direct me to a java tutorial about invoking web services?
    Please? =)
    Thanks,
    Renato Fontes

    Enter the string without the quote, then try to switch to the XML view and add the quotes. This should be a workaround for simple values.
    You should also be able to generate a java client from JDeveloper in a few clicks, using the Wizard. As you can generate the JUnit template for the proxy (or stub), it's usually faster to re-run your test.
    If this does not work for you, can you post the WSDL so we can see if there is any reason it does not work for you.
    All the best,
    -Eric

  • How can I call external web service from BPEL

    1. I have "EmpService" webservice (simple webservice to get emp salary, not in BPEL domain) running in Oracle AS host1. If I want to call this web service from BPEL in another host2. How can I do this?
    2. Is it a must to deploy this EmpService to Oracle BPEL domain in order to call it? If so, how can I deploy it. As many BPEL example tutorial demonstrate the "obant" command to deploy the BPEL process, but not show how to deploy a external web service not in BPEL project. Please help. ...

    Create a partner link in BPEL and point it to the WSDL deployed on external server.
    this thread will also help
    Axis generated WS to Bpel WS

  • How to call an external web service from OIM?

    Hi,
    I have a question on how to call an external web service from OIM within e.g. creating user process? How should it be done; through adapter and task in the process?
    Any recomendations?
    Thanks in advance!

    it is not clear to me if you are having problems with calling java code from OIM or if the problem is the web service API.
    Lets do some divide and conquer:
    Can you create a simple java class that just writes a couple of lines to the log? Please attach this code to the OIM task and make sure it runs.
    Once this works we can start looking at the web service call.
    Best regards
    /Martin

  • Spring web-service application in weblogic 9.1

    Hi,
    Iam trying to port the sample application given with Spring Web Services download(It works great with tomcat) to Weblogic 9.1. There were some issues doing it. You can see the discussion here. [url http://forum.springframework.org/showthread.php?t=26205]
    I did that accordingly and Iam getting a [org.springframework.ws.soap.axiom.AxiomSoapMessageFactory]: Constructor threw exception; nested exception is java.lang.ClassCastException: weblogic.xml.stax.XMLStreamInputFactory
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:451)
            at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
            at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
            Truncated. see log file for complete stacktrace
    org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.ws.soap.axiom.AxiomSoapMessageFactory]: Constructor threw exception; nested exception is java.lang.ClassCastException: weblogic.xml.stax.XMLStreamInputFactory
            at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
            at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:759)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:724)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:387)
            Truncated. see log file for complete stacktrace
    java.lang.ClassCastException: weblogic.xml.stax.XMLStreamInputFactory
            at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
            at org.springframework.ws.soap.axiom.AxiomSoapMessageFactory.<init>(AxiomSoapMessageFactory.java:97)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
            Truncated. see log file for complete stacktrace error.
    Look at this page for the settings i have done. [url http://forum.springframework.org/showthread.php?t=40051]
    Please help me resolve this issue.
    Thanks
    Vignesh

    Well, in the web.xml for the app we have it set up as BASIC authentication, and list the roles that are allowed at that particular site. In order to sign in, another app would have to set the authorization property in the URLConnection.
    The problem is, using AXIS to connect, I have no way to set this property in the connection, since it is wrapped up by axis. (Call)
    I have reached a potential solution of constructing the soap message with the client using means other than the AXIS API, which I am implementing now and praying it will work!
    Everything I have read suggests using SSL to connect to the web service, but I can't figure out how to set up SSL so that my host/axisweb directory needs HTTPS but host/ doesn't...
    Does this make sense? Any suggestions?

  • How do we deploy several Web Services under the same Root Context?

    We have several webservices, each in their own WAR file, running on OC4J 10.1.3. They each have their own Root Context and Oracle Welcome Servlet. This works well, and since they are all separate we can easily hot-deploy updated versions.
    The drawback is separate URL's like :
    .../RootContext1/WebService1
    .../RootContext2/WebService2
    .../RootContext3/WebService3
    How do we assemble our Web Services to share a single Root Context? We are hoping to achieve URL's like this :
    .../WebServices/WebService1
    .../WebServices/WebService2
    .../WebServices/WebService3
    Do we have to bundle them all into the same WAR/EAR (and loose the power of individual deployment) or is there another way?
    Thanks in advance!

    If each one is a separate WAR file, then at the OC4J level each one will need a separate root context as it gets bound into the default-web-app.
    I guess the corollary question here is if there is someway to combine multiple webservice endpoints into one WAR file -- which can then be mapped to a single root context.
    I'll try and get someone more WS savvy than myself to take a look at this for you.
    And Clever Apache is a viable option.
    cheers
    -steve-

  • Not able to consume Spring web services form Apex.

    Hi all,
    I have written web services using Spring web services and i have tested them using SoapUi- web services testing tool. But when i try to consume the same using Apex, Apex fails to parse the Wsdl properly and invalid request and response elements are created.
    The request and response elements are in an different xsd and i have imported it in the wsdl.
    Problem: when Apex parses the wsdl, it fails to download the referenced xsd and hence fails to create the request and response elements properly.
    Questions: Can apex download an xsd through http? if yes, how do we enable apex to do it.
    What are the other options available.?
    I have pasted a extract from the wsdl below:
    <?xml version="1.0" encoding="UTF-8"?><wsdl:definitions xmlns:schema="http://com/webservice" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://com/webservice">
    <wsdl:types>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:import namespace="http://com/webservice" schemaLocation="../model/WebServiceModel.xsd"/></xsd:schema>
    </wsdl:types>
    Regards
    Anish

    Anish:
    Application Express will attempt to download external XSD references (version 3.0 or later), but I believe the problem with this particular reference is that the reference is relative:
    ../model/WebServiceModel.xsd
    Another option is to use the Manual Web references feature. You can use a tool like SOAPUI to get a properly formatted SOAP Envelope for the operation of the particular service you wish to interact with.
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/advnc.htm#BABCBBHJ (Creating a Web Service Manually)
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10497/web_serv.htm#CHDEFEGH
    Regards,
    Jason

  • How to expose a SOAP web service from HCP

    Hello All,
    Currently I am trying to create a SOAP web service within a HCP Java application to allow backend systems to consume data stored in HCP.
    This is the planned scenario:
    1. Create data in HCP - therefor I am using JPA and a oData Model.
    2. Backend uses web service to consume data from HCP - with this point I do have some problems.. I do want to create a SOAP web service in order to achieve this.
    Is there an easy way to create a SOAP web service in HCP? There are many tutorials in the internet of how to create a SOAP web service in 20 sec´s, but non of these helped me. I do was able to consume a SOAP web service in HCP coming from the ByD, but the other way around seems pretty complicated...
    Can I make use of the Eclipse functions to create a web service? (New --> Other... --> Web Services --> Web Service and than choose the Button up Java bean Web Service type)
    Have any of you some coding snippets that would probably help me out?
    I have unsuccessfully tried to use the @WebService, @SOAPBinding, @WebMethod notation in my java classes...
    Thank you,
    Swen

    Hello Nedelcho,
    Yes. All the required jar files are in the lib directory.
    Currently I am able to create a web service locally.
    But when I deploy that to the cloud server my JPA service is not working any more.
    Receiving the following error message:
    <?xml version='1.0' encoding='UTF-8'?><error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code/><message xml:lang="en">javax.naming.NamingException: Error while attempting to resolve reference [Root exception is javax.naming.NamingException: Cannot create resource  object instance due to exception in the object factory [Root exception is javax.naming.NamingException: Data source 'jdbc/DefaultDB' not available.]]</message></error>
    The web.xml contains the following:
    Any advice?
    Best regards,
    Swen

  • How can I create a web Service from my Web Dynpro Application ?

    Hi,
    Kindly let me know How I could create a "Web Service" with my Web Dynpro DC project.
    Awaiting your responses.
    Regards,
    Mahesh

    Hi Mahesh,
          You can use the web services by creating the Model in web Dynpro
    And if you want to publish your own web service then you have to create a EJB module and publish as a web service.
    Thanks
    Ninad

  • How to use WS-RM web Service from Session Bean?

    Hi all.
    Could you tell me the way how to call WS-RM web service(Staring BPM Process) from SessionBean?
    Our environment: SAP NetWeaver CE 7.2 SP3
    I do the following.
    I have created a BPM Process starting with Message Start Event.
    This Message Start Event was created by Service Interface(stateless and asynchronous) which was imported from ESR.
    I deployed this into my server and it worked fine in webservice navigator as a WS-RM WebService.
    But I can't call this webservice from SessionBean in EJBExplorer.
    I get the following error message:
    Caused by: This exception is wrapper of javax.xml.ws.soap.SOAPFaultException. com.sap.engine.services.webservices.espba
    se.client.bindings.exceptions.SOAPFaultException: Invalid WS-RM message. There are no WS-RM headers within SOAP message.
    at com.sap.engine.services.webservices.espbase.client.bindings.impl.JAXWSUtil.processFault(JAXWSUtil.java:412)
    at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call_SOAP(SOAPTransportBinding.java:1366)
    at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.callWOLogging(SOAPTransportBinding.java:960)
    at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call(SOAPTransportBinding.java:915)
    at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.processTransportBindingCall(WSInvocationHandler.java:168)
    at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.invokeSEISyncMethod(WSInvocationHandler.java:121)
    at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.invokeSEIMethod(WSInvocationHandler.java:84)
    at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.invoke(WSInvocationHandler.java:65)
    at $Proxy2753.zwsvCheckOrderdataMainprocessStart(Unknown Source)
    at jp.co.ogis_ri.WSTestSessionBean.exeWS(WSTestSessionBean.java:81)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    I created this SessionBean as follows:
    I created DCs for EJB and created SessionBean in EJB DC.
    I imported a WSDL file(WS-RM web service) from Service Registory and
    I created service clients and Service References.
    After that I implemented SessionBean to call web service checking with this help.
    http://help.sap.com/saphelp_nwce72/helpdata/en/44/4d2bb1c6b00597e10000000a155369/frameset.htm
    After deploying this EJB,I configured properties in nwa.
    Thanks
    Yuichi

    Yuichi
    Did you manage to solve this?  I'm doing something similar and seeing the same problem, although they're up to 7.3 SP7.
    Any help greatly appreciated.
    Lewis

  • How can I invoke the web service manually in websphere?

    Hi
    I've developed a webservice application using Rational Application Developer (RAD). I deployed it in a websphere 6.1 application server, using the administration console to import the war file that I had previously exported with RAD.
    My webservice application is listed in the "Enterprise Applications" section of websphere's administration console as started.
    My question is: how can I invoke the web service manually? Is there some kind of websphere generated webpage that I can use to call it manually?
    I tried http://<server:port>/<contextroot> and http://<server:port>/<contextroot>/<servicename> in a webbrowser, but it doesn't work. Is it possible to invoke the web service manually, or do I need to develop a client?
    Thanks in advance
    Pedro

    Hi Bo Wang,
        Go to the Portal -> System Administration -> System Configuration
                               -> Portal Content folder
                               -> Open Visual Composer folder
        There you can see the Webservice Systems you have created through VC.
    You can delete the unwanted system here.
    Regards,
    Shemim

  • How to Remove & Re-Enable Web Services on LaserJet printers supporting ePrint

    If your LaserJet printer has been disconnected from or failed to connect to Web Services, you may need to power cycle your printer to reconnect.  If that does not resolve the problem, you can remove web services, wait 30 seconds, then re-enable web services to re-establish your connection to ePrint and Print Apps. Note: this last step will result in a new email address being assigned to your printer.
    How do I remove HP Web Services for my LaserJet printer?
    Print a configuration page from your product, and locate the IP address.
    At your computer, open a Web browser and type the product IP address into the address line and press Enter. The HP Embedded Web Server opens.
    Click the HP Web Services tab.
    Select the option to disable Web Services.
    How do I enable or re-enable HP Web Services for my LaserJet printer?
    To use HP ePrint, you must first enable HP Web Services.  Re-Enabling Web Services uses the same procedure as enabling the Web Services.
    Print a configuration page from your product, and locate the IP address.
    At your computer, open a Web browser and type the product IP address into the address line and press Enter. The HP Embedded Web Server opens.
    Click the HP Web Services tab.
    Select the option to enable Web Services.
    When Web Services are enabled, ePrint information appears in the HP Embedded Web Server. Look for the e-mail address that is automatically assigned to the product. The product also prints an HP Web Services information sheet that contains this e-mail address and instructions
    If you were unable to register your printer in www.hpeprintcenter.com within 24 hours of printing your information sheet, you must re-enable the printer code by reprinting your information sheet.  The information sheet will also provide your email address if you have forgotten it.
    How do I print the Web Services Information Sheet for my LaserJet printer?
    You can only add the printer to your HP ePrintCenter account within 24 hours after printing the information sheet.  You can re-print the information sheet at any time from the printer control panel.  
    Print a configuration page from your product, and locate the IP address.
    At your computer, open a Web browser and type the product IP address into the address line. The HP Embedded Web Server opens.
    Click the HP Web Services tab.
    Click the Print Information Sheet button.
    I am an HP employee.

    To help improve the organization and information sharing in this forum this post/discussion has been closed and replaced. 
    Please see this post:  <link to new “Enable Disable Web Services on your printer” post. 
    If after reviewing the post above you still have questions/issues with your web-connected printer, you can either review and comment in existing posts in this forum that report issues like yours, or if necessary start a new post requesting assistance. 
    Miles
    HP Employee

  • How to deploy my own web services to the Start BPEL PM Server?

    Recently, I am learning the JDeveloper BPEL Designer(version 10.1.2.0), I had finished my first BPEL process CreditFlow flowing the quickstart guider.
    Now I wonder how to deploy my own web services to the Start BPEL PM Server? I mean I don't want to invoke the CreditRatingService as I did flowing the quickstart guider, but to invoke my own web servcies. Now I had made some web services with eclipse and deployed them to the tomcat5.0. but how can I invoke these my own web services just like I invoked the CreditRatingService in the JDeveloper BPEL Designer?
    Thank you!

    Copy the WSDL file from your Tomcat server onto your development machine. Add them to your project in JDeveloper. Then add a partnerlink and specify the WSDL location. Then add you role, variables and compile!

  • How to switch off ni web services

    I enabled the NIweb services by checking "Enable Web Server" in Tools/Options/Web Server: Configuration. As I do not need this functionality I disabled the feature, but still my compiled applications create a "niwebserver.conf" file causing a runtime error. How can I disable the Web Services function?
    Andreas L

    Hi Andreas,
    Exit LabVIEW. Rename your labview.ini file to something (to back it up). Ensure that there is no labview.ini file beside labview.exe. Now launch LabVIEW. If you are still getting an error, the error is not due to web services. We'll require more information to solve the problem. 
    If the problem persist, please try repairing the LabVIEW installation.

  • How to activate trace for web services

    Hi Experts,
    How to activate trace for web services in SOAMANAGER.
    We are not able to view the Payload trace of the error logs.
    Can anyone please let me know how to go about this???
    Regards,
    Ashwini

    Hi Ashwini,
    The thread below might be useful to you:
    [SOAMANAGER - Get the XML generated;
    Regards, Trevor

Maybe you are looking for

  • Got Connect to Server to work again, file sharing 4.9 to 10.1.5!!!

    Folks: Have a number of unanswered questions lost on this forum, and been following as many of the threads pertaining to file sharing as possible--and finally pieced some of the suggestions, mostly from BDAqua, together and got the two units to conne

  • How do I get Windows 7 to display in Target Display Mode on IMac

    I am increasingly frustrated by my inbability to get my Mac Mini running Windows 7 to display on my late 2013 27" IMac using Target Display mode. My setup: 1.  IMac 27" Late 2013 running OSX 10.9.2 with all the latest drivers as of Mar 7, 2014. 2.  M

  • ISE : Active Directory integration long usernames sAMAccountname

    Have a customer deploying ISE for wireless authentication using PEAP-MSCHAPv2.  They've encountered an issue where some users with long usernames are failing authentication to ISE.  ISE logs that the user is not found in the user database (Active Dir

  • Opening weblink in OS (lil complex one)

    Is there a way to find if a link is already running in the OS(Windows or Linux or watever on which i run the program)? My requirement is quite diff. Consider IE for example. If the same url is requested to be opened from the user i need to first chec

  • FERT materials costed without error even if Accounting VIew is not maintain

    Hi Gurus, Please help with  this scenario. in our client, they were able to run cost estimate for FERT materials even if accounting view is not maintained in the material master. in my understanding, costing run should generate error report that acco