Forum Discussion

KKop's avatar
Occasional Contributor
13 years ago

Connected to Web Services, now what

I have successfully connected to QAComplete WS from Java, both with and without authentication.

My problem is that the documentation does not really explain how to proceed from there. (I also downloaded the .NET application from SmartBear's website and looked at its code).

Is there a diagram available that explains how the various objects work together? 

As an example, I am trying to get a test's properties through WS.  One of the questions I have is why is the id always required as a parameter?  

Is there a way to ask for an object's (test) properties by test name instead of ID?  This seems to be a more practical way than by ID.

A short code example would be great.



3 Replies

  • KKop's avatar
    Occasional Contributor

    Thanks for the reply!

    I looked at LoadByCriteria, but the parameter for that query is in the form of an xml criteria description, not the most user-friendly way to query :-)

    Still, I looked at how this was done in the .NET example app. I found that the app will build an xml, but the query won't work because the xml is rejected :-(

    Anyway.  I'll submit a request to support for a query by name.  
  • Did you ever resolve your XML issue?  I was able to get it to work by surrounding the XML with a CDATA tag.  Before that, I was getting bad request.  Here is an example of the "<prag:Condition>" value:

    <![CDATA[<?xml version='1.0' encoding='utf-16'?> <Conditions xmlns:xsi='' xmlns:xsd='' Operation='opEQU'> <Items Type='tField'> <Value xsi:type='xsd:string'>TestSetId</Value> </Items> <Items Type='tString'> <Value xsi:type='xsd:string'>179</Value> </Items> </Conditions>]]>