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 <rage...@rastamail.com> To: axis-user@ws.apache.org 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.