Search code examples
javaweblogicjax-ws

JAX-WS webservice on Weblogic 12c


I am following links below to publish a webservice.

http://www.mkyong.com/webservices/jax-ws/jax-ws-java-web-application-integration-example/ http://stlarch.blogspot.com.tr/2013/02/building-jax-ws-webservices-in-weblogic.html http://www.mkyong.com/webservices/jax-ws/jax-ws-spring-integration-example/ http://examples.javacodegeeks.com/enterprise-java/jws/jax-ws-spring-integration-example/

This code works when deployed on Tomcat. But it does not work at weblogic 12c. Do I need to give additional parameters? I am not having an exception while deploy process. I cannnot see any item one weblogic console at Webservices section under deployed application.

UPDATE: After deploying webservicetest.war coded by madhava

enter image description here


Solution

  • I have read the following link then applied the servlet mapping technique. I can access the wsdl and make successfuly SOAP request via SOAPUI

    http://www.krestjaninoff.ru/2013/09/custom-context-path-for-jax-ws-web.html

    <servlet> 
        <servlet-name>TestWSPort</servlet-name> 
        <display-name>TestWSPort</display-name> 
        <servlet-class>name.krestjaninoff.TestWSService</servlet-class> 
    </servlet> 
    
    <servlet-mapping> 
        <servlet-name>TestWSPort</servlet-name> 
        <url-pattern>myOwn/path/TestWS</url-pattern> 
    </servlet-mapping> 
    

    Here is the project I have created, you can download https://www.dropbox.com/s/vztkfqxekw43n4a/WeblogicJaxWsProject.zip?dl=0

    Thanks Mikhail Krestjaninoff who is owner of the post given by link above