Hi all.
I have some trouble by using WCF while creating WSDL.
Please follow that:
1 Create a WCF service in EXE mode (not tried in IIS), add a basicHTTPBinding and a mexHttpBinding.
2 Run it, and get the WSDL of your service. You should got something like this:
<?xml version="1.0" encoding="utf-8" ?
- <wsdl:definitions name="Service_WCF" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
- <wsdl:types>
- <xsd:schema targetNamespace="http://tempuri.org/Imports">
<xsd:import schemaLocation="http://localhost:30099/?xsd=xsd0" namespace="http://tempuri.org/" /
<xsd:import schemaLocation="http://localhost:30099/?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" /
<xsd:import schemaLocation="http://localhost:30099/?xsd=xsd2" namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" /
</xsd:schema>
</wsdl:types>
- <wsdl:message name="MyFunction_InputMessage">
<wsdl:part name="parameters" element="tns:MyFunction" /
</wsdl:message>
...
Please notify the short version of wsdl:types with "import" command.
The problem is here. I need to use Delphi 7 to build a client for some reason. But that elder cannot recognize "import" command. So Delphi 7 cannot get any description about parameter of any method which was described in http://localhost:30099/?xsd=xsd0.
4 Please create a WebService project, and you can get another kind of WSDL which included all parameter descriptions in wsdl:typs.
Please help me that: HOW can I get the original Web Service kind WSDL in WCS EXE (mexHTTPBinding or something else).
Thanks for any information. >.<