Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #22335

Re: axis2 wsdl2java jaxb , xmlrootelement not same as defined in XSD

From Arved Sandstrom <asandstrom2@eastlink.ca>
Newsgroups comp.lang.java.programmer
Subject Re: axis2 wsdl2java jaxb , xmlrootelement not same as defined in XSD
References <79fbac87-364d-4aa1-91bf-c399192fbdd8@googlegroups.com>
Message-ID <3fYTs.76763$_U.60839@newsfe20.iad> (permalink)
Organization Public Usenet Newsgroup Access
Date 2013-02-16 23:36 -0400

Show all headers | View raw


On 02/14/2013 08:18 PM, Sri wrote:
> Hi,
>
> I am using axis2 to generate JAXB classes from WSDL/XSD and here is strange problem I came across
>
> The root element in the SOAP response is not same as I defined in WSDL/XSD, it is coming as operation/method name defined on the interface.
>
> Ex: defined in WSDL/XSD: EmployeeDtlResponse
> Operation name in the interface: opGetEmployeeDtl
>
> and the root element name coming as opGetEmployeeDtl as supposed to be  EmployeeDtlResponse.
>
> Did anybody run into this issue?
>
> Thanks,
> -Sri
>
I've run into issues like this and it's invariably been my mistake when 
I write the WSDLs and XSDs. There's no other way around the inherent 
complexity of these XML documents other than to be very diligent, and 
doublecheck a lot, and have consistent naming conventions.

I haven't been a big fan of Axis or Axis 2 for years, I prefer CXF, but 
I doubt that Axis is your problem.

AHS

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

axis2 wsdl2java jaxb , xmlrootelement not same as defined in XSD Sri <srikanthmalli@gmail.com> - 2013-02-14 16:18 -0800
  Re: axis2 wsdl2java jaxb , xmlrootelement not same as defined in XSD Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-02-16 23:36 -0400

csiph-web