Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Raaga #1
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
-
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... -
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... -
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... -
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 -
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... -
TomChiv #2
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



Reply With Quote

