Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2307

Stub properties not propagated through service-ref

    XMLWordPrintable

Details

    Description

      Stub properties are not propagated through service-ref; for instance even specifying user/pwd for basic auth with the following in jboss-web.xml

      <jboss-web>
      <security-domain>java:/jaas/JBossWS</security-domain>
      <service-ref>
      <service-ref-name>service/jbws2307service</service-ref-name>
      <port-component-ref>
      <service-endpoint-interface>org.jboss.test.ws.jaxws.jbws2307.Hello</service-endpoint-interface>
      <port-qname>

      {http://helloservice.org/wsdl}

      HelloPort</port-qname>
      <stub-property>
      <prop-name>javax.xml.ws.security.auth.password</prop-name>
      <prop-value>thefrog</prop-value>
      </stub-property>
      <stub-property>
      <prop-name>javax.xml.ws.security.auth.username</prop-name>
      <prop-value>kermit</prop-value>
      </stub-property>
      </port-component-ref>
      </service-ref>
      </jboss-web>

      we get the following exception:

      09-18-2008 14:06:50: SVR-ERROR: com.sun.xml.ws.client.ClientTransportException: request requires HTTP authentication: Unauthorized
      at com.sun.xml.ws.transport.http.client.HttpClientTransport.checkResponseCode(HttpClientTransport.java:212)
      at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:149)
      at com.sun.xml.xwss.XWSSClientPipe.process(XWSSClientPipe.java:118)
      at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
      at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
      at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
      at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
      at com.sun.xml.ws.client.Stub.process(Stub.java:248)
      at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:135)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
      at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
      at $Proxy1066.getMessageContextTest(Unknown Source)
      ...

      Attachments

        Issue Links

          Activity

            People

              rhn-support-asoldano Alessio Soldano
              rhn-support-asoldano Alessio Soldano
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: