| Author |
Wrong element appearing in soap message
|
Akram Chotu
Ranch Hand
Joined: Apr 18, 2006
Posts: 43
|
|
I have below wsdl generated using AXIS 1.2 Final : Now when I deploy the service using AXIS 1.2 Final and generate the response I am getting below soap response from AXIS instead of The element name should be <item> instead of <getRRList> inside <getRRList>. Can anyone please suggest the reason for this. How actually response element names are created by AXIS ? Can we control the elements name while generating soap message using AXIS? Thanks in advance for your time and reply.
|
 |
Peer Reynders
Bartender
Joined: Aug 19, 2005
Posts: 2906
|
|
For one stop using overloaded names � it confuses some of the Axis tools (it shouldn't but that's a different matter). For instance: name="getEROCResponse is also in the "intf" namespace. Use something like this instead: Get rid of any kind of name overloading in the WSDL and see if the problem still occurs. See Axis 1.2 or 1.3 Putting Service Params in SOAP Header Section
|
"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
|
 |
Akram Chotu
Ranch Hand
Joined: Apr 18, 2006
Posts: 43
|
|
Peer- Thank you for the response. The wsdl has been generated by AXIS 1.2.1 and I have not handcrafted the wsdl after axis generated. Still any thoughts?
|
 |
Peer Reynders
Bartender
Joined: Aug 19, 2005
Posts: 2906
|
|
|
Fix the WSDL - use WSDL2Java and see if the problem goes away.
|
 |
Jesus Angeles
Ranch Hand
Joined: Feb 26, 2005
Posts: 2036
|
|
Akram After you deploy, you can view the wsdl on the server. Is it the same as the wsdl you pasted above? (I am assuming, based on what you said above, that you generated the wsdl you pasted above, before you deployed.)
|
 |
Akram Chotu
Ranch Hand
Joined: Apr 18, 2006
Posts: 43
|
|
Jesus- The wsdl generated dynamically by AXIS and the wsdl generated using JAVA2WSDL are same. My solution seems to be bug in AXIS.
|
 |
 |
|
|
subject: Wrong element appearing in soap message
|
|
|