cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

SOAP client errors

ptc-4551031
1-Newbie

SOAP client errors

Hi Guys!

I am trying to interract with Windchill using SOAP by implementing some own WCF based client app and have the following issue:

1. I add service refference to the project for "com.ptc.windchill.ws".

2. Use generated classes to communicate with Windchill:

//Create client via the corresponding credentials

EServiceClient client = new EServiceClient();

client.ClientCredentials.UserName.UserName = "some_username";

client.ClientCredentials.UserName.Password = "some_password";

//Here we receive correct documents collection ( it works fine here and returns correct result)

var docs = client.Query("wt.doc.WTDocument", "name = 'some_doc_name'", null, null);

//This code line fails with exception : "Either the "OBJECT_REF" parameter or the "TYPE" and "WHERE" parameters must be provided."

var infos = client.GetVersionHistory(new string[] { docs[0].ufid }, null);

So, the question : Why does it happen? I indicate really correct ufid for the really existing object on the server but don't receive correct result here.

Am I doing something wrong? Please, help...

Thanks in Advance

0 REPLIES 0
Top Tags