Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Using VS2015, I'm trying to send an find_business inquiry to UDDI.
I've referenced
uddi_api_v3_binding.wsdl
as webreference UDDI (UDDI_API_Inquiry.UDDI).

However when running, the InvalidOperationException shows:
Path property must be set before calling the Send method.
Somehow it still needs the WS.URL, but what is the exact UDDI Inquiry URL (webservice accesspoint)? And why is it not implemented in the WSDL as usual?

What I have tried:

Imports UDDI_API_Inquiry

Public Class Form1

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        Dim WS As New UDDI.UDDI_Inquiry_SoapBinding
        WS.Url = " -- UDDI Inquiry URL -- "

        Dim fb As New UDDI.find_business

        Dim bName As UDDI.name = New UDDI.name
        bName.Value = "siemens"

        fb.name = New UDDI.name() {bName}

        Dim bl As New UDDI.businessList
        bl = WS.find_business(fb)

        For i As Integer = 0 To bl.businessInfos.Length - 1
            Console.WriteLine(bl.businessInfos(i).name(0).Value)
        Next

    End Sub

End Class
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900