Skip to main content
1-Visitor
February 16, 2016
Question

IIS 7.5 generating empty xml after website is published

  • February 16, 2016
  • 1 reply
  • 3198 views

Good Morning,

When I run bat file on my local host it runs fine. After publishing it on the server it generates empty XML file this is the command I am running

im viewsegment --xmlapi > test.xml --user="user" --password="Pass" --fields=ID,"Text English" 1235545. I am not sure what needs to be done as I have given all the appropriate permissions on the folder.

Any help will be greatly appreciated.

    1 reply

    16-Pearl
    February 16, 2016

    Hello Muhammad Khan‌,

    I would expect some sort of output, even if the ID is not a valid document item (in which case I'd expect an MKS150782 error).

    What happens if you run im viewsegement -g --user="user" --password="Pass" --fields=ID,"Text English" 1235545 ?

    Regards,
    Kael

    mkhan-21-VisitorAuthor
    1-Visitor
    February 16, 2016

    it runs perfectly and produces the results. I am not sure what I have to do in order to Integrity commands runs under IIS because this seems to be only issue that's happening somehow empty xml get created.

    1-Visitor
    February 17, 2016

    Hello ,

     

    what Version of Integrity are you running? Because since 10.7 the option --xmlapi is removed from all cli commands. This was only intended for debuging and was replaced by the mksAPIViewer.exe application. Maybe you use an older client, than the server version and this is why it is working on your local machine?

    Look at Kael Lizak's answer to your question here im viewissue question - PTC Community. It might help you get xml output.

     

    Regards,

    Dominik