开发者

XSD and ASMX Services

I have received few WSDLs and XSD defining a service that I need to consume for one of my project.

Now here is a similar structure:

XSD_EMPDetails.xsd - Define few of the EmployerDetails

XSD_EMP.xsd - has imported EmployerDetails xsd and some more attributes. (xsd import)

EMP.wsdl - imports XSD_EMP.xsd (xsd import)

EMPServcie.wsdl - imports EMP.wsdl. (wsdl import)

Now I need to cons开发者_运维百科ume EMPService.wsdl to call service. Not sure how to use XSD and how it works internally. Please provide me any reference or any help on this topic.

Note: Currently we are working on 2.0 with ASMX. Cannot use WCF.


Just use WSDL.EXE and specify all the files on the command line. It will create all of the proxy classes for you, and you can then include them in your project.


First of all, try "WSDL /?" to see the options. I believe the command line you want would be:

WSDL EMPServcie.wsdl EMP.wsdl XSD_EMP.xsd XSD_EMPDetails.xsd


You should avoid wsdl.exe and ASMX, and instead use svcutil.exe - this tool will generate WCF proxy classes for you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜