WSO2Con 2013 CFP Banner

How do I show my own WSDL when someone types '?wsdl' on my service?

Archived Content
This article is provided for historical perspective only, and may not reflect current conditions. Please refer to relevant product page for more up-to-date product information and resources.
Discuss this article on Stack Overflow
By Deepal Jayasingha
  • 31 May, 2006
  • Level: 
  • Reads: 5014

Q : How do I show my own WSDL when someone types '?wsdl' on my service?

Deepal Jayasingha

WSO2 Inc.

A : First you need to have a service element in the WSDL file equal to the actual service name, for example, if your service name is myService, then the WSDL file should have the following service element

<definitions >
.........................
<service name="myService">
</service>
</definitions>
Then you have to put the WSDL file into META-INF directory in the service archive file (if you have xsd files you can have them under same location).