Hello All,
I have done some java programming in the past, I am fairly new to Windchill,and very new to Info Engine and SOAP.
I am trying to follow the Info Engine User guide to create a Standalone Java SOAP Client, with difficulty.
Firstly, does anyone know of any info engine tutorials/blogs for beginners?
Secondly, could anyone offer some advice on the Standalone Java SOAP Client example. I have the
following issues/questions about the example (each bullet point is a title from the guide):
- Implementing Tasks and Java Classes
- Should the following directory /org/myOrg.Math/sum.xml be <Windchill>/tasks/org/myOrg.Math/sum.xml
- Registering Delegates
- I have created a repository; org.myOrg.Math, should this have a super repository type? com.ptc.windchill?
- When I create Delegate and select the org.myOrg.Math repository, should I have a Type Identifier? My List is empty?
- Should the Source URL just be /org/myOrg.Math/sum.xml
- Generating DAOs
- When I run the following Java command line:
java com.infoengine.connector.dao.DAOGenerator endPoint=http://wcadmin:wcadmin@localhost/Windchill/servlet/RPC soapClass=org.myOrg.Math fileSystem=/home/user/src package=org.myOrg.Math class="MathDAO"
The MathDAO.java file is created in E:/home/user/src, is this the correct directory? Or should it be in the Windchill Install Directory?
It contains the following constructor:
public MathDAO ( javax.resource.cci.Connection c, javax. resource.cci.RecordFactory r );
But does not contain the method signatures, should it contain these? Why doesn't mine?
public int sum ( int x, int y ) throws Exception;
public double average ( double [] nums ) throws Exception;
- Once I compile MathDAO.java, where should it go? In the Windchill Install Directory?
Putting it all Together
- Should the following directory /home/user/src/org/myOrg/client/Test.java be E:/home...? Or should it be in the Windchill Install Directory?
- When I run the Test class I get a Symbol Not found error for the following line:
int fourAndFive = dao.sum ( 4, 5 );
I understand this is because the sum() method cannot be found in the MathDAO Object?
Any help would be appreciated!
Thank you