Deploying JAX-WS web service to weblogic server 9.2

Hi,
I want to deploy webservice created with JAX-WS 2.1 RI to BEA Weeblogic Server 9.2. After some research on forums and groups I have:
sun-jaxws.xml
<endpoints xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime" version="2.0">
<endpoint name="TSOrganization"
implementation="service.TsOrganizationImpl"
url-pattern="/SOA/tsorganization"/>
</endpoints>
web.xml
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<listener>
<listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
</listener>
<servlet>
<servlet-name>TsOrganization</servlet-name>
<servlet-class>sun.com.xml.ws.transport.http.servlet.WSServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>TsOrganization</servlet-name>
<url-pattern>/SOA/tsorganization</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
weblogic.xml
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd">
<context-root>/SOA/tsorganization</context-root>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
weblogic-application.xml
<weblogic-application xmlns="http://www.bea.com/ns/weblogic/90">
<application-param>
<param-name>webapp.encoding.default</param-name>
<param-value>UTF-8</param-value>
</application-param>
<prefer-application-packages>
<package-name>javax.jws.*</package-name>
</prefer-application-packages>
</weblogic-application >
application.xml
<application version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
<display-name>TSOrganization</display-name>
<module>
<web>
<web-uri>TsOrganizationWS.war</web-uri>
<context-root>/SOA/tsorganization</context-root>
</web>
</module>
</application>
I've included all the libraries from JAX-WS 2.1.3 into WEB-INF/lib in war file, packed it into ear and deployed. When I try to start deployed application I get following error:
javax.servlet.ServletException: [HTTP:101249][weblogic.servlet.internal.WebAppServletContext@aed2df - appName: 'TSOrganization', name: '/SOA/tsorganization', context-path: '/SOA/tsorganization']: Servlet class sun.com.xml.ws.transport.http.servlet.WSServlet for servlet TsOrganization could not be loaded because the requested class was not found in the classpath . java.lang.ClassNotFoundException: sun.com.xml.ws.transport.http.servlet.WSServlet.
although the missing class is in jaxws-rt.jar included in WEB-INF/lib folder.
Any ideas what to try next?

Ok.. with some help I found the error...
servlet class is com.sun... and not sun.com :-S
but everything else is right.. so it can be like reference for deploying jaxws service on weblogic 9.2.

Similar Messages

  • Deploying a JAX-WS web service in Weblogic 10

    I created a web service starting from a WSDL, using the wsdlc and jwsc Ant tasks to build and package my web service, and the deploy Ant task for deployment. These steps used to work fine! However now I'm getting the following error during deployment:
    deploy:
    [wldeploy] weblogic.Deployer -noexit -name AESPServices -source C:\bea\user_projects\workspaces\stephanie\AESPTaskingSrv\stage\aespEar -targets Admin
    Server -adminurl t3://localhost:7001 -user ******* -password ******** -deploy
    [wldeploy] weblogic.Deployer invoked with options: -noexit -name AESPServices -source C:\bea\user_projects\workspaces\stephanie\AESPTaskingSrv\stage
    \aespEar -targets AdminServer -adminurl t3://localhost:7001 -user ****** -deploy
    [wldeploy] <Jun 25, 2009 9:01:22 AM CDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, AESPServices [archiv
    e: C:\bea\user_projects\workspaces\stephanie\AESPTaskingSrv\stage\aespEar], to AdminServer .>
    [wldeploy] Task 28 initiated: [Deployer:149026]deploy application AESPServices on AdminServer.
    [wldeploy] Task 28 failed: [Deployer:149026]deploy application AESPServices on AdminServer.
    [wldeploy] Target state: deploy failed on Server AdminServer
    [wldeploy] java.lang.ClassNotFoundException: com.project.aesp.taskingserver.webservice.ActiveESP_ServiceImpl
    [wldeploy]
    [wldeploy]
    BUILD FAILED
    C:\bea\user_projects\workspaces\stephanie\AESPTaskingSrv\build.xml:78: weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.Deploye
    rException: Task 28 failed: [Deployer:149026]deploy application AESPServices on AdminServer.
    Target state: deploy failed on Server AdminServer
    java.lang.ClassNotFoundException: com.project.aesp.taskingserver.webservice.ActiveESP_ServiceImpl
    The ActiveESP_ServiceImpl class file is clearly under WEB-INF/classes/com/project/aesp/taskingserver/webservice/ActiveESP_ServiceImpl.class. The only thing that has changed since my Ant tasks were working is the structure of our Weblogic libraries checked into SVN (thus the classpath used in my Ant script) - the tasks themselves have not changed. So it doesn't seem like this would be the problem.
    Does anyone have an idea why the server can't locate the class file for my service implementation??
    Thanks!
    Stephanie

    Appears to have been an issue with BEA Workspace Studio...I deleted all of my projects, recreated them from SVN, tried again and it worked.

  • Error on deploying Web Service on Weblogic Server

    Hi All,
      I am developing a webservice from a pl/sql package using Jdev11g create webservice from pl/sql wizard.
      It generates the wsdl, related xmls and other java files correctly and there is no compilation error.
      But when i try to deploy the webservice to integrated weblogic server, it gives the following issue
    "weblogic.xml.schema.binding.util.ClassUtil$ClassUtilException: "
    The issue is see here is while deploying, it changes some character from lowercase to uppercase  to which it is unable to load the class file.
    Thanks & Regards
    Rashmi Sharma

    I found the answer to this here.
    Post 6 has the answer.

  • JAX-RPC: Web service where both server /and/ client are services?

    I'm considering a two-way Web service in an application that I'm designing and would appreciate any insight from prior experience.
    This will be a standard client-server application, where the server broadcasts messages and the client, in turn, can request further information about the messages that it receives (think RSS-style updates, but with more interaction). [strong]However[strong], instead of having the client poll the server for new messages, I'd like to have the client register itself with the server as a message listener. The server is currently implemented as a Web service on port X. I'd like the client to register itself with the server, and then receive messages on port Y.
    I'm considering a design like the following (note the directions of the inheritance arrows):
    ( Server class )  --<-- ( RemoteServerImpl class ) -->-- / RemoteServer interface /
           |
    ( Listener class ) --<-- ( RemoteListenerImpl class ) -->-- / RemoteListener interface /Some considerations:
    * In both cases, the client and server are broken out into an interface and two classes. The non-Remote classes implement all of the functionality. The RemoteX interfaces declare the methods that will be exposed via RPC, and the RemoteXImpl classes are empty subclasses of the non-Remote classes.
    * In order to register itself with the Server, the Listener must be passed in as a method parameter, and thus conform to the JAX-RPC specification for value types. However, value types can't implement java.rmi.Remote.
    * Only the Server and Listener know anything about each other.
    * This application can be run either remotely or locally, depending on how the Server and Listener are instantiated. For the latter, they're instantiated directly and the listener is registered with the Server. For the latter, the RemoteX interfaces will point to the service stubs.
    * I don't see an easy way to allow both the Server and the Listener to have references to each other (at least now without some casting magic), since one of them will have to conform to the value type specification, which requires that all of its fields must be valid JAX-RPC types.
    I've got the Server portions implemented and working, and am now going to turn to the Listener stuff. Can anybody see a fundamental problem with this design, or can suggest something better?

    Hi There,
    Because web services are fundamentally a Services-oriented architecture, and not an Object-oriented one, you are unable to pass objects by reference (only by value) hence the design decision to not allow rmi.Remote objects to be sent across the wire. The best way would be to abstract an object which does itself not represent a server, but a route to a server (lets call it ServerPointer). This must contain address, port, service info, etc.
    Now, in your Server class, create a factory method which takes a ServerPointer, and returns a reference to a
    remote server, e.g. protected Server createServer( ServerPointer p ) (using the necessary APIs to get such a reference)
    Hope this helps...

  • How to compile and deploy JAX-WS web service from commandline (!) ?

    I have read a couple of tutorials about how to create and deploy web services with
    certain IDEs (e.g. Eclipse).
    But I found no guide on how to compile a java web service source from command line !!
    Lets say I have a java source class with annotations inside (like "@WebMethod").
    How do I generate with the built-in j2ee v5 tools from a web service from command line and deploy it e.g. to TomCat or JBoss ?
    Is there somewhere such a simple step-by-step intro?
    Thx
    Peter

    You can download JWSDP 2.0 from sun and install it. Under jaxws (the installed directory) you can find sample directory which has build.xml can be run from command prompt using ant. if you want in detail means go through the build.xml and use wsgen.bat or wsimport under the bin directory of jaxws
    Edited by: Muyallu_Bala on Apr 14, 2008 5:49 AM

  • Deployment of JSR-109 Web Services on Weblogic 11g (OAS migration)

    Hi.
    I'm being part of an ongoing migration effort from Oracle Application Server 10.1.3.5 to WebLogic 11g (10.3.6). Some of the OAS applications use old JSR-109 Web Services, where each service has the following components:
    - A SEI interface that extends java.rmi.Remote and declares the service methods, which throw java.rmi.RemoteException (e.g. ServiceSEI)
    - A service implementation POJO that implements the SEI interface (e.g. ServiceImpl)
    - A [Service]-config.xml file that declares the service and relates name, namespaces, packages, interface and implementation (e.g. Service-config.xml)
    - A declaration of the service implementation POJO as a servlet (with mapping) in web.xml (docs says it doesn't have to be technically a servlet)
    - A webservices.xml file that defines the service and references the mapping file.
    - A [Service]-mapping.xml file that defines the WS-Java mappings.
    All the artifacts look right according the old documentation:
    - Programming Web Services for WebLogic Server, Creating a J2EE Web Service Manually: http://otndnld.oracle.co.jp/document/products/wls/docs92/webserv/jsr109.html
    - Web Services for J2EE 1.0 Final Release Spec: http://download.oracle.com/otndocs/jcp/websvcs-1.0-fr-spec-oth-JSpec/
    The Web Services work OK in OAS. When I try to deploy any of the application that contain one of that services to WebLogic, I get the following Exception:
    <BEA-101216> <Servlet: "WSServlet_Procesos" failed to preload on startup in Web application: "/webapp".
    java.lang.IllegalStateException: ClassNotFound co.com.acme.services.ServiceSEI_serviceOperation_RequestStruct
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.processTypeMappings(Deploytime109MappingHelper.java:601)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.initBindingFileFrom109dd(Deploytime109MappingHelper.java:273)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.<init>(Deploytime109MappingHelper.java:171)
    at weblogic.wsee.bind.runtime.internal.RuntimeBindingsBuilderImpl.createRuntimeBindings(RuntimeBindingsBuilderImpl.java:86)
    at weblogic.wsee.ws.WsBuilder.createRuntimeBindingProvider(WsBuilder.java:705)
    at weblogic.wsee.ws.WsBuilder.buildService(WsBuilder.java:201)
    at weblogic.wsee.ws.WsFactory.createServerService(WsFactory.java:54)
    at weblogic.wsee.deploy.ServletDeployInfo.createWsService(ServletDeployInfo.java:91)
    at weblogic.wsee.deploy.DeployInfo.createWsPort(DeployInfo.java:372)
    at weblogic.wsee.server.servlet.BaseWSServlet.init(BaseWSServlet.java:83)
    at javax.servlet.GenericServlet.init(GenericServlet.java:241)
    at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
    at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
    at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1981)
    at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1955)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1874)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3154)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:671)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
    I obviously though the EAR package given to me was incomplete, lacking the ClassNotFound related class, but the package was OK, and is exactly the same that deploys without problems in OAS.
    The ClassNotFound related class is referenced in the <java-xml-type-mapping> element of the [Service]-mapping.xml file, e.g.:
    <java-xml-type-mapping>
    <java-type>co.com.acme.services.ServiceSEI_serviceOperation_ResponseStruct</java-type>
    <root-type-qname xmlns:typeNS="urn:Service/types">typeNS:serviceOperationResponse</root-type-qname>
    <qname-scope>complexType</qname-scope>
    <variable-mapping>
    <java-variable-name>result</java-variable-name>
    <xml-element-name>result</xml-element-name>
    </variable-mapping>
    </java-xml-type-mapping>
    I searched the OAs installation deployment dirs looking for the missing class and found it was present in a Jar called deployment-cache.jar. According OC4J related documentation, this Jar es auto-generated at deployment time.
    Weblogic 11g documentation says that kind of Web Services will continue to run, without any changes, on version 10.3.x of WebLogic Server because the associated Web services run time is still supported in this release, although it is deprecated and will be removed from the product in future releases (http://docs.oracle.com/cd/E21764_01/web.1111/e13760/upgrade.htm). I know the right estrategy is migrate the Web Services, but right now my client needs to deploy and use them as they are. I think WL recognizes my service since internally is calling a "Deploytime109MappingHelper" class.
    ¿Is there any way I can deploy that kind of services to Weblogic 11g? ¿I'm I missing some required step?
    As a workaround, I included the OAS generated deployment-cache.jar into the EAR to deploy in Weblogic 11g and the app deploys without errors, but I see this is not a nice solution.
    Any help would be much appreciated.
    Thanks,
    Esteban
    Edited by: salzo on Oct 30, 2012 9:54 AM
    Edited by: salzo on Oct 30, 2012 9:56 AM

    Hi. The [Service]-mapping.xml file is a standard "JAX-RPC mapping file" according the JSR-109 spec and WebLogic 9.2 doc ([1],[2]). That's the file that references the class. Here's a fragment:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <java-wsdl-mapping xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
    <package-mapping>
    <package-type>co.com.acme.services</package-type>
    <namespaceURI>urn:Service/types</namespaceURI>
    </package-mapping>
    <package-mapping>
    <package-type>co.com.acme.services</package-type>
    <namespaceURI>urn:Services/wsdl</namespaceURI>
    </package-mapping>
    <java-xml-type-mapping>
    <java-type>co.com.acme.services.ServiceSEI_serviceOperation_RequestStruct</java-type>
    <root-type-qname xmlns:typeNS="urn:Service/types">typeNS:serviceOperation</root-type-qname>
    <qname-scope>complexType</qname-scope>
    <variable-mapping>
    <java-variable-name>String_1</java-variable-name>
    <xml-element-name>String_1</xml-element-name>
    </variable-mapping>
    </java-xml-type-mapping>
    I'll take a look at the ant task.
    Thank you very much.
    [1]http://download.oracle.com/otndocs/jcp/websvcs-1.0-fr-spec-oth-JSpec/
    [2]http://otndnld.oracle.co.jp/document/products/wls/docs92/webserv/jsr109.html

  • Problems while deploying web services to WebLogic

    Hi,
    I am looking to deploy jax-ws web services developed in Myeclipse 7.0 to WebLogic 10.0 Server it is giving the following error, but when i deployed to tomcat it is working fine.
    In this I am using the JDK 1.5
    The error message is as follows...
    <User defined listener weblogic.wsee.deploy.ServletDeployListener failed: weblogic.wsee.deploy.WSEEServletEndpointException: Failed to prepare wsse module: ex1.
    weblogic.wsee.deploy.WSEEServletEndpointException: Failed to prepare wsse module: ex1
    at weblogic.wsee.deploy.ServletDeployListener.contextPrepared(ServletDeployListener.java:32)
    at weblogic.servlet.internal.EventsManager$FireContextPreparedAction.run(EventsManager.java:480)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.EventsManager.notifyContextPreparedEvent(EventsManager.java:149)
    Truncated. see log file for complete stacktrace
    weblogic.wsee.ws.WsException: Can't find wsdl WEB-INF/wsdl/wscoor.wsdl
    at weblogic.wsee.deploy.WSEEWebModule.loadWsdlDefinitions(WSEEWebModule.java:131)
    at weblogic.wsee.deploy.WSEEModule.loadWsdl(WSEEModule.java:291)
    at weblogic.wsee.deploy.WSEEModule.verifyWsdd(WSEEModule.java:146)
    at weblogic.wsee.deploy.WSEEModule.prepare(WSEEModule.java:104)
    at weblogic.wsee.deploy.ServletDeployListener.contextPrepared(ServletDeployListener.java:29)
    Truncated. see log file for complete stacktrace
    >
    <Dec 9, 2008 3:11:33 PM EST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application '_appsdir_ex1_dir' due to error weblogic.application.ModuleException: .
    weblogic.application.ModuleException:
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:308)
    at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    Truncated. see log file for complete stacktrace
    weblogic.wsee.ws.WsException: Can't find wsdl WEB-INF/wsdl/wscoor.wsdl
    at weblogic.wsee.deploy.WSEEWebModule.loadWsdlDefinitions(WSEEWebModule.java:131)
    at weblogic.wsee.deploy.WSEEModule.loadWsdl(WSEEModule.java:291)
    at weblogic.wsee.deploy.WSEEModule.verifyWsdd(WSEEModule.java:146)
    at weblogic.wsee.deploy.WSEEModule.prepare(WSEEModule.java:104)
    at weblogic.wsee.deploy.ServletDeployListener.contextPrepared(ServletDeployListener.java:29)
    Truncated. see log file for complete stacktrace
    Let us know if you are able to help us….
    Thanks,
    Koteswara Rao

    Hi ,
    I deployed it on my local machine,
    the WSDL looks like as follows...
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3-hudson-390-. -->
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://ex.tkr2.com/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="CalculatorService" targetNamespace="http://ex.tkr2.com/">
    <types>
    <xsd:schema>
    <xsd:import namespace="http://ex.tkr2.com/" schemaLocation="CalculatorService_schema1.xsd"/>
    </xsd:schema>
    </types>
    <message name="add">
    <part element="tns:add" name="parameters"/>
    </message>
    <message name="addResponse">
    <part element="tns:addResponse" name="parameters"/>
    </message>
    <message name="divide">
    <part element="tns:divide" name="parameters"/>
    </message>
    <message name="divideResponse">
    <part element="tns:divideResponse" name="parameters"/>
    </message>
    <message name="multiply">
    <part element="tns:multiply" name="parameters"/>
    </message>
    <message name="multiplyResponse">
    <part element="tns:multiplyResponse" name="parameters"/>
    </message>
    <message name="subtract">
    <part element="tns:subtract" name="parameters"/>
    </message>
    <message name="subtractResponse">
    <part element="tns:subtractResponse" name="parameters"/>
    </message>
    <portType name="CalculatorDelegate">
    <operation name="add">
    <input message="tns:add"/>
    <output message="tns:addResponse"/>
    </operation>
    <operation name="divide">
    <input message="tns:divide"/>
    <output message="tns:divideResponse"/>
    </operation>
    <operation name="multiply">
    <input message="tns:multiply"/>
    <output message="tns:multiplyResponse"/>
    </operation>
    <operation name="subtract">
    <input message="tns:subtract"/>
    <output message="tns:subtractResponse"/>
    </operation>
    </portType>
    <binding name="CalculatorPortBinding" type="tns:CalculatorDelegate">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="add">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    <operation name="divide">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    <operation name="multiply">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    <operation name="subtract">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    </binding>
    <service name="CalculatorService">
    <port binding="tns:CalculatorPortBinding" name="CalculatorPort">
    <soap:address location="http://localhost:8080/SampleWebServices/CalculatorPort"/>
    </port>
    </service>
    </definitions>

  • How to create JAX-WS web services using providers?

    I am looking at WebLogic web services, because we are investigating the possibility of migrating our web services from Apache CXF to WegLogic web services. Our web services are implemented using JAX-WS providers. However, I browsed through the Oracle Fusion Middleware document library, but I couldn't find any documents for implementing JAX-WS web services using providers.
    Is there any document, tutorial, or examples of that?
    Thanks in advance!
    Tao

    Ok just as I expected. So I guess I am left with the following two options
    1) either I switched to using JAXB in my apps instaed of xmlbeans....
    2) or if I still wanna use the old JAX-RPC web services to deploy on the Weblogic 10gR3 server i will have to create my own ant task jwsc directly......as shown below in your docs
    Programming Web Services for WebLogic Server (ant tasks)
    http://download.oracle.com/docs/cd/E13222_01/wls/docs92/webserv/anttasks.html
    Getting Started With WebLogic Web Services Using JAX-RPC
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv_rpc/index.html
    Will OEPE be supporting the old JAX-RPC anytime in the near future release? or have to create own build ant task to call jwsc ant task directly to compile JAX-RPC web services??

  • How to generate JAX-RPC web services instead of JAX-WS webservices withOEPE

    How to generate JAX-RPC web services instead of JAX-WS webservices withOEPE? I am asking this because I need to pass xmlbeans generated objects as arguments in the web method. For JAX-WS there has to be a no argument constructor for it to be able to pass in theweb method. The workshop 10.3 was able to pass the xmlbeans generated object as the web service was implemented as a JAX-RPC web service....

    Ok just as I expected. So I guess I am left with the following two options
    1) either I switched to using JAXB in my apps instaed of xmlbeans....
    2) or if I still wanna use the old JAX-RPC web services to deploy on the Weblogic 10gR3 server i will have to create my own ant task jwsc directly......as shown below in your docs
    Programming Web Services for WebLogic Server (ant tasks)
    http://download.oracle.com/docs/cd/E13222_01/wls/docs92/webserv/anttasks.html
    Getting Started With WebLogic Web Services Using JAX-RPC
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv_rpc/index.html
    Will OEPE be supporting the old JAX-RPC anytime in the near future release? or have to create own build ant task to call jwsc ant task directly to compile JAX-RPC web services??

  • Deploying a web service to WebLogic 7 - error with RemoteDispatcherBean

    Hi there,
    I have just created a web service through WebLogic Workshop. The web service can be tested through the workshop and it works fine
    I am trying now to deploy it to a development server, and I am having the following error:
    preparing application <appName> on mope
    Exception caught for task Activate application <appName> on mope: Prepare failed. Task Id = 1
    Module, AP_NotificationEJB.jar, reported error: Exception preparing module: EJBModule(AP_NotificationEJB.jar,status=NEW)
    Unable to deploy EJB: C:\bea\<deploymentPath>\.wlnotdelete\<appName>\AP_NotificationEJB.jar from AP_NotificationEJB.jar:
    weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml: weblogic.knex.bean.RemoteDispatcherBean
         at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:440)
         at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(MBeanDeploymentInfoImpl.java:165)
         at weblogic.ejb20.deployer.EJBDeployer.setupBeanInfo(EJBDeployer.java:965)
         at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1276)
         at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:235)
         at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:1742)
         at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:745)
         at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:559)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1116)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:784)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:251)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:219)
    Looking inside the EAR I generated (using jwsCompile), I can find several classes RemoteDispatchBean_bu6zup_....class but no RemoteDispatchBean.class file anywhere
    Am I doing anything wrong to generate the EAR file? Anything fancy I need to include to my jws file or any descriptor?
    Any idea or suggestion would be much appreciated
    Thank you,
    Miguel

    We have found a work around for that specific problem.
    We have included the whole knex library within our libs folder. Now we can deploy the Web services as a web application to the webLogic, The deployment returns successful, but any time we initiate the server, there is another ClassNotFoundException. This time the missing class is weblogic.knex.bean.DeploymentListener.
    The strange thing is that that specific class is part of the knex.jar library we have included within our libs folder ...
    It seems that the folder is not read from the server when starting, but it is read when executing the application.
    Any suggestion to this nonsense?
    Thanks,
    Miguel

  • URGENT **** Need help for JAX-RPC Web Service Proxy deploy to OC4J 10.1.3.5

    Hi everyone!
    I’m really new to web services.
    I’m getting a *500 internal server error* while deploying my JAX-RPC web service Proxy to an Oracle AS, in an OC4J, v. 10.1.3.5.0.
    Running my client from my development environment (*jdeveloper 10g, 10.1.3.5.0*) everything functions correctly: from jdeveloper I can contact and use the web service defined by the following endpoint: https://www.medialibrary.it/services/federaMLOL.asmx?WSDL
    I created a "try_ws_client.jsp" file that runs correctly from my local development environment jdeveloper (that uses an embedded oc4j, v. 10.1.3.5.0) but fails when run from the test server (Oracle AS, in an OC4J, v. 10.1.3.5.0), getting, as I mentioned a 500 internal server error, a white page in IE but with FF the message says: The’s an error in the servlet .....
    Here's how I created the ws proxy and how I’m using it to consume the ws I mentioned.
    1. I used the jdeveloper “Create Web Service Proxy” wizard (File > New > Business Tier > Web Services > Web Service Prox) and in the WSDL document URL I put: https://www.medialibrary.it/services/federaMLOL.asmx?WSDL
    2. The operation ended without adding nothing to the web.xml file and creating the proxy files. One of them is: FederaMLOLSoapClient.java that have the WS exposed methods (es: public boolean createUser(String) ) + a “main” method with the example how to use this client to consume the WS.
    public static void main(String[] args) {
    try {
    it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient myPort = new it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient();
    System.out.println("calling " + myPort.getEndpoint());
    // Add your own code here
    } catch (Exception ex) {
    ex.printStackTrace();
    3. In FederaMLOLSoapClient.java I’ve create the method "tyIt":
    public String tryIt(String username) {
    try {
    it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient myPort = new it.reggiocity.provincia.mlol.proxy.FederaMLOLSoapClient();
    if(myPort.createUser(String username)) {
    return “O.K”;
    } else {
    return “K.O”;
    } catch (Exception ex) {
    // logs error
    4. I created my try_ws_client.jsp file that creates FederaMLOLSoapClient object and calls the tryIt method, printing the “OK” or “KO” message.
    <%@ page import="it.reggiocity.provincia.biblioreggiane.*"%>
    <%
    String message = "";
    FederaMLOLSoapClient obj= new FederaMLOLSoapClient( );
    message = obj.tryIt(“AAAAAA70R10H226H”);
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <title>prova</title>
    </head>
    <body><%=message%></body>
    </html>
    The situation is:
    My try_ws_client.jsp runs correctly from my jdeveloper and the user is created while creating app.ear and deploying it to my Oracle AS/OC4J as mentioned above, I get a 500 Internal Server Error.
    Any idea to find a solution to this problem?
    Please help.
    Take care.
    John M.

    Hi,
    you want to build the Web Service, or you want to consume the Service as a client? If the latter, Web client (ADF?) or Java client?
    Frank

  • Weblogic 12c (12.1.2.1) JAX-WS Web Service :: Admin Console

    When in my development environment (eclipse, weblogic server) and working on a JAX-WS web service; From the administrative console, under deployments, when I expand the EAR, i can see the EAR, a module for the web service project, and under Web Services, the context name of the service.
    When i export the EAR and load this on my integration server, i do not see the Web Service listed, when expanding the depolyed EAR.
    Anyone know what i am missing to have the service displayed?
    Thanks,

    Hi,
    This community is to discuss Oracle Application Server specific issues, you can post this query in Oracle Weblogic for better response :-
    WebLogic Server - Management / Console / WLST / Configuration
    Regards,
    Prakash.

  • Deploy a JAX-WS web service to OC4J?

    I have a JAX-WS Web Service that I need to deploy to OC4J. I've manged to set JDeveloper up to use ANT to build the server interfaces using jaxws and jaxb 2.0.
    I've been able to deploy the web service to Sun's App Server, but I can't find any documentation that tells me how to deploy to OC4J. It doesn't matter if I have to deploy using ANT or thru JDeveloper, I just have to be able to deploy.
    Any suggestions?

    Here is a sample target to deploy on oc4j 10.1.3:
    &lt;project name="research" default="all" basedir="." xmlns:o="antlib:oracle">
    &lt;property file="../build.properties"/>
    &lt;property name="app.name" value="research"/>
    &lt;property name="web.name" value="${app.name}-web"/>
    &lt;property name="context.root" value="project-o/${app.name}"/>
    &lt;property name="oc4j.admin.user" value="oc4jadmin"/>
    &lt;property name="oc4j.binding.module" value="default-web-site"/>
    &lt;property name="oc4j.admin.port" value="23791"/>
    &lt;property name="oc4j.admin.password" value="welcome"/>
    &lt;property name="deployeruri" value="deployer:oc4j:${oc4j.host}:${oc4j.admin.port}" />
    &lt;target name="deploy" description="deploy application">
    &lt;echo>${deployeruri}</echo>
    &lt;o:deploy file="dist/${app.name}.ear"
    deploymentname="${app.name}"
    deployeruri="${deployeruri}"
    userid="${oc4j.admin.user}" password="${oc4j.admin.password}"
    logfile="deploy-ear.log"/>
    &lt;o:bindWebApp deploymentname="${app.name}"
    deployeruri="${deployeruri}"
    userid="${oc4j.admin.user}"
    password="${oc4j.admin.password}" webmodule="${web.name}"
    websitename="${oc4j.binding.module}"
    contextroot="/${context.root}"/>
    &lt;/target>
    You may have to tweak a few properties to work in your environment.
    Hope this helps,
    Eric

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

  • Can I deploy web service on APEX server

    I have APEX 3.1.2 on 11g database.
    I need to pull data from other oracle 9i databases into APEX application. I have created web service on my pl/sql package to pull data from 9i databases and deployed service on my local oc4j instance (within jdeveloper). My APEX app pull data from multiple oracle 9i database. Now I need to move my web service to my dev/test environment.
    Can I deploy web service on APEX server? or do I need to deploy on another web server?
    I know I can easily pull the data from other oracle 9i databases using DB link. I want to explore Web services option to just to see is it possible to pull data from multiple sources into APEX app using web service running from APEX server?.
    Any help on this will be appreciated.
    RK Shah
    Edited by: RK Shah on Apr 7, 2009 7:27 PM

    I am in the same situation. Consuming a web service is easy with APEX. But publishing one needs a web server that is more complex than the one that comes with APEX for free.
    I am exploring the possibility of building the web service in Jdeveloper as you have. Then I will make a WAR file that I will publish to an apache tomcat J2EE server that another department runs. I believe it will work since all the components required should be in the WAR file.
    I am new at this. I will let you know how it works out.
    The other possibility is to upgrade the appserver to the full Oracle Fusion server (maybe). This may be expensive and be too much for just a simple web service. But then the publish to application server from jdeveloper is super easy.

Maybe you are looking for