SourceGear Vault Web Service - WSDL. SOAP?

If you are having a problem using Vault, post a message here.
Post Reply
clarkec21
Posts: 17
Joined: Wed Aug 22, 2012 9:51 am

SourceGear Vault Web Service - WSDL. SOAP?

Post by clarkec21 » Thu Sep 06, 2012 7:14 am

Hi

Is there any way of communicating with SGV via WSDL using SOAP?

We would like SGV to link to our service desk tool - simply to provide the current version number of an item in SGV when asked for or when an item is checked into SGV tell the other system the new version number.

I have seen this post from 2003 http://support.sourcegear.com/viewtopic.php?t=237 - is this really the case?

I have also seen this on the internet from 2009:
"You also can access a Vault repository via its native Web Services interface. SourceGear supplies a wrapper class that makes programmatic access to a Vault repository relatively painless. Programmatic access to a Vault repository is useful for building automated build scripts. The Vault Explorer application consumes these Web Services as well, so the entire Vault API is available for your build scripts and custom applications to consume."


Thanks

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: SourceGear Vault Web Service - WSDL. SOAP?

Post by Beth » Thu Sep 06, 2012 10:12 am

I have seen this post from 2003 http://support.sourcegear.com/viewtopic.php?t=237 - is this really the case?
That's true. The API is easier than the web services. All the API documentation is in the .zip file you would download for the API, and we have an entire section of the forum devoted to programming with the API: http://support.sourcegear.com/viewforum.php?f=39.

The web services are just found by looking at http://<your Vault server>/vaultservice/vaultservice.asmx or http://<your Vault server>/VaultPro/Dragnetwebservice.asmx.

You could use our command-line client in any scripts as well. We have two available for download with our other downloads. The commands are documented here: http://download.sourcegear.com/misc/vau ... nt/clc.htm.
Beth Kieler
SourceGear Technical Support

clarkec21
Posts: 17
Joined: Wed Aug 22, 2012 9:51 am

Re: SourceGear Vault Web Service - WSDL. SOAP?

Post by clarkec21 » Fri Sep 07, 2012 3:19 am

Thank you Beth.

I should have told you I have little experience here, however you may have gathered...

Is there any documentation at all on this web service?

Any advice as to the API to use? The other software we are hoping to integrate with scripts using Javascript - a JAVA API? Do you have documentation?

How about connecting VIA JDBC?

Appreciate your time.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: SourceGear Vault Web Service - WSDL. SOAP?

Post by Beth » Tue Sep 18, 2012 10:57 am

There a section discussed here that might help you some: http://support.sourcegear.com/viewtopic ... mit#p68239. It has some code examples there from the user.

Vault can't connect via JDBC.

To use Java, you will use the same Examples as was posted for C#, but call to the .jar. See this forum thread: http://support.sourcegear.com/viewtopic ... ava#p56111.

If I hear you correctly, you want check ins logged to your service desk tool, correct? Not tied to anything specific, just an entry? If this is the case, then our new notifications service might help you there as well. Just give a few more details about what you want to accomplish.
Beth Kieler
SourceGear Technical Support

clarkec21
Posts: 17
Joined: Wed Aug 22, 2012 9:51 am

Re: SourceGear Vault Web Service - WSDL. SOAP?

Post by clarkec21 » Wed Sep 19, 2012 2:04 am

Thanks again Beth.

We are trying to integrate our Service Desk tool with SGV. We will manage the process of releasing software in Service Desk but SGV will manage source control (checkout, in, branch, merge, pin etc.)

We are going down a 'pull' route. So our Service Desk will pull version (number, comments, path, date) data from SGV tables to populate a table of versions. I have a JDBC connection to the database and have worked out the SQL needed. If however we can push from SGV that would be better....

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: SourceGear Vault Web Service - WSDL. SOAP?

Post by Beth » Wed Sep 26, 2012 12:33 pm

For a push, I'd still keep with my initial suggestions.

I have an idea for a pull that would pull from our notifications table. For information on that, send me an email. Send it to support at sourcegear.com (attn: Beth) with a link to this thread.
Beth Kieler
SourceGear Technical Support

Post Reply