Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 41843 invoked from network); 23 May 2008 18:07:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 May 2008 18:07:32 -0000 Received: (qmail 91070 invoked by uid 500); 23 May 2008 18:07:33 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 91054 invoked by uid 500); 23 May 2008 18:07:33 -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 91043 invoked by uid 99); 23 May 2008 18:07:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2008 11:07:32 -0700 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of zhan.xu@gmail.com designates 66.249.82.231 as permitted sender) Received: from [66.249.82.231] (HELO wx-out-0506.google.com) (66.249.82.231) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2008 18:06:44 +0000 Received: by wx-out-0506.google.com with SMTP id i31so614589wxd.28 for ; Fri, 23 May 2008 11:07:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=4qGHdfmbEZC549J9XcJD7FD+oKLmUWgSRHOPu/sqqiU=; b=Ubm/OueQV3cdv96JjKqx5mXBfUytnK+5HPv75hjJAcAlm8bh+pnY+03Jgx5POabTQR7hdkMyet0uhBoKsAcqhPL0QlvkGWohngn4zcHBWBGUt7t5EU9eZSwliPQdG5tib955kwX+QXCs/V1GsWDLBsPK2IjKHqiiAI6ReTlRcZA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jrKOM7yxgBwofJ/2CmTSfUnoXh3Dh6mXUBMAos+BxWg0y/M5n36NWQ+snP12U6ppHUHyHJGckqgWAlINaHtbCR6XlbxhIvx9y4sZ9NXpqctxE3O9X7bayUArLNrTqtXu/XmzG3O6gyTcnGUjKgAJuEiUdW0GXtPeMnLVYFNvAMw= Received: by 10.114.144.1 with SMTP id r1mr2119010wad.140.1211566019668; Fri, 23 May 2008 11:06:59 -0700 (PDT) Received: by 10.115.74.20 with HTTP; Fri, 23 May 2008 11:06:59 -0700 (PDT) Message-ID: <6a32e3e10805231106u63be123bk912d0d2a202904fe@mail.gmail.com> Date: Fri, 23 May 2008 14:06:59 -0400 From: "Zhan Xu" To: "Apache AXIS C User List" Subject: Re: Newbie question: Hello client program can not working against IIS + ASP.Net In-Reply-To: <4834F871.9060603@wso2.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6a32e3e10805211144q65afdee4y5ee543a7a52460da@mail.gmail.com> <4834F871.9060603@wso2.com> X-Virus-Checked: Checked by ClamAV on apache.org Shankar: Sorry for the late response and thanks a lot for your kind helps! Now I got an idea of what's wrong. Zhan Xu On 5/22/08, Uthaiyashankar wrote: > Hi, > > The sample was written to handle response > > Hello Client! > > > But asp.net is returning the reply as > > > string > > > > Note that, "greetResult" element is under "greetResponse". becuause of > this, axiom_node_get_node_type(service_greeting_node, env) > return you AXIOM_ELEMENT > > you can modify service to return the response as > string, or you can modify > client to access "greetResult" node and then extract "string" from it. > > Regards, > Shankar > > > > Zhan Xu wrote: > > > > > Hi, > > > > First, many thanks in advance for reading my question. I'm new to > > Axis2/C. I am trying to make a simple 'hello' service work. > > > > I followed the 'Quick Start Guide' > > > (http://ws.apache.org/axis2/c/docs/axis2c_manual.html#quick_start) > to > > create a hello service with greet operation. After compiling the > > client code (hello.c) and running axis2_http_server, all of them work > > as expected. > > > > Now I created an ASP.Net web service: > > > > http://MyIISServer/hello/Service.asmx and have a define a > 'greet' operation. > > > > I modified the client code (hello.c) and change the endpoint to > > http://MyIISServer/hello/Service.asmx instead of > > http://localhost:9090/axis2/services/hello but it's not > working. > > > > Go further inside the code, I found that the problem rooted from > > function const axis2_char_t * process_om_response(). > > There is a statement > > if (service_greeting_node && > > axiom_node_get_node_type(service_greeting_node, env) == > AXIOM_TEXT) { > > ..... > > } > > > > Inserting some debug code, I found that the return of > > axiom_node_get_node_type(service_greeting_node, env) is > always > > AXIOM_ELEMENT instead of AXIOM_TEXT. Thus, it will not return the > > 'hello' string from IIS server. > > > > Any ideas? > > > > The following is the soap definition: > > > > SOAP 1.1 > > > > The following is a sample SOAP 1.1 request and response. The > > placeholders shown need to be replaced with actual values. > > > > POST /hello/Service.asmx HTTP/1.1 > > Host: MyIISServer > > Content-Type: text/xml; charset=utf-8 > > Content-Length: length > > SOAPAction: "http://tempuri.org/greet" > > > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > > > > > > string > > > > > > > > > > HTTP/1.1 200 OK > > Content-Type: text/xml; charset=utf-8 > > Content-Length: length > > > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > > > > > > string > > > > > > > > > > SOAP 1.2 > > > > The following is a sample SOAP 1.2 request and response. The > > placeholders shown need to be replaced with actual values. > > > > POST /hello/Service.asmx HTTP/1.1 > > Host: MyIISServer > > Content-Type: application/soap+xml; charset=utf-8 > > Content-Length: length > > > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> > > > > > > string > > > > > > > > > > HTTP/1.1 200 OK > > Content-Type: application/soap+xml; charset=utf-8 > > Content-Length: length > > > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> > > > > > > string > > > > > > > > > > Zhan Xu > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > axis-c-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-c-user-help@ws.apache.org > > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > axis-c-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-c-user-help@ws.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-user-help@ws.apache.org