This week's book giveaway is in the Web Services forum.
We're giving away four copies of Microservices in Action and have Morgan Bruce & Paulo A. Pereira on-line!
See this thread for details.
Win a copy of Microservices in Action this week in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

combining wsdl and retaining namespaces  RSS feed

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All,

I have a scenario where we have combined 2 wsdl files of two separate web services using Apache tool wsdlmerge.
In this combined wsdl we have introduced an additional operation called consolidatedOperation. The consolidatedOperation has an input called consolidatedInput and output parameter called consolidatedOutput.
consolidatedInput and consolidatedOutput are additional schema data types we have introduced combining data types from the schemas belonging to wsdl 1 and wsdl 2.
All this works fine and we deploy this consolidated web service on an ESB.

Using SOAPUI I try to open the 3 web services each represented by WSDL1, WSDL2 and Consolidated WSDL respectively

The SOAP request elements for WSDL1 and WSDL2 is generated in SOAPUI with all the necessary namespace attributes

<service1Input xsi:type="my:com_model_Service1Input" xs:type="type:com_model_Service1Input"></service1Input>
<service2Input xsi:type="my:com_model_Service2Input" xs:type="type:com_model_Service2Input"></service2Input>


but for the SOAP request pointing to the combined WSDL consolidated operation with consolidated input/output they look like this

<service1Input></service1Input>
<service2Input></service2Input>

My question here is how can i retain the namespace from the schemas of original wsdl's while creating the consolidated operation and consolidated input and output in the combined WSDL's.

Let me know your thoughts.


Thanks,



  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!