Re: Use of DataHandler in a webservice
Hi again, I download the axis-c-1.6a.n-Linux-trace-bin.tar.gz from the nightly build. I generate my client and I didn"t got any error ! that was pretty cool ;o)However, I have still the DataHandler.cpp and the DataHandler.hpp which are generated. I didn't find the ISoapAttachment class too. Does it should be generated too ?I can't find the samples you were both talking about... Maybe I don't look in the right place to find it. Do they should be in the samples of the axis 1.6a build ?thank you for your help ! everytime it's help me a lot !ArnaultJohn Hawkins <[EMAIL PROTECTED]> a écrit :but you'll need the nightly build you pointed to to pick up the code that will work for you :-)Adrian Dick/UK/[EMAIL PROTECTED]16/12/2005 13:01Please respond to "Apache AXIS C User List"To "Apache AXIS C User List" ccSubject Re: Use of DataHandler in a webserviceSorry, for not making it clear. I updated the example code sent by John below.Adrian ___ Adrian Dick ([EMAIL PROTECTED]) Arnault BELLINA <[EMAIL PROTECTED]> wrote on 16/12/2005 12:57:14:> Thanks John for your Answer. It will be very usefull ! > Adrian : which code do you update ? The example code or the axis source code ? > Do I have to download another time the Axis cpp 1.6 a on http: > //cvs.apache.org/dist/axis/nightly ? > > Thanks for your answer > > Arnault > > Adrian Dick <[EMAIL PROTECTED]> a écrit : > The example originally attached won't work with some recent changes, so > I've updated with the correct code. > > Adrian > ___ > Adrian Dick ([EMAIL PROTECTED]) > > > John Hawkins/UK/[EMAIL PROTECTED] wrote on 16/12/2005 10:49:19: > > > > > Hi, > > > > OK, so Now that I've woken up ! > > > > No, we shouldn't be creating the datahandler class (yo u are correct > > :-) And in the latest build we don't. We have a number of > > datahandler tests and they appear to be working fine on the latest > > build. May I suggest you try out the latest build -> http://ws. > > apache.org/axis/interim.html. > > > > And see if you still get the same problem. Don't worry that this is > > not a full release - we are due to ship the 1.6 release pretty soon > > (end of month?). I didn't run through the 1.5 code however, it might > > be possible to just throw out the extra Datahandler class if you can > > see that the ISoapAttachment class is being used on the service? > > > > This is a sample from one of our tests -> > > (ISoapAttachment is the Datahandler object described in WSDL) > > >> > > ISoapAttachment *att=ws.createSoapAttachment(); > > > > char *text=stringToAscii("This is a > > test message for attachment"); > > > > //Adding the content type as text/plain > > > att->addHeader(AXIS_CONTENT_TYPE,"text/plain" > > ); > > xsd__base64Binary b64b1; > b64b1.set((xsd__unsignedByte*)text, > strlen(text)); > > att->addBody(&b64b1); > > //Calling the dataHandlerService, > > service will return content > > Result=ws.echoContent(att); > > > > > > > > > > > cheers, > > John. > > > > > > > > > > > > > Arnault BELLINA > > 16/12/2005 09:59 > > > > Please respond to > > "Apache AXIS C User List" > > > > To > >< br> > > Apache AXIS C User List > > > > cc > > > > Subject > > > > Re: Use of DataHandler in a webservice > > > > > > > > > > I'm using the current axis cpp version (I guess the 1.5) > > thanks for your help. > > > > this is the wsdl : > > > > > > > > xmlns:intf="urn:Message" xmlns:apachesoap="http://xml.apache.org/xml-soap > > " xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd=" > > http://www.w3.org/2001/XMLSchema" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ > > "> > > > &g t; > > > > targetNamespace="urn:Message" elementFormDefault="qualified"> > > > > > > > > > > > > > > > > ; > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > location="http://localhost:8080/services/Message"/> > > > > > > > > > > > > > > > > John Hawkins a écrit : > > > > Hi, > > please could you send the whole wsdl. Yes creation of the > > datahandler classes is normal > > > > What version of axis cpp are you using ? > > > > > > > > > Arnault BELLINA > > 16/12/2005 09:33 > >
Cannot restore parameter on server ...
Hi, me again. I'm trying to invoke a method defined in my WSDL file that requires four parameters. When the request message arrives on the server one of those parameter called 'params' is empty. This parameter is some kind of Vector implementation. I'm tracing the messages with a TCPMonitor and the request message seems to be ok. The response I get from the server is a SoapFaultException. mainTest.cpp === int main() { xsd__string user = "GTC_WinDesa"; xsd__string password = "wingtc"; // Message to invoke xsd__string trxName = "merlin.ValidarTelefono"; xsd__string key = "numero"; xsd__string param = "1554009016"; KeyValuePair values[1]; values[0].setkey(key); values[0].setvalue(param); KeyValuePair_Array array; array.m_Array = &values[0]; array.m_Size = 1; xsd__string response = gestorSoapPort-> test(user, password, trxName, array); } == Request Message : http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> http://bsg.com.ar/gestor/wsdl/"> GTC_WinDesa wingtc merlin.ValidarTelefono http://www.w3.org/2001/06/soap-encoding" xmlns:ns2="http://bsg.com.ar" enc:arrayType="ns2:param[1]"> numero 1554009016 Response Message http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> soapenv:Server.userException java.lang.NullPointerException WSDL file: targetNamespace="http://bsg.com.ar/gestor/wsdl/" xmlns:wsdlns="http://bsg.com.ar/gestor/wsdl/" xmlns:typens="http://bsg.com.ar" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:stk="http://schemas.microsoft.com/soap-toolkit/wsdl-extension" xmlns:dime='http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/' xmlns:ref='http://schemas.xmlsoap.org/ws/2002/04/reference/' xmlns:content='http://schemas.xmlsoap.org/ws/2002/04/content-type/' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' xmlns='http://schemas.xmlsoap.org/wsdl/'> http://bsg.com.ar" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" elementFormDefault="qualified"> minOccurs="0" name="item" type="typens:KeyValuePair"/> http://schemas.xmlsoap.org/soap/http"/ > namespace="urn:ServiceRequestHandler" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="user password trxName params"/> namespace="urn:ServiceRequestHandler" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts='return'/> Is there a problem is server side deserialization of the 'params" parameter ??? Thanks,__ Martin MiradIngeniero en Inform�tica[EMAIL PROTECTED]
RE: stub transport
I have 1.5 Final source. -Original Message- From: John Hawkins [mailto:[EMAIL PROTECTED] Sent: Friday, December 16, 2005 5:09 AM To: Apache AXIS C User List Subject: RE: stub transport hi Robert, no docs as it's an internal tool used within the test framework. Do you use the source or binaries? It's not shipped with the binaries.. "Stettler, Robert" <[EMAIL PROTECTED]> 14/12/2005 16:51 Please respond to "Apache AXIS C User List" To "Apache AXIS C User List" cc Subject RE: stub transport I am looking for a simple solution to simulate the server side, so that I can test my client code completely. I know I can create apache stubs and I have generated stubs in WebLogic, but I am looking for something simpler. You meantioned a unit test system? Can you point me to some doc? -Original Message- From: John Hawkins [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 14, 2005 11:40 AM To: Apache AXIS C User List Subject: Re: stub transport hi Robert, sorry unit testing of what - the service? So you want to emulate a client? We currently have a "unit test" system where we can emulate the service. "Stettler, Robert" <[EMAIL PROTECTED]> 14/12/2005 14:37 Please respond to "Apache AXIS C User List" To cc Subject stub transport Is there any sort of stub http transport? Maybe something file driven? I would like to use something like that for unit testing? The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
Re: Use of DataHandler in a webservice
but you'll need the nightly build you pointed to to pick up the code that will work for you :-) Adrian Dick/UK/[EMAIL PROTECTED] 16/12/2005 13:01 Please respond to "Apache AXIS C User List" To "Apache AXIS C User List" cc Subject Re: Use of DataHandler in a webservice Sorry, for not making it clear. I updated the example code sent by John below. Adrian ___ Adrian Dick ([EMAIL PROTECTED]) Arnault BELLINA <[EMAIL PROTECTED]> wrote on 16/12/2005 12:57:14: > Thanks John for your Answer. It will be very usefull ! > Adrian : which code do you update ? The example code or the axis source code ? > Do I have to download another time the Axis cpp 1.6 a on http: > //cvs.apache.org/dist/axis/nightly ? > > Thanks for your answer > > Arnault > > Adrian Dick <[EMAIL PROTECTED]> a écrit : > The example originally attached won't work with some recent changes, so > I've updated with the correct code. > > Adrian > ___ > Adrian Dick ([EMAIL PROTECTED]) > > > John Hawkins/UK/[EMAIL PROTECTED] wrote on 16/12/2005 10:49:19: > > > > > Hi, > > > > OK, so Now that I've woken up ! > > > > No, we shouldn't be creating the datahandler class (yo u are correct > > :-) And in the latest build we don't. We have a number of > > datahandler tests and they appear to be working fine on the latest > > build. May I suggest you try out the latest build -> http://ws. > > apache.org/axis/interim.html. > > > > And see if you still get the same problem. Don't worry that this is > > not a full release - we are due to ship the 1.6 release pretty soon > > (end of month?). I didn't run through the 1.5 code however, it might > > be possible to just throw out the extra Datahandler class if you can > > see that the ISoapAttachment class is being used on the service? > > > > This is a sample from one of our tests -> > > (ISoapAttachment is the Datahandler object described in WSDL) > > > > > > ISoapAttachment *att=ws.createSoapAttachment(); > > > > char *text=stringToAscii("This is a > > test message for attachment"); > > > > //Adding the content type as text/plain > > > att->addHeader(AXIS_CONTENT_TYPE,"text/plain" > > ); > > xsd__base64Binary b64b1; > b64b1.set((xsd__unsignedByte*)text, > strlen(text)); > > att->addBody(&b64b1); > > //Calling the dataHandlerService, > > service will return content > > Result=ws.echoContent(att); > > > > > > > > > > > cheers, > > John. > > > > > > > > > > > > > Arnault BELLINA > > 16/12/2005 09:59 > > > > Please respond to > > "Apache AXIS C User List" > > > > To > > > > Apache AXIS C User List > > > > cc > > > > Subject > > > > Re: Use of DataHandler in a webservice > > > > > > > > > > I'm using the current axis cpp version (I guess the 1.5) > > thanks for your help. > > > > this is the wsdl : > > > > > > > > xmlns:intf="urn:Message" xmlns:apachesoap="http://xml.apache.org/xml-soap > > " xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd=" > > http://www.w3.org/2001/XMLSchema" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ > > "> > > > &g t; > > > > targetNamespace="urn:Message" elementFormDefault="qualified"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > location="http://localhost:8080/services/Message"/> > > > > > > > > > > > > > > > > John Hawkins a écrit : > > > > Hi, > > please could you send the whole wsdl. Yes creation of the > > datahandler classes is normal > > > > What version of axis cpp are you using ? > > > > > > > > > Arnault BELLINA > > 16/12/2005 09:33 > > > > Please respond to > > "Apache AXIS C User List" > > > > To > > > > axis-c-user@ws.apache.org > > > > cc > > > > Subject > > > > Use of DataHandler in a webservice > > > > > > > > > > > > > > > > > Hello all ! > > > > I have a WSDL interface from a Web Service (AXIS-based). > > A web service accepts a file as an attachment and a string and return an > int. > > I got the wsdl from this service (see at the end of the mail). > > > > As soon as I try to create the client stub for this WSDL I get a > > possible error of DataHandler use : > > > > Possible error in class DataHandler: class with no > > attributes > > Possible error in class DataHandler: class with no > > attributes > > > > The webservice is in Doc mode, can I use dataHander with this mode ? > > the WSDL2Ws tool create me a DataHandler.cpp and a DataHandler.hpp. > > Does this is normal ? I thought DataHandler was
Re: CalClient giving Exception
Ok, I need you to capture the response coming back over the wire please. Please you can use tcpmonitor or similar -> http://ws.apache.org/axis/java/user-guide.html#AppendixUsingTheAxisTCPMonitorTcpmon "Deepak D" <[EMAIL PROTECTED]> 16/12/2005 12:11 Please respond to "Apache AXIS C User List" To axis-c-user@ws.apache.org cc Subject Re: CalClient giving Exception HI John, I have downloaded from Axis web site. This is Zip I'm using: axis-c-src-win32-current-src.zip Expecting reply at the earliest Regards Deepak >From: John Hawkins <[EMAIL PROTECTED]> >Reply-To: "Apache AXIS C User List" >To: "Apache AXIS C User List" >Subject: Re: CalClient giving Exception >Date: Thu, 15 Dec 2005 09:16:11 + > >Did you get the latest source from svn? > > > > >"Deepak D" <[EMAIL PROTECTED]> >15/12/2005 04:05 >Please respond to >"Apache AXIS C User List" > > >To >axis-c-dev@ws.apache.org >cc > >Subject >CalClient giving Exception > > > > > > >HI All, > >I build Axis C++ calclient on Windows. I followed build and setup >instructions as per Axis C++ Windows Developers Guide. > >In xsd__int Calculator::add(xsd__int Value0, xsd__int Value1)function when > >it calls >?if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER))? it is giving >exception AXISC_NODE_VALUE_MISMATCH_EXCEPTION. > >Apache server is running and I can get page of http://localhost/axis > >Please let me know what me the problem at the earliest. > >With Regards >Deepak > >_ >A Camera Sells every 2 Minutes on eBay. Get Your's at a Great Price Now! >http://adfarm.mediaplex.com/ad/ck/4686-26272-10936-699?ck=Cameras > > _ One and only Ash. Find out all about her. Only on MSN Search http://server1.msn.co.in/profile/aishwarya.asp
Re: Use of DataHandler in a webservice
Sorry, for not making it clear. I updated the example code sent by John below. Adrian ___ Adrian Dick ([EMAIL PROTECTED]) Arnault BELLINA <[EMAIL PROTECTED]> wrote on 16/12/2005 12:57:14: > Thanks John for your Answer. It will be very usefull ! > Adrian : which code do you update ? The example code or the axis source code ? > Do I have to download another time the Axis cpp 1.6 a on http: > //cvs.apache.org/dist/axis/nightly ? > > Thanks for your answer > > Arnault > > Adrian Dick <[EMAIL PROTECTED]> a écrit : > The example originally attached won't work with some recent changes, so > I've updated with the correct code. > > Adrian > ___ > Adrian Dick ([EMAIL PROTECTED]) > > > John Hawkins/UK/[EMAIL PROTECTED] wrote on 16/12/2005 10:49:19: > > > > > Hi, > > > > OK, so Now that I've woken up ! > > > > No, we shouldn't be creating the datahandler class (yo u are correct > > :-) And in the latest build we don't. We have a number of > > datahandler tests and they appear to be working fine on the latest > > build. May I suggest you try out the latest build -> http://ws. > > apache.org/axis/interim.html. > > > > And see if you still get the same problem. Don't worry that this is > > not a full release - we are due to ship the 1.6 release pretty soon > > (end of month?). I didn't run through the 1.5 code however, it might > > be possible to just throw out the extra Datahandler class if you can > > see that the ISoapAttachment class is being used on the service? > > > > This is a sample from one of our tests -> > > (ISoapAttachment is the Datahandler object described in WSDL) > > > > > > ISoapAttachment *att=ws.createSoapAttachment(); > > > > char *text=stringToAscii("This is a > > test message for attachment"); > > > > //Adding the content type as text/plain > > > att->addHeader(AXIS_CONTENT_TYPE,"text/plain" > > ); > > xsd__base64Binary b64b1; > b64b1.set((xsd__unsignedByte*)text, > strlen(text)); > > att->addBody(&b64b1); > > //Calling the dataHandlerService, > > service will return content > > Result=ws.echoContent(att); > > > > > > > > > > > cheers, > > John. > > > > > > > > > > > > > Arnault BELLINA > > 16/12/2005 09:59 > > > > Please respond to > > "Apache AXIS C User List" > > > > To > > > > Apache AXIS C User List > > > > cc > > > > Subject > > > > Re: Use of DataHandler in a webservice > > > > > > > > > > I'm using the current axis cpp version (I guess the 1.5) > > thanks for your help. > > > > this is the wsdl : > > > > > > > > xmlns:intf="urn:Message" xmlns:apachesoap="http://xml.apache.org/xml-soap > > " xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd=" > > http://www.w3.org/2001/XMLSchema"; > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ > > "> > > > &g t; > > > > targetNamespace="urn:Message" elementFormDefault="qualified"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > location="http://localhost:8080/services/Message"/> > > > > > > > > > > > > > > > > John Hawkins a écrit : > > > > Hi, > > please could you send the whole wsdl. Yes creation of the > > datahandler classes is normal > > > > What version of axis cpp are you using ? > > > > > > > > > Arnault BELLINA > > 16/12/2005 09:33 > > > > Please respond to > > "Apache AXIS C User List" > > > > To > > > > axis-c-user@ws.apache.org > > > > cc > > > > Subject > > > > Use of DataHandler in a webservice > > > > > > > > > > > > > > > > > Hello all ! > > > > I have a WSDL interface from a Web Service (AXIS-based). > > A web service accepts a file as an attachment and a string and return an > int. > > I got the wsdl from this service (see at the end of the mail). > > > > As soon as I try to create the client stub for this WSDL I get a > > possible error of DataHandler use : > > > > Possible error in class DataHandler: class with no > > attributes > > Possible error in class DataHandler: class with no > > attributes > > > > The webservice is in Doc mode, can I use dataHander with this mode ? > > the WSDL2Ws tool create me a DataHandler.cpp and a DataHandler.hpp. > > Does this is normal ? I thought DataHandler was a defined type like an > int. > > > > Could somebody advise me if it's wrong and how to solve this > > problem. If it's for you it's correct, is there somebody who can > > tell me how to use datahandler in c++ > > > > Thanks a lot f or your answer. > > > > Arnault > > > > T his is my wsdl. > > >
Re: Use of DataHandler in a webservice
Thanks John for your Answer. It will be very usefull ! Adrian : which code do you update ? The example code or the axis source code ? Do I have to download another time the Axis cpp 1.6 a on http://cvs.apache.org/dist/axis/nightly ?Thanks for your answerArnault Adrian Dick <[EMAIL PROTECTED]> a écrit : The example originally attached won't work with some recent changes, soI've updated with the correct code.Adrian___Adrian Dick ([EMAIL PROTECTED])John Hawkins/UK/[EMAIL PROTECTED] wrote on 16/12/2005 10:49:19:>> Hi,>> OK, so Now that I've woken up !>> No, we shouldn't be creating the datahandler class (yo u are correct> :-) And in the latest build we don't. We have a number of> datahandler tests and they appear to be working fine on the latest> build. May I suggest you try out the latest build -> http://ws.> apache.org/axis/interim.html.>> And see if you still get the same problem. Don't worry that this is> not a full release - we are due to ship the 1.6 release pretty soon> (end of month?). I didn't run through the 1.5 code however, it might> be possible to just throw out the extra Datahandler class if you can> see that the ISoapAttachment class is being used on the service?>> This is a sample from one of our tests ->> (ISoapAttachment is the Datahandler object described in WSDL)>> ISoapAttachment *att=ws.createSoapAttachment();>> char *text=stringToAscii("This is a> test message for attachment");>> //Adding the content type as text/plain>att->addHeader(AXIS_CONTENT_TYPE,"text/plain"> );> xsd__base64Binary b64b1; b64b1.set((xsd__unsignedByte*)text,strlen(text));> att->addBody(&b64b1);> //Calling the dataHandlerService,> service will return content> Result=ws.echoContent(att);>>>> cheers,> John.>> Arnault BELLINA > 16/12/2005 09:59>> Please respond to> "Apache AXIS C User List">> To>> Apache AXIS C User List >> cc>> Subject>> Re: Use of DataHandler in a webservice> I'm using the current axis cpp version (I guess the 1.5)> thanks for your help.>> this is the wsdl :>> > > xmlns:intf="urn:Message" xmlns:apachesoap="http://xml.apache.org/xml-soap> " xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="> http://www.w3.org/2001/XMLSchema"xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/> ">>&g t; > > targetNamespace="urn:Message" elementFormDefault="qualified">> > >> > > > >> > >> > > >> > > >> > > >> > > >> > > > > > > > > > >> > > > > > >>> > > location="http://localhost:8080/services/Message"/>> > >> John Hawkins a écrit :>> Hi,> please could you send the whole wsdl. Yes creation of the> datahandler classes is normal>> What version of axis cpp are you using ? Arnault BELLINA > 16/12/2005 09:33>> Please respond to> "Apache AXIS C User List">> To>> axis-c-user@ws.apache.org>> cc>> Subject>> Use of DataHandler in a webservice Hello all !>> I have a WSDL interface from a Web Service (AXIS-based).> A web service accepts a file as an attachment and a string and return anint.> I got the wsdl from this service (see at the end of the mail).>> As soon as I try to create the client stub for this WSDL I get a> possible error of DataHandler use :>> Possible error in class DataHandler: class with no> attributes> Possible error in class DataHandler: class with no> attributes>> The webservice is in Doc mode, can I use dataHander with this mode ?> the WSDL2Ws tool create me a DataHandler.cpp and a DataHandler.hpp.> Does this is normal ? I thought DataHandler was a defined type like anint.>> Could somebody advise me if it's wrong and how to solve this> problem. If it's for you it's correct, is there somebody who can> tell me how to use datahandler in c++>> Thanks a lot f or your answer.>> Arnault>> T his is my wsdl.>> > xmlns:intf="urn:Message" xmlns:apachesoap="http://xml.apache.org/xml-soap> " xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="> http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.> xmlsoap.org/wsdl/" > > targetNamespace="urn:Message" elementFormDefault="qualified">> > > >> > >> >> > >> >> > > Nouveau : téléphonez moins
Re: CalClient giving Exception
HI John, I have downloaded from Axis web site. This is Zip I'm using: axis-c-src-win32-current-src.zip Expecting reply at the earliest Regards Deepak From: John Hawkins <[EMAIL PROTECTED]> Reply-To: "Apache AXIS C User List" To: "Apache AXIS C User List" Subject: Re: CalClient giving Exception Date: Thu, 15 Dec 2005 09:16:11 + Did you get the latest source from svn? "Deepak D" <[EMAIL PROTECTED]> 15/12/2005 04:05 Please respond to "Apache AXIS C User List" To axis-c-dev@ws.apache.org cc Subject CalClient giving Exception HI All, I build Axis C++ calclient on Windows. I followed build and setup instructions as per Axis C++ Windows Developers Guide. In xsd__int Calculator::add(xsd__int Value0, xsd__int Value1)function when it calls ?if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER))? it is giving exception AXISC_NODE_VALUE_MISMATCH_EXCEPTION. Apache server is running and I can get page of http://localhost/axis Please let me know what me the problem at the earliest. With Regards Deepak _ A Camera Sells every 2 Minutes on eBay. Get Your's at a Great Price Now! http://adfarm.mediaplex.com/ad/ck/4686-26272-10936-699?ck=Cameras _ One and only Ash. Find out all about her. Only on MSN Search http://server1.msn.co.in/profile/aishwarya.asp
Re: Use of DataHandler in a webservice
The example originally attached won't work with some recent changes, so I've updated with the correct code. Adrian ___ Adrian Dick ([EMAIL PROTECTED]) John Hawkins/UK/[EMAIL PROTECTED] wrote on 16/12/2005 10:49:19: > > Hi, > > OK, so Now that I've woken up ! > > No, we shouldn't be creating the datahandler class (you are correct > :-) And in the latest build we don't. We have a number of > datahandler tests and they appear to be working fine on the latest > build. May I suggest you try out the latest build -> http://ws. > apache.org/axis/interim.html. > > And see if you still get the same problem. Don't worry that this is > not a full release - we are due to ship the 1.6 release pretty soon > (end of month?). I didn't run through the 1.5 code however, it might > be possible to just throw out the extra Datahandler class if you can > see that the ISoapAttachment class is being used on the service? > > This is a sample from one of our tests -> > (ISoapAttachment is the Datahandler object described in WSDL) > > ISoapAttachment *att=ws.createSoapAttachment(); > > char *text=stringToAscii("This is a > test message for attachment"); > > //Adding the content type as text/plain > att->addHeader(AXIS_CONTENT_TYPE,"text/plain" > ); > xsd__base64Binary b64b1; b64b1.set((xsd__unsignedByte*)text, strlen(text)); > att->addBody(&b64b1); > //Calling the dataHandlerService, > service will return content > Result=ws.echoContent(att); > > > > cheers, > John. > > > > > > Arnault BELLINA <[EMAIL PROTECTED]> > 16/12/2005 09:59 > > Please respond to > "Apache AXIS C User List" > > To > > Apache AXIS C User List > > cc > > Subject > > Re: Use of DataHandler in a webservice > > > > > I'm using the current axis cpp version (I guess the 1.5) > thanks for your help. > > this is the wsdl : > > > xmlns:intf="urn:Message" xmlns:apachesoap="http://xml.apache.org/xml-soap > " xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd=" > http://www.w3.org/2001/XMLSchema"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ > "> > > > http://www.w3.org/2001/XMLSchema"; > targetNamespace="urn:Message" elementFormDefault="qualified"> > http://xml.apache.org/xml-soap"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://schemas. > xmlsoap.org/soap/http"/> > > > > > > > > > > > > > > > http://localhost:8080/services/Message"/> > > > > > > > > John Hawkins <[EMAIL PROTECTED]> a écrit : > > Hi, > please could you send the whole wsdl. Yes creation of the > datahandler classes is normal > > What version of axis cpp are you using ? > > > > Arnault BELLINA <[EMAIL PROTECTED]> > 16/12/2005 09:33 > > Please respond to > "Apache AXIS C User List" > > To > > axis-c-user@ws.apache.org > > cc > > Subject > > Use of DataHandler in a webservice > > > > > > > > Hello all ! > > I have a WSDL interface from a Web Service (AXIS-based). > A web service accepts a file as an attachment and a string and return an int. > I got the wsdl from this service (see at the end of the mail). > > As soon as I try to create the client stub for this WSDL I get a > possible error of DataHandler use : > > Possible error in class DataHandler: class with no > attributes > Possible error in class DataHandler: class with no > attributes > > The webservice is in Doc mode, can I use dataHander with this mode ? > the WSDL2Ws tool create me a DataHandler.cpp and a DataHandler.hpp. > Does this is normal ? I thought DataHandler was a defined type like an int. > > Could somebody advise me if it's wrong and how to solve this > problem. If it's for you it's correct, is there somebody who can > tell me how to use datahandler in c++ > > Thanks a lot f or your answer. > > Arnault > > T his is my wsdl. > > xmlns:intf="urn:Message" xmlns:apachesoap="http://xml.apache.org/xml-soap > " xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd=" > http://www.w3.org/2001/XMLSchema"; xmlns:wsdl="http://schemas. > xmlsoap.org/wsdl/"> > > > > http://www.w3.org/2001/XMLSchema"; > targetNamespace="urn:Message" elementFormDefault="qualified"> > http://x
Re: Use of DataHandler in a webservice
Hi, OK, so Now that I've woken up ! No, we shouldn't be creating the datahandler class (you are correct :-) And in the latest build we don't. We have a number of datahandler tests and they appear to be working fine on the latest build. May I suggest you try out the latest build -> http://ws.apache.org/axis/interim.html. And see if you still get the same problem. Don't worry that this is not a full release - we are due to ship the 1.6 release pretty soon (end of month?). I didn't run through the 1.5 code however, it might be possible to just throw out the extra Datahandler class if you can see that the ISoapAttachment class is being used on the service? This is a sample from one of our tests -> (ISoapAttachment is the Datahandler object described in WSDL) ISoapAttachment *att=ws.createSoapAttachment(); char *text=stringToAscii("This is a test message for attachment"); //Adding the content type as text/plain att->addHeader(AXIS_CONTENT_TYPE,"text/plain"); xsd__base64Binary b64b1; b64b1.__ptr = (xsd__unsignedByte*)text; b64b1.__size = strlen(text); att->addBody(&b64b1); //Calling the dataHandlerService, service will return content Result=ws.echoContent(att); cheers, John. Arnault BELLINA <[EMAIL PROTECTED]> 16/12/2005 09:59 Please respond to "Apache AXIS C User List" To Apache AXIS C User List cc Subject Re: Use of DataHandler in a webservice I'm using the current axis cpp version (I guess the 1.5) thanks for your help. this is the wsdl : John Hawkins <[EMAIL PROTECTED]> a écrit : Hi, please could you send the whole wsdl. Yes creation of the datahandler classes is normal What version of axis cpp are you using ? Arnault BELLINA <[EMAIL PROTECTED]> 16/12/2005 09:33 Please respond to "Apache AXIS C User List" To axis-c-user@ws.apache.org cc Subject Use of DataHandler in a webservice Hello all ! I have a WSDL interface from a Web Service (AXIS-based). A web service accepts a file as an attachment and a string and return an int. I got the wsdl from this service (see at the end of the mail). As soon as I try to create the client stub for this WSDL I get a possible error of DataHandler use : Possible error in class DataHandler: class with no attributes Possible error in class DataHandler: class with no attributes The webservice is in Doc mode, can I use dataHander with this mode ? the WSDL2Ws tool create me a DataHandler.cpp and a DataHandler.hpp. Does this is normal ? I thought DataHandler was a defined type like an int. Could somebody advise me if it's wrong and how to solve this problem. If it's for you it's correct, is there somebody who can tell me how to use datahandler in c++ Thanks a lot f or your answer. Arnault T his is my wsdl. Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez la version beta. Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez la version beta.
RE: stub transport
hi Robert, no docs as it's an internal tool used within the test framework. Do you use the source or binaries? It's not shipped with the binaries.. "Stettler, Robert" <[EMAIL PROTECTED]> 14/12/2005 16:51 Please respond to "Apache AXIS C User List" To "Apache AXIS C User List" cc Subject RE: stub transport I am looking for a simple solution to simulate the server side, so that I can test my client code completely. I know I can create apache stubs and I have generated stubs in WebLogic, but I am looking for something simpler. You meantioned a unit test system? Can you point me to some doc? -Original Message- From: John Hawkins [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 14, 2005 11:40 AM To: Apache AXIS C User List Subject: Re: stub transport hi Robert, sorry unit testing of what - the service? So you want to emulate a client? We currently have a "unit test" system where we can emulate the service. "Stettler, Robert" <[EMAIL PROTECTED]> 14/12/2005 14:37 Please respond to "Apache AXIS C User List" To cc Subject stub transport Is there any sort of stub http transport? Maybe something file driven? I would like to use something like that for unit testing? The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
Re: Use of DataHandler in a webservice
I'm using the current axis cpp version (I guess the 1.5) thanks for your help.this is the wsdl : John Hawkins <[EMAIL PROTECTED]> a écrit :Hi, please could you send the whole wsdl. Yes creation of the datahandler classes is normalWhat version of axis cpp are you using ?Arnault BELLINA <[EMAIL PROTECTED]>16/12/2005 09:33 Please respond to "Apache AXIS C User List"To axis-c-user@ws.apache.org ccSubject Use of DataHandler in a webserviceHello all !I have a WSDL interface from a Web Service (AXIS-based). A web service accepts a file as an attachment and a string and return an int. I got the wsdl from this service (see at the end of the mail).As soon as I try to create the client stub for this WSDL I get a possible error of DataHandler use : Possible error in class DataHandler: class with no attributes Possible error in class DataHandler: class with no attributesThe webservice is in Doc mode, can I use dataHander with this mode ? the WSDL2Ws tool create me a DataHandler.cpp and a DataHandler.hpp. Does this is normal ? I thought DataHandler was a defined type like an int.Could somebody advise me if it's wrong and how to solve this problem. If it's for you it's correct, is there somebody who can tell me how to use datahandler in c++Thanks a lot f or your answer.ArnaultT his is my wsdl. Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez la version beta. Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez la version beta.
Re: Use of DataHandler in a webservice
Hi, please could you send the whole wsdl. Yes creation of the datahandler classes is normal What version of axis cpp are you using ? Arnault BELLINA <[EMAIL PROTECTED]> 16/12/2005 09:33 Please respond to "Apache AXIS C User List" To axis-c-user@ws.apache.org cc Subject Use of DataHandler in a webservice Hello all ! I have a WSDL interface from a Web Service (AXIS-based). A web service accepts a file as an attachment and a string and return an int. I got the wsdl from this service (see at the end of the mail). As soon as I try to create the client stub for this WSDL I get a possible error of DataHandler use : Possible error in class DataHandler: class with no attributes Possible error in class DataHandler: class with no attributes The webservice is in Doc mode, can I use dataHander with this mode ? the WSDL2Ws tool create me a DataHandler.cpp and a DataHandler.hpp. Does this is normal ? I thought DataHandler was a defined type like an int. Could somebody advise me if it's wrong and how to solve this problem. If it's for you it's correct, is there somebody who can tell me how to use datahandler in c++ Thanks a lot f or your answer. Arnault This is my wsdl. Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez la version beta.
Use of DataHandler in a webservice
Hello all !I have a WSDL interface from a Web Service (AXIS-based). A web service accepts a file as an attachment and a string and return an int. I got the wsdl from this service (see at the end of the mail).As soon as I try to create the client stub for this WSDL I get a possible error of DataHandler use : Possible error in class DataHandler: class with no attributes Possible error in class DataHandler: class with no attributesThe webservice is in Doc mode, can I use dataHander with this mode ? the WSDL2Ws tool create me a DataHandler.cpp and a DataHandler.hpp. Does this is normal ? I thought DataHandler was a defined type like an int.Could somebody advise me if it's wrong and how to solve this problem. If it's for you it's correct, is there somebody who can tell me how to use datahandler in c++Thanks a lot f or your answer.ArnaultThis is my wsdl. Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez la version beta.