|
Not sure which you wanted to see so I included both server-config.wsdd and deploy.wsdd for the MyService service
I have experienced the exact same problem. I've tried both 1.3 and 1.4 with beanmapping, but with no success. Have you solved the problem? If so, can you please tell me how.
thx /Per I have tried using XFire with a similar simple service and here is the response.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Body> <printGreetingResponse xmlns="http://main.com/HelloWorld"> <out> <greeting xmlns="http://hej.com">Heffaklump!</greeting> </out> </printGreetingResponse> </soap:Body> </soap:Envelope> The namespace is specified for greeting. This is how it is supposed to look like! /Per I have attached a patch (and a patched lib) compatible with Axis 1.4.0 release/branch.
The problem we had was when using document/literal wrapped complex types were not serialized correctly (missing namespaces). I have also included a fix for using arrays. them "item" tag is now used (to match the xml schema in the WSDL file), and with the correct namespace. The array-fix is taken more or less from another bugreport that was reported here at JIRA. Please let me know if it works for you to. Here is how we have used it: 1. Write the java classes that should represent the web service interface - including your java beans. 2. generate deploy/undeploy wsdd's using ant task "axis-wsdl2java" (DOCUMENT/LITERAL WRAPPED) 3. startup the server and publish the services. The patch has only been used/tested with axis on the serverside, on the client side we have used 2 other client implementations to test/verify. And a patched lib if you want to try it directly (replace the axis.jar in 1.4 release).
Per's patch does fix this issue. Can someone from the Axis team please add this patch to the codebase
Per,
I tried adding your patch to 1.4 and running the Axis test suite. It seems to be causing some tests to fail. Can you run the all-tests target and confirm this? Thanks, Bjorn |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Can you post a copy of the .wsdd file you used to deploy the service? I can't say for sure without it, but my guess is you need to use the <beanmapping> tag to define the namespace properly:
http://www.oio.de/axis-wsdd/beanMapping.htm
Thanks,
Bjorn