Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 58351 invoked from network); 22 Feb 2008 06:33:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Feb 2008 06:33:02 -0000 Received: (qmail 91343 invoked by uid 500); 22 Feb 2008 06:32:56 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 91327 invoked by uid 500); 22 Feb 2008 06:32:56 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 91316 invoked by uid 99); 22 Feb 2008 06:32:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2008 22:32:56 -0800 X-ASF-Spam-Status: No, hits=3.5 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [68.142.237.110] (HELO n3.bullet.mail.re3.yahoo.com) (68.142.237.110) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 22 Feb 2008 06:32:08 +0000 Received: from [68.142.237.87] by n3.bullet.mail.re3.yahoo.com with NNFMP; 21 Feb 2008 22:29:11 -0000 Received: from [216.252.122.218] by t3.bullet.re3.yahoo.com with NNFMP; 22 Feb 2008 06:32:28 -0000 Received: from [69.147.65.169] by t3.bullet.sp1.yahoo.com with NNFMP; 22 Feb 2008 06:32:28 -0000 Received: from [127.0.0.1] by omp504.mail.sp1.yahoo.com with NNFMP; 22 Feb 2008 06:32:28 -0000 X-Yahoo-Newman-Property: ymail-5 X-Yahoo-Newman-Id: 58897.64696.bm@omp504.mail.sp1.yahoo.com Received: (qmail 29973 invoked by uid 60001); 22 Feb 2008 06:32:27 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Message-ID; b=SIEz08kc/17YH4/p8B9wdgcrdgLiD7tLc5fEwHYRErlYqMk88s3AtxcrEkj+yXq5AjJT9YnkbZ++q2vp70C+vr+PaJSw/Cv6zJajHX+BUW6hYlXLbfwFAOnJ2VC8U6g9EAPfonx9j/+lo2iJVW6Nk+AxQCsZdMPmRPNfWTmdC5U=; Received: from [57.69.27.29] by web45707.mail.sp1.yahoo.com via HTTP; Thu, 21 Feb 2008 22:32:27 PST X-Mailer: YahooMailRC/818.31 YahooMailWebService/0.7.162 Date: Thu, 21 Feb 2008 22:32:27 -0800 (PST) From: Vivian Zhou Subject: transport sender value is NULL To: axis-c-dev@ws.apache.org Cc: axis-c-user@ws.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-672147827-1203661947=:28639" Message-ID: <862633.28639.qm@web45707.mail.sp1.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-672147827-1203661947=:28639 Content-Type: text/plain; charset=us-ascii Hi All, I have been experimenting using the AXIS2/c library. I am trying to send an XML input and receive back an XML by making a http/soap calls as a client. I I have followed the examples (I think) but I am still getting some errors. The log file says something like the following: ==================== [Thu Feb 21 22:11:34 2008] [debug] ..\..\src\core\engine\phase.c(122) axis2_handler_t *request_uri_based_dispatcher added to the index 0 of the phase Transport [Thu Feb 21 22:11:34 2008] [debug] ..\..\src\core\engine\phase.c(122) axis2_handler_t *addressing_based_dispatcher added to the index 1 of the phase Transport [Thu Feb 21 22:11:34 2008] [debug] ..\..\src\core\engine\phase.c(122) axis2_handler_t *soap_message_body_based_dispatcher added to the index 0 of the phase Dispatch [Thu Feb 21 22:11:34 2008] [debug] ..\..\src\core\engine\phase.c(122) axis2_handler_t *soap_action_based_dispatcher added to the index 1 of the phase Dispatch [Thu Feb 21 22:11:34 2008] [debug] ..\..\src\core\engine\phase.c(122) axis2_handler_t *dispatch_post_conditions_evaluator added to the index 0 of the phase PostDispatch [Thu Feb 21 22:11:34 2008] [debug] ..\..\src\core\engine\phase.c(122) axis2_handler_t *context_handler added to the index 1 of the phase PostDispatch [Thu Feb 21 22:11:34 2008] [debug] ..\..\src\core\deployment\conf_builder.c(233) no custom dispatching order found continue with default dispatching order [Thu Feb 21 22:11:34 2008] [debug] ..\..\src\core\deployment\conf_builder.c(384) module addressing found in axis2.xml [Thu Feb 21 22:11:34 2008] [error] ..\..\src\core\deployment\conf_builder.c(857) transport sender value is NULL, unable to continue [Thu Feb 21 22:11:34 2008] [error] ..\..\src\core\deployment\conf_builder.c(262) conf builder process transport senders failed, unable to continue [Thu Feb 21 22:11:34 2008] [error] ..\..\src\core\deployment\conf_init.c(228) dep engine load failed. conf value is NULL ============== I used the axis2.xml that comes with AXIS2 binary package without modification, so I think I am using http/soap. Can someone kindly suggest what I might do incorrectly? Thanks much. Vivi My code is like this: ================= .......... axutil_env_t * _env = axutil_env_create_all(log_file.c_str(), AXIS2_LOG_LEVEL_DEBUG); axiom_xml_reader_t *xml_reader = axiom_xml_reader_create_for_memory(_env, (void*)xmlString_in.c_str(), xmlString_in.size(), "utf-8", AXIS2_XML_PARSER_TYPE_BUFFER); axiom_stax_builder_t *om_builder = axiom_stax_builder_create(_env, xml_reader); axiom_document_t *document = axiom_stax_builder_get_document(om_builder, _env); axiom_node_t *root_node = axiom_document_get_root_element(document, _env); axiom_document_build_all(document, _env); string action = "job=TestOrder"; string operation = "TestOrder"; const axis2_char_t* endpoint_address = http://localhost:8088/WebServices/servlet/webservices?ver=2.0; const axis2_char_t *client_home = NULL; client_home = AXIS2_GETENV("AXIS2_HOME"); if (!client_home || !strcmp(client_home, "")) client_home = "../.."; axis2_svc_client_t *_wsf_service_client = axis2_svc_client_create(_env, client_home); axis2_endpoint_ref_t *endpoint_ref = axis2_endpoint_ref_create(_env, endpoint_address); /* Setup options */ axis2_options_t * _options = axis2_options_create(_env); axis2_options_set_to(_options, _env, endpoint_ref); axis2_options_set_soap_version(_options, _env, AXIOM_SOAP11); axis2_options_set_enable_rest(_options, _env, AXIS2_FALSE); axis2_status_t status = axis2_svc_client_set_options(_wsf_service_client, _env, _options); axiom_node_t * payload = root_node; if (axis2_options_get_soap_version(_options, _env) == AXIOM_SOAP11) { axutil_string_t * soap_action = axutil_string_create(_env, action.c_str()); status = axis2_options_set_soap_action(_options, _env, soap_action); axutil_string_free(soap_action, _env); } else { axutil_qname_t * qname = axutil_qname_create(_env, AXIS2_MODULE_ADDRESSING, NULL, NULL); //If I set the soap version to AXIOM_SOAP12, I will get Access voilation in the this statement. axis2_bool_t engaged = axis2_svc_is_module_engaged(axis2_svc_client_get_svc(_wsf_service_client, _env), _env, qname); axutil_qname_free(qname, _env); if (engaged) { status = axis2_options_set_action(_options, _env, action.c_str()); } } axiom_node_t * node; axutil_qname_t * qname = axutil_qname_create(_env, operation.c_str(), "", NULL); //Here node is return with null (0x00000000) node = axis2_svc_client_send_receive_with_op_qname(_wsf_service_client, _env, qname, payload); //node = axis2_svc_client_send_receive(_wsf_service_client, _env, payload); axutil_qname_free(qname, _env); ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs --0-672147827-1203661947=:28639 Content-Type: text/html; charset=us-ascii

Hi All,

 

I have been experimenting using the AXIS2/c library. I am trying to send an XML input and receive back an XML by making a http/soap calls as a client. I  I have followed the examples (I think) but I am still getting some errors. The log file says something like the following:

====================

[Thu Feb 21 22:11:34 2008] [debug] ..\..\src\core\engine\phase.c(122) axis2_handler_t *request_uri_based_dispatcher added to the index 0 of the phase Transport
[Thu Feb 21 22:11:34 2008] [debug] ..\..\src\core\engine\phase.c(122) axis2_handler_t *addressing_based_dispatcher added to the index 1 of the phase Transport
[Thu Feb 21 22:11:34 2008] [debug] ..\..\src\core\engine\phase.c(122) axis2_handler_t *soap_message_body_based_dispatcher added to the index 0 of the phase Dispatch
[Thu Feb 21 22:11:34 2008] [debug] ..\..\src\core\engine\phase.c(122) axis2_handler_t *soap_action_based_dispatcher added to the index 1 of the phase Dispatch
[Thu Feb 21 22:11:34 2008] [debug] ..\..\src\core\engine\phase.c(122) axis2_handler_t *dispatch_post_conditions_evaluator added to the index 0 of the phase PostDispatch
[Thu Feb 21 22:11:34 2008] [debug] ..\..\src\core\engine\phase.c(122) axis2_handler_t *context_handler added to the index 1 of the phase PostDispatch
[Thu Feb 21 22:11:34 2008] [debug] ..\..\src\core\deployment\conf_builder.c(233) no custom dispatching order found continue with default dispatching order
[Thu Feb 21 22:11:34 2008] [debug] ..\..\src\core\deployment\conf_builder.c(384) module addressing found in axis2.xml
[Thu Feb 21 22:11:34 2008] [error] ..\..\src\core\deployment\conf_builder.c(857) transport sender value is NULL, unable to continue
[Thu Feb 21 22:11:34 2008] [error] ..\..\src\core\deployment\conf_builder.c(262) conf builder process transport senders failed, unable to continue
[Thu Feb 21 22:11:34 2008] [error] ..\..\src\core\deployment\conf_init.c(228) dep engine load failed. conf value is NULL
==============

 

I used the axis2.xml that comes with AXIS2 binary package without modification, so I think I am using http/soap. Can someone kindly suggest what I might do incorrectly? Thanks much.

 

Vivi

 

My code is like this:

=================

.........

axutil_env_t * _env = axutil_env_create_all(log_file.c_str(), AXIS2_LOG_LEVEL_DEBUG);

axiom_xml_reader_t *xml_reader = axiom_xml_reader_create_for_memory(_env, (void*)xmlString_in.c_str(), xmlString_in.size(), "utf-8", AXIS2_XML_PARSER_TYPE_BUFFER);

axiom_stax_builder_t *om_builder = axiom_stax_builder_create(_env, xml_reader);

axiom_document_t *document = axiom_stax_builder_get_document(om_builder, _env);

axiom_node_t *root_node = axiom_document_get_root_element(document, _env);

axiom_document_build_all(document, _env);

 

string action = "job=TestOrder";

string operation = "TestOrder";

const axis2_char_t* endpoint_address = http://localhost:8088/WebServices/servlet/webservices?ver=2.0;

 

const axis2_char_t *client_home = NULL;

client_home = AXIS2_GETENV("AXIS2_HOME");

if (!client_home || !strcmp(client_home, ""))

client_home = "../..";

 

axis2_svc_client_t *_wsf_service_client = axis2_svc_client_create(_env, client_home);

axis2_endpoint_ref_t *endpoint_ref = axis2_endpoint_ref_create(_env, endpoint_address);

 

/* Setup options */

axis2_options_t * _options = axis2_options_create(_env);

axis2_options_set_to(_options, _env, endpoint_ref);

axis2_options_set_soap_version(_options, _env, AXIOM_SOAP11);

axis2_options_set_enable_rest(_options, _env, AXIS2_FALSE);

axis2_status_t status = axis2_svc_client_set_options(_wsf_service_client, _env, _options);

 

axiom_node_t * payload = root_node;

 

if (axis2_options_get_soap_version(_options, _env) == AXIOM_SOAP11)

{

    axutil_string_t * soap_action = axutil_string_create(_env, action.c_str());

    status = axis2_options_set_soap_action(_options, _env, soap_action);

    axutil_string_free(soap_action, _env);

}

else

{

    axutil_qname_t * qname = axutil_qname_create(_env, AXIS2_MODULE_ADDRESSING, NULL, NULL);

 

    //If I set the soap version to AXIOM_SOAP12, I will get Access voilation in the this statement. 

    axis2_bool_t engaged = axis2_svc_is_module_engaged(axis2_svc_client_get_svc(_wsf_service_client, _env), _env, qname);

 

    axutil_qname_free(qname, _env);

    if (engaged)   

    {

        status = axis2_options_set_action(_options, _env, action.c_str());

    }

}

 

axiom_node_t * node;

axutil_qname_t * qname = axutil_qname_create(_env, operation.c_str(), "", NULL);   

 

//Here node is return with null (0x00000000) 

 node = axis2_svc_client_send_receive_with_op_qname(_wsf_service_client, _env, qname, payload);

 //node = axis2_svc_client_send_receive(_wsf_service_client, _env, payload);

 

axutil_qname_free(qname, _env);

 



Never miss a thing. Make Yahoo your homepage. --0-672147827-1203661947=:28639--