You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Stephane Eybert <mi...@yahoo.se> on 2012/03/22 14:51:32 UTC

Display the method parameters in the BODY of the wsdl services list page

Hi,

I have a code first producer web service and the Apache CXF generated wsdl
services list page does not display the parameters of the methods.

If I use the header=true attribute in the  @WebParam annotation as in
 @WebParam(targetNamespace = "http://ws.nki.no/stasginn", header=true, mode
= Mode.IN, name = "ordrenr") int ordrenr, 
instead of 
			@WebParam(targetNamespace = "http://ws.nki.no/stasginn", mode = Mode.IN,
name = "ordrenr") int ordrenr, 

then the method parameters are displayed in the wsdl services list.

But they are displayed in theheader part.

I would like the parameters to be in the body part.

And, to be displayed in the services list page.

Stephane

--
View this message in context: http://cxf.547215.n5.nabble.com/Display-the-method-parameters-in-the-BODY-of-the-wsdl-services-list-page-tp5585941p5585941.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Display the method parameters in the BODY of the wsdl services list page

Posted by Daniel Kulp <dk...@apache.org>.
On Tuesday, March 27, 2012 01:24:20 PM Stephane Eybert wrote:
> So here the answer, provided on another post, by Daniel Kulp (take a bow
> Sir)

Added this to the FAQ:

http://cxf.apache.org/faq.html#FAQ-Thegeneratedwsdl%28GETrequestonthe%3Fwsdladdress%29doesn%27tcontainthemessages%2Ctypes%2CportType%2Cetc...WhatdidIdowrong%3F

I've answered this a few too many times, thus it must be an FAQ.  :-)

Dan



> 
> The cause of the problem was that the interface and the implementation of
> the web service, had different target namespaces.
> 
> Indeed, by default, the package is the targetNamespace meaning the
> implementation has a slightly different targetNamespace than its
> interface.
> 
> By specifying an identical targetNamespace for the two, the wsdl services
> list page can list the method parameters.
> 
> So I just added the following targetNamespace attributes to the interface
> and the implementation and the wsdl now displays the method parameters.
> 
> @WebService(targetNamespace = "http://ws.nki.no/sesam-ws-web/ginn")
> 
> And it worked.
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Display-the-method-parameters-in-the-BODY
> -of-the-wsdl-services-list-page-tp5585941p5598831.html Sent from the
> cxf-user mailing list archive at Nabble.com.
-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com


Re: Display the method parameters in the BODY of the wsdl services list page

Posted by Stephane Eybert <mi...@yahoo.se>.
So here the answer, provided on another post, by Daniel Kulp (take a bow Sir)

The cause of the problem was that the interface and the implementation of
the web service, had different target namespaces.

Indeed, by default, the package is the targetNamespace meaning the
implementation has a slightly different targetNamespace than its interface.

By specifying an identical targetNamespace for the two, the wsdl services
list page can list the method parameters.

So I just added the following targetNamespace attributes to the interface
and the implementation and the wsdl now displays the method parameters.

@WebService(targetNamespace = "http://ws.nki.no/sesam-ws-web/ginn")

And it worked.

--
View this message in context: http://cxf.547215.n5.nabble.com/Display-the-method-parameters-in-the-BODY-of-the-wsdl-services-list-page-tp5585941p5598831.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Display the method parameters in the BODY of the wsdl services list page

Posted by Stephane Eybert <mi...@yahoo.se>.
No one ?

--
View this message in context: http://cxf.547215.n5.nabble.com/Display-the-method-parameters-in-the-BODY-of-the-wsdl-services-list-page-tp5585941p5594640.html
Sent from the cxf-user mailing list archive at Nabble.com.