Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 95083 invoked from network); 24 Jan 2006 13:40:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jan 2006 13:40:04 -0000 Received: (qmail 14529 invoked by uid 500); 24 Jan 2006 13:40:03 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 14512 invoked by uid 500); 24 Jan 2006 13:40:02 -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 14501 invoked by uid 99); 24 Jan 2006 13:40:02 -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 05:40:02 -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 [164.8.100.5] (HELO goban.uni-mb.si) (164.8.100.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2006 05:40:01 -0800 Received: from localhost (localhost [127.0.0.1]) by goban.uni-mb.si (Postfix) with ESMTP id 152E529012B for ; Tue, 24 Jan 2006 14:39:36 +0100 (CET) Received: from localhost ([127.0.0.1]) by localhost (goban.uni-mb.si [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01105-01-26 for ; Tue, 24 Jan 2006 14:39:28 +0100 (CET) Received: from RCUM.UNI-MB.SI (rcum.uni-mb.si [164.8.2.10]) by goban.uni-mb.si (Postfix) with ESMTP id AD8F72900E5 for ; Tue, 24 Jan 2006 14:39:28 +0100 (CET) Received: from Avebury (avebury.uni-mb.si [164.8.22.42]) by rcum.uni-mb.si (PMDF V6.0-025 #45903) with SMTP id <01LY5B3G76FI001LUM@rcum.uni-mb.si> for axis-c-user@ws.apache.org; Tue, 24 Jan 2006 14:39:28 +0100 Date: Tue, 24 Jan 2006 14:39:42 +0100 From: =?iso-8859-2?Q?Toma=BE_Rotovnik?= Subject: Re: deserialization ?? To: Apache AXIS C User List Message-id: <006b01c620eb$a18ccb00$421610ac@Avebury> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Mailer: Microsoft Outlook Express 6.00.2900.2180 Content-type: multipart/alternative; boundary="Boundary_(ID_F/0FI12e5HRfefBAJ7Sx2w)" X-Priority: 3 X-MSMail-priority: Normal References: <000e01c620c8$cae37490$d200a8c0@lexus> <005c01c620ca$1949fe00$421610ac@Avebury> <000c01c620cb$5ffcf0e0$d200a8c0@lexus> X-Virus-Scanned: by amavisd-new / Sophos+Sophie & ClamAV at goban.uni-mb.si X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. --Boundary_(ID_F/0FI12e5HRfefBAJ7Sx2w) Content-type: text/plain; charset=iso-8859-2 Content-transfer-encoding: quoted-printable Then just first test if p_idInstalacije is NULL (I did so). I beleive that "idInstalacije" should not be null, because you send some = value. I think I also have some problems with correct order of sending = parameters. In your case you need to have the next order of sending = parameters: idInstalacije idUsr jezik shema If you have that order than the problem could be in xsd__int variable. = You should check max and min value that can be asigned (I have problems = with that also) ----- Original Message -----=20 From: Primo=BE F=FChrer=20 To: Apache AXIS C User List=20 Sent: Tuesday, January 24, 2006 10:48 AM Subject: Re: deserialization ?? 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 --Boundary_(ID_F/0FI12e5HRfefBAJ7Sx2w) Content-type: text/html; charset=iso-8859-2 Content-transfer-encoding: quoted-printable
Then just first test if = p_idInstalacije is=20 NULL (I did so).
 
I beleive that = "idInstalacije" should not=20 be null, because you send some value. I think I also have some problems = with=20 correct order of sending parameters. In your case you need to have the = next=20 order of sending parameters:
 
idInstalacije
idUsr
jezik
shema
 
If you have that order than the = problem could=20 be in xsd__int variable. You should check max and min value that = can be=20 asigned (I have problems with that also)
 
 
 
----- Original Message -----
From:=20 Primo=BE=20 F=FChrer
Sent: Tuesday, January 24, 2006 = 10:48=20 AM
Subject: Re: deserialization = ??

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=20 the line :
xsd__int* p_idInstalacije =3D = (pIWSDZ->getElementAsInt
 
whole method:
 
int = Axis_DeSerialize_UserPrijava(UserPrijava*=20 param, IWrapperSoapDeSerializer*=20 pIWSDZ)
{
 try
 {
  xsd__int* = p_idInstalacije=20 =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 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 =
To: Apache AXIS C User = List
Sent: Tuesday, January 24, = 2006 10:30=20 AM
Subject: deserialization = ??

i'm using web service for login, = when i=20 invoke it it creates next request and get response:(As response = must=20 return id_usr =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
 
 
 
 
 
 
 
 
--Boundary_(ID_F/0FI12e5HRfefBAJ7Sx2w)--