axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Radetsky <>
Subject axiscpp, arrays, serialize, empty xmlns
Date Tue, 17 Jan 2006 06:43:52 GMT
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/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=\"\"
" xmlns:xsi=\"\">
<ns1:authUserResponse xmlns:ns1=\"http://localhost:80/axis/UserService\">
<User xsi:type=\"ns2:User\"
<activated xsi:type=\"xsd:boolean\">false</activated>
<ns2:adsArray xmlns:ns2=\"\"
        xmlns:ns2=\"\" enc:arrayType=\"ns2:ads[0]\">

<email xsi:type=\"xsd:string\">user@password</email>
<id xsi:type=\"xsd:long\">1</id>
<ns3:identitiesArray xmlns:ns3=\"\"
tity\" enc:arrayType=\"ns4:identities[1]\">
<UserIdentity><identityType xsi:type=\"xsd:short\">0</identityType>
<userId xsi:type=\"xsd:long\">1</userId>
<password xsi:type=\"xsd:string\">password</password>
<shortname xsi:type=\"xsd:string\">user</shortname>
<suspended xsi:type=\"xsd:boolean\">false</suspended>


View raw message