You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Bengali Bengali <be...@gmail.com> on 2005/12/13 11:45:32 UTC
About the operation element in server-config.wsdd
Hi,
I don't really understand what's the point of having an <operation> element
in the server-config.wsdd.
Actually, I generated my Axis stubs and skeletons from the WSDL2Java
utility.
The prefixes in the SOAP request and response are not what I expected and I
wanted
to tweak them in the <operation> element of the server-config.wsdd.
But when I have a look at the generated stub and skeleton of my web
Service
I see static initialization of operation description like this (extract of
the skeleton):
static {
_operations = new org.apache.axis.description.OperationDesc[1];
_initOperationDesc1();
}
private static void _initOperationDesc1(){
org.apache.axis.description.OperationDesc oper;
org.apache.axis.description.ParameterDesc param;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("call");
param = new org.apache.axis.description.ParameterDesc(new
javax.xml.namespace.QName("http://www.mycompany.com", "CallRq"),
org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName
("http://www.mycompany.com", "CallRqType"),
com.fis.infra.webservices.model.CallRqType.class, false, false);
oper.addParameter(param);
oper.setReturnType(new javax.xml.namespace.QName("
http://www.mycompany.com", "CallRsType"));
oper.setReturnClass(com.fis.infra.webservices.model.CallRsType.class
);
...}
So i don't really understand what's the point of <operation> element ?
Can anyone enlight me ?
Thanks in advance,
Luc
Re: About the operation element in server-config.wsdd
Posted by jayachandra <ja...@gmail.com>.
Don't assume that all that happens happens just with the code present in the
skeleton or stub code which we see. Tweak a configuration for example the
return type QName's namespace in server-config.wsdd and rehost the service
and see what you get on the tcpmon as the server response.
Thanks
Jaya
On 12/13/05, Bengali Bengali <be...@gmail.com> wrote:
>
> Hi,
> I don't really understand what's the point of having an <operation>
> element in the server-config.wsdd.
>
> Actually, I generated my Axis stubs and skeletons from the WSDL2Java
> utility.
> The prefixes in the SOAP request and response are not what I expected and
> I wanted
> to tweak them in the <operation> element of the server-config.wsdd.
>
> But when I have a look at the generated stub and skeleton of my web
> Service
> I see static initialization of operation description like this (extract of
> the skeleton):
>
> static {
> _operations = new org.apache.axis.description.OperationDesc[1];
> _initOperationDesc1();
> }
>
> private static void _initOperationDesc1(){
> org.apache.axis.description.OperationDesc oper;
> org.apache.axis.description.ParameterDesc param;
> oper = new org.apache.axis.description.OperationDesc();
> oper.setName("call");
> param = new org.apache.axis.description.ParameterDesc (new
> javax.xml.namespace.QName("http://www.mycompany.com", "CallRq"), org.apache.axis.description.ParameterDesc.IN
> <http://org.apache.axis.description.parameterdesc.in/>, new
> javax.xml.namespace.QName("http://www.mycompany.com", "CallRqType"),
> com.fis.infra.webservices.model.CallRqType.class, false, false);
> oper.addParameter (param);
> oper.setReturnType(new javax.xml.namespace.QName("
> http://www.mycompany.com", "CallRsType"));
> oper.setReturnClass(
> com.fis.infra.webservices.model.CallRsType.class );
> ...}
>
> So i don't really understand what's the point of <operation> element ?
> Can anyone enlight me ?
>
> Thanks in advance,
> Luc
>
>
>
--
-- Jaya
Re: About the operation element in server-config.wsdd
Posted by Anne Thomas Manes <at...@gmail.com>.
Try:
new javax.xml.namespace.QName("http://www.mycompany.com", "CallRq", "mc")
Anne
On 12/13/05, Bengali Bengali <be...@gmail.com> wrote:
>
> Hi,
> I don't really understand what's the point of having an <operation>
> element in the server-config.wsdd.
>
> Actually, I generated my Axis stubs and skeletons from the WSDL2Java
> utility.
> The prefixes in the SOAP request and response are not what I expected and
> I wanted
> to tweak them in the <operation> element of the server-config.wsdd.
>
> But when I have a look at the generated stub and skeleton of my web
> Service
> I see static initialization of operation description like this (extract of
> the skeleton):
>
> static {
> _operations = new org.apache.axis.description.OperationDesc[1];
> _initOperationDesc1();
> }
>
> private static void _initOperationDesc1(){
> org.apache.axis.description.OperationDesc oper;
> org.apache.axis.description.ParameterDesc param;
> oper = new org.apache.axis.description.OperationDesc();
> oper.setName("call");
> param = new org.apache.axis.description.ParameterDesc (new
> javax.xml.namespace.QName("http://www.mycompany.com", "CallRq"), org.apache.axis.description.ParameterDesc.IN
> , new javax.xml.namespace.QName("http://www.mycompany.com", "CallRqType"),
> com.fis.infra.webservices.model.CallRqType.class, false, false);
> oper.addParameter (param);
> oper.setReturnType(new javax.xml.namespace.QName("
> http://www.mycompany.com", "CallRsType"));
> oper.setReturnClass(
> com.fis.infra.webservices.model.CallRsType.class );
> ...}
>
> So i don't really understand what's the point of <operation> element ?
> Can anyone enlight me ?
>
> Thanks in advance,
> Luc
>
>
>
Re: About the operation element in server-config.wsdd
Posted by frantz <fr...@e-manation.com>.
Hi,
As far as I has understand the <operation> element in the
server-config.wsdd is a mapping description into the sever code and SOAP
messages.
For me, it is useful only if you don't use Axis server-side stubs.
I use it to make my server (deplouyed as a .jar file in Axis webapps)
properly generate fault messages.
--
Frantz
Bengali Bengali a écrit :
> Hi,
> I don't really understand what's the point of having an <operation>
> element in the server-config.wsdd.
>