Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 74375 invoked from network); 24 Jan 2006 09:49:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jan 2006 09:49:54 -0000 Received: (qmail 37029 invoked by uid 500); 24 Jan 2006 09:49:53 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 36821 invoked by uid 500); 24 Jan 2006 09:49:53 -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 36810 invoked by uid 99); 24 Jan 2006 09:49:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2006 01:49:52 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.189.163.218] (HELO postman.i-rose.si) (193.189.163.218) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2006 01:49:51 -0800 Received: by postman.i-rose.si (Postfix, from userid 500) id C2B3A4540C6; Tue, 24 Jan 2006 10:48:47 +0100 (CET) Received: from lexus (unknown [193.189.189.36]) by postman.i-rose.si (Postfix) with SMTP id 671D4454009 for ; Tue, 24 Jan 2006 10:48:46 +0100 (CET) Message-ID: <000c01c620cb$5ffcf0e0$d200a8c0@lexus> From: =?iso-8859-2?Q?Primo=BE_F=FChrer?= To: "Apache AXIS C User List" References: <000e01c620c8$cae37490$d200a8c0@lexus> <005c01c620ca$1949fe00$421610ac@Avebury> Subject: Re: deserialization ?? Date: Tue, 24 Jan 2006 10:48:48 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0009_01C620D3.C1BC76E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on postman.i-rose.si X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.7 required=5.0 tests=ALL_TRUSTED,HTML_60_70, HTML_MESSAGE,NORMAL_HTTP_TO_IP autolearn=failed version=3.0.2 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C620D3.C1BC76E0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable The problem occurs just before delete variable, when it tries to set = param->idInstalacije =3D *p_idInstalacije, because p_idInstalacije has = value null because of the line : xsd__int* p_idInstalacije =3D (pIWSDZ->getElementAsInt whole method: int Axis_DeSerialize_UserPrijava(UserPrijava* param, = IWrapperSoapDeSerializer* pIWSDZ) { try { xsd__int* p_idInstalacije =3D = (pIWSDZ->getElementAsInt("idInstalacije",0)); param->idInstalacije =3D *p_idInstalacije; //Error occurs here delete p_idInstalacije; xsd__int* p_idUsr =3D (pIWSDZ->getElementAsInt("idUsr",0)); param->idUsr =3D *p_idUsr; delete p_idUsr; xsd__int* p_jezik =3D (pIWSDZ->getElementAsInt("jezik",0)); param->jezik =3D *p_jezik; delete p_jezik; param->shema =3D pIWSDZ->getElementAsString("shema",0); } ----- Original Message -----=20 From: Toma=BE Rotovnik=20 To: Apache AXIS C User List=20 Sent: Tuesday, January 24, 2006 10:39 AM Subject: Re: deserialization ?? Hi=20 The problem is in deleting allocated variables (calling delete or = free) The code should also be compiled as Multithreaded or Singlethreaded = DLL (run time library options). ----- Original Message -----=20 From: Primo=BE F=FChrer=20 To: Apache AXIS C User List=20 Sent: Tuesday, January 24, 2006 10:30 AM Subject: deserialization ?? i'm using web service for login, when i invoke it it creates next = request and get response:(As response must return id_usr =3D 30 = ,id_instalacije =3D 0,jezik =3D 1) problem is in deserialization(i think) where gives exception... acces violation at 0x000005. as it seems the client don't get back = values... What could be wrong: REQUEST ------------------------- POST /idoc/services/Prijava HTTP/1.1 Host: 192.168.0.210:8080 Content-Type: text/xml; charset=3DUTF-8 SOAPAction: "" Content-Length: 462 primozf primozf RESPONSE ---------------------------- HTTP/1.1 200 OK Content-Type: text/xml; charset=3Dutf-8 Transfer-Encoding: chunked Date: Tue, 24 Jan 2006 09:22:14 GMT Server: Apache Coyote/1.0 3ab 0 30 1 0 ------=_NextPart_000_0009_01C620D3.C1BC76E0 Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable
The problem occurs just before delete = variable,=20 when it tries to set param->idInstalacije =3D=20 *p_idInstalacije, because p_idInstalacije has value null = because of the=20 line :
xsd__int* p_idInstalacije =3D=20 (pIWSDZ->getElementAsInt
 
whole method:
 
int = Axis_DeSerialize_UserPrijava(UserPrijava*=20 param, IWrapperSoapDeSerializer*=20 pIWSDZ)
{
 try
 {
  xsd__int* = p_idInstalacije =3D=20 (pIWSDZ->getElementAsInt("idInstalacije",0));
  param->= ;idInstalacije=20 =3D *p_idInstalacije; //Error occurs here
    delete=20 p_idInstalacije;
  xsd__int* p_idUsr =3D=20 (pIWSDZ->getElementAsInt("idUsr",0));
  param->idUsr = =3D=20 *p_idUsr;
  delete p_idUsr;
  xsd__int* = p_jezik =3D=20 (pIWSDZ->getElementAsInt("jezik",0));
  param->jezik = =3D=20 *p_jezik;
  delete p_jezik;
  param->shema = =3D=20 pIWSDZ->getElementAsString("shema",0);
 
 }
----- Original Message -----
From:=20 Toma=BE=20 Rotovnik
Sent: Tuesday, January 24, 2006 = 10:39=20 AM
Subject: Re: deserialization = ??

Hi
 
The problem is in deleting allocated = variables=20 (calling delete or free)
 
The code should also be compiled as = Multithreaded=20 or Singlethreaded DLL (run time library options).
 
 
 
----- Original Message -----
From:=20 Primo=BE F=FChrer
Sent: Tuesday, January 24, = 2006 10:30=20 AM
Subject: deserialization = ??

i'm using web service for login, = when i invoke=20 it it creates next request and get response:(As response must return = id_usr=20 =3D 30 ,id_instalacije =3D 0,jezik =3D 1)
 
problem is in deserialization(i = think) where=20 gives exception...
acces violation at 0x000005. as it = seems the=20 client don't get back values... What could be wrong:
 
REQUEST
-------------------------
 
POST /idoc/services/Prijava=20 HTTP/1.1
 
Host: = 192.168.0.210:8080
 
Content-Type: text/xml;=20 charset=3DUTF-8
 
SOAPAction: ""
 
Content-Length: 462
 
 
 
<?xml version=3D'1.0' = encoding=3D'utf-8'=20 ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV=3D"http://schemas.xmlsoap= .org/soap/envelope/"=20 xmlns:xsd=3D"http://www.w3.org/2001/XMLSchem= a"=20 xmlns:xsi=3D"http://www.w3.org/2001= /XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:checkLog= in=20 xmlns:ns1=3D"http://192.168.0= .210:8080/idoc/services/Prijava">
<username=20 xsi:type=3D"xsd:string">primozf</username>
<pswd=20 = xsi:type=3D"xsd:string">primozf</pswd>
</ns1:checkLogin>= ;
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 
RESPONSE
----------------------------
 
HTTP/1.1 200 OK
 
Content-Type: text/xml;=20 charset=3Dutf-8
 
Transfer-Encoding: = chunked
 
Date: Tue, 24 Jan 2006 09:22:14=20 GMT
 
Server: Apache = Coyote/1.0
 
 
 
3ab
 
<?xml version=3D"1.0"=20 encoding=3D"UTF-8"?><soapenv:Envelope xmlns:soapenv=3D"http://schemas.xmlsoap= .org/soap/envelope/"=20 xmlns:xsd=3D"http://www.w3.org/2001/XMLSchem= a"=20 xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"><soapen= v:Body><ns1:checkLoginResponse=20 soapenv:encodingStyle=3D"http://schemas.xmlsoap= .org/soap/encoding/"=20 xmlns:ns1=3D"http://192.168.0.210:8080/idoc/services/Prijava"><checkLoginRetu= rn=20 xsi:type=3D"ns2:UserPrijava" = xmlns:ns2=3D"urn:Prijava">
    = <idInstalacije=20 xsi:type=3D"soapenc:int" xmlns:soapenc=3D"0'>htt= p://schemas.xmlsoap.org/soap/encoding/">0</idInstalacije>
    <idUsr=20 xsi:type=3D"soapenc:int" xmlns:soapenc=3D"30'>http://sch= emas.xmlsoap.org/soap/encoding/">30</idUsr>
    <jezik=20 xsi:type=3D"soapenc:int" xmlns:soapenc=3D"1'>http://sche= mas.xmlsoap.org/soap/encoding/">1</jezik>
    <shema=20 xsi:type=3D"soapenc:string" xsi:nil=3D"true" xmlns:soapenc=3D"'>http://schemas.xmls= oap.org/soap/encoding/"/>
</checkLoginReturn>
</ns1:checkLoginResponse>
</soapenv:Body>
</soapenv:Envelope>
 
0
 
 
 
 
 
 
 
 
------=_NextPart_000_0009_01C620D3.C1BC76E0--