Skip to main content

Inheritance in web service

5 replies [Last post]
hemantborole
Offline
Joined: 2006-12-12
Points: 0

Hi,
I have created a wsdl file that has a inheritance structure in the schema. say class base, and class derived extends base.

I have a method called searchData with searchDataRequest as input and this is of the type base.
When I deploy this webservice and browse the wsdl file URL, the wsdl i see now has searchData(searchDataRequest) and searchData(searchDataRequest1) where
searchDataRequest is defined as type base and
searchDataRequest1 is defined as type derived

I do not want the searchDataRequest1 signature operation to be generated in the deployed wsdl, What do i do to avoid this multilple signatures in case of inheritance.
Please suggest.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
oleksiys
Offline
Joined: 2006-01-25
Points: 0

Hello.

Are you using JAX-WS as Webservice framework?

hemantborole
Offline
Joined: 2006-12-12
Points: 0

I am using Apache Axis on tomcat.

I am not sure if I understand that I am using JAXWS for framework.

oleksiys
Offline
Joined: 2006-01-25
Points: 0

I see, you're using Axis.

In case, if it's strong requirement for you to use Axis I would suggest to ask on Apache forum for an answer.
Otherwise I can advice you to look here [1]. And try to complete following steps:
1) Download NetBeans 5.5
2) Create WebApplication project
3) Using menu, create WebService from WSDL (the one you have)
4) Deploy it.

If you will have any problems-think we can help you to solve them.

[1] http://www.netbeans.org/kb/55/websvc-jax-ws.html

hemantborole
Offline
Joined: 2006-12-12
Points: 0

Hi,
Thanks for the response.
I dont see why this is a apache/netbeans issue. I think it should be irrespective of what environment or what server/ide I use, as long as I am complying to webservices standards.
Its not possible for me to switch from apache, nor can i switch to netbeans. I will try the axis forum.

Thank you again for the response.

oleksiys
Offline
Joined: 2006-01-25
Points: 0

It's not exactly apache/netbeans problem.
I propose you to try JAX-WS (which is Sun's implementation of Webservice framework) with Netbeans. Talking about standards in Webservice, think you will meet a lot of surprises in future :)
But if in your case switch is impossible - please try to find answer on apache forum.