axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomaž Rotovnik <>
Subject Re: deserialization ??
Date Tue, 24 Jan 2006 13:39:42 GMT
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:


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 ----- 
  From: Primož Führer 
  To: Apache AXIS C User List 
  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
= *p_idInstalacije, because p_idInstalacije has value null because of the line :
  xsd__int* p_idInstalacije = (pIWSDZ->getElementAsInt

  whole method:

  int Axis_DeSerialize_UserPrijava(UserPrijava* param, IWrapperSoapDeSerializer* pIWSDZ)
    xsd__int* p_idInstalacije = (pIWSDZ->getElementAsInt("idInstalacije",0));
    param->idInstalacije = *p_idInstalacije; //Error occurs here
      delete p_idInstalacije;
    xsd__int* p_idUsr = (pIWSDZ->getElementAsInt("idUsr",0));
    param->idUsr = *p_idUsr;
    delete p_idUsr;
    xsd__int* p_jezik = (pIWSDZ->getElementAsInt("jezik",0));
    param->jezik = *p_jezik;
    delete p_jezik;
    param->shema = pIWSDZ->getElementAsString("shema",0);

    ----- Original Message ----- 
    From: Tomaž Rotovnik 
    To: Apache AXIS C User List 
    Sent: Tuesday, January 24, 2006 10:39 AM
    Subject: Re: deserialization ??


    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

    ----- Original Message ----- 
      From: Primož Führer 
      To: Apache AXIS C User List 
      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 = 30 ,id_instalacije = 0,jezik = 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:


      POST /idoc/services/Prijava HTTP/1.1


      Content-Type: text/xml; charset=UTF-8

      SOAPAction: ""

      Content-Length: 462

      <?xml version='1.0' encoding='utf-8' ?>
      <SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:xsd=""
      <ns1:checkLogin xmlns:ns1="">
      <username xsi:type="xsd:string">primozf</username>
      <pswd xsi:type="xsd:string">primozf</pswd>


      HTTP/1.1 200 OK

      Content-Type: text/xml; charset=utf-8

      Transfer-Encoding: chunked

      Date: Tue, 24 Jan 2006 09:22:14 GMT

      Server: Apache Coyote/1.0


      <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv=""
xmlns:xsd="" xmlns:xsi=""><soapenv:Body><ns1:checkLoginResponse
soapenv:encodingStyle="" xmlns:ns1=""><checkLoginReturn
xsi:type="ns2:UserPrijava" xmlns:ns2="urn:Prijava">
          <idInstalacije xsi:type="soapenc:int" xmlns:soapenc="">0</idInstalacije>
          <idUsr xsi:type="soapenc:int" xmlns:soapenc="">30</idUsr>
          <jezik xsi:type="soapenc:int" xmlns:soapenc="">1</jezik>
          <shema xsi:type="soapenc:string" xsi:nil="true" xmlns:soapenc=""/>


View raw message