Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

7.5 PPM Webservices

Highlighted
MidrangeTeam
Occasional Contributor

7.5 PPM Webservices

Hi All

I have a query about the HTTP Basic Authentication, if I don't add a username and password in the Authentication header

I have added a cookie for SSO authentication.


public void setHttpBasicAuthHeader(Stub stub, String serviceURL) {

List headers = new ArrayList();
headers.add(new Header(HTTPConstants.COOKIE_STRING,
SSOLogin.getCookie(Config.SITEMINDER_URL)));


Options options = new Options();
options.setTo(new EndpointReference(serviceURL));
options.setProperty(HTTPConstants.HTTP_HEADERS, headers);

stub._getServiceClient().setOptions(options);
}


I get 'Originally Added By Null' added to the note I am adding.

I want to get rid of this information, does anyone know how to do this?


FYI.
I am just using the PasswordCallbackHandler and client-axis2.xml that came with the webservice toolkit.


Regards
Charles
3 REPLIES
MidrangeTeam
Occasional Contributor

Re: 7.5 PPM Webservices

I am having difficulties trying to remove the 'Originally Added by null.' text from notes when added by the DemandService Webservice.

I have found where this is added in either one of these properties files

I have made the value for the key
NOTE_ORIGINAL_AUTHOR.TXT equal to no value.

\server\kintana\deploy\itg.war\web-inf\resources\wb\kcrt_resour ces.properties


\server\kintana\deploy\itg.war\web-inf\resources\wb\kcrt_messag es.properties


\server\kintana\deploy\itg.war\web-inf\resources\wb\kcrx_resour ces.properties

I have tried restarting the server, deleting the work and temp folders, then recompiling the JSPs.

But it still adds 'Originally Added By Null' to the bottom of the note.

I am trying to get it not add this at all.

I must be missing something as I am unable to remove it.

Regards
Charles
Alan Delimon
Regular Collector

Re: 7.5 PPM Webservices

You can call:
note.setAuthor("username")

On the note creation. This will at least set an author so that it doesn't say "Originally added by null".

Not sure how to get that message to not display at all though. If you find out I'd like to do it too.
MidrangeTeam
Occasional Contributor

Re: 7.5 PPM Webservices

I knew about setting the author would set it to a value so that is ok but doesn't really help my cause.

I raised a support case with HP and they say it requires an enhancement of the application, so I have asked for it but as I don't think my company is willing to pay it will be on the lowest priority.

Regards
Charles
//Add this to "OnDomLoad" event