Note that there are some explanatory texts on larger screens.

plurals
  1. POsvcutil.exe cannot handle imports?
    primarykey
    data
    text
    <p>I'm on a project in which a .NET frontend communicates with a Java backend. We use wdsl's + xsd's to describe the interface between front and backend. I'm on the frontend side in .NET 4.0. We used to generate code for the interfaces with xsd.exe &amp; wsdl.exe, but we want to switch to WCF now, so I'm trying to use svcutil.exe. However, I keep getting errors. I've tracked it down to an <code>&lt;import&gt;</code> statement used, so I've tried the example for that from the w3 site: <a href="http://www.w3.org/TR/wsdl#_style" rel="nofollow noreferrer">W3.org site import example</a></p> <p>I've saved those 3 example files there as StockQuoteService.wsdl, StockQuote.wsdl and StockQuote.xsd and set the location attribute to those files. I've fixed a bug (in StockQuoteService.wdsl the binding should be StockQuoteSoapBinding, not StockQuoteBinding). Then I run svcutil like this: </p> <p>svcutil StockQuoteService.wsdl *.xsd /serializer:XmlSerializer</p> <p>And presto, exactly the same errors as with our xsd/wsdl's:</p> <blockquote> <p>Error: Cannot import wsdl:binding Detail: Cannot find definition for <a href="http://example.com/stockquote/definitions:StockQuotePortType" rel="nofollow noreferrer">http://example.com/stockquote/definitions:StockQuotePortType</a>. Service Description with namespace <a href="http://example.com/stockquote/definitions" rel="nofollow noreferrer">http://example.com/stockquote/definitions</a> is missing. Parameter name: name XPath to Error Source: //wsdl:definitions[@targetNamespace='<a href="http://example.com/stockquote/service" rel="nofollow noreferrer">http://example.com/stockquote/service</a>']/wsdl:binding[@name='StockQuoteSoapBinding']</p> </blockquote> <p>StockQuotePortType is in StockQuote.wsdl which is included in StockQuoteService.wsdl, but it seems like scvutil cannot find it. With our own files we have a similar situation.</p> <p>I am new to WCF, can anyone explain what is going on here? </p>
    singulars
    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.
    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