Reg: Generating WSDL

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Reg: Generating WSDL

    Hi,
    I am trying to generate a WSDL which is compatible with HTNG protocol.
    Here is the sample wsdl i am interested to generate using ColdFusion MX 7.

    Please help

    <?xml version="1.0" encoding="utf-8"?>
    <definitions xmlns:s1="http://htng.org/1.1/Header/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns:s0="http://htng.org/1.1/Listener.Wsdl"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    targetNamespace="http://htng.org/1.1/Listener.Wsdl"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <types>
    <s:schema elementFormDefault="qualified"
    targetNamespace="http://htng.org/1.1/Listener.Wsdl">
    <s:element name="Request" type="s:string" />
    <s:element name="Response" type="s:string" />
    </s:schema>
    <s:schema elementFormDefault="qualified"
    targetNamespace="http://htng.org/1.1/Header/">
    <s:element name="HTNGHeader" type="s1:HTNGHeader" />
    <s:complexType name="HTNGHeader">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="From"
    type="s1:AuthenticatedEndPoint" />
    <s:element minOccurs="0" maxOccurs="unbounded" name="To"
    type="s1:EndPoint" />
    <s:element minOccurs="0" maxOccurs="1" name="ReplyTo"
    type="s1:EndPoint" />
    <s:element minOccurs="0" maxOccurs="1" name="FaultTo"
    type="s1:EndPoint" />
    <s:element minOccurs="1" maxOccurs="1" name="timeStamp"
    type="s:dateTime" />
    <s:element minOccurs="0" maxOccurs="1" name="echoToken"
    type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="transactionId"
    type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="action" type="s:string"
    />
    </s:sequence>
    </s:complexType>
    <s:complexType name="AuthenticatedEndPoint">
    <s:complexContent mixed="false">
    <s:extension base="s1:EndPoint">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="Credential"
    type="s1:Credential" />
    <s:element minOccurs="0" maxOccurs="1" name="authToken"
    type="s:string" />
    </s:sequence>
    </s:extension>
    </s:complexContent>
    </s:complexType>
    <s:complexType name="EndPoint">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="systemId"
    type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="address"
    type="s:anyURI" />
    </s:sequence>
    </s:complexType>
    <s:complexType name="Credential">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="userName"
    type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="password"
    type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:schema>
    </types>
    <message name="PingSoapIn" />
    <message name="PingSoapOut" />
    <message name="ReceiveMessageSyncSoapIn">
    <part name="Request" element="s0:Request" />
    </message>
    <message name="ReceiveMessageSyncSoapOut">
    <part name="ReceiveMessageSyncResult" element="s0:Response" />
    </message>
    <message name="ReceiveMessageSyncHTNGHeader">
    <part name="HTNGHeader" element="s1:HTNGHeader" />
    </message>
    <message name="ReceiveMessageAsyncSoapIn">
    <part name="Request" element="s0:Request" />
    </message>
    <message name="ReceiveMessageAsyncSoapOut" />
    <message name="ReceiveMessageAsyncHTNGHeader">
    <part name="HTNGHeader" element="s1:HTNGHeader" />
    </message>
    <portType name="HTNGWebServiceSoap">
    <operation name="Ping">
    <documentation>Ping method with void result</documentation>
    <input message="s0:PingSoapIn" />
    <output message="s0:PingSoapOut" />
    </operation>
    <operation name="ReceiveMessageSync">
    <documentation>Syncronous message</documentation>
    <input message="s0:ReceiveMessageSyncSoapIn" />
    <output message="s0:ReceiveMessageSyncSoapOut" />
    </operation>
    <operation name="ReceiveMessageAsync">
    <documentation>Asyncronous message</documentation>
    <input message="s0:ReceiveMessageAsyncSoapIn" />
    <output message="s0:ReceiveMessageAsyncSoapOut" />
    </operation>
    </portType>
    <binding name="HTNGWebServiceSoap" type="s0:HTNGWebServiceSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
    style="document" />
    <operation name="Ping">
    <soap:operation soapAction="http://htng.org/1.1/Listener.Wsdl#Ping"
    style="document" />
    <input>
    <soap:body use="literal" />
    </input>
    <output>
    <soap:body use="literal" />
    </output>
    </operation>
    <operation name="ReceiveMessageSync">
    <soap:operation
    soapAction="http://htng.org/1.1/Listener.Wsdl#ReceiveMessageSync"
    style="document" />
    <input>
    <soap:body use="literal" />
    <soap:header message="s0:ReceiveMessageSyncHTNGHeader"
    part="HTNGHeader" use="literal" />
    </input>
    <output>
    <soap:body use="literal" />
    <soap:header message="s0:ReceiveMessageSyncHTNGHeader"
    part="HTNGHeader" use="literal" />
    </output>
    </operation>
    <operation name="ReceiveMessageAsync">
    <soap:operation
    soapAction="http://htng.org/1.1/Listener.Wsdl#ReceiveMessageAsync"
    style="document" />
    <input>
    <soap:body use="literal" />
    <soap:header message="s0:ReceiveMessageAsyncHTNGHeader"
    part="HTNGHeader" use="literal" />
    </input>
    <output>
    <soap:body use="literal" />
    <soap:header message="s0:ReceiveMessageAsyncHTNGHeader"
    part="HTNGHeader" use="literal" />
    </output>
    </operation>
    </binding>
    <service name="HTNGWebService">
    <documentation>Web service for HTNG protocol</documentation>
    <port name="HTNGWebServiceSoap" binding="s0:HTNGWebServiceSoap">
    <soap:address
    location="http://localhost/HTNGWebService/HTNGWebService.asmx" />
    </port>
    </service>
    </definitions>


    Thanks in advance
    -Raaga

    Raaga Guest

  2. Similar Questions and Discussions

    1. Problem generating c# proxy class from IBM websphere (AXIS) webservice WSDL.
      Hi, I am having problems with generating a c# proxy class from a IBM websphere WSDL file, when running the wsdl.exe to create the c# proxy file...
    2. WSE 2.0- Generating abstract SoapService classes from WSDL
      WseWsdl2.exe can be used to generate SoapClient classes from the WSDL. How can we generate abstract classes for WSE 2.0 based web service...
    3. Problem generating appropriate WSDL from C# classes generated from an XSD
      Hi all, We are integrating Great Plains 7.5 (GP) with BizTalk 2004 (BT) through web services. GP's connectivity component (eConnect) works...
    4. generating minoccurs=1 for strings in wsdl ?
      If I have string types in my object in my web service. In wsdl file it always comes as minoccurs=0. Is there a way to fix this ? Regards, AK
    5. Generating WSDL file from the assembly
      Hi all Does anyone know how to generate a WSDL file directly from an assembly. I've looked on the internet, msdn and newsgroups but can't find...
  3. #2

    Default Re: Reg: Generating WSDL

    WSDL is a description of a service interface. 'All' you need to do is create a CFC with the same interface and expose it as a webservice.
    TomChiv Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139