problem integrating flex with spring - apache-flex

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'flex:remoting-destination
i got this error when i tried to build my file
i wrote the 'flex:remoting-destination' in a web-application-config file
can any one help me regarding this.

You probably forgot to declare the flex namespace.
Paste this at the top of your web-application-config.xml (noting the xmlns:flex part):
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:flex="http://www.springframework.org/schema/flex"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/flex
http://www.springframework.org/schema/flex/spring-flex-1.0.xsd">

i just want to add little information to #bart
it will work only when the version of the spring flex is matched..
for these shchema defination version number is important
for spring flex 1.5.2 you should give the version as 1.5 instead of 1.0
similarly spring 3.2.1 you should give 3.2 instead of 2.5

Related

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

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+rrvPWRFiJI7jGD7EEMY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NUEsHCAtcqf2ODQAAwBoAAFBLAQIUABQACAgIABqiRFULXKn9jg0AAMAaAAAiAAAAAAAAAAAAAAAAAAAAAABSLTIwNTU0MDYwNDk5LTAxLUYwMDUtMDAwMDAwNzYueG1sUEsFBgAAAAABAAEAUAAAAN4NAAAAAA==</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)

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"/>.

QTIFW wizardstyle

Having some trouble setting a WizardStyle in QTIFW I have read the documentation and cant understand why the following doesn't work.
<'WizardStyle>Mac<'/WizardStyle>
<'Background>logo.png<'Background>
(Obviously excluding ' char)
Qt Documentation:
Background - Filename for an image used as QWizard::BackgroundPixmap
(only used by MacStyle). WizardStyle - Set the wizard style to be used
("Modern", "Mac", "Aero" or "Classic").
I get the following error:
Caught exception: Error in config\config.xml, line 8, column 17: Unexpected element 'WizardStyle'
<?xml version="1.0" encoding="UTF-8"?>
<Installer>
<Name>Dave Installer</Name>
<Version>1.2.3</Version>
<Title>Dave Installer</Title>
<Publisher>Dave</Publisher>
<Icon>qticon</Icon>
<WizardStyle>Mac</WizardStyle>
<Background>logo.png</Background>
<StartMenuDir>Super App</StartMenuDir>
<TargetDir>#RootDir#InstallationDirectory</TargetDir>
<RunProgram>#TargetDir#/qt</RunProgram>
<RunProgramDescription>Qt Installer</RunProgramDescription>
</Installer>
According to comments made in bug 470 and 452, the WizardStyle tag implementation never made it into the v1.5 release (at least the compiled binary). So you'll have to get a later release (the master is at ~v2.0).

Using EXSLT dates-and-times module in XSLT 1.0 yields unknown error

I added the EXSLT dates-and-times module in my XSLT 1.0 file by declaring:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ... xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date">
This doesn't affect my resulting page, but when I try to call the actual date with:
<xsl:value-of select="date:date-time()"/>
I receive an "Error loading stylesheet: An unknown error has occurred ()" message when loading my page.
Does anyone have a suggestion as to what I might be missing? Thanks in advance!
but when I try to call the actual
date with:
<xsl:value-of
select="date:date-time()"/>
I receive
an "Error loading stylesheet: An
unknown error has occurred ()" message
when loading my page
This means that the particular XSLT processor you're using doesn't implement EXSLT (or just the date-time module of EXSLT).
Here is a small transformation:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:date="http://exslt.org/dates-and-times"
>
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:value-of select="date:date-time()"/>
</xsl:template>
</xsl:stylesheet>
when applied to any XML document (not used), with the Saxon 6.5.4 XSLT 1.0 processor, the correct result is produced:
2010-05-22T12:49:44-07:00
Solution:
Either use an XSLT 1.0 processor that implements EXSLT, or pass the current date-time as a parameter to the transformation.
If using XSLT 2.x, just use the XPath 2.0 function current-dateTime().

Flash Builder 4 is suggesting mx1 instead of mx! why?

I just bought and installed the Flash Builder 4 after having the Beta for a while. The same code is giving me compile-time errors and suggests using mx1 instead of mx! If I make it mx1 the compile error goes away. Here is the top of my component:
<s:SkinnableContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
I mentioned nothing about mx1.
I used:
xmlns:mx="library://ns.adobe.com/flex/mx"
instead of:
xmlns:mx="library://ns.adobe.com/flex/halo"
and it worked.

Resources