Windev: Looking for suggestions on how to decrypt a string to a zip file - windev

I am consuming a web service that answers the xml:
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns0:getStatusCdrResponse xmlns:ns0="http://service.sunat.gob.pe">
<statusCdr>
<content>UEsDBBQACAgIABqiRFUAAAAAAAAAAAAAAAAiAAAAUi0yMDU1NDA2MDQ5OS0wMS1GMDA1LTAwMDAwMDc2LnhtbLVZW3OqShZ+n19h5TxmJ1wU1FSSqW5uooByVah5QUBEuQko6K+fRqMx+2TX7D01kzykWevrdfnWopvuvP6zSeLOISjKKEvfHohn/KETpF7mR2n49mAa/NPg4Z/v/3h1ixeQ53HkuRUCakGZZ2kZdNDktHx72BfpS+aWUfmSuklQvpR54EWrD/DLfhm/lN46SNyXpvRfxPSQRV7wRD5cpr+4xR9a+CaST2tBU/2hOSZLkizlmipIWxbQIzIZpFX5adRbev+VUYjg3rcG3f/OIAjDIgjdKvjOqI9Ksa6q/AXD6rp+rrvPWRFiJI7jGD7EEMYvo/CvK7rM3PyGvzgqn5GqlZ8ntgMsSA9BnOUBdnOCnN+mBU0ZV2dwKy6f3NR/qiKUy83JNc9yn7rVL/PMg2J/n6zeor/Llbgabn6VK4EtZEk/m7pikZWgyb8JGin2sVs8IW0RlG3xy4f3V9RBLyaUbg1RXtv8G91Fctc7KRpV7696FKIM9sXtFfmNuqDXrJ0W+GK6yt7/0em8Mm6apYinODqduZKDap35HRCHWRFV6+SXFBB4axbl5T15RC/9a47QbQO1HD5gZ9u3CH/bKN67xvqUZEXwV1G6T+XapQjyw6QWrIICrR5Bx9TEli4kRGKjcNNylRVJeRHci/6j2y8UXZvRfyqv0V9c/6HR3yEIGcR+jvyVjcKgrH6TsS+hI6KIm+GLGcuN98H7kgXDtOqDcUwMvYmaaZN5QcuczSX22yt2j2wpxm4co27BvrbLfVEvM2ZA2BNq1e2RiafCrWM6dEly41jf4956BwbxspGd46nXT214MgqGSw1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G/aV0OXrpCqjNG5Hj2/ck0eFReAknXWbic4C3zk5E51d9RD4+8ve7C/3wr9TVS+v3pLrxVZl8tWkX0nn/FX7G/SM47Zl1WWfFz7ICFxhf6sOKNbWzhJEjhB9obUoE9+gG/6lnO2bf0W9kTgT3jvA3HTfAKNKGmBL0Tvherewc7yM+x66/qtyS/KL/CbYfpm+IvqFdXr5Y7ujxRaCdrggHGX1A2YFceZW1THi+w8FH1Uldv94h1DRBf9kkOK+jSE/XrWVXFp+3bCeXQXyUWD/YTEfhUc+qyNKje+JQiqyvXWybmFWn3bK0Xqxp9XPJeW0cT3v37ioJVdHH0zCftPzrCfeW4fg9QPiv8Pldi3DrTAC6LDH/ikqB5O473h8Ld9fuOCzbx9y8K18a6x3J7OTfnBJXLB4zj1hJ9/+vS1Zz/VX/qbyfzgHf/a2GfZGcUGpVdE+Tk8ye3wrofYdzspCqfIOl/8/GiXozLys47rBXnl+u7F6L2Ja4b3aXwm96WDvk/jxt93sy7kRXmE5L9ZIBrtaTQ+GAy7OIX/SYm+eMG+LxL2/T+g3v8NUEsHCAtcqf2ODQAAwBoAAFBLAQIUABQACAgIABqiRFULXKn9jg0AAMAaAAAiAAAAAAAAAAAAAAAAAAAAAABSLTIwNTU0MDYwNDk5LTAxLUYwMDUtMDAwMDAwNzYueG1sUEsFBgAAAAABAAEAUAAAAN4NAAAAAA==</content>
<statusCode>0004</statusCode>
<statusMessage>La constancia existe</statusMessage>
</statusCdr>
</ns0:getStatusCdrResponse>
</S:Body>
</S:Envelope>
The <content> is supposed to be a ZIP file, unfortunately I have no idea how to convert those characters to a ZIP, any suggestions on windev options I can use.
Use WINDEV 21.
Greetings.

Try to decode "content" to file.
bufZip is buffer = Decode(content,encodeBASE64)
fsavebuffer("c:\your folder\file.zip",bufZip)

Related

XPROC p:file-mkdir not found

I'm using XPROC and the XPROC Processor MorganaXProc-IIIse. I'm actually just trying to create a directory through XPROC. However, all I get is this error message:
No visible declaration for '{http://www.w3.org/ns/xproc-step/filesystem}file-mkdir' found: Check spelling, imports or #use-when values.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:pf="http://www.w3.org/ns/xproc-step/filesystem" name="pipeline" version="3.0">
<p:variable name="base.dir" select="'.'"/>
<pf:file-mkdir href="${basedir}/lib"/>
</p:declare-step>
Since documentation is very limited, any hint is appreciated.
Thanks
In the context of XProc 3, the file-mkdir step is in the namespace http://www.w3.org/ns/xproc so using the prefix p your pipeline declares for that should work: <p:file-mkdir href="${basedir}/lib"/> instead of <pf:file-mkdir href="${basedir}/lib"/>.

Export a Gateway object through soma script in datapower

I have 50 MPGW's, i want to export specific/individual gateway through soma script.I tried few scripta but didnt worked out. I tried domain export it is working but specific objecf export is not working.Please help me on it
It is fairly simple, really, you just need to point out the objects you want to export, e.g.:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<dp:request xmlns:dp="http://www.datapower.com/schemas/management">
<dp:do-export format="ZIP" all-files="false">
<dp:user-comment>This is a SOMA Export...</dp:user-comment>
<dp:object class="MultiProtocolGateway" name="MPGW_1" ref-objects="true" ref-files="true"/>
<dp:object class="MultiProtocolGateway" name="MPGW_2" ref-objects="true" ref-files="true"/>
</dp:do-export>
</dp:request>
</env:Body>
</env:Envelope>

What language is this file generated by Mascot version 1.0 written in?

I have been assigned a task to retrieve information from files that were processed from raw mass spectrophotometry data (file.mzML).
These files have just ".data" as extension and when I open them, I cannot recognize the language and therefore I cannot load them into R and work on them.
The files with the .data extension are contained in this folder:
ftp://ftp.pride.ebi.ac.uk/pride/data/archive/2015/11/PXD000299/
Could someone take a look at any of the files.data and tell me the language is in (e.g. F010439)?
EDIT: these is are some snippets
Lines 1 to 10
MIME-Version: 1.0 (Generated by Mascot version 1.0)
Content-Type: multipart/mixed; boundary=gc0p4Jq0M2Yt08jU534c0p
--gc0p4Jq0M2Yt08jU534c0p
Content-Type: application/x-Mascot; name="parameters"
LICENSE=Licensed to: INRA Tours, P-F Proteomique Analytique & Fonction.,Nouzilly (0085-0000003524/1), (2 processors).
MP=
NM=
COM=
Lines 120 to 130
NeutralLoss3_master=63.998285
--gc0p4Jq0M2Yt08jU534c0p
Content-Type: application/x-Mascot; name="unimod"
<?xml version="1.0" encoding="UTF-8" ?>
<umod:unimod xmlns:umod="http://www.unimod.org/xmlns/schema/unimod_2" majorVersion="2" minorVersion="0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.unimod.org/xmlns/schema/unimod_2 unimod_2.xsd">
<umod:elements>
<umod:elem avge_mass="1.00794" full_name="Hydrogen" mono_mass="1.007825035" title="H"/>
<umod:elem avge_mass="2.014101779" full_name="Deuterium" mono_mass="2.014101779" title="2H"/>
<umod:elem avge_mass="6.941" full_name="Lithium" mono_mass="7.016003" title="Li"/>
<umod:elem avge_mass="12.0107" full_name="Carbon" mono_mass="12" title="C"/>
It looks like that file is MIME-encoded "multi-part" file that contains (at least) two components files.
You can decode the multi-part using a MIME decoder.
The first component file looks like a simple "name=value" property file
The second component file is XML.
I don't know if this is relevant, but a search for Mascot file format gave me this reference page:
http://www.matrixscience.com/help/data_file_help.html
Also, there were some interesting hits when I searched for parser "x-mascot" and parser mascot. If you can find an existing parser, then you may be able to save yourself implementation effort.

Wordpress RSS-Feed not working: Server returned HTTP Error 500: Internal Server Error

The RSS-Feeds of my Blog are not working at all.
I already tried turning off all plugins. That did not help.
Any other ideas?
Feed Validator says:
http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.marx.red%2F%3Ffeed%3Drss2
This feed does not validate.
Server returned HTTP Error 500: Internal Server Error [help]
HTTP error with content that looks like a feed [help]
line 32, column 2: XML parsing error: <unknown>:32:24: unclosed CDATA section [help]
<description><![CDATA[
^
Source: http://www.marx.red/?feed=rss2
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
>
<channel>
<title>Danny Marx</title>
<atom:link href="http://www.marx.red/feed/" rel="self" type="application/rss+xml" />
<link>http://www.marx.red</link>
<description>I'm a fucking walking paradox, no I'm not.</description>
<lastBuildDate>Sat, 09 Aug 2014 11:19:54 +0000</lastBuildDate>
<language>en-US</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>http://wordpress.org/?v=3.9.2</generator>
<item>
<title>Aravrit – Hebräisch-Arabischer Font</title>
<link>http://www.marx.red/aravrit-hebraisch-arabischer-font/</link>
<comments>http://www.marx.red/aravrit-hebraisch-arabischer-font/#comments</comments>
<pubDate>Fri, 08 Aug 2014 16:04:46 +0000</pubDate>
<dc:creator><![CDATA[Danny Marx]]></dc:creator>
<category><![CDATA[Kultur]]></category>
<category><![CDATA[Arabisch]]></category>
<category><![CDATA[Hebräisch]]></category>
<guid isPermaLink="false">http://www.marx.red/?p=142</guid>
<description><![CDATA[
This is my Blog:
http://www.marx.red
why don't you try saving permalinks I don't know whether it'll help or not but This is the solution for many things in wordpress..
Settings > premalinks and just save it..

What Data Format Exchange uses * and # instead of tags brackets?

There is a Web Service that returns this XML as a result for a GET.
I want to know is this a famous Data Exchange Format ? or it just needs to be parsed normally ?
or should I replace the * and # with normal brackets and handle it as a normal XML ?
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">Count=56,*ProjectDataSet#
*Project#
*PROJ_UID#f6f08258-52dd-481a-83a5-013cce51d901*/PROJ_UID#
*PROJ_NAME#5-2 Disaster Recovery site*/PROJ_NAME#
*DVI#0*/DVI#
*/Project#
*Project#
*PROJ_UID#7abd8857-2a9a-4d2d-82c3-139fdac26994*/PROJ_UID#
*PROJ_NAME#4-1 Automated Land Releasing System Phase II*/PROJ_NAME#
*DVI#0*/DVI#
*/Project#
*/ProjectDataSet# ###Duration: 00:00:24.5568479</string>

Resources