Deserialize complex arrays
Hi. I'm using axis-c-1.6B to build a web service. The client side send the next soap message: POST /axis/Calcot HTTP/1.1 Host: areyes:80 Content-Type: text/xml; charset=UTF-8 SOAPAction: "Calcot#contorno" Content-Length: 1414 http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> http://areyes/axis/Calcot";> http://areyes/axis/Calcot/xsd";> 40 40 40 http://www.w3.org/2001/06/soap-encoding"; xmlns:ns2="http://areyes/axis/Calcot/xsd"; enc:arrayType="ns2:forLado[2]"> 68 2105001131 31 1 0 15 73 2105001164 31 1 0 165 15 in order to deserialize the message the server execute this function: int Axis_DeSerialize_ParamArm(ParamArm* param, IWrapperSoapDeSerializer* pIWSDZ) { param->mman = (Caja*)pIWSDZ->getCmplxObject((void*)Axis_DeSerialize_Caja, (void*)Axis_Create_Caja,(void*)Axis_Delete_Caja, "mman", Axis_URI_Type); ParamForma_Array * array0 = new ParamForma_Array(); array0 = (ParamForma_Array *) pIWSDZ->getCmplxArray(array0, (void*)Axis_DeSerialize_ParamForma, (void*)Axis_Create_ParamForma, (void*)Axis_Delete_ParamForma, (void*)Axis_GetSize_ParamForma, "forLado",Axis_URI_Type); param->forLado = array0; int size ParamForma** tmp = param->forLado->get(size); xsd__float* p_puente = (pIWSDZ->getElementAsFloat("puente",0)); if(p_puente) param->puente = *p_puente; delete p_puente; return pIWSDZ->getStatus(); } the function getCmplxObject() is ok, but the function param->forLado->get(size), in the size parameter return 0, the functions: (void*)Axis_DeSerialize_ParamForma, (void*)Axis_Create_ParamForma, (void*)Axis_Delete_ParamForma, are not executed. the function getCmplxArray is not deserializing the forLadoArray. the server stop with segmentation fault, executing the function getElementAsFloat("puente",0)); What is wrong in the getCmplxArray() function?, Arguments?, or What is wrong in the soap message? any help is welcome. Atanacio Reyes. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
encoding
Hi! I'm using Axis C++ 1.6b for Windows (XP Professional). My Web Service implementation returns an xsd__string containing some Swedish signs (ISO-8859-1 charset). At the client side I read what is returned and every sign is not in the xsd__string, i.e. the whole xsd__string is not returned and there are faulty signs in it. How can I achieve a solution to this delicate problem? Does it have something to do with my encoding as UTF-8 in the .wsdl-file, from which it was built? Regards Magnus
Re: Compilation under Visual Studio
Hi, The Visual Studio, and also Visual C++ 6.0, project files are no longer be actively maintained and supported, as we make use of the ANT based system due to its better portability. Hence, your seeing errors with missing files. You will find the Visual C++ 6.0 project files appear to have been kept up-to-date, so it may be possible for you to ask Visual Studio to upgrade these in someway. If you're in a position to update these project files and donate back the updates one of the commiters can see they're included in SVN. Many Thanks, Adrian ___ Adrian Dick ([EMAIL PROTECTED]) "Kovgan, Peter" <[EMAIL PROTECTED]> wrote on 08/05/2006 15:59:30: > I have found Visual Studio project files under VC. > I have following errors trying to compile AxisDevelopment.sln (last > version I checked out just now): > > Error 91 fatal error C1083: Cannot open source file: '..\.. > \src\soap\XercesHandler.cpp': No such file or directory c1xx > Error 261 fatal error C1083: Cannot open source file: '..\.. > \src\soap\SoapParserXerces.cpp': No such file or directory c1xx > Error 262 fatal error C1083: Cannot open source file: '..\.. > \src\soap\SoapParserExpat.cpp': No such file or directory c1xx > Error 429 fatal error C1083: Cannot open source file: '..\.. > \src\soap\SoapInputSource.cpp': No such file or directory c1xx > > Where are missed files??? > What happens here? > > Thanks.
Deployment of Axis C++ & 2.0 vs. 1.6?
Hi, We are thinking about using axis-c++ in one of our current projects. During our analysis several questions about using Axis-c++ arose. It would be great if you could help us with some of our issues or point us to further information: - What is the suggested deployment scenario when using axis c++ in a multi-threaded server environment. As we understand you offer the option of using the mod interface to Apache or to use the SimpleAxisServer as a server hull for the deployed web-services. When no web-server functionality is needed which option is recommended. Or in other words: According to your experience which option is the more stable one? - In future versions of our product we might need to incorporate server functionality that shares state between the client and the server. Is there any support for session handling in the two deployment scenarios above? - On the axis-c++ website you mention that you are planning to release the final version 1.6 in mid march. Is 1.6 still developed or are you concentrating all your efforts on axis 2? Thanks in advance (and thanks for providing your great tool as well!!), Markus -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
Re: Deployment of Axis C++ & 2.0 vs. 1.6?
Hi, See some comments below. Regards, Adrian ___ Adrian Dick ([EMAIL PROTECTED]) [EMAIL PROTECTED] wrote on 10/05/2006 07:50:16: > Hi, > We are thinking about using axis-c++ in one of our current projects. During > our analysis several questions about using Axis-c++ arose. It would be great > if you could help us with some of our issues or point us to further > information: > > - What is the suggested deployment scenario when using axis c++ in a > multi-threaded server environment. As we understand you offer the option of > using the mod interface to Apache or to use the SimpleAxisServer as a server > hull for the deployed web-services. When no web-server functionality is > needed which option is recommended. Or in other words: According to your > experience which option is the more stable one? Generally, we would recommend using the mod interfaces, using Apache as the HTTP server. As the name suggests, SimpleAxisServer is a simple server implementation, basically sufficient to allow testing of the Axis server engine, so we wouldn't recommend its use in a production environment - though its simplicity could be very useful for help you understand how to use the Axis Server engine within your own environment, it is also relatively simply to modify for non-HTTP transport mechanisms. > - In future versions of our product we might need to incorporate server > functionality that shares state between the client and the server. Is there > any support for session handling in the two deployment scenarios above? > - On the axis-c++ website you mention that you are planning to release the > final version 1.6 in mid march. Is 1.6 still developed or are you > concentrating all your efforts on axis 2? The 1.6 final release has been delayed while fixing some bugs found in the 1.6 Beta, but it should be available soon. > > Thanks in advance (and thanks for providing your great tool as well!!), > Markus > > -- > "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
Re: Deployment of Axis C++ & 2.0 vs. 1.6?
hi, [EMAIL PROTECTED] wrote on 10/05/2006 07:50:16: > Hi, > We are thinking about using axis-c++ in one of our current projects. During > our analysis several questions about using Axis-c++ arose. It would be great > if you could help us with some of our issues or point us to further > information: > > - What is the suggested deployment scenario when using axis c++ in a > multi-threaded server environment. As we understand you offer the option of > using the mod interface to Apache or to use the SimpleAxisServer as a server > hull for the deployed web-services. When no web-server functionality is > needed which option is recommended. Or in other words: According to your > experience which option is the more stable one? I would suggest Apache. > - In future versions of our product we might need to incorporate server > functionality that shares state between the client and the server. Is there > any support for session handling in the two deployment scenarios above? Well, "kinda" We have *some* support for cookies in the client - but I'm not aware that anyone has ever served cookies from Apache to the client. > - On the axis-c++ website you mention that you are planning to release the > final version 1.6 in mid march. Is 1.6 still developed or are you > concentrating all your efforts on axis 2? 1.6 is still being developed and should be released soon. Axis2C is probably going to be concentrated on in the future in order to get ws-* however, there are a lot of people who use Axis1C and that inevitably means it'll keep getting used/updated to some level. regards, John. > > Thanks in advance (and thanks for providing your great tool as well!!), > Markus > > -- > "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
Re: AxisEngineException
Hi, Have you tried turning on trace? ( See http://ws.apache.org/axis/cpp/TraceGuide.html#enablingRuntimeTrace and possibly also http://ws.apache.org/axis/cpp/TraceGuide.html#enablingStartupTrace ) This may give you some pointers to the problem, if there's nothing obvious you can post your tracefile here so we can look for any problems. As for project files, see my response to another recent question here: http://marc.theaimsgroup.com/?l=axis-c-user&m=114724798004149&w=2 Regards, Adrian ___ Adrian Dick ([EMAIL PROTECTED]) "Cheng, John" <[EMAIL PROTECTED]> wrote on 09/05/2006 19:10:32: > Hi, > I am having a problem to make a C++ app to call a .NET C# web > service, using Axis C++. The service was implemented and tested > separately. I generated the client side code using WSDL2Ws and > included it with my application (on windows platform). But when > running the application I get AxisEngineException while > instantiating the generated class. There is no other information, > and I could not figure it out base on the document. I also tried to compile > the distributed project vc\Distribution.sln and vc\AxisDevelopment. > sln, hope to get a debug version of axis_client.lib. But it > complains some files can not be found, for example: > src\common\AxisException.cpp is not in the package. Any help? > Thanks! > John Cheng