Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » WSDL Generation
WSDL Generation [message #177333] Fri, 18 August 2006 11:32 Go to next message
Balamurugan Easwaran is currently offline Balamurugan EaswaranFriend
Messages: 1
Registered: July 2009
Junior Member
Hi,

Is there any way to Generate WSDL from XMI ?
Does EMF Helps generate WSDL ?

Regards
Bala
Re: WSDL Generation [message #177341 is a reply to message #177333] Fri, 18 August 2006 12:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Bala,

EMF can generate an XML Schema from an Ecore model. I.e., given a
..genmodel, you can right click and invoke "Export Model..." to export a
schema. Its implemented by org.eclipse.xsd.ecore.EcoreSchemaBuilder.


Balamurugan Easwaran wrote:
> Hi,
>
> Is there any way to Generate WSDL from XMI ?
> Does EMF Helps generate WSDL ?
>
> Regards
> Bala
Re: WSDL Generation [message #177390 is a reply to message #177341] Fri, 18 August 2006 14:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Hi Merks,

Thanks a lot for the reply.
I think I have not clearly stated my problem.
I want to generate WSDL(not XSD) file from XMI.


Regards
Bala

Ed Merks wrote:
> Bala,
>
> EMF can generate an XML Schema from an Ecore model. I.e., given a
> .genmodel, you can right click and invoke "Export Model..." to export a
> schema. Its implemented by org.eclipse.xsd.ecore.EcoreSchemaBuilder.
>
>
> Balamurugan Easwaran wrote:
>> Hi,
>>
>> Is there any way to Generate WSDL from XMI ?
>> Does EMF Helps generate WSDL ?
>>
>> Regards
>> Bala
Re: WSDL Generation [message #177397 is a reply to message #177390] Fri, 18 August 2006 14:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Bala,

Definitely you've not clearly stated what you want. Since XMI can be
used to serialize anything, you've basically asked, given an XML file
that's an XMI serialzation of mystery model x, how do I create a WSDL
for it? I'd suggest providing more detail.


user@domain.invalid wrote:
> Hi Merks,
>
> Thanks a lot for the reply.
> I think I have not clearly stated my problem.
> I want to generate WSDL(not XSD) file from XMI.
>
>
> Regards
> Bala
>
> Ed Merks wrote:
>> Bala,
>>
>> EMF can generate an XML Schema from an Ecore model. I.e., given a
>> .genmodel, you can right click and invoke "Export Model..." to export
>> a schema. Its implemented by org.eclipse.xsd.ecore.EcoreSchemaBuilder.
>>
>>
>> Balamurugan Easwaran wrote:
>>> Hi,
>>>
>>> Is there any way to Generate WSDL from XMI ?
>>> Does EMF Helps generate WSDL ?
>>>
>>> Regards
>>> Bala
Re: WSDL Generation [message #177413 is a reply to message #177397] Fri, 18 August 2006 15:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Ed,

your suggestion :-
EMF can generate an XML Schema from an Ecore model.I.e., given a
*.genmodel, you can right click and invoke "Export Model..." to export
a schema. Its implemented by org.eclipse.xsd.ecore.EcoreSchemaBuilder.

my question :-
An Ecore model can represent a DataStructure and a set of Operations
where the DataStructure can be serialized as an w3c Schema.In that way
can an Ecore model also be serialized as WSDL Document ?.

Iam attaching the source EMF model serialized as an .xmi and target
WSDL which i want.

******************source xmi ************************************
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="model"
nsURI="http://www.orangescape.com"
nsPrefix="com.orangescape.model.PurchaseOrder">
<eClassifiers xsi:type="ecore:EClass" name="StatelessService">
<eOperations name="New">
<eAnnotations source="operationInfo">
<details key="Name" value="New"/>
<details key="Size" value="10"/>
<details key="Visible" value="true"/>
<details key="Image" value="c:\sample.gif"/>
</eAnnotations>
</eOperations>
<eClassifiers xsi:type="ecore:EClass" name="PurchaseOrder">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="po_date">
<eType xsi:type="ecore:EDataType"
href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="ordering_customer_name">
<eType xsi:type="ecore:EDataType"
href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute"
name="order_customer_address">
<eType xsi:type="ecore:EDataType"
href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
</eClassifiers>
</ecore:EPackage>
******************End of source xmi *****************************

*******************target WSDL************************************
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="StetefullPurchaseOrderService"
targetNamespace=" http://dimension.PO.Service.StatefulService/StatefulPurchase OrderService/"
xmlns:tns=" http://dimension.PO.Service.StatefulService/StatefulPurchase OrderService/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:com.orangescape.model.PurchaseOrder="http://www.orangescape.com"
xmlns:xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
targetNamespace="http://www.orangescape.com">
<xsd:complexType name="PurchaseOrder">
<xsd:sequence>
<xsd:element minOccurs="0" type="xsd:string" name="po_date"
maxOccurs="1" />
<xsd:element minOccurs="0" type="xsd:string"
name="ordering_customer_name" maxOccurs="1" />
<xsd:element minOccurs="0" type="xsd:string"
name="order_customer_address" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</types>
<wsdl:message name="NewOperationResponse">
<wsdl:part name="NewOperationResponse"
type="tns:PurchaseOrder"></wsdl:part>
</wsdl:message>
<wsdl:message name="NewOperationRequest">
<wsdl:part name="NewOperationRequest" type="xsd:string"></wsdl:part>
</wsdl:message>
<wsdl:portType name="StetefullPurchaseOrderService">
<wsdl:operation name="NewOperation">
<wsdl:input message="tns:NewOperationRequest"/>
<wsdl:output message="tns:NewOperationResponse"/>
</wsdl:operation>
</wsdl:portType
<wsdl:binding name="StetefullPurchaseOrderServiceSOAP"
type="tns:StatefullPurchaseOrderService">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="NewOperation">
<wsdl:input></wsdl:input>
<wsdl:output></wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="StetefullPurchaseOrderService">
<wsdl:port name="StetefullPurchaseOrderServiceSOAP"
binding="tns:StatefullPurchaseOrderServiceSOAP">
<soap:address
location=" http://localhost:6666/dimension/StetefullPurchaseOrderServic e"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
*******************End of target WSDL***********************************

thanks for your feedback

regards,
Bala

Ed Merks wrote:
> Bala,
>
> Definitely you've not clearly stated what you want. Since XMI can be
> used to serialize anything, you've basically asked, given an XML file
> that's an XMI serialzation of mystery model x, how do I create a WSDL
> for it? I'd suggest providing more detail.
>
>
> user@domain.invalid wrote:
>> Hi Merks,
>>
>> Thanks a lot for the reply.
>> I think I have not clearly stated my problem.
>> I want to generate WSDL(not XSD) file from XMI.
>>
>>
>> Regards
>> Bala
>>
>> Ed Merks wrote:
>>> Bala,
>>>
>>> EMF can generate an XML Schema from an Ecore model. I.e., given a
>>> .genmodel, you can right click and invoke "Export Model..." to export
>>> a schema. Its implemented by org.eclipse.xsd.ecore.EcoreSchemaBuilder.
>>>
>>>
>>> Balamurugan Easwaran wrote:
>>>> Hi,
>>>>
>>>> Is there any way to Generate WSDL from XMI ?
>>>> Does EMF Helps generate WSDL ?
>>>>
>>>> Regards
>>>> Bala
Re: WSDL Generation [message #177421 is a reply to message #177413] Fri, 18 August 2006 15:31 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Bala,

No, EMF only has support for generating the <xsd:schema> part of what
you show below. With EMF 2.2, the operations will be encoded as
annotations within that schema. It would be a very interesting thing to
generate a WSDL from the operations; I know very little about WSDL.
Looking at how the EcoreSchemaBuilder works and using the WSDL model, it
definitely should be possible to do something like what you are
suggesting. It would make a very interesting project. Probably folks
would want to do the inverse as well...


user@domain.invalid wrote:
> Ed,
>
> your suggestion :-
> EMF can generate an XML Schema from an Ecore model.I.e., given a
> *.genmodel, you can right click and invoke "Export Model..." to export
> a schema. Its implemented by org.eclipse.xsd.ecore.EcoreSchemaBuilder.
>
> my question :-
> An Ecore model can represent a DataStructure and a set of Operations
> where the DataStructure can be serialized as an w3c Schema.In that way
> can an Ecore model also be serialized as WSDL Document ?.
>
> Iam attaching the source EMF model serialized as an .xmi and target
> WSDL which i want.
>
> ******************source xmi ************************************
> <?xml version="1.0" encoding="UTF-8"?>
> <ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="model"
> nsURI="http://www.orangescape.com"
> nsPrefix="com.orangescape.model.PurchaseOrder">
> <eClassifiers xsi:type="ecore:EClass" name="StatelessService">
> <eOperations name="New">
> <eAnnotations source="operationInfo">
> <details key="Name" value="New"/>
> <details key="Size" value="10"/>
> <details key="Visible" value="true"/>
> <details key="Image" value="c:\sample.gif"/>
> </eAnnotations>
> </eOperations>
> <eClassifiers xsi:type="ecore:EClass" name="PurchaseOrder">
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> name="po_date">
> <eType xsi:type="ecore:EDataType"
> href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> name="ordering_customer_name">
> <eType xsi:type="ecore:EDataType"
> href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> name="order_customer_address">
> <eType xsi:type="ecore:EDataType"
> href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> </eStructuralFeatures>
> </eClassifiers>
> </ecore:EPackage>
> ******************End of source xmi *****************************
>
> *******************target WSDL************************************
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions name="StetefullPurchaseOrderService"
> targetNamespace=" http://dimension.PO.Service.StatefulService/StatefulPurchase OrderService/"
> xmlns:tns=" http://dimension.PO.Service.StatefulService/StatefulPurchase OrderService/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
> <types>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:com.orangescape.model.PurchaseOrder="http://www.orangescape.com"
> xmlns:xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> targetNamespace="http://www.orangescape.com">
> <xsd:complexType name="PurchaseOrder">
> <xsd:sequence>
> <xsd:element minOccurs="0" type="xsd:string"
> name="po_date" maxOccurs="1" />
> <xsd:element minOccurs="0" type="xsd:string"
> name="ordering_customer_name" maxOccurs="1" />
> <xsd:element minOccurs="0" type="xsd:string"
> name="order_customer_address" maxOccurs="1" />
> </xsd:sequence>
> </xsd:complexType>
> </xsd:schema>
> </types>
> <wsdl:message name="NewOperationResponse">
> <wsdl:part name="NewOperationResponse"
> type="tns:PurchaseOrder"></wsdl:part>
> </wsdl:message>
> <wsdl:message name="NewOperationRequest">
> <wsdl:part name="NewOperationRequest"
> type="xsd:string"></wsdl:part>
> </wsdl:message>
> <wsdl:portType name="StetefullPurchaseOrderService">
> <wsdl:operation name="NewOperation">
> <wsdl:input message="tns:NewOperationRequest"/>
> <wsdl:output message="tns:NewOperationResponse"/>
> </wsdl:operation>
> </wsdl:portType
> <wsdl:binding name="StetefullPurchaseOrderServiceSOAP"
> type="tns:StatefullPurchaseOrderService">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
> <wsdl:operation name="NewOperation">
> <wsdl:input></wsdl:input>
> <wsdl:output></wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="StetefullPurchaseOrderService">
> <wsdl:port name="StetefullPurchaseOrderServiceSOAP"
> binding="tns:StatefullPurchaseOrderServiceSOAP">
> <soap:address
> location=" http://localhost:6666/dimension/StetefullPurchaseOrderServic e"/>
>
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> *******************End of target WSDL***********************************
>
> thanks for your feedback
>
> regards,
> Bala
>
> Ed Merks wrote:
>> Bala,
>>
>> Definitely you've not clearly stated what you want. Since XMI can be
>> used to serialize anything, you've basically asked, given an XML file
>> that's an XMI serialzation of mystery model x, how do I create a WSDL
>> for it? I'd suggest providing more detail.
>>
>>
>> user@domain.invalid wrote:
>>> Hi Merks,
>>>
>>> Thanks a lot for the reply.
>>> I think I have not clearly stated my problem.
>>> I want to generate WSDL(not XSD) file from XMI.
>>>
>>>
>>> Regards
>>> Bala
>>>
>>> Ed Merks wrote:
>>>> Bala,
>>>>
>>>> EMF can generate an XML Schema from an Ecore model. I.e., given a
>>>> .genmodel, you can right click and invoke "Export Model..." to
>>>> export a schema. Its implemented by
>>>> org.eclipse.xsd.ecore.EcoreSchemaBuilder.
>>>>
>>>>
>>>> Balamurugan Easwaran wrote:
>>>>> Hi,
>>>>>
>>>>> Is there any way to Generate WSDL from XMI ?
>>>>> Does EMF Helps generate WSDL ?
>>>>>
>>>>> Regards
>>>>> Bala
Previous Topic:WSDL Generation
Next Topic:Adapting XmlMultiPageEditorPart
Goto Forum:
  


Current Time: Tue Apr 23 12:54:07 GMT 2024

Powered by FUDForum. Page generated in 0.03999 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top