1 Reply Latest reply: Jul 26, 2013 10:02 AM by gCubed RSS

    Primavera Webservices - user token auth mode

    SwarnaRajasekhar

      Hi All

       

      I am working on Primavera webservices in my project.. i have 3 DB instances in primavera..like DEMO1(1),DEMO2,DEMO3

       

      authontication through USER_NAME_TOKEN... by default is taking DB instance 1.. but all my data in DB_Instance 3..

       

      How can i pass DB_Instance dynamically....

       

      Note: for USER_NAME_TOKEN no need of login...

       

       

      org.apache.cxf.binding.soap.SoapFault: Error while creating security credentials.

        at com.primavera.wsclient.demo.DemoOutInterceptor.handleMessage(DemoOutInterceptor.java:192)

        at com.primavera.wsclient.demo.DemoOutInterceptor.handleMessage(DemoOutInterceptor.java:1)

        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)

        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:484)

        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:310)

        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:262)

        at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)

        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)

        at $Proxy41.readProjects(Unknown Source)

        at com.primavera.wsclient.demo.WSDemo.readProject(WSDemo.java:359)

        at com.primavera.wsclient.demo.WSDemo.run(WSDemo.java:174)

        at com.primavera.wsclient.demo.WSDemo.main(WSDemo.java:147)

      Caused by: java.lang.NullPointerException

        at com.primavera.wsclient.demo.DemoOutInterceptor.handleMessage(DemoOutInterceptor.java:97)

        ... 11 more