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

PPM web services toolkit

Highlighted
PublicEducation
Super Collector

PPM web services toolkit

I have tried the dot net implementation of the web services toolkit, and that worked :)

But now there is a need for us to use the java implementation, since we have migrated to another data center.

I am trying to implement the java examples of the web service toolkit, but when I try to compile the client, I see the following error

Logix-Revenge:bin logix1.1$ sh compile_client.sh
javac: directory not found: /Users/logix1.1/Desktop/webservice_toolkit/java/client/classes

What am I doing wrong here?

8 REPLIES
TurboMan
Member

Re: PPM web services toolkit

Hi PublicEducationPPM,
Please make sure you have JDK installed and the directory path is in the environment.
TM
PublicEducation
Super Collector

Re: PPM web services toolkit

TurboMan,

Thanks much! I have a jdk installed, I am working on a mac and it comes natively.


Logix-Revenge:bin logix1.1$ ls -la /System/Library/Frameworks/JavaVM.framework/Versions/
total 72
drwxr-xr-x 13 root wheel 442 Mar 14 18:00 .
drwxr-xr-x 12 root wheel 408 Mar 14 18:00 ..
lrwxr-xr-x 1 root wheel 5 Mar 14 17:58 1.3 -> 1.3.1
drwxr-xr-x 3 root wheel 102 Feb 11 2010 1.3.1
lrwxr-xr-x 1 root wheel 10 Mar 14 17:58 1.4 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Mar 14 17:58 1.4.2 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Mar 14 17:58 1.5 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Mar 14 17:58 1.5.0 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Mar 14 17:58 1.6 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 Mar 14 17:58 1.6.0 -> CurrentJDK
drwxr-xr-x 10 root wheel 340 Mar 14 18:00 A
lrwxr-xr-x 1 root wheel 1 Mar 14 17:58 Current -> A
lrwxr-xr-x 1 root wheel 59 Mar 14 17:58 CurrentJDK -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents

now as to the directory path, are you referring to the parameters on the mac itself? How would I configure this.

Sorry for the newbie question. I am very new to web services and java in general :)

PublicEducation
Super Collector

Re: PPM web services toolkit

Speaking of which, I see the commands for the environment setup and the compilation in the run_client.sh file.

So many I'm asking the wrong question. when I try to run the client. I get a bunch of java options.

screenshot is attached.
TurboMan
Member

Re: PPM web services toolkit

Let's say you have a java sorce file called "ConverterMain.java" and you are calling Web service of PPM. And the package called tr.com.xxx.ppmconverter as follows.
File: ConverterMain.java

package tr.com.xxx.ppmconverter;
...
public class ConverterMain {
public ConverterMain() {
...
...
}
public static void main(String[] args) {
...
...
}
}

./compile_client.sh ConverterMain.java
Then run it.
./run_client.sh tr.com.xxx.ppmconverter.ConverterMain

Hope it helps
Regards
TM
TurboMan
Member

Re: PPM web services toolkit

Almost forgot,
I compile under Windows.
TM
PublicEducation
Super Collector

Re: PPM web services toolkit

Looks like I was able to execute the command, but the .java file thew many errors.

I am also on a unix system, if that helps

Below is just some of the output there were 89 errors. It looks like java is not understanding any or all of the imported packages.

ws-129-77-155:dm logix1.1$ javac -classpath . DemandServiceClient.java
DemandServiceClient.java:8: package org.apache.axis2.addressing does not exist
import org.apache.axis2.addressing.EndpointReference;
^
DemandServiceClient.java:9: package org.apache.axis2.client does not exist
import org.apache.axis2.client.Options;
^
DemandServiceClient.java:10: package org.apache.axis2.client does not exist
import org.apache.axis2.client.ServiceClient;
^
DemandServiceClient.java:11: package org.apache.axis2.client does not exist
import org.apache.axis2.client.Stub;
^
DemandServiceClient.java:12: package org.apache.axis2.context does not exist
import org.apache.axis2.context.ConfigurationContext;
^
DemandServiceClient.java:13: package org.apache.axis2.context does not exist
import org.apache.axis2.context.ConfigurationContextFactory;
^
DemandServiceClient.java:14: package org.apache.axis2.transport.http does not exist
import org.apache.axis2.transport.http.HTTPConstants;
^
DemandServiceClient.java:15: package org.apache.axis2.transport.http does not exist
import org.apache.axis2.transport.http.HttpTransportProperties;
^
DemandServiceClient.java:17: package com.mercury.itg.ws.dm.client does not exist
import com.mercury.itg.ws.dm.client.Note;
^
DemandServiceClient.java:18: package com.mercury.itg.ws.dm.client does not exist
import com.mercury.itg.ws.dm.client.Identifier;
^
DemandServiceClient.java:19: package com.mercury.itg.ws.dm.client does not exist
import com.mercury.itg.ws.dm.client.RemoteReference;
^
DemandServiceClient.java:20: package com.mercury.itg.ws.dm.client does not exist
import com.mercury.itg.ws.dm.client.Request;
^
DemandServiceClient.java:21: package com.mercury.itg.ws.dm.client does not exist
import com.mercury.itg.ws.dm.client.SimpleField;
^
DemandServiceClient.java:22: package com.mercury.itg.ws.dm.client does not exist
import com.mercury.itg.ws.dm.client.CreateRequestDocument;
^
DemandServiceClient.java:23: package com.mercury.itg.ws.dm.client does not exist
import com.mercury.itg.ws.dm.client.CreateRequestResponseDocument;
^
DemandServiceClient.java:24: package com.mercury.itg.ws.dm.client does not exist
import com.mercury.itg.ws.dm.client.DeleteRequestsDocument;
^
DemandServiceClient.java:25: package com.mercury.itg.ws.dm.client does not exist
import com.mercury.itg.ws.dm.client.DeleteRequestsResponseDocument;
^
DemandServiceClient.java:26: package com.mercury.itg.ws.dm.client does not exist
import com.mercury.itg.ws.dm.client.GetRequestsDocument;
^
DemandServiceClient.java:27: package com.mercury.itg.ws.dm.client does not exist
import com.mercury.itg.ws.dm.client.GetRequestsResponseDocument;
TurboMan
Member

Re: PPM web services toolkit

Well, it is very hard to say something.
But, It sounds like CLASSPATH for java is not specified.
I don't want to give you stupid advices unless you know java.
If I were you I would restart from the beginning,
make a refresh installation,
generate stubs for java from wsdls (wsdl2java.sh).
Then, give it a go.
TM
PublicEducation
Super Collector

Re: PPM web services toolkit

Thanks, I have it working now
//Add this to "OnDomLoad" event