Project and Portfolio Management Practitioners Forum
cancel

HP PPM 9.10 Staffing profile service invoke issue

Highlighted
TapanSarangi
New Member.

HP PPM 9.10 Staffing profile service invoke issue

Hi,

I facing majorly 2 difficulty in invoking HP ppm webservice .

Our PPM site is hosted in IIS 7.5 .

 

When I genertaed JAX ws client for Java to be able to consume Staffing profile service. 

>I st issue I faced with NTLM authtication , I tried mutiple ways to inject NTLM hanshake in JAX ws ,but no luck

>2nd issue is some how I managed to generate SOAP message and bale to use HTTP client to push the sam eto PPM service ,no matter what ever service I invoke I always get the following response

 

<?xml version="1.0" encoding="http://www.w3.org/2005/08/addressing" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing">
<soapenv:Header>
<wsa:ReplyTo>
<wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
</wsa:ReplyTo>
<wsa:MessageID>urn:uuid:98CAE2236A4C9915C31374758765887</wsa:MessageID>
<wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soapenv:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en-US">java.lang.StringIndexOutOfBoundsException: String index out of range: -1</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

 

 

Can some one point me what is wrong I am doing, I wil really appreciate if I can proceed futher.

 

Thanks

Tapan

 

2 REPLIES
mike_se
Micro Focus Expert

Re: HP PPM 9.10 Staffing profile service invoke issue

Hi,

 

JDK HTTP can support NTLM. Clients basically have to write their own Web Service Client using JDK HTTP for the NTLM authentication.

 

See the 9.2 Web Services Programmers guide for the "NTLM Authentication" section on page 483 for details.

Support just handles the basic functionality of PPM, though if need help with such a customization, Professional Services could be hired to help.

 

-Mike

“HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.”
TapanSarangi
New Member.

Re: HP PPM 9.10 Staffing profile service invoke issue

hi Mike,

Thank you for your answer, I did had a look at programmer's guild to check how NTLM will be achieved, and I fould this snippent

 

 

 

public static void setNTLMAuthHeader(Stub stub,
String domain,
String username,
String password,
String host) {
Options options = stub._getServiceClient().getOptions();
if (options == null) return;
HttpTransportProperties.Authenticator auth = new
HttpTransportProperties.Authenticator();
List schemes = new ArrayList();
schemes.add(HttpTransportProperties.Authenticator.NTLM);
auth.setAuthSchemes(schemes);
auth.setPreemptiveAuthentication(true);
auth.setUsername(username);
auth.setPassword(password);
auth.setDomain(domain);
auth.setHost(host);
options.setProperty(HTTPConstants.AUTHENTICATE, auth);

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

 

 

These are axis related classes , which client api may be not be forced to use.

We have used java.net.Autheticator api to achieve the same.

 

java.net.Authenticator.setDefault(new Authenticator() {

@Override
public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("", "");
}
});

 

 

Now my 2nd issue still persist

 

we always get java.lang.Stringindexoutofboundexception on calling any service.

 

Can you please let me know if any seeting is required at ppm axis configuration.

 

Thanks

Tapan