N
Nick Locke
I have resolved my earlier issues with include vs import, so thanks for the
suggestions. I am still struggling with this bit though - WSDL at the top,
WSDL.EXE output at the bottom! Can someone shed some light? Thanks.
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:t="http://services.xxxx-yyyyy.co.uk/types"
xmlns:y="http://new.webservice.namespace"
targetNamespace="http://new.webservice.namespace">
<types>
<xs:schema targetNamespace="http://services.xxxx-yyyyy.co.uk/types">
<xs:include schemaLocation="Types.xsd"/>
</xs:schema>
</types>
<message name="AddRequest">
<part name="VehicleDetails" element="t:Vehicle"/>
</message>
<message name="AddResponse">
<part name="VehicleFraudId" element="t:VehicleUpdate" />
</message>
<portType name="SOAPport">
<operation name="AddStolenVehicle">
<input message="y:AddRequest"/>
<output message="y:AddResponse"/>
</operation>
</portType>
<binding name="bindingName" type="y:SOAPport">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="AddStolenVehicle">
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="StolenVehicles">
<port name="StolenPort" binding="y:bindingName">
<soap:address location="https://www.services.xxxx-yyyyy.org.uk"/>
</port>
</service>
</definitions>
C:\WSDL>wsdl /server /out:temp stolen.wsdl
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation. All rights reserved.
Error: Unable to import binding 'bindingName' from namespace
'http://new.webservice.namespace'.
- Unable to import operation 'AddStolenVehicle'.
- The operation binding 'AddStolenVehicle' from namespace
'http://new.webservice.namespace' had invalid syntax. Missing
soapperation binding.
C:\WSDL>
suggestions. I am still struggling with this bit though - WSDL at the top,
WSDL.EXE output at the bottom! Can someone shed some light? Thanks.
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:t="http://services.xxxx-yyyyy.co.uk/types"
xmlns:y="http://new.webservice.namespace"
targetNamespace="http://new.webservice.namespace">
<types>
<xs:schema targetNamespace="http://services.xxxx-yyyyy.co.uk/types">
<xs:include schemaLocation="Types.xsd"/>
</xs:schema>
</types>
<message name="AddRequest">
<part name="VehicleDetails" element="t:Vehicle"/>
</message>
<message name="AddResponse">
<part name="VehicleFraudId" element="t:VehicleUpdate" />
</message>
<portType name="SOAPport">
<operation name="AddStolenVehicle">
<input message="y:AddRequest"/>
<output message="y:AddResponse"/>
</operation>
</portType>
<binding name="bindingName" type="y:SOAPport">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="AddStolenVehicle">
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="StolenVehicles">
<port name="StolenPort" binding="y:bindingName">
<soap:address location="https://www.services.xxxx-yyyyy.org.uk"/>
</port>
</service>
</definitions>
C:\WSDL>wsdl /server /out:temp stolen.wsdl
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation. All rights reserved.
Error: Unable to import binding 'bindingName' from namespace
'http://new.webservice.namespace'.
- Unable to import operation 'AddStolenVehicle'.
- The operation binding 'AddStolenVehicle' from namespace
'http://new.webservice.namespace' had invalid syntax. Missing
soapperation binding.
C:\WSDL>