2 Replies Latest reply on Apr 25, 2012 9:49 AM by ndipiazza

    How to specify a static WSDL document instead of the dynamic one with JBossWS?

    ndipiazza

      (This question is related to an existing question: https://community.jboss.org/message/731990#731990   However they are a bit different, so I will create a new discussion as well.)

       

      I have created a WebService using wsconsume on a hand-built WSDL file. This works great and creates my Java code for me as expected.

       

      When I use the dynamic WSDL endpoint (http://localhost:8080/simple-webservice/MyTestService?wsdl), this works fine.

       

      Unfortunately the dynamically created WSDL is a little different than the static WSDL that I created the classes with. I would like to use the Static WSDL instead.

       

      So I specify my wsdlLocation hoping to use the static WSDL location instead of the dynamic one.

       

      But then I hit the issue we are hitting above. In the server log when the web service tries to intiialize... We always see wsdlLocation = null no matter what we set for the @WebService wsdlLocation annotation parameter. In fact, when we set that, the application seems to fail to even deploy:

       

        Deployment "vfs:///C:/grails-eclipse/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.x_Runtime_Server1335231695325/deploy/simple-webservice.war" is in error due to the following reason(s): org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for service {http://ndd.ndipiazza.com/drs/schemas}MyTestEndpointService.

       

      at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1370) [:2.2.2.GA]

          at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1316) [:2.2.2.GA]

          at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:968) [:2.2.2.GA]

          at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:82) [:6.1.0.Final]

          at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.checkComplete(ProfileControllerContext.java:138) [:0.2.2]

          at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:246) [:0.2.2]

          at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]

          at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]

          at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]

          at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]

          at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]

          at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]

          at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]

          at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]

          at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]

          at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]

          at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]

          at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [:1.6.0_27]

          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source) [:1.6.0_27]

          at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [:1.6.0_27]

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source) [:1.6.0_27]

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source) [:1.6.0_27]

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [:1.6.0_27]

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_27]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_27]

          at java.lang.Thread.run(Unknown Source) [:1.6.0_27]

       

      How do I specify the static WSDL?