Note that there are some explanatory texts on larger screens.

plurals
  1. POGenerating Client code using svcutil
    primarykey
    data
    text
    <p>I am trying to generate client proxy code using svcutil.exe tool. And its throwing follwong error.</p> <p>I am using following command.</p> <p>svcutil /namespace:http://www.starstandard.org/STAR/5,* /out:STARContract.cs /noConfig SendOrderOrder.wsdl SendOrderOrderType.xsd</p> <p>--------------------Output ----------------------</p> <p>Error: There was an error verifying some XML Schemas generated during export: The 'http://www.starstandard.org/STAR/5:SendOrder' element is not declared.</p> <p>Error: Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Descripti on.XmlSerializerMessageContractImporter Error: The element 'http://www.starstandard.org/STAR/5:SendOrder' is missing. XPath to Error Source: //wsdl:definitions[@targetNamespace='http://www.starstandards.org/webservices /2005/10/transport/bindings']/wsdl:portType[@name='starTransportPortTypes']</p> <p>Error: Cannot import wsdl:binding Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on. XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='http://www.starstandards.org/webservice s/2005/10/transport/bindings']/wsdl:portType[@name='starTransportPortTypes'] XPath to Error Source: //wsdl:definitions[@targetNamespace='http://www.starstandards.org/webservices /2005/10/transport/bindings']/wsdl:binding[@name='starTransport']</p> <p>Error: Cannot import wsdl:port Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on. XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://www.starstandards.org/webservices /2005/10/transport/bindings']/wsdl:binding[@name='starTransport'] XPath to Error Source: //wsdl:definitions[@targetNamespace='http://www.starstandards.org/webservices /2005/10/transport/bindings']/wsdl:service[@name='SendOrderWebService']/wsdl:port[@name='SendOrderStarTransport']</p> <p>Generating files... Warning: No code was generated. If you were trying to generate a client, this could be because the metadata documents did not contai n any valid contracts or services or because all contracts/services were discovered to exist in /reference assemblies. Verify that you passed all the metadata documents to the tool.</p> <p>Warning: If you would like to generate data contracts from schemas make sure to use the /dataContrac tOnly option.</p> <p>--------- End of output -----------------</p> <p>The relative file references looks fine.</p> <p>When I try to create same code using WSE it works fine and generate relate proxy class without any errors. However it does not work when using svcutil.exe.</p> <p>Any idea?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload