[ http://issues.apache.org/jira/browse/AXIS2-969?page=comments#action_12440710 ] Thomas, Berlinghoff commented on AXIS2-969: -------------------------------------------
Thank you for the fix and keep up the great work. BTW think bug 980 (http://issues.apache.org/jira/browse/AXIS2-980) can also be closed since this not an issue with the current nightly snap. Cheers, Thomas > Missing xsi:type in SOAP-Message > -------------------------------- > > Key: AXIS2-969 > URL: http://issues.apache.org/jira/browse/AXIS2-969 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Affects Versions: 1.0 > Environment: Windows XP Professional, Tomcat 5.5, Axis2 1.0 and > nightly snapshot from 3rd August 2006 > Reporter: Desiree Hilbring > Assigned To: Sanka Samaranayake > Priority: Blocker > Attachments: delivery060803-2.xsd, GMLSFClient.java, > GMLSFE060803.wsdl, GMLSFESkeleton.java > > > I am trying to create an working inheritance example with Axis2. In the > attached example case > OAMIFASCapabilitiesType is derived from OAMIServiceSpecificCapabilities. > To recognize the inheritance the client needs the xsi:type in the SOAP > message, but > it is missing. > The example will work outcommenting the following lines in GMLSFESkeleton: > XmlCursor cur = > resp.getOAGetMetaInformationResponse().getFeatureMetaInformation().getOAMIServiceSpecificCapabilities().newCursor(); > cur.toFirstChild(); > cur.insertAttributeWithValue("type", > "http://www.w3.org/2001/XMLSchema-instance", > "OAMIFASCapabilitiesType"); > cur.dispose(); > > Why is the xsi:type not sent? > Davanum Srinivas advised my to try the latest nightly snapshot, which is the > one from 3rd August 2006. Unforunately I do have another > issue with that version, trying to create the code with WSDL2Java. I'll get > the following exceptions in the created GMLSFEStub.java: > [javac] Compiling 225 source files to C:\hilbring\EclipseWTP\GMLSFE\classes > [javac] > C:\hilbring\EclipseWTP\GMLSFE\output\src\org\example\types\GMLSFEStub.java:142: > toEnvelope(org.apache.axiom.soap.SOAPFactory) in > org.example.types.GMLSFEStub cannot be applied to > (org.apache.axiom.soap.SOAPFactory,orchestra.oas.building.BuildingStringDocument,boolean) > [javac] env = > toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()), > [javac] ^ > [javac] > C:\hilbring\EclipseWTP\GMLSFE\output\src\org\example\types\GMLSFEStub.java:247: > toEnvelope(org.apache.axiom.soap.SOAPFactory) in > org.example.types.GMLSFEStub cannot be applied to > (org.apache.axiom.soap.SOAPFactory,orchestra.oas.building.BuildingStringDocument,boolean) > [javac] env = > toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()), > [javac] ^ -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]