This commit is contained in:
Jonathan Jenne
2017-08-15 12:37:22 +02:00
parent 1872606a5c
commit 273218d124
4 changed files with 23 additions and 46 deletions

View File

@@ -17,25 +17,6 @@ Public Class DPMAConnectPatents
_service.Open()
End Sub
Public Function SearchPatents(query As String) As XmlDocument
Dim doc As New XmlDocument()
Dim xmlstring As String
Try
xmlstring = _service.search(_user, _pass, query)
doc.LoadXml(xmlstring)
Dim ErrorMessage = doc.SelectSingleNode("Hitlist/ErrorMessage")
If Not IsNothing(ErrorMessage) Then
Throw New Exception(ErrorMessage.InnerText)
End If
Catch ex As Exception
Throw ex
End Try
Return doc
End Function
Public Function Search(query As String) As XmlDocument
Dim doc As New XmlDocument()
Dim xmlstring As String