Hi all, I experienced some strange behavior with some stubs generated via Axis2. This stubs generate an invalid SOAP Request, like the following one:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns2:MyRequest xmlns:ns2="http://www.xyz.com/types"> <ns2:http://www.xyz.com/types><ns2:http://www.xyz.com/types>Max</ns2:http://www.xyz.com/types> <ns2:http://www.xyz.com/types>Mustermann</ns2:http://www.xyz.com/types> </ns2:http://www.xyz.com/types> </ns2: MyRequest > <soapenv:Body> </soapenv:Envelope> Instead, to be valid, it should be: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns2:MyRequest xmlns:ns2="http://www.xyz.com/types"> <ns2:MyObject><ns2:firstName>Max</ns2:http://www.xyz.com/types> <ns2:lastName>Mustermann</ns2:http://www.xyz.com/types> </ns2:MyRequest> </ns2: MyRequest > <soapenv:Body> </soapenv:Envelope> The server answers for the given invalid request with: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Server</faultcode> <faultstring>com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ':' (code 58) excepted space, or '>' or "/>" at [row,col {unknown-source}]: [1,222]</faultstring> <detail/> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope> The types are defined in the following xsd schema fragment: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:types="http://www.xyz.com/types" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://www.xyz.com/types"> <xsd:complexType name="MyObject"> < xsd:sequence> < xsd:element name="firstName" nillable="true" type="string"></ xsd:element> < xsd:element name="lastName" nillable="true" type="string"></ xsd:element> </ xsd:sequence> </ xsd:complexType> <xsd:element name="MyRequest"> <xsd:complexType> <xsd:sequence> <xsd:element name="myObject" nillable="false" type="types:MyObject"></xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> I am using the newest version of Axis2 (1.6.1). Please let me know if some additonal info is needed. Greetings, Andreas -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org