Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 45390 invoked from network); 14 Dec 2005 01:44:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Dec 2005 01:44:20 -0000 Received: (qmail 73865 invoked by uid 500); 14 Dec 2005 01:44:19 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 73852 invoked by uid 500); 14 Dec 2005 01:44:19 -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 73841 invoked by uid 99); 14 Dec 2005 01:44:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2005 17:44:19 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of samisa.abeysinghe@gmail.com designates 64.233.162.196 as permitted sender) Received: from [64.233.162.196] (HELO zproxy.gmail.com) (64.233.162.196) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2005 17:44:18 -0800 Received: by zproxy.gmail.com with SMTP id f1so1761342nzc for ; Tue, 13 Dec 2005 17:43:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=V3uc3ljNrDnIDYuVoUxJWM97CoWJ5KhRWPncbuoc0CVmNMM5YwVF7D0lOPNpI4QgDYAKF54HeE8KB75dPdyIMxhwaPqVksbwje3UhSyAEbr3/o85ikq0bEd7Q0vnxbujvCcFn6iSdrwg4BZmFmFm3vlYP90TPRu/n1HPEWmRceg= Received: by 10.36.74.2 with SMTP id w2mr3818nza; Tue, 13 Dec 2005 17:43:56 -0800 (PST) Received: from ?192.168.1.151? ( [220.247.231.98]) by mx.gmail.com with ESMTP id 8sm5457nzn.2005.12.13.17.43.54; Tue, 13 Dec 2005 17:43:56 -0800 (PST) Message-ID: <439F78C6.1000803@gmail.com> Date: Wed, 14 Dec 2005 07:43:34 +0600 From: Samisa Abeysinghe User-Agent: Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Apache AXIS C User List Subject: Re: AxisException 72: Cannot deserialize the requested element References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Obviously the problem is in the use of "Gestor.testResponse" by the generated code to validate the message. The response just have "testResponse" not "Gestor.testResponse". The WSDL has "Gestor.testResponse", may be this is a bug in generated code, the "Gestor." needs to be stripped off. Or may be it is a server side problem, "Gestor." needs to be included. You should be able to get it working by editing the generated code to: if(AXIS_SUCCESS == m_pCall->checkMessage("testResponse", "http://bsg.com.ar/gestor/wsdl/ "). BTW: What is your server side, Axis C++? Thanks, Samisa... Martin Mirad wrote: > Hi, I'm trying to get the response from the server but the axis call > fail when invoke this line from the stub generated by the WSDL2Ws tool: > > if(AXIS_SUCCESS == m_pCall->checkMessage("Gestor.testResponse", > "http://bsg.com.ar/gestor/wsdl/ ") > > I'm invoking the "test" method from the WSDL file. Although, I'm > tracing the route of both messages, request and response, and the > server is responding. Here are the messages. > > Request SOAP message : > ============================================================ > POST /gestor/services/urn:ServiceRequestHandler HTTP/1.1 > Host: 127.0.0.1:1234 > Content-Type: text/xml; charset=UTF-8 > SOAPAction: "urn:ServiceRequestHandler" > Content-Length: 431 > > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > param1 > param2 > > > > ============================================================ > > Response > ============================================================ > HTTP/1.1 200 OK > Content-Type: text/xml;charset=utf-8 > Transfer-Encoding: chunked > Date: Tue, 13 Dec 2005 19:36:29 GMT > Server: Apache-Coyote/1.1 > > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:ns1="http://bsg.com.ar/gestor/wsdl/"> > param1param2 > > > > ============================================================ > > And here is the WSDL file: > > ============================================================ > > > targetNamespace="http://bsg.com.ar/gestor/wsdl/" > > xmlns:wsdlns="http://bsg.com.ar/gestor/wsdl/" > xmlns:typens="http://bsg.com.ar" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:stk="http://schemas.microsoft.com/soap-toolkit/wsdl-extension" > > xmlns:dime='http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/' > > xmlns:ref='http://schemas.xmlsoap.org/ws/2002/04/reference/' > > xmlns:content='http://schemas.xmlsoap.org/ws/2002/04/content-type/' > > xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' > xmlns='http://schemas.xmlsoap.org/wsdl/'> > > > > > > > > xmlns="http://www.w3.org/2001/XMLSchema" > > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > elementFormDefault="qualified"> > > > > > type='xsd:string'/> > type='xsd:string'/> > > > > > > > base="SOAP-ENC:Array"> > > maxOccurs="unbounded" > > minOccurs="0" > > name="item" > > type="typens:KeyValuePair"/> > > ref="SOAP-ENC:arrayType" wsdl:arrayType="typens:KeyValuePair[]"/> > > > > > > > > name='serverTimeout' type='xsd:string'/> > type='xsd:string'/> > name='onlineRequired' type='xsd:string'/> > name='forwardable' type='xsd:string'/> > > type='xsd:string'/> > type='xsd:string'/> > > > > > > > type='xsd:int'/> > type='xsd:string'/> > type='xsd:string'/> > name='backendCode' type='xsd:int'/> > name='backendMessage' type='xsd:string'/> > name='backendOnline' type='xsd:boolean'/> > > > > > > > type='xsd:string'/> > type='xsd:string'/> > > > > > > > type='xsd:string'/> > type='xsd:string'/> > > > > > > > type='xsd:string'/> > type='xsd:string'/> > type='xsd:string'/> > > > > > > > type='xsd:string'/> > type='xsd:string'/> > type='xsd:string'/> > name='iteratorSize' type='xsd:int'/> > > > > > > > type='typens:Status'/> > type='xsd:int'/> > type='typens:TrxResultSet'/> > name='limitedRows' type='xsd:boolean'/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > transport="http://schemas.xmlsoap.org/soap/http"/ > > > > > > soapAction="urn:ServiceRequestHandler"/> > > > > namespace="urn:ServiceRequestHandler" > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > parts='user > passwd'/> > > > > namespace="urn:ServiceRequestHandler" > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > parts='return'/> > > > > > > soapAction="urn:ServiceRequestHandler"/> > > > > namespace="urn:ServiceRequestHandler" > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/ > > > > > > namespace="urn:ServiceRequestHandler" > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > parts='return'/> > > > > > > soapAction="urn:ServiceRequestHandler"/> > > > > namespace="urn:ServiceRequestHandler" > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > > parts='trxDefId params controls'/> > > > layout='http://schemas.xmlsoap.org/ws/2002/04/dime/open-layout' > wsdl:required='true' /> > > namespace="urn:ServiceRequestHandler" > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > parts='return'/> > > > > > > soapAction="urn:ServiceRequestHandler"/> > > > > namespace="urn:ServiceRequestHandler" > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > parts='user > passwd trxDefId params controls'/> > > > layout='http://schemas.xmlsoap.org/ws/2002/04/dime/open-layout' > wsdl:required='true' /> > > namespace="urn:ServiceRequestHandler" > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > parts='return'/> > > > > > > > > > > namespace="urn:ServiceRequestHandler" > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/ > > > > > namespace="urn:ServiceRequestHandler" > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > parts='return'/> > > > > > > > > > > > > > > binding="wsdlns:GestorBinding"> > location="http://desarr106pc:1234/gestor/services/urn:ServiceRequestHandler"/ > > > > > > > =========================================================== > > Please, If anybody can help me it will be very helpful. > > Thanks, > > __ > Martin Mirad > > > >