Hi Rajika,

First, thank you very much for your comments, I didn't realize that the library 
name had to match the service name.

Problem with the samples is that they do not align well with my use case. For 
example, only 1 sample seems to include a WSDL (Calculator) and the code for 
that sample does not look like it was generated from the WSDL using the WSDL2C 
tool (one way I know this is because this tool adds the "axis2_skel_" prefix to 
all of the generated stubs, and none of the Calculator code seems to have that 
prefix).

And the Calculator sample does not even work for me, when I try to use a Java 
client to access it the java client side throws an exception when trying to 
parse the XML response from the Calculator service (Exception in thread "main" 
javax.xml.ws.soap.SOAPFaultException: Invalid XML format in request), but I'll 
report that separately.

thanks,
Patrick

________________________________
From: Rajika Kumarasiri [mailto:rajika.kumaras...@gmail.com]
Sent: Friday, July 10, 2009 9:39 PM
To: Apache AXIS C Developers List
Subject: Re: services.xml confusion ...

hello Patrick,
You need to have the library name as same name as your service name.
For linux libIncSecurityService.so and for windows it should be 
IncSecurityService.dll. Have a look at the sample services.

-Rajika

On Sat, Jul 11, 2009 at 4:35 AM, Patrick Cosmo 
<pco...@incognito.com<mailto:pco...@incognito.com>> wrote:
I'm really confused about how to configure the services.xml, I've scoured the 
internet but nothing I've read seems very clear to me, most of it applies to 
Java and many of the examples are for a service with one method where the 
service and the method have the exact same name (e.g. "sort"), and the code in 
the samples was clearly not generated from a WSDL file using WSDL2C.

If this is a no-brainer for any of you and you're able to give me some quick 
guidance, I will give you a thousand thanks :-).

Let's start here:

    <service name="IncSecurityService">

My implementation library is named "incowsdlsecurity.dll", my service defined 
in the WSDL file is named "InSecurityService", and the code generated by WSDL2C 
seems to be named "axis2_svc_skel_IncSecurityService" (e.g. 
_svc_skel_IncSecurityService_free( ... ),   
axis2_svc_skel_IncSecurityService_invoke( ... ), 
axis2_svc_skel_IncSecurityService_init( ... ), etc.).

So, I don't know if my service name in the above XML element is 
"IncSecurityService", "axis2_svc_skel_IncSecurityService", or 
"incowsdlsecurity"?

    <parameter name="ServiceClass" 
locked="xsd:false">IncSecurityService</parameter>

Same thing here, what goes into the value for the above element?

and for operations, I have a single "login" call (in WSDL this is 2 messages: 
loginRequest and loginResponse), which has 4 "in parameters" (loginName, 
loginTime, authenticator, authenticatorType) and 2 "out parameters" 
(authenticationToken, errorCode).

So what do I configure for the <operation> element? :

    <operation name="login">
            <parameter name="loginName" > ??? </parameter>
            <parameter name="loginTime" > ??? </parameter>
            <parameter name="authenticator" > ??? </parameter>
            <parameter name="authenticatorType" > ??? </parameter>
            <parameter name="authenticationToken" > ??? </parameter>
            <parameter name="errorCode" > ??? </parameter>
    </operation>

I have no understanding of what goes in the above, or if what I wrote above is 
even remotely close. The stub generated by WSDL2C for the login call is this:

adb_loginResponse_t* axis2_skel_IncSecurityService_login(const axutil_env_t 
*env, adb_loginRequest_t* _loginRequest )

Again, appreciate any feedback on this. I've attached the WSDL and XSD file in 
case it is of any help.

Best regards,

Patrick Cosmo

Incognito Software Inc.
Senior Software Design Engineer
T: +1(604)678-2855
F: +1(604)688-4339
E: pco...@incognito.com<mailto:pco...@incognito.com>
www.incognito.com<http://www.incognito.com/>







--
http://wso2.org
http://llvm.org
http://www.minix3.org

Reply via email to