[gSoap wsdl] Problem while execueting axis c++ client application

2006-01-26 Thread mohan devanoor
Note: forwarded message attached.
		  
What are the most popular cars? Find out at Yahoo! Autos 
		Bring words and photos together (easily) with 
PhotoMail  - it's free and works with Yahoo! Mail.--- Begin Message ---
  - i have created a wsdl using gsoap from another system with gsoap.  - copied the wsdl to my system having Apache 2 and axis c++ 1.5 which works fine(well configured with parser libraries and axis dll's)  - generated stubs n skeletons using wsdl2ws .  - compiled skeleton and created a dll. and deployed.  - compiled stub successfully and when execuiting it is displaying some error in     reading memory and when pressed ok it terminates     Iam attaching the wsdl file . can u please let me know were the fault is  Do you Yahoo!?With a free 1 GB, there's more in store with Yahoo! Mail.
		Do you Yahoo!? 
With a free 1 GB, there's more in store with Yahoo! Mail.
		Do you Yahoo!? 
With a free 1 GB, there's more in store with Yahoo! Mail.
http://172.16.100.4/axis/hello.wsdl";
 xmlns:tns="http://172.16.100.4/axis/hello.wsdl";
 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
 xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xmlns:xsd="http://www.w3.org/2001/XMLSchema";
 xmlns:ns="urn:hello"
 xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/";
 xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/";
 xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/";
 xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/";
 xmlns="http://schemas.xmlsoap.org/wsdl/";>



 http://schemas.xmlsoap.org/soap/envelope/";
  xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
  xmlns:ns="urn:hello"
  xmlns="http://www.w3.org/2001/XMLSchema";
  elementFormDefault="unqualified"
  attributeFormDefault="unqualified">
  http://schemas.xmlsoap.org/soap/encoding/"/>
  
  
   

 

   
  
  
  
   

 

   
  
 




 



 



 
  Service definition of function ns__welcome
  
  
 



 http://schemas.xmlsoap.org/soap/http"/>
 
  
  
 
  
  
 
  
 



 gSOAP 2.7.6c generated service definition
 
  http://localhost:80"/>
 



--- End Message ---


Errors in vc 6.0 project of sourcode

2006-01-26 Thread Jinshan Li
There are a lot of errors  in vc 6.0 project of sourcode.For Example:C:\projects\Lijinshan\soap\axisC++\src\axis-c-src-1-5-win32\axis-c-src-1-5-win32\vc-- 
http://www.goldensoft.net


RE: deserialization ??

2006-01-26 Thread Stettler, Robert
Not having followed all of the chain... so may not be related.  But I had 
issues where objects were returning NULL even though I could see them in the 
response via tcpmon.

In my case the server side wsdl changed and added fields.  The client side did 
not get regenerated.  So everything after the newly added field was returned as 
NULL.  I obtained a new wsdl from the server and regened the client and 
problems were resolved.

-Original Message-
From: Primož Führer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 26, 2006 2:38 AM
To: Apache AXIS C User List
Subject: Re: deserialization ??

... found out any about deserializating complex object...? :-)


- Original Message - 
From: "Adrian Dick" <[EMAIL PROTECTED]>
To: "Apache AXIS C User List" 
Sent: Tuesday, January 24, 2006 3:02 PM
Subject: Re: deserialization ??


> Hi,
>
> As has been suggested, it sounds like the deserializer has returned NULL,
> for a value (based on the code) which cannot be NULL.
> I can see from your SOAP message that a value is present, so something
must
> have happened in the deserializer.
>
> Can you provide the WSDL and SOAP request/responses messages to allow us
to
> further diagnose the cause?
>
>
> Adrian
> ___
> Adrian Dick ([EMAIL PROTECTED])
>
>
> Tomaž Rotovnik <[EMAIL PROTECTED]> wrote on 24/01/2006 13:39:42:
>
> > 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 -
> > 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)
> > {
> >  try
> >  {
> >   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 ??
> >
> > Hi
> >
> > 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 -
> > 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 0x05. 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=UTF-8
> >
> > SOAPAction: ""
> >
> > Content-Length: 462
> >
> >
> >
> > 
> >  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">
> > 
> >  xmlns:ns1="http://192.168.0.210:8080/idoc/services/Prijava";>
> > primozf
> > primozf
> > 
> > 
> > 
> >
> > RESPONSE
> > 
> >
> > 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
> >
> >
> >
> > 3ab
> >
> > http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.
> > org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> > ">http://192.168.0.
> > 210:8080/idoc/services/Prijava">
> > 0
> > http://schemas.
> > xmlsoap.org/soap/encoding/">30
> > http://schemas.
> > xmlsoap.org/soap/encoding/">1
> >