Convert WSDL file to C# using svcutil.exe

The client gave me a WSDL file and from that I'm using svcutil.exe to generate the proxy class.   I did the following steps:

1) Opened up Developer Command Prompt for VS2015
2) Ran the following command > svcutil.exe CORETransactionService.wsdl CORETransactionService_schema1.xsd

I get the following error:
The attached file (outputfromSVCUTIL.png)

If I removed this from the wsdl file
 <wsp:Policy wsu:Id="wsp-d022643e-c1aa-467f-8471-f28e404d63fb"><ns2:AsymmetricBinding xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><wsp:Policy><ns2:InitiatorToken><wsp:Policy><ns2:X509Token ns2:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient"><wsp:Policy><ns2:WssX509V3Token10/></wsp:Policy></ns2:X509Token></wsp:Policy></ns2:InitiatorToken><ns2:AlgorithmSuite><wsp:Policy><ns2:STRTransform10/><ns2:Basic128/></wsp:Policy></ns2:AlgorithmSuite><ns2:RecipientToken><wsp:Policy><ns2:X509Token ns2:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToInitiator"><wsp:Policy><ns2:WssX509V3Token10/></wsp:Policy></ns2:X509Token></wsp:Policy></ns2:RecipientToken><ns2:Layout><wsp:Policy><ns2:Strict/></wsp:Policy></ns2:Layout></wsp:Policy></ns2:AsymmetricBinding><ns2:Wss11 xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><wsp:Policy><ns2:RequireSignatureConfirmation/></wsp:Policy></ns2:Wss11></wsp:Policy>
    <wsp:Policy wsu:Id="wsp-bf44b4a7-73d8-4606-a17a-d7917de2af14"><ns2:EncryptedParts xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><ns2:Body/></ns2:EncryptedParts><ns2:SignedParts xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><ns2:Body/></ns2:SignedParts></wsp:Policy>
    <wsp:Policy wsu:Id="wsp-d352ae97-370a-492e-9852-f5d2a4d2ef61"><ns2:EncryptedParts xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><ns2:Body/></ns2:EncryptedParts><ns2:SignedParts xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><ns2:Body/></ns2:SignedParts></wsp:Policy>
    <wsp:Policy wsu:Id="wsp-36c7d205-214b-495a-a9e6-7408702f5552"><ns2:EncryptedParts xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><ns2:Body/></ns2:EncryptedParts><ns2:SignedParts xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><ns2:Body/></ns2:SignedParts></wsp:Policy>
    <wsp:Policy wsu:Id="wsp-f8978c59-3217-43f9-820a-8c3e3e3feb0c"><ns2:EncryptedParts xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><ns2:Body/></ns2:EncryptedParts><ns2:SignedParts xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><ns2:Body/></ns2:SignedParts></wsp:Policy>
    <wsp:Policy wsu:Id="wsp-2afe23fd-9e1b-492d-9422-d5cdf8c68d7a"><ns2:EncryptedParts xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><ns2:Body/></ns2:EncryptedParts><ns2:SignedParts xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><ns2:Body/></ns2:SignedParts></wsp:Policy>
    <wsp:Policy wsu:Id="wsp-6c360abb-1d2b-46f6-aac1-b971a19c4b9e"><ns2:EncryptedParts xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><ns2:Body/></ns2:EncryptedParts><ns2:SignedParts xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><ns2:Body/></ns2:SignedParts></wsp:Policy>
    <wsp:Policy wsu:Id="wsp-d5858019-4f16-48a8-aaf9-cb34f2a0aa43"><ns2:EncryptedParts xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><ns2:Body/></ns2:EncryptedParts><ns2:SignedParts xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><ns2:Body/></ns2:SignedParts></wsp:Policy>
    <wsp:Policy wsu:Id="wsp-5c7caead-24e0-4ba8-882a-86cd6f3aeb3a"><ns2:EncryptedParts xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><ns2:Body/></ns2:EncryptedParts><ns2:SignedParts xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"><ns2:Body/></ns2:SignedParts></wsp:Policy>

Then I get the generated proxy file.  I'm not sure what I'm doing is correct.  Any ideas?  Also one thing I found disturbing was when I created the proxy class in 2010 one of the function calls had 15 parameters and then when I created the proxy class in vs2015 I got 13 parameters.
LVL 1
HItesh RanaAsked:
Who is Participating?
 
HItesh RanaConnect With a Mentor Author Commented:
Sorry for not attaching it. I imported the WSDL file from visual studio and I did not receive any more errors.  I will close this ticket.
0
 
MishaProgrammerCommented:
There is some words about attached file "outputfromSVCUTIL.png" with error in your question. But there is no attached file.....
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.