Hello, If you look at my first post, you will see that there are almost no difference between the 2 requests (old and new client).
For me, the problem is here. I am actually trying to test the client... that's the reason of my problem... I can't test it! In fact, for me, the question is: 1) Why the old client generated xml like: <Login xmlns="url/Query"> <Username>...</Username> <Password>...</Password> </Login> And the new one: <quer:Login xmlns:quer="url/Query" quer="url/Query"> <quer:Username>...</quer:Username> <quer:Password>...</quer:Password> </quer:Login> In the two cases, the client classes have been generated by codegen. 2) Even if I don't understand why the request are not exactly the sames, they seem to be valid. So why the server doesn't give the same response??? Tell me if my logic is wrong, thanks in advance for any ideas. Lars Ericsson wrote: > > i hope you can write some test client to test both your java codes, and > the server.... > if you generate the java codes, there is some test-client and just you can > look at it and write a new one, if you are not very sure how to write a > client. > > > > > > ________________________________ > From: rageice <[email protected]> > To: [email protected] > Sent: Wednesday, July 8, 2009 9:36:15 AM > Subject: Re: Axis2, new client from new wsdl => bad xml queries > > > > Hello, > > I use a build.xml that have been created by someone else. > But I am sure that: > 1) it doesn't use wsdl2java, it uses the axis2 tool (codegen I think). > 2) The classes generated are almost the sames than in the previous client, > and I was already in axis2. > > > > Thanks for your answer, but I really think something has changed somewhere > and I am unable to say what... > > > > > > Lars Ericsson wrote: >> >> do you use the wsdl2java to make new java-files, for client? or how do >> you >> work? >> if you use wsdl2java, did you generate the whole java files... or not, if >> not, you should run wsdl2java and get the new java files..... >> and everything should work as before..... >> >> >> >> >> ________________________________ >> From: rageice <[email protected]> >> To: [email protected] >> Sent: Tuesday, July 7, 2009 1:54:16 PM >> Subject: Axis2, new client from new wsdl => bad xml queries >> >> >> Hello (sorry for my bad english). >> >> I have actually a problem I am not able to solve. >> >> I had a client for a webservices, and everithing was ok. >> The webservice has changed a little, so I have generated e new client >> from >> the new wsdl (almost the same, just some more attributes in the response >> structures ) >> >> And now, I have an error. I think the problem comes from the server, but >> I >> am not sure, so if ou can give me some informations about this >> problem.... >> >> The better method to explain you the problem is certainly to show you the >> request/response with the old and the new client. >> >> The old: >> >> QUERY: >> <?xml >> version='1.0' >> encoding='UTF-8' >> ?> >> >> <soapenv:Body> >> <Login xmlns="url/Query"> >> <Username>...</Username> >> <Password>...</Password> >> </Login> >> </soapenv:Body> >> </soapenv:Envelope> >> >> RESPONSE: >> <soapenv:Envelope >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> >> <soapenv:Header/> >> <soapenv:Body> >> <SessionID xmlns="url/Query">...</SessionID> >> </soapenv:Body> >> </soapenv:Envelope> >> >> THE NEW >> >> QUERY: >> >> <soapenv:Envelope >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> >> <soapenv:Body> >> <quer:Login >> xmlns:quer="url/Query" >> quer="url/Query" >>> >> <quer:Username>...</quer:Username> >> <quer:Password>...</quer:Password> >> </quer:Login> >> </soapenv:Body> >> </soapenv:Envelope> >> >> RESPONSE: >> >> <soapenv:Envelope >> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> >> <soapenv:Header/> >> <soapenv:Body> >> <SessionID xmlns="url">...</SessionID> >> </soapenv:Body> >> </soapenv:Envelope> >> >> >> As you can see, the request is a little bit different, but it is the same >> thing. >> And the problem comes from the response: >> In the response with the new client, the sessionId element contains >> xmlns="url". >> But with the old client, it was xmlns="url/Query" => Ant that was ok >> >> So finally, Axis compares the namesapece "url/Query" with the namespace >> of >> the answer "url" and returns me an error explining that the namespaces >> are >> not the sames.... >> >> The namespaces in the wsdls are the sames... >> >> >> Any help is welcome ;), >> >> Thanks in advance. >> >> >> >> >> >> >> >> >> -- >> View this message in context: >> http://www.nabble.com/Axis2%2C-new-client-from-new-wsdl-%3D%3E-bad-xml-queries-tp24371938p24371938.html >> Sent from the Axis - User mailing list archive at Nabble.com. >> >> >> >> > > -- > View this message in context: > http://www.nabble.com/Axis2%2C-new-client-from-new-wsdl-%3D%3E-bad-xml-queries-tp24371938p24386845.html > Sent from the Axis - User mailing list archive at Nabble.com. > > > > -- View this message in context: http://www.nabble.com/Axis2%2C-new-client-from-new-wsdl-%3D%3E-bad-xml-queries-tp24371938p24390650.html Sent from the Axis - User mailing list archive at Nabble.com.
