0 Replies Latest reply on Oct 26, 2017 6:31 AM by Mahesh Mali

    How to perform Java-to-WSDL mapping in Wildfly webservices.xml file.

    Mahesh Mali Newbie

      Dear Community Members,

       

      Following is the websphere server's  webservices.xml file,here Java-to-WSDL mapping is done using <jaxrpc-mapping-file> element,we are migrating EJB2.0 Application from websphere to wildfly 8. However in wildfly <jaxrpc-mapping-file> element is throwing Unexpected element parsing exception, Could you please let us know the alternate element for Java-to-WSDL mapping in wildfly 8.Following is the example of websphere's webservices.xml file.

       

      <jaxrpc-mapping-file>WEB-INF/Test_mapping.xml</jaxrpc-mapping-file>         

                     <port-component>

                           <port-component-name>Test</port-component-name>

                           <port-component-uri>http://service.test.com </port-component-uri>

                          <!--   <wsdl-port>

                                 <namespaceURI>Client Validation </namespaceURI>

                                 <localpart>TestService</localpart>

                           </wsdl-port>

                            <service-endpoint-interface>com.service.TestService</service-endpoint-interface>

                           <service-impl-bean>

                                 <servlet-link>

                                 com_test_service_TestService</servlet-link>

                           </service-impl-bean>  -->

                    </port-component>

             <webservice-description>

                    <webservice-description-name>TestService</webservice-description-name>

                    <wsdl-publish-location>WEB-INF/wsdl/TestService.wsdl</wsdl-publish-location>

             </webservice-description>

       

      Following is the stack trace we are getting.

       

      "{\"JBAS014671: Failed services\" => {\"jboss.deployment.subunit.\\\"test.ear\\\".\\\"testweb.war\\\".PARSE\" => \"org.jboss.msc.service.StartException in service jboss.deployment.subunit.\\\"test.ear\\\".\\\"testweb.war\\\".PARSE: JBAS018733: Failed to process phase PARSE of subdeployment \\\"testweb.war\\\" of deployment \\\"test.ear\\\"

      Caused by: javax.xml.ws.WebServiceException: JBWS021004: Failed to unmarshall vfs:/D:/wildfly-8.1.0.Final/wildfly-8.1.0.Final/bin/content/test.ear/testweb.war/WEB-INF/webservices.xml

          Caused by: java.lang.IllegalStateException: JBWS021001: Unexpected element parsing vfs:/D:/wildfly-8.1.0.Final/wildfly-8.1.0.Final/bin/content/test.ear/testweb.war/WEB-INF/jboss-webservices.xml: jaxrpc-mapping-file\"}}"

       

      Kindly help me to solve the issue/ kindly let me know if any alternate elements available for Java-to-WSDL mapping in Wildfly.

       

      Kind Regards,

      Mahesh