Re: [Axis2] soap serialization

2007-03-09 Thread Atanacio Reyes
This code could work, but if not, you can send te message to http://localhost, 
without server to answer and use the ~/tools/tcpmon to listen and display the 
message.

I think SOAP headers in SOAP MESSAGE are added in 
AXIS2_SVC_CLIENT_SEND_RECEIVE( ) function, but I not sure.

axiom_xml_writer_t *xml_writer = NULL;
axiom_output_t *om_output = NULL;
axis2_char_t *buffer = NULL;
axis2_op_client_t* op_client;
axis2_msg_ctx_t* mgg_ctx;
struct axiom_soap_envelope* envelope;

op_client = AXIS2_ SVC_CLIENT_GET_OP_CLIENT(svc_client, env);
msg_ctx = AXIS2_OP_CLIENT_GET_MSG_CTX(
op_client, env, AXIS2_WSDL_MESSAGE_OUT_VALUE);
envelope = AXIS2_MSG_CTX_GET_SOAP_ENVELOPE(msg_ctx, env);

xml_writer =
 axiom_xml_writer_create_for_memory(env, NULL, AXIS2_FALSE,  
AXIS2_FALSE,AXIS2_XML_PARSER_TYPE_BUFFER);
  om_output = axiom_output_create(env, xml_writer);
  AXIOM_SOAP_ENVELOPE_SERIALIZE(envelope, env, om_output, false);
  buffer = (axis2_char_t*)AXIOM_XML_WRITER_GET_XML(xml_writer, env);

- Original Message 
From: George Stanchev [EMAIL PROTECTED]
To: Apache AXIS C User List axis-c-user@ws.apache.org
Sent: Thursday, March 8, 2007 9:53:11 PM
Subject: RE: [Axis2] soap serialization

Acttually,

let me make sure I understand it correctly. I might have send the thanks
a bit too quick. That code snippet seem to serialize an axiom node.

What I need is to send the message - thus applying all handler
processing
involved in creating a SOAP message. What I care in particular is
applying all security, addressin and whatever handlers processing
a normal send does (for example it should create all the wsse headers).

Would the snippet you suggest do this?

Best Regards,
George

-Original Message-
From: George Stanchev [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 08, 2007 10:45 PM
To: Apache AXIS C User List
Subject: RE: [Axis2] soap serialization

Atanacio,

thanks a bunch! 

Best Regards,
George

-Original Message-
From: Atanacio Reyes [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 08, 2007 6:15 PM
To: Apache AXIS C User List
Subject: Re: [Axis2] soap serialization


  axiom_xml_writer_t *xml_writer = NULL;
  axiom_output_t *om_output = NULL;
  axis2_char_t *buffer = NULL;

  xml_writer =
 axiom_xml_writer_create_for_memory(env, NULL, AXIS2_FALSE,
AXIS2_FALSE, AXIS2_XML_PARSER_TYPE_BUFFER);
  om_output = axiom_output_create(env, xml_writer);
  AXIOM_NODE_SERIALIZE(node, env, om_output);
  buffer = (axis2_char_t*)AXIOM_XML_WRITER_GET_XML(xml_writer, env);


axiom_node_t* node, is the document to serialize;

- Original Message 
From: George Stanchev [EMAIL PROTECTED]
To: Apache AXIS C User List axis-c-user@ws.apache.org
Sent: Thursday, March 8, 2007 3:15:52 PM
Subject: [Axis2] soap serialization

Hi,

Another, probably basic, question: I need to serialize a SOAP call to a
string buffer without sending it anywhere. How do I this with axis2/c?
Can you give me some leads?

On the java side, I had to go through some hoops to get this - I had to
create a dummy transport that I used to reflect back the outbound
message when I was doing a call-out serialization. How can I do the same
thing in axis2/c?

Thanks!

George Stanchev





 

8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2] soap serialization

2007-03-08 Thread George Stanchev
Hi,

Another, probably basic, question: I need to serialize a SOAP call to a
string buffer
without sending it anywhere. How do I this with axis2/c? Can you give me
some leads?

On the java side, I had to go through some hoops to get this - I had to
create a 
dummy transport that I used to reflect back the outbound message when I
was doing
a call-out serialization. How can I do the same thing in axis2/c?

Thanks!

George Stanchev

**
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. Any 
unauthorized review, use, disclosure or distribution is prohibited. If you are 
not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] soap serialization

2007-03-08 Thread Atanacio Reyes

  axiom_xml_writer_t *xml_writer = NULL;
  axiom_output_t *om_output = NULL;
  axis2_char_t *buffer = NULL;

  xml_writer =
 axiom_xml_writer_create_for_memory(env, NULL, AXIS2_FALSE, 
AXIS2_FALSE, AXIS2_XML_PARSER_TYPE_BUFFER);
  om_output = axiom_output_create(env, xml_writer);
  AXIOM_NODE_SERIALIZE(node, env, om_output);
  buffer = (axis2_char_t*)AXIOM_XML_WRITER_GET_XML(xml_writer, env);

axiom_node_t* node, is the document to serialize;

- Original Message 
From: George Stanchev [EMAIL PROTECTED]
To: Apache AXIS C User List axis-c-user@ws.apache.org
Sent: Thursday, March 8, 2007 3:15:52 PM
Subject: [Axis2] soap serialization

Hi,

Another, probably basic, question: I need to serialize a SOAP call to a
string buffer
without sending it anywhere. How do I this with axis2/c? Can you give me
some leads?

On the java side, I had to go through some hoops to get this - I had to
create a 
dummy transport that I used to reflect back the outbound message when I
was doing
a call-out serialization. How can I do the same thing in axis2/c?

Thanks!

George Stanchev






 

Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Axis2] soap serialization

2007-03-08 Thread George Stanchev
Atanacio,

thanks a bunch! 

Best Regards,
George

-Original Message-
From: Atanacio Reyes [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 08, 2007 6:15 PM
To: Apache AXIS C User List
Subject: Re: [Axis2] soap serialization


  axiom_xml_writer_t *xml_writer = NULL;
  axiom_output_t *om_output = NULL;
  axis2_char_t *buffer = NULL;

  xml_writer =
 axiom_xml_writer_create_for_memory(env, NULL, AXIS2_FALSE,
AXIS2_FALSE, AXIS2_XML_PARSER_TYPE_BUFFER);
  om_output = axiom_output_create(env, xml_writer);
  AXIOM_NODE_SERIALIZE(node, env, om_output);
  buffer = (axis2_char_t*)AXIOM_XML_WRITER_GET_XML(xml_writer, env);


axiom_node_t* node, is the document to serialize;

- Original Message 
From: George Stanchev [EMAIL PROTECTED]
To: Apache AXIS C User List axis-c-user@ws.apache.org
Sent: Thursday, March 8, 2007 3:15:52 PM
Subject: [Axis2] soap serialization

Hi,

Another, probably basic, question: I need to serialize a SOAP call to a
string buffer without sending it anywhere. How do I this with axis2/c?
Can you give me some leads?

On the java side, I had to go through some hoops to get this - I had to
create a dummy transport that I used to reflect back the outbound
message when I was doing a call-out serialization. How can I do the same
thing in axis2/c?

Thanks!

George Stanchev






 


Now that's room service!  Choose from over 150,000 hotels in 45,000
destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. Any 
unauthorized review, use, disclosure or distribution is prohibited. If you are 
not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]