I imported WSDL, now what?

Web service novice ... Please carry me.

I was provided with a WSDL file for import into a vb.NET project. I understand that this is a contract that should tell me how to use a related web service. This is where my problem is. I see all kinds of classes, properties, interfaces, etc. In the imported service link. Nothing tells me that "if you have X, Y, and Z as inputs, call this function to return W."

With the risk of sounding too vague, what should I look for, does this tell me how I should use it? How to find out which functions to call and from which classes to call them? Should I expect some documentation to be provided by the WSDL or should the WSDL be enough for me to look at it and say “oh, how it is used!”.

I read various WSDL tutorials on the Internet and they gave me a basic understanding (I think ...?). I'm missing something somewhere, and I'm really sure where.

Thanks for any help.

+3
source share
3 answers

WSDL will tell you, or possibly a SOAP library, how to talk to a SOAP server. SOAP can be an interface to retrieve data for almost anyone.

, , , SOAP .

. , . WSDL . , XML, , WSDL. XML , WSDL, , XML .

+1

.

, , - /, WSDL.
, , XSD, ( arg ).

WS , () .

Try
    Dim service As New MyServiceRef.MyServiceClient()
    service.Open()

    Dim output As MyServiceRef.myCallResponse
    Dim args As New MyServiceRef.myCallRequest

    args.arg1 = 1
    args.arg2 = "A"

    output = service.myCallRequest(args)
    ...
Catch ex As Exception
    treat ( ex )
End Try
+2

When you add a link to a web service, it creates a proxy server to call web methods on the server. Here is a simple tutorial on consuming web services in VB.NET

-1
source

Source: https://habr.com/ru/post/1791425/


All Articles