Hello, 

On each request i want some properties to be sent by client, (I dont want
to include thease on operations as parameter) 
How do i handle this on server side?

I have following on beans.xml:

<jaxws:endpoint id="userService"
                implementor="UserServiceImpl"
                address="/userService">

                <jaxws:properties >
                        <entry key="userId" value="1234" />
                        <entry key="ownerId" value="1234"/>
                </jaxws:properties>

</jaxws:endpoint>

<!-- not sure if i need this -->
<jaxws:client id="userClient" createdFromAPI="true"
               
serviceClass="no.dossier.ws.integration.service.user.UserService"> 
                <jaxws:properties  >
                        <entry key="userId" value="1234" />
                        <entry key="ownerId" value="1234"/>
                </jaxws:properties>

        </jaxws:client>


client.java: 

    service = new userService();
    port = service.userServicePort();
    Map<String, Object> requestContext =
((BindingProvider)service.getOrganisationServicePort()).getRequestContext()
;
    requestContext.put("userId","2325");
    requestContext.put("ownerId","2325");

How do i read thease properties on server side`? do i have to implement
some interceptors ? 

Thanx, 

Regards,
Karan

Reply via email to