Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
We have domain.objects defined as XML Schemas, which have been deployed as POJOs with JaxB annotations for marshaling / unmarshaling during WS SOAP cals to an app server (jboss, tomcat, tibco, ...). When creating the WSDL, is it possible to import the schema from a location instead of defining them outright within the WSDL during design time? Also, why can't I import an XML Schema from a .xsd files within Talend ESB Studio?
The reason is that we have many services using these objects that are still in a state of change, so instead of modifying each WSDL, I would only have to change the XSD schema within Metadata or my reference folder containing my schemas.
For example, use the following:
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.rst2.com/service/"
targetNamespace="http://www.rst2.com/service/"
>
targetNamespace="http://www.rst2.com/service/" version="1.0"
xmlns:tns="http://www.rst2.com/service/"
xmlnsrd="http://www.rst2.com/Product"
xmlns:ens="urn:sobject.enterprise.soap.sforce.com" >
...
Instead of the fully defining the XSD types as:
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.rst1.com/service/"
targetNamespace="http://www.rst1.com/service/"
>
targetNamespace="http://www.rst1.com/Global" version="1.0"
xmlns:glb="http://www.rst1.com/Global" >
targetNamespace="http://www.rst1.com/Product" version="1.0"
xmlns:glb="http://www.rst1.com/Global"
xmlnsrd="http://www.rst1.com/Product" >
targetNamespace="http://www.rst1.com/service/" version="1.0"
xmlns:tns="http://www.rst1.com/service/"
xmlnsrd="http://www.rst1.com/Product"
xmlns:ens="urn:sobject.enterprise.soap.sforce.com" >
...
Cheers, JP
Hello.
Has anybody found a solution for this topic?
I have been working around this issue and have merged .xsd files into one single .wsdl . This has worked for simple projects but now I have to import an .xsd which also has another reference to another .xsd
Well, it doesn't seem to work with recursive references?
How come mule knows how to do this and I can not with the talend ESB 7.1?