I have a WCF service (.net 3.5sp1).
As all WCF services it has 'types' section with imports of XSD's:
Just a side note: I'm impressed of nested schemas support, cool. Even not all server WS stacks support WSDLs with nested schemas.
Here we have one XSD with types used by the service and one XSD with standard MS types. It's very common.
Then I launch Developer Console and try to download WSDL. BTW it needs to disable HttpProxy in ISC_DeveloperConsole.js:
Without that DevConsole tries to post to "http://myapp/Scripts/isomorphic/HttpProxy" which doesn't exists. Why should it exist?
So, DevConsole downloads the WSDL with all XSDs.
But after that it says:
Transport error - HTTP code: 0 for URL: http://myapp/MyService.svc?xsd=xsd1
The url is correct for sure and XSD is being returned by the service, I checked it by Fiddler (sniffer).
So there's something wrong with how SM interprets the XSD.
Here's it:
As all WCF services it has 'types' section with imports of XSD's:
Code:
<wsdl:definitions name="MyService" targetNamespace="urn:MyApp"> <wsdl:types> <xsd:schema targetNamespace="urn:MyApp-Imports"> <xsd:import schemaLocation="http://myapp/MyService.svc?xsd=xsd0" namespace="urn:MyApp"/> <xsd:import schemaLocation="http://myapp/MyService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/Message"/> </xsd:schema> </wsdl:types>
Here we have one XSD with types used by the service and one XSD with standard MS types. It's very common.
Then I launch Developer Console and try to download WSDL. BTW it needs to disable HttpProxy in ISC_DeveloperConsole.js:
Code:
isc.RPCManager.addClassProperties({useHttpProxy: false});
So, DevConsole downloads the WSDL with all XSDs.
But after that it says:
Transport error - HTTP code: 0 for URL: http://myapp/MyService.svc?xsd=xsd1
The url is correct for sure and XSD is being returned by the service, I checked it by Fiddler (sniffer).
So there's something wrong with how SM interprets the XSD.
Here's it:
Code:
<xs:schema elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/Message" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.microsoft.com/Message"> <xs:simpleType name="StreamBody"> <xs:restriction base="xs:base64Binary"/> </xs:simpleType> </xs:schema>
Comment