Hi Wolfgang, You are absolutely right! It is from the client side. I should have read the error more carefully before making any comment. What a dummy!:)
This will definitely help - we have been looking at the wrong place. I will keep you posted about what I find. Thanks so much! Raihan --- On Wed, 7/2/08, WJ Krpelan <[EMAIL PROTECTED]> wrote: > From: WJ Krpelan <[EMAIL PROTECTED]> > Subject: Re: Questions regarding Axis1.4 > To: [email protected] > Date: Wednesday, July 2, 2008, 4:59 AM > Hi Ahmed, > this (part of an) wsdl is not well suited to communicate > with dotnet-C#. > your wsdl should use soap-style > "document/literal" which is not very well > supported by AXIS 1.4-wsdl-generator. Either you should > rewrite > your wsdl to this soap-style or maybe you should try the > wsdl-generator of AXIS 2. > dont expect interoperability to be easy. > Still I think a "ReadResponse"-Error means the > client cant read the response. > The server cant possibly write out such an error-message on > the client side. > As I said small surprise. > Cheers, Wolfgang > > > --- On Tue, 7/1/08, Raihan Ahmed > <[EMAIL PROTECTED]> wrote: > > > From: Raihan Ahmed <[EMAIL PROTECTED]> > > Subject: Re: Questions regarding Axis1.4 > > To: [email protected] > > Date: Tuesday, July 1, 2008, 8:03 PM > > Hi Wolfgang, > > Yes - it is using Axis 1.4. I have attached the wsdl > file > > for you to review. > > The server sends error message to the client if > something > > is wrong. That is the error message I sent you. The > > client I am using is a C# client. So the error was > not > > generated on the client. I think the error is > happening > > during the marshaling process on the server side. > Please > > let me know what you think. > > Thanks again for all the help. > > Best Regards! > > Raihan > > > > > > --- On Tue, 7/1/08, WJ Krpelan > <[EMAIL PROTECTED]> > > wrote: > > > > > From: WJ Krpelan <[EMAIL PROTECTED]> > > > Subject: Re: Questions regarding Axis1.4 > > > To: [email protected] > > > Date: Tuesday, July 1, 2008, 6:41 AM > > > ok, > > > > > > The errors you are getting are caused by the > client > > java > > > app trying to deserialize the soap/xml-response > and > > getting > > > something unexpected > > > I.E. the SERVER is sending some response the > CLIENT > > cant > > > make sense of. > > > Notice the various instances of > "response" > > within > > > these error-messages. > > > > > > the next step would be to have a look at the > actual > > > SOAP-XML-Response on the wire, which could be > done > > e.g. by > > > using the microsoft-tool fiddler or some > soap-monitor > > like > > > tcpmon which is being shipped with AXIS 1.4 > > > > > > My guess at this moment would be the > > > Webservice-Implementation on the SERVER side > doesnt do > > what > > > you would expect. Is the server built on AXIS > 1.4? > > What does > > > the WSDL-document look like? > > > > > > I dont think the responsibility lies with the > code you > > sent > > > me, > > > maybe with the code which reassembles the image > out of > > the > > > base64-data (improbable) > > > > > > HTH > > > Wolfgang > > > > > > > > > > > > > > > > > > > > > --- On Mon, 6/30/08, Raihan Ahmed > > > <[EMAIL PROTECTED]> wrote: > > > > > > > From: Raihan Ahmed > <[EMAIL PROTECTED]> > > > > Subject: Re: Questions regarding Axis1.4 > > > > To: [email protected] > > > > Date: Monday, June 30, 2008, 5:27 PM > > > > Hi, > > > > Yes, this document causes the error. But > dumping > > it > > > into a > > > > string, you might not be able to reproduce > the > > error > > > since > > > > the image data won't be base64 string > > dynamically > > > > generated from inside the code. But please > try > > for > > > me! > > > > > > > > Also, if you can't reproduce the error, > could > > you > > > write > > > > a small WS to send a small xml document > where one > > node > > > will > > > > have base64 data generated by reading an > image > > file to > > > see > > > > if you can reproduce error? I know I am > asking > > too > > > much! > > > > But I need your expertise/knowledge badly to > shed > > some > > > > lights on this issue. > > > > I have attached the code to generate base64 > from > > an > > > image > > > > file to save you time in case you decide to > try > > the > > > second > > > > approach. > > > > > > > > And here is the error we are getting - > > > > ERROR: > > > > System.Web.Services.Protocols.SoapException: > > > > java.lang.reflect.InvocationTargetException > > > > at > > > > > > > > > > System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage > > > > message, WebResponse response, Stream > > responseStream, > > > > Boolean asyncCall) > > > > at > > > > > > > > > > System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String > > > > methodName, Object[] parameters) > > > > at > > > > > > GuruWebServiceImpService.getArrestBookingReport(String > > > in0, > > > > String in1) in > > > > > > > > > > C:\TestCourtWS\TestCourtWS\TestCourtWS\GuruWebServiceImpService.cs:line > > > > 334 > > > > at TestCourtWS.Form1.btnAB_Click(Object > > sender, > > > > EventArgs e) in > > > > > > > > > > C:\TestCourtWS\TestCourtWS\TestCourtWS\Form1.cs:line > > > > 269 > > > > > > > > Thanks so much! > > > > Raihan > > > > > > > > --- On Mon, 6/30/08, WJ Krpelan > > > > <[EMAIL PROTECTED]> wrote: > > > > > > > > > From: WJ Krpelan > > <[EMAIL PROTECTED]> > > > > > Subject: Re: Questions regarding > Axis1.4 > > > > > To: [email protected] > > > > > Date: Monday, June 30, 2008, 10:35 AM > > > > > Ahmed, > > > > > this xml document is looking alright > > > > > could you verify that exactly this > example > > > document > > > > causes > > > > > an error too so that I could try to > > reproduce it > > > by > > > > putting > > > > > it into a string. pls give me the exact > > error > > > message > > > > if > > > > > applicable > > > > > Cheers, Wolfgang > > > > > > > > > > > > > > > > > > > > --- On Mon, 6/30/08, Raihan Ahmed > > > > > <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > From: Raihan Ahmed > > > <[EMAIL PROTECTED]> > > > > > > Subject: Re: Questions regarding > > Axis1.4 > > > > > > To: [email protected] > > > > > > Date: Monday, June 30, 2008, 3:09 > PM > > > > > > Hi Wolfgang, > > > > > > I am sending you an attachment > with an > > > example > > > > xml > > > > > document > > > > > > that we output to the client. I > will > > send > > > you > > > > the > > > > > > attachment to your personal > account in > > > Apache has > > > > any > > > > > > restrictions on attachments. > > > > > > I hope this will help you see what > I am > > > doing > > > > wrong. > > > > > > I again thank you sincerely for > taking > > the > > > time > > > > out to > > > > > look > > > > > > at this issue. > > > > > > Raihan > > > > > > > > > > > > > > > > > > --- On Mon, 6/30/08, WJ Krpelan > > > > > > <[EMAIL PROTECTED]> > wrote: > > > > > > > > > > > > > From: WJ Krpelan > > > > <[EMAIL PROTECTED]> > > > > > > > Subject: Re: Questions > regarding > > > Axis1.4 > > > > > > > To: [email protected] > > > > > > > Date: Monday, June 30, 2008, > 5:17 > > AM > > > > > > > Ahmed, > > > > > > > its difficult to follow > because I > > cant > > > tell > > > > when > > > > > are > > > > > > you > > > > > > > speaking of the overall > > xml-document > > > and > > > > when of > > > > > an > > > > > > > included xml-document. btw > the > > > > > xml-schema-datatype is > > > > > > named > > > > > > > "base64Binary" and > not > > > base64. so > > > > > whereever > > > > > > you > > > > > > > use base64 data you should > > discover a > > > > > > > "base64Binary" > datatype > > > within > > > > your > > > > > > > xml-schema-document for your > > > > > xml-instance-document. > > > > > > > I assume here that your > > xml-documents > > > are > > > > all > > > > > > > xml-schema-based? > > > > > > > Still I think an (anonymized) > > example > > > > document > > > > > would > > > > > > say > > > > > > > more than a thousand words, > > > > > > > Wolfgang > > > > > > > > > > > > > > > > > > > > > --- On Mon, 6/30/08, Raihan > Ahmed > > > > > > > <[EMAIL PROTECTED]> > > wrote: > > > > > > > > > > > > > > > From: Raihan Ahmed > > > > > <[EMAIL PROTECTED]> > > > > > > > > Subject: Re: Questions > > regarding > > > > Axis1.4 > > > > > > > > To: > [email protected] > > > > > > > > Date: Monday, June 30, > 2008, > > 1:36 > > > AM > > > > > > > > Hi Wolfgang, > > > > > > > > Thanks a bunch for your > > email. I > > > know > > > > it is > > > > > very > > > > > > > unusual > > > > > > > > having xml document > inside > > xml > > > > document. It > > > > > was > > > > > > one > > > > > > > of the > > > > > > > > requirement of the > client > > that the > > > > output > > > > > has to > > > > > > be in > > > > > > > xml > > > > > > > > document. It has data > from > > > multiple > > > > > different > > > > > > sources > > > > > > > and > > > > > > > > uses Justice xml for law > > > enforcement > > > > > agencies as > > > > > > its > > > > > > > > standard. So far we > have not > > run > > > into > > > > any > > > > > issues > > > > > > (as > > > > > > > long > > > > > > > > as we didn't use > base64 > > data) > > > with > > > > this > > > > > even > > > > > > > though it > > > > > > > > seems weird considering > that > > SOAP > > > > response > > > > > itself > > > > > > is > > > > > > > an xml > > > > > > > > document. Can you think > of > > any > > > other > > > > way we > > > > > > could do > > > > > > > this? > > > > > > > > As far as the hard-coded > > base64 > > > string > > > > goes, > > > > > this > > > > > > is > > > > > > > what > > > > > > > > is happening - > > > > > > > > after a client request, > I > > query > > > > database > > > > > with > > > > > > input > > > > > > > data, > > > > > > > > and parse the query > result > > and put > > > them > > > > in > > > > > the > > > > > > xml > > > > > > > > document. During this > > process, I > > > have > > > > to > > > > > check > > > > > > if the > > > > > > > > record has an image > > associated > > > with it. > > > > If > > > > > it > > > > > > does, > > > > > > > then I > > > > > > > > get the image file, > convert > > it > > > into > > > > base64 > > > > > and > > > > > > stick > > > > > > > that > > > > > > > > base64 string into the > image > > tag. > > > And > > > > it > > > > > fails. > > > > > > > > > > > > > > I also print this xml > > document out > > > for > > > > > debugging > > > > > > > purposes. > > > > > > > > From this output, if I > copy > > and > > > paste > > > > the > > > > > base64 > > > > > > > string into > > > > > > > > the image tag (that is I > am > > > sending a > > > > > hard-coded > > > > > > > output), > > > > > > > > then it works. That is, > my > > output > > > sent > > > > to > > > > > client > > > > > > > always > > > > > > > > has the same image data. > > > > > > > > I am not sure if I was > able > > to > > > explain > > > > this > > > > > at > > > > > > all. > > > > > > > Please > > > > > > > > let me know if you need > any > > more > > > info > > > > to > > > > > help me > > > > > > out > > > > > > > with > > > > > > > > this problem. > > > > > > > > Thanks again! > > > > > > > > Raihan > > > > > > > > > > > > > > > > > > > > > > > > --- On Sun, 6/29/08, WJ > > Krpelan > > > > > > > > > <[EMAIL PROTECTED]> > > > wrote: > > > > > > > > > > > > > > > > > From: WJ Krpelan > > > > > > <[EMAIL PROTECTED]> > > > > > > > > > Subject: Re: > Questions > > > regarding > > > > > Axis1.4 > > > > > > > > > To: > > [email protected] > > > > > > > > > Date: Sunday, June > 29, > > 2008, > > > 5:32 > > > > PM > > > > > > > > > Hi > > > > > > > > > what you are doing > > (putting > > > xml > > > > > documents > > > > > > within > > > > > > > xml > > > > > > > > > documents as > strings) > > > > > > > > > is not considered > usual > > > practice. > > > > > I'm > > > > > > not > > > > > > > > surprised > > > > > > > > > that you are > running > > into > > > problems > > > > with > > > > > AXIS > > > > > > 1 > > > > > > > using > > > > > > > > this > > > > > > > > > approach. > > > > > > > > > I dont understand > > exactly > > > what you > > > > mean > > > > > by > > > > > > > putting it > > > > > > > > > hardcoded vs > generated > > into > > > the > > > > > response. > > > > > > could > > > > > > > you > > > > > > > > provide > > > > > > > > > an example? > > > > > > > > > Cheers, > > > > > > > > > Wolfgang > > > > > > > > > > > > > > > > > > > > > > > > > > > --- On Sun, > 6/29/08, > > Raihan > > > Ahmed > > > > > > > > > > > <[EMAIL PROTECTED]> > > > > wrote: > > > > > > > > > > > > > > > > > > > From: Raihan > Ahmed > > > > > > > <[EMAIL PROTECTED]> > > > > > > > > > > Subject: > Questions > > > regarding > > > > > Axis1.4 > > > > > > > > > > To: > > > [email protected] > > > > > > > > > > Date: Sunday, > June > > 29, > > > 2008, > > > > 6:00 > > > > > AM > > > > > > > > > > Hello, > > > > > > > > > > I am sorry to > email > > in > > > this > > > > > manner. > > > > > > But I > > > > > > > have > > > > > > > > run > > > > > > > > > into an > > > > > > > > > > issue that I > just > > > can't > > > > figure > > > > > out. > > > > > > I > > > > > > > have > > > > > > > > > searched the > > > > > > > > > > Internet > without > > any > > > luck. > > > > > > > > > > I have a web > > service > > > running > > > > under > > > > > > Axis1.4. > > > > > > > One > > > > > > > > of > > > > > > > > > the > > > > > > > > > > methods > returns an > > array > > > of > > > > string > > > > > to > > > > > > the > > > > > > > client. > > > > > > > > > > > > > > > > > Each > > > > > > > > > > string in the > array > > is > > > > actually an > > > > > XML > > > > > > > document > > > > > > > > with > > > > > > > > > data > > > > > > > > > > from database > > tables. > > > And > > > > each of > > > > > > these XML > > > > > > > > documents > > > > > > > > > has > > > > > > > > > > a node that > has > > image > > > data in > > > > > Base64 > > > > > > string. > > > > > > > > > > > > > > > > > Now the > problem is > > this > > > - > > > > > > > > > > Without the > Base64, > > it > > > works > > > > fine. > > > > > But > > > > > > soon > > > > > > > I > > > > > > > > add the > > > > > > > > > > base64 data in > the > > node, > > > I > > > > get the > > > > > > > SoapException > > > > > > > > on > > > > > > > > > the > > > > > > > > > > server side. > If I > > copy > > > the > > > > base64 > > > > > > string > > > > > > > and > > > > > > > > > hard-code it > > > > > > > > > > in the > response, it > > > works. > > > > But > > > > > when > > > > > > the > > > > > > > base64 > > > > > > > > is > > > > > > > > > > generated, it > does > > not > > > work. > > > > > > > > > > I can't > figure > > out > > > the > > > > reason > > > > > - > > > > > > base64 > > > > > > > is > > > > > > > > simple > > > > > > > > > ascii > > > > > > > > > > characters. > Why > > > can't I > > > > put a > > > > > > string > > > > > > > like > > > > > > > > that in > > > > > > > > > the > > > > > > > > > > response? > > > > > > > > > > I am > desperate. > > Please > > > help! > > > > If > > > > > I am > > > > > > in > > > > > > > the > > > > > > > > wrong > > > > > > > > > place, > > > > > > > > > > please point > to the > > > right > > > > people > > > > > so > > > > > > that I > > > > > > > can > > > > > > > > get an > > > > > > > > > > answer. > > > > > > > > > > Best Regards! > > > > > > > > > > Raihan U. > Ahmed > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > > > > To > unsubscribe, > > e-mail: > > > > > > > > > > > > [EMAIL PROTECTED] > > > > > > > > > > For additional > > commands, > > > > e-mail: > > > > > > > > > > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > > > To unsubscribe, > e-mail: > > > > > > > > > > [EMAIL PROTECTED] > > > > > > > > > For additional > commands, > > > e-mail: > > > > > > > > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > > To unsubscribe, e-mail: > > > > > > > > [EMAIL PROTECTED] > > > > > > > > For additional commands, > > e-mail: > > > > > > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > To unsubscribe, e-mail: > > > > > > [EMAIL PROTECTED] > > > > > > > For additional commands, > e-mail: > > > > > > > > > > > > > > > > > > > > > > > > > > > > [EMAIL PROTECTED] > > > > > > To unsubscribe, e-mail: > > > > > [EMAIL PROTECTED] > > > > > > For additional commands, e-mail: > > > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: > > > > [EMAIL PROTECTED] > > > > > For additional commands, e-mail: > > > > > > > > > > > > > > > [EMAIL PROTECTED] > > > > To unsubscribe, e-mail: > > > [EMAIL PROTECTED] > > > > For additional commands, e-mail: > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > > For additional commands, e-mail: > > > > > > [EMAIL PROTECTED] > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
