ParsingError: The schemaLocation attribute does not contain pairs of values
Hello drigson,
I am trying to send DSML request via HTTP/SOAP using Directory Server Resource Kit tools. There are two command inside DSRK. One is DsmlSearch and Second is DsmlModify. I have installed DSRK and Sun ONE directory Server under Windows 2003 Server. Both installed
successfully. When I try to run DsmlSearch command like below on command prompt
C:\DSRK\java\dsmltools>java DsmlSearch -h http://192.168.0.99:8000/dsml -b "dc=domain,dc=com" -D
"uid=admin,ou=Administrators,ou=TopologyManagement,o=NetscapeRoot" -w admin "objectclass=*",
it gives same error like you..
<?xml version='1.0' encoding='UTF-8' ?>
<soap-env:Envelope
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:xsi=' http://www.w3.org/2001/XMLSchema-instance'
xmlns:soap-env='http://schemas.xmlsoap.org/soap/envelope/'
>
<soap-env:Body>
<batchResponse
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns='urn:oasis:names:tc:DSML:2:0:core'
>
<errorResponse type='malformedRequest'>
<message>ParsingError @ line 2, col 178, The schemaLocation attribute does not contain pairs of values.</message>
</errorResponse>
</batchResponse>
</soap-env:Body>
</soap-env:Envelope>
I am trying this command from last 3 days, but I am not able to solve this error. Even though I have installed newer version
(Sun Java System Directory Server ONE 5.2 withe the 2005Q4 patch). Dnt know that what should I do now ?
Please help me Sun Developer.....
Thanks in advance,
Satyam
[1756 byte] By [
samin] at [2007-11-26 7:44:24]

# 3
Yes Ludovicp,
I receive this error in my Error log, which you can see below.
Date- 09/Jun/2006 15:15:13 +0200
Message Type -ERROR<12352>
Source -HTTP/SOAP/DSMLv2 fron
Detail - p=0 msgId=-1 - Bad Dsml Request - ParsingError @ line 2, col 178, The schemaLocation attribute does not contain pairs of values.
Waiting for your more help..
Satyam
samin at 2007-7-6 19:55:03 >

# 4
The error log that you're displaying looks like a capture of some GUI display...
If you could retrieve the complete line in the errors log, it would be easier to figure out the pb...
Anyway, the error 12352 is a configuration error for the DSML front-end, at startup time of the server. This seems to indicate some mis-configuration.
Could you check that the dse.ldif file contains the entry for the DSMLv2-SOAP-HTTP frontend, and it has 2 attributes for the schema with proper values ? :
ds-html-soapschemalocation: <Path>/soap-env.xsd
ds-html-dsmlschemalocation: <Path>/DSMLv2.xsd
Regards,
Ludovic.
# 5
Hello Ludovic,
Thanks for your reply. Bdw, your reply helps me to solve error.
Sun Directoy installation path in my pc is C:\Program Files\Sun. It means both files "soap-env.xsd" and "DSMLv2.xsd" contains space in their URL which are
"C:\Program Files\Sun\MPS\lib\DSMLv2.xsd"
"C:\Program Files\Sun\MPS\lib\soap-env.xsd"
When I moved this both file to C:\ and modified both URL value of
ds-html-soapschemalocation like below into dse.ldif file. It works fine now...
"C:\DSMLv2.xsd"
"C:\soap-env.xsd"
So devil of my story was "Program Files" which contains space.....
Once again thanks for your support....
Cheers,
Satyam
samin at 2007-7-6 19:55:03 >

# 7
I think, Microsoft should rename their folder name "Program Files" to "Programs". Because I guess, many developers find problems, because of <<space containing name>>.
Also Sun should make consideration in their product for this kind of bug. Because apart from you, I was communicating with other two Sun Developers who are based in Grenoble, France like you.
Bdw hearly thanks to Sun Developer Team....
Cheers,
Satyam
samin at 2007-7-6 19:55:03 >

# 9
That's great...
One more Q about Technical Architecture..
Sun ONE directory is installed on Solaris OS and If user wants to send DSML Serach/Modify request from his pc, then where should he install DSRK kit ?
I mean, should user install DSRK kit just only on client machine ? Not on Solaris OS where Sun ONE directory is installed.
Also which last version of Sun ONE directory should work with DSML ?
Satyam
samin at 2007-7-6 19:55:03 >
