cancel
Showing results for 
Search instead for 
Did you mean: 

samples or snippets for using/ consuming the QWAAS

Former Member
0 Kudos

I Could use some code samples or snippets for using/ consuming the QWAAS (Query as a Web Service) from a Windows .NET App.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

In Visual Studio, you'd consume QaaWS as you would any other Web Service service - it should be relatively straightforward.

I create a QaaWS on ueda.sample.net named TestQaaWS. In VS2005, I create a Web Reference to the WSDL, http://ueda.sample.net:8080/dswsbobje/qaawsservices/TestQaaWS?WSDL, selecting the default package name.

Then in my application:

net.sample.ueda.TestQaaWS qaaws = new net.sample.ueda.TestQaaWS1();

net.sample.ueda.Row[] rows = qaaws.runQueryAsAService("CMSUSER", "CMSPASSWORD", ...)

foreach(net.sample.ueda.Row row in rows) {

// Do stuff with row - note that

// data columns will be exposed as properties

// of variable row.

}

Sincerely,

Ted Ueda