Kuv yuav tsim WSDL proxy chav kawm li cas?
Kuv yuav tsim WSDL proxy chav kawm li cas?

Video: Kuv yuav tsim WSDL proxy chav kawm li cas?

Video: Kuv yuav tsim WSDL proxy chav kawm li cas?
Video: Yuav ua cas nco kuv txiv - Tsim meej thoj 2024, Tej zaum
Anonim

Ntxiv ib npe proxy class rau koj qhov project siv Wsdl .exe ua

Los ntawm kev hais kom ua, siv Wsdl .exe ua tsim a npe proxy class , qhia meej (yam tsawg kawg) qhov URL rau Daim Ntawv Qhia Server Web kev pabcuam . Cov WSDL cuab yeej txais ib tug xov tooj ntawm command-prompt arguments rau tsim a npe.

Ntxiv mus, dab tsi yog chav kawm npe npe hauv Web service?

A npe proxy class yog a chav kawm muaj tag nrho cov txheej txheem thiab cov khoom nthuav tawm los ntawm cov Web kev pabcuam . A npe proxy class tuaj yeem tsim los ntawm a kev pabcuam piav qhia tsuav yog nws conforms rau Web Services Lus piav qhia (WSDL) tus qauv. Koj tuaj yeem tsim ib qho npe proxy class siv cov. NET command-line tool wsdl.exe.

Tsis tas li ntawd, kuv yuav ua li cas thiaj tsim tau lub vev xaib kev pabcuam tawm ntawm wsdl? Nov yog qhov koj tuaj yeem ua tau:

  1. tsim ib chav Interface siv cov lus txib no hauv Visual Studio Command Prompt window: wsdl.exe yourFile.wsdl /l:CS /serverInterface. Siv VB lossis CS rau koj hom lus xaiv.
  2. Tsim ib qho tshiab. NET Web Service project.
  3. Hauv koj cov ntaub ntawv.asmx.cs hauv Code-View, hloov kho koj cov chav kawm xws li:

Tsis tas li ntawd, kuv yuav ua li cas thiaj tsim tau ib chav npe npe siv SVCUtil?

SVCUtil .exe yog ib qho cuab yeej siv rau kev pabcuam. Siv qhov no koj tuaj yeem ua tau tsim tus npe nyob rau hauv tus neeg siv daim ntawv thov rau kev pab.

Muaj ntau txoj hauv kev los tsim cov npe npe rau WCF Service.

  1. Los ntawm "Add Service Reference" los ntawm Visual Studio.
  2. Siv SVCUtil. ext Utility.
  3. Siv cov chav kawm ClientBase.

WSDL EXE yog dab tsi?

Web Service Utility ( wsdl ua . ua exe ) wsdl ua . ua exe pab tsim ASP. NET Web Services thiab proxies rau lawv cov neeg siv khoom. Qhov feem ntau siv ntawm wsdl ua . ua exe yog los tsim cov chav kawm npe rau cov kev pabcuam hauv web: wsdl ua / lus txib :proxy /path:path /language:language /namespace:namespace /out:output /protocol:protocol.

Pom zoo: