Send custom data when initializing java WebService over soap

Posted by Mesni on Stack Overflow See other posts from Stack Overflow or by Mesni
Published on 2010-04-20T08:20:31Z Indexed on 2010/04/20 8:23 UTC
Read the original article Hit count: 178

Filed under:
|
|
|

Hello.

I have a question about sending additional data over soap to the functions.

My webService function requests only one integer, for example an getDocumentPrivilage(DocumentID). In another WebService user registered and he got an unique ID, so the other application can see who he is.

So on Service one he registers, gets id and it has to send it to the other webservice tor the privilage. Id dont wish to rewrite the function so that it gets the unique ID (like this getDocumentPrivilage(uniqID,DocumentID)) but, the wish is that i would be able to create a client that sends this data at the initialization or somehow as some sort of parameter behind the function. Is this possible??

I tried the ServiceLifecycle but cant see any setting i've given in.

Im using WebSphere CE for the server and Jax-ws Creating the webapp in java.

Thank you very much in advance.

lp, Mesni

© Stack Overflow or respective owner

Related posts about java

Related posts about webservice