You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by in...@sungard.com on 2008/10/07 13:43:56 UTC

Embed axis in libray

Hi,

I have a question regarding a project I'm working with. I want to embed
axis2c into a library that I've created. I want to make the library
available to the WS when invoke is called. Do you have any experience in
this or any guidelines?

 

Thank you

 

/Indra

 


RE: Axis2/c math client

Posted by in...@sungard.com.
Thanks I'm gonna try that

 

/Indra

 

________________________________

From: Rajika Kumarasiri [mailto:rajikacc@gmail.com] 
Sent: den 27 oktober 2008 17:25
To: Apache AXIS C Developers List
Subject: Re: Axis2/c math client

 

 

On Mon, Oct 27, 2008 at 9:50 PM, <in...@sungard.com> wrote:
hi, 
Try
printf("%s\n", axiom_node_to_string(node, env));

-Rajika

Hello!
Does anyone know how I can print a node and see what it contains?
For example I would like to print the axiom_node_t *node in axis2c
math-client main...


Regards
Indra


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org




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


Re: Axis2/c math client

Posted by Rajika Kumarasiri <ra...@gmail.com>.
On Mon, Oct 27, 2008 at 9:50 PM, <in...@sungard.com> wrote:
hi,
Try
printf("%s\n", axiom_node_to_string(node, env));

-Rajika

Hello!
> Does anyone know how I can print a node and see what it contains?
> For example I would like to print the axiom_node_t *node in axis2c
> math-client main...
>
>
> Regards
> Indra
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>
>


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

Re: Axis2/c math client

Posted by Nandika Jayawardana <ja...@gmail.com>.
You can use axiom_node_to_string function to get a string from an axiom
node.

Regards
Nandika

On Mon, Oct 27, 2008 at 9:50 PM, <in...@sungard.com> wrote:

> Hello!
> Does anyone know how I can print a node and see what it contains?
> For example I would like to print the axiom_node_t *node in axis2c
> math-client main...
>
>
> Regards
> Indra
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>
>


-- 
http://nandikajayawardana.blogspot.com/
WSO2 Inc: http://www.wso2.com

Re: checking if axis server has started

Posted by Damitha Kumarage <da...@gmail.com>.
Hi,

indra.sharma@sungard.com wrote:
> Hi!
> Is there a way to check if axis server has started?
>   
You can always do that by checking the return status. If this does not 
help please send what you have tried to see whether I can be of any help
thanks
Damitha
> I have two threads, one initiates the axis server and gets stuck which
> also makes the main thread to stop. I would like to somehow check if the
> server has started and then let the main thread know so it can continue
> running.
>
> Regards
> Indra
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>
>
>   


-- 
__________________________________________________________________

Damitha Kumarage
http://people.apache.org/
__________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


checking if axis server has started

Posted by in...@sungard.com.
Hi!
Is there a way to check if axis server has started?
I have two threads, one initiates the axis server and gets stuck which
also makes the main thread to stop. I would like to somehow check if the
server has started and then let the main thread know so it can continue
running.

Regards
Indra


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


RE: printing parts of a node

Posted by in...@sungard.com.
Thanks!

/Indra

-----Original Message-----
From: Uthaiyashankar [mailto:shankar@wso2.com] 
Sent: den 7 november 2008 05:15
To: Apache AXIS C Developers List
Subject: Re: printing parts of a node

indra.sharma@sungard.com wrote:
> I tried to understand how I could use the serialize sub tree method
but
> I don't...
> I know how to get the node values but I also need to get the node
name,
> how can I do this?
>   
Hi Indra,

try axiom_element_get_localname  and axiom_element_get_namespace

Regards,
Shankar.

> I'm very thankful for a reply
>
> Regards
> Indra
>
> -----Original Message-----
> From: Samisa Abeysinghe [mailto:samisa@wso2.com] 
> Sent: den 5 november 2008 15:57
> To: Apache AXIS C Developers List
> Subject: Re: printing parts of a node
>
> indra.sharma@sungard.com wrote:
>   
>> Hello!
>> I want to print the parameter names in a node and not the parameter
>> values. 
>> For example: 
>> <param1>1</param1><param2>3</param2> 
>> I want to print or get the hold of: param1 param2 but not 1 and 3
>>
>> Does anyone know how this can be done?
>>   
>>     
>
> This can be done using the serialize sub tree method. Please have a
look
>
> at the node header file.
>
> Samisa...
>   
>> /Indra
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>>   
>>
>>     
>
------------------------------------------------------------------------
>   
>> Internal Virus Database is out of date.
>> Checked by AVG - http://www.avg.com 
>> Version: 8.0.175 / Virus Database: 270.8.5/1759 - Release Date:
>>     
> 10/31/2008 4:10 PM
>   
>>   
>>     
>
>
>   


-- 
S.Uthaiyashankar
Software Architect
WSO2 Inc. 
http://wso2.com/ - "The Open Source SOA Company" 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Re: What are the configurable ws-security parameters for incoming

Posted by Manjula Peiris <ma...@wso2.com>.
On Thu, 2008-11-06 at 23:17 -0800, Vivian Wang wrote:
> The reference https://wso2.org/library/2702 really helps me a lot to understand the configurations. I've got another question though, give one configuration file, how can I configure several connections to different web servers for a single client? Can I have multiple configuration files and one for each connection? I imagine the configuration can be very different between connections to different servers.
> 
yes you can keep different configurations in different policy files.
Build policies from them and set to svc_client before invoking the
service.



> Thanks again!
> Vivian
> 
> >On Wed, 2008-11-05 at 10:30 -0800, Vivian Wang wrote:
> >> Thanks! 
> >> 
> >> But my question is really this: In WS-Policy, what parameters need to be or can be \
> >> configured for incoming message (the response message from a client point of view)? \
> >> I don't see much document in rampart/c site. From a user point of view, I would \
> >> like to see something like soapUI in which the configurable parameters for \
> >> WS-security are very clear. Is there anything like that in rampart/c in a \
> >> configuration file? 
> 
> >https://wso2.org/library/2702
> 
> 
> 
>       
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Re: What are the configurable ws-security parameters for incoming

Posted by Vivian Wang <vi...@yahoo.com>.
The reference https://wso2.org/library/2702 really helps me a lot to understand the configurations. I've got another question though, give one configuration file, how can I configure several connections to different web servers for a single client? Can I have multiple configuration files and one for each connection? I imagine the configuration can be very different between connections to different servers.

Thanks again!
Vivian

>On Wed, 2008-11-05 at 10:30 -0800, Vivian Wang wrote:
>> Thanks! 
>> 
>> But my question is really this: In WS-Policy, what parameters need to be or can be \
>> configured for incoming message (the response message from a client point of view)? \
>> I don't see much document in rampart/c site. From a user point of view, I would \
>> like to see something like soapUI in which the configurable parameters for \
>> WS-security are very clear. Is there anything like that in rampart/c in a \
>> configuration file? 

>https://wso2.org/library/2702



      

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Re: printing parts of a node

Posted by Uthaiyashankar <sh...@wso2.com>.
indra.sharma@sungard.com wrote:
> I tried to understand how I could use the serialize sub tree method but
> I don't...
> I know how to get the node values but I also need to get the node name,
> how can I do this?
>   
Hi Indra,

try axiom_element_get_localname  and axiom_element_get_namespace

Regards,
Shankar.

> I'm very thankful for a reply
>
> Regards
> Indra
>
> -----Original Message-----
> From: Samisa Abeysinghe [mailto:samisa@wso2.com] 
> Sent: den 5 november 2008 15:57
> To: Apache AXIS C Developers List
> Subject: Re: printing parts of a node
>
> indra.sharma@sungard.com wrote:
>   
>> Hello!
>> I want to print the parameter names in a node and not the parameter
>> values. 
>> For example: 
>> <param1>1</param1><param2>3</param2> 
>> I want to print or get the hold of: param1 param2 but not 1 and 3
>>
>> Does anyone know how this can be done?
>>   
>>     
>
> This can be done using the serialize sub tree method. Please have a look
>
> at the node header file.
>
> Samisa...
>   
>> /Indra
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>>   
>>
>>     
> ------------------------------------------------------------------------
>   
>> Internal Virus Database is out of date.
>> Checked by AVG - http://www.avg.com 
>> Version: 8.0.175 / Virus Database: 270.8.5/1759 - Release Date:
>>     
> 10/31/2008 4:10 PM
>   
>>   
>>     
>
>
>   


-- 
S.Uthaiyashankar
Software Architect
WSO2 Inc. 
http://wso2.com/ - "The Open Source SOA Company" 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


RE: printing parts of a node

Posted by in...@sungard.com.
I tried to understand how I could use the serialize sub tree method but
I don't...
I know how to get the node values but I also need to get the node name,
how can I do this?

I'm very thankful for a reply

Regards
Indra

-----Original Message-----
From: Samisa Abeysinghe [mailto:samisa@wso2.com] 
Sent: den 5 november 2008 15:57
To: Apache AXIS C Developers List
Subject: Re: printing parts of a node

indra.sharma@sungard.com wrote:
> Hello!
> I want to print the parameter names in a node and not the parameter
> values. 
> For example: 
> <param1>1</param1><param2>3</param2> 
> I want to print or get the hold of: param1 param2 but not 1 and 3
>
> Does anyone know how this can be done?
>   

This can be done using the serialize sub tree method. Please have a look

at the node header file.

Samisa...
> /Indra
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>   
>
------------------------------------------------------------------------
>
>
> Internal Virus Database is out of date.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.175 / Virus Database: 270.8.5/1759 - Release Date:
10/31/2008 4:10 PM
>
>   


-- 
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Re: printing parts of a node

Posted by Samisa Abeysinghe <sa...@wso2.com>.
indra.sharma@sungard.com wrote:
> Hello!
> I want to print the parameter names in a node and not the parameter
> values. 
> For example: 
> <param1>1</param1><param2>3</param2> 
> I want to print or get the hold of: param1 param2 but not 1 and 3
>
> Does anyone know how this can be done?
>   

This can be done using the serialize sub tree method. Please have a look 
at the node header file.

Samisa...
> /Indra
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>   
> ------------------------------------------------------------------------
>
>
> Internal Virus Database is out of date.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.175 / Virus Database: 270.8.5/1759 - Release Date: 10/31/2008 4:10 PM
>
>   


-- 
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


printing parts of a node

Posted by in...@sungard.com.
Hello!
I want to print the parameter names in a node and not the parameter
values. 
For example: 
<param1>1</param1><param2>3</param2> 
I want to print or get the hold of: param1 param2 but not 1 and 3

Does anyone know how this can be done?

/Indra


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Axis2/c math client

Posted by in...@sungard.com.
Hello!
Does anyone know how I can print a node and see what it contains?
For example I would like to print the axiom_node_t *node in axis2c
math-client main...


Regards
Indra


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Re: Embed axis in libray

Posted by Samisa Abeysinghe <sa...@wso2.com>.
indra.sharma@sungard.com wrote:
> I was wondering if there is a possibility to access the objects by
> aggregating them to, for example, the variable env (see heap) since env
> is passed through all the way to invoke?
>   

This sort of a thing in Axis2 is done either using the description 
hierarchy or the context hierarchy, setting the object as a property or 
a parameter.

env can be used to abstract out memory allocation, threading and the 
like, basically the platform specific stuff. See the header of env for 
details.
> To do this one needs to know where env is created, do you know where?
>   

Yes we know :) There are multiple places this is done. You can do a grep 
to find those on the code.

> Comparing this solution to changing the client interface, which do you
> believe is the best?
>   

You do not need to change the client interface at all. You can embed it 
as it is, using the above techniques, keeping the interface as it is. In 
other words, you do not need a single change to Axis2 to embed it 
wherever you wish.

Thanks,
Samisa...

> Sincerely
> Indra
>
> -----Original Message-----
> From: Samisa Abeysinghe [mailto:samisa@wso2.com] 
> Sent: den 7 oktober 2008 16:01
> To: Apache AXIS C Developers List
> Subject: Re: Embed axis in libray
>
> indra.sharma@sungard.com wrote:
>   
>> Hi,
>>
>> I have a question regarding a project I'm working with. I want to 
>> embed axis2c into a library that I've created. I want to make the 
>> library available to the WS when invoke is called. Do you have any 
>> experience in this or any guidelines?
>>
>>     
>
> We have done this many times, but we do not have any docs. You can embed
>
> the service client interface.
>
> Samisa...
>
>   
>>  
>>
>> Thank you
>>
>>  
>>
>> /Indra
>>
>>  
>>
>>
>>     
> ------------------------------------------------------------------------
>   
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com 
>> Version: 8.0.173 / Virus Database: 270.7.6/1711 - Release Date:
>>     
> 10/6/2008 5:37 PM
>   
>>   
>>     
>
>
>   
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-dev-help@ws.apache.org
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.173 / Virus Database: 270.7.6/1713 - Release Date: 10/7/2008 6:40 PM
>
>   


-- 
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


RE: Embed axis in libray

Posted by in...@sungard.com.
I was wondering if there is a possibility to access the objects by
aggregating them to, for example, the variable env (see heap) since env
is passed through all the way to invoke?

To do this one needs to know where env is created, do you know where?

Comparing this solution to changing the client interface, which do you
believe is the best?

Sincerely
Indra

-----Original Message-----
From: Samisa Abeysinghe [mailto:samisa@wso2.com] 
Sent: den 7 oktober 2008 16:01
To: Apache AXIS C Developers List
Subject: Re: Embed axis in libray

indra.sharma@sungard.com wrote:
>
> Hi,
>
> I have a question regarding a project I'm working with. I want to 
> embed axis2c into a library that I've created. I want to make the 
> library available to the WS when invoke is called. Do you have any 
> experience in this or any guidelines?
>

We have done this many times, but we do not have any docs. You can embed

the service client interface.

Samisa...

>  
>
> Thank you
>
>  
>
> /Indra
>
>  
>
>
------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.173 / Virus Database: 270.7.6/1711 - Release Date:
10/6/2008 5:37 PM
>
>   


-- 
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org



Re: Embed axis in libray

Posted by Samisa Abeysinghe <sa...@wso2.com>.
indra.sharma@sungard.com wrote:
>
> Hi,
>
> I have a question regarding a project I'm working with. I want to 
> embed axis2c into a library that I've created. I want to make the 
> library available to the WS when invoke is called. Do you have any 
> experience in this or any guidelines?
>

We have done this many times, but we do not have any docs. You can embed 
the service client interface.

Samisa...

>  
>
> Thank you
>
>  
>
> /Indra
>
>  
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.173 / Virus Database: 270.7.6/1711 - Release Date: 10/6/2008 5:37 PM
>
>   


-- 
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org