You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Alex Radetsky <ra...@rad.kiev.ua> on 2006/01/17 07:43:52 UTC

axiscpp, arrays, serialize, empty xmlns

Hello, collegues!

 Can you tell me, where I was wrong?

 I take WSDL, generate via WSDL2Ws server source code and got
this answer from my server with empty xmlns:ns2 .

 Client - Tomcat/Catalina
 Server - Apache2/AxisCPP

Catalina tell me :
Caused by: org.xml.sax.SAXParseException: The value of
the attribute "prefix="xmlns",localpart="ns2",rawname="xmlns:ns2"" is
invalid. Prefixed namespace bindings may not be empty.

 I understand that xmlns:ns2 have to be as =\"http://rad.kiev.ua/ns/entity\"

HTTP/1.1 200 OK
Date: Mon, 16 Jan 2006 23:33:49 GMT
Server: Apache/2.0.55 (Unix)
Content-Length: 1195
Connection: close
Content-Type: text/xml

<?xml version=\'1.0\' encoding=\'utf-8\' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">
<SOAP-ENV:Body>
<ns1:authUserResponse xmlns:ns1=\"http://localhost:80/axis/UserService\">
<User xsi:type=\"ns2:User\"
        xmlns:ns2=\"http://rad.kiev.ua/ns/entity\">
<activated xsi:type=\"xsd:boolean\">false</activated>
<ns2:adsArray xmlns:ns2=\"\"
        xmlns:enc=\"http://www.w3.org/2001/06/soap-encoding\"
        xmlns:ns2=\"http://rad.kiev.ua/ns/entity\" enc:arrayType=\"ns2:ads[0]\">

</ns2:adsArray>
<email xsi:type=\"xsd:string\">user@password</email>
<id xsi:type=\"xsd:long\">1</id>
<ns3:identitiesArray xmlns:ns3=\"\"
xmlns:enc=\"http://www.w3.org/2001/06/soap-encoding\"
xmlns:ns4=\"http://rad.kiev.ua/ns/en
tity\" enc:arrayType=\"ns4:identities[1]\">
<UserIdentity><identityType xsi:type=\"xsd:short\">0</identityType>
<userId xsi:type=\"xsd:long\">1</userId>
</UserIdentity></ns3:identitiesArray>
<password xsi:type=\"xsd:string\">password</password>
<shortname xsi:type=\"xsd:string\">user</shortname>
<suspended xsi:type=\"xsd:boolean\">false</suspended>
</User></ns1:authUserResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

-- 
mailto:rad@rad.kiev.ua