How to get a zip file of webservice

Hello

I'm trying to get a zip of a NET web service file but I get this error:

Cannot perform the GetPolicy web service call.

The error returned when calling the web service operation is:
org.apache.axis2.AxisFault: Must Understand check failed for header http://tempuri.org/ : FileName at org.apache.axis2.engine.AxisEngine.checkMustUnderstand(AxisEngine.java:105) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:171) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:364) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at org.tempuri.EmissionServiceStub.getPolicy(EmissionServiceStub.java:222) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at coldfusion.xml.rpc.Axis2S... '

It's my code.

< cfinvoke webservice = " " http://URL.com.MX/IntegrationService/EmissionService.svc?wsdl "

method = "GetPolicy".

returnvariable = "aString" >

< name cfinvokeargument = "clave" value = "ABCR2O14" / >

< name cfinvokeargument = "product" value = "ABCGUA" / >

< name cfinvokeargument = "llave" value = "ABC53D35OUHGX2O14" / >

< name cfinvokeargument = 'fileExtension' value = 'zip' / >

< cfinvokeargument name = value "policy" = "001_PRO-RCSED_00000002_01_0" / >

< name cfinvokeargument = "fileName" value = "cover" / >

< / cfinvoke >

The result must be a binary file, I use the content type "Application/Octet-Stream" and a "Content-Disposition" header

I don't know if I have to use CFHTTP to get the file.

Any recommendation?

Yes... I have the solution.

Finally, I have the ZIP file!

To make the XML SOAP request, I used the SOAPUI Aplication. It make me the XML and send as a parameter.

Thank you, Alexander

Tags: ColdFusion

Similar Questions

  • How to get a zip file when publshing edge animate.

    On the web, I saw a video on how to do an application of your dashboard project animate (http://www.lynda.com/home/Player.aspx?lpk4=127570 & playChapter = Falsein).  I tried to watch this video, but when I publish my project, no .zip file is not created. Any suggestions?

    Heathrowe and Resdesign:

    Thank you very much!!!

    Zipped and uploaded the file and then it's OK: created the application and

    installed on a phone.  Wasn't working 100% but I think I can work

    outside. (Has to do with the code).  > BTW: is the part of the key of the video file

    required only if you want the application on the market.

    Svein-> torus

    2014-01-29 resdesign [email protected]>

    Re: How to get a zip file when publshing edge animate.

    created by resdesign http://forums.adobe.com/people/resdesign> in * edge

    Animate CC *-see the full discussion onhttp://forums.adobe.com/message/6064342#6064342

  • How to open the zipped files?

    How to open the zipped files?

    Right-click | Extract all.

    If these are RAR files, then you need a tool like this.

    Free RAR Extract Frog
    http://download.CNET.com/free-RAR-extract-frog/3000-2250_4-10804840.html

  • Hide: I went to my documents and I had this issue, and I clicked on something that is called HIDE and I don't know how to get to this file now!

    I went to my documents and I had this issue, and I clicked on something that is called HIDE and I don't know how to get to this file now! Anyone know where are the hidden files?

    Go to start / Control Panel / folder Options / view and check the box to show the hidden files and folders and uncheck to hide extensions of known file types.  Only the first is required for this problem, but the other may be useful later and you might as well do it while you're already here.

    Now, you will be able to see the folder.  It will be in the same place, it has always been (it has not been assigned) - it was just hidden and now that you can see hidden files and folders you can see again.  You may notice that it deteriorated a little bit lighter that other records - it is a sign that it is a hidden file or folder.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How I have a zip file to send by post?

    Hello... How I have a zip file to send by post?  I've never had to do this. After trying to find an answer in the questions already answered for an hour, I ask you now your forum. I have to be the first to do not know since when I tried to find an answer already given, this forum could do was to send hundreds of responses as 'open' and this I know how to do. Just never got to compress and send what it seems that zipping and sending is more difficult. I hate to be the one who dosent know. MY point dragging all this is probably a second question. Why send hundreds of questions answered on how 'open' a zip file when I entered the question how I have a zip file to send an e-mail? Now, the answer is maybe, if so why mix them all together? Look at a third question perhaps. Seems that this site could be a bit better than it is. Ive already had some problems in the past and I really hate coming here more. As this forum can occupy, but I really hate wasting my worst time, like trying to sort through the already answered, which are not relevant. Well ive SALE now.  The only answer (if any) should be to the question 'how I have a zip file to send an e-mail? Thanks in advance. Oh yes before im ask you here are the answers.  Windows 7 HP service pack, to date, IE 9, MSE and MSE on machine. Never Norton or any other. Build the home with paid software OEM no Micromoney. And I know that you don't need this becausse there no of Pétain, but im allways ask. And I don't think you need this email I use but incase his need, G mail.      scare0340

    In Solution Explorer, find the file, click rt > Send to > compressed (zipped) folder

    For more options, buy you a zip utility

  • How to create a zip file of AcrobatXI in windows 8.1?

    How to create a zip file of AcrobatXI in windows 8.1? acrobat.com documents?  Sorry do not know what the community to ask this in this community?  The email provider I used didn't seem to want to accept thanks Adobe send first and since Adobe send ends January 6, I'm assuming a zip file is best...  I thought I had seen an Adobe Zip file somewhere, but have not been able to locate him. Any help appreciated.

    Thank you.

    Sherrie

    Hi Sherrie l.,

    Send Adobe is the current solution to Adobe for sending large files. (This is Adobe SendNow who retires soon.) Can you tell us what you were running by using Adobe send?

    It is not a special version of Zip for Acrobat files, but you could reduce the size of the PDF file if you have Acrobat. Or, in Windows, you can create a Zip file by choosing File > Send to > compressed (zipped) folder.

    Best,

    Sara

  • How to download the zip file? And also to open / extract

    Hi, I'm a service API Web which will download a zip file. (If iI try to hit this API on browser, zip file will be downloaded)

    How to download and open / extract on blackberry stunts?

    I am writing to lodge a

    Reply-> readAll() on HttpFinished

    but not success to write / download

    Help, please

    Thank you

    I use this and it works

    void MyClass::downloadZip(const QString &aUrl)
        {
        QUrl *zipUrl = new QUrl(aUrl);
        zipRequest = new QHttp(this);
        zipRequest->setHost(zipUrl->host());
        zipRequest->get(aUrl);
        connect(zipRequest, SIGNAL(requestFinished(int, bool)), this, SLOT(zipFinished(int, bool)));
        }
    
    void MyClass::zipFinished(int aId, bool aError)
        {
        if (aError)
            {
            qDebug() << zipRequest->errorString();
            showToast("Download fail");
            }
        else
            {
            QFile *zipFile = new QFile(QDir::currentPath() + "/app/native/assets/myZip.zip");
            if (zipFile->open(QIODevice::WriteOnly))
                {
                zipFile->write(zipRequest->readAll());
                zipFile->flush();
                zipFile->close();
                }
            delete zipFile;
            }
        }
    
  • How to create a zip file

    Hello

    I would like to ask how to pack the exported data to zip tiara?

    Thanks in advance.

    Radek

    Hi Radek,

    You can use the gnu tools for win32.

    They contain two executables zip.exe and unzip.exe you can ship for free and use a script similar to the following.

    Takse some time to check the settings of the two small tools.

    Option Explicit  ' force explicit declaration of all variables in a script.

    Sun zip file: zip file = CurrentScriptPath & 'example.zip '.
    If FileExist (zipFile) then
    FichierSupprimer zipFile
    end if

    Call AddToZip (file zip, CurrentScriptPath & CurrentScriptName)

    Dim outPath: outPath = Unzip (zipFile)
    MsgBox "from:"& outPath ".

    Void AddToZip (filePath, fileToAdd)

    Dim shell: Set shell = CreateObject ("WScript.Shell")
    protected zipCmd: zipCmd = CurrentScriptPath & "\zip.exe".
    "Dim command: command =" "" "& zipCmd &" "" "d-j" "" "& filePath &" "" "" "" "& fileToAdd & '"
    protected status: status = shell. Execute (command, 0, true)
    <>status) then
    made a mistake. Raise 100, "", "zip.exe failed with status" & status & ".."
    end if
    End Sub

    Function Unzip (filePath)
    Dim shell: Set shell = CreateObject ("WScript.Shell")
    Dim tempDir: tempDir = shell. Environment ("Process") ("Temp") & "\myoutput".

    protected unZipCmd: unZipCmd = CurrentScriptPath & "\unzip.exe".
    Dim command: command = "" "" & unZipCmd & "" "" o "" "& filePath &" "" "d" "" "& tempDir &" "" "»

    protected status: status = shell. Execute (command, 0, true)
    <>status) then
    made a mistake. Raise 100, "", "unzip.exe failed with status" & status & ".."
    end if
    Unpack = tempDir
    End Function

    Greetings

    Andreas

  • How to open a zip file of the photo

    I received a zip file of the photo of a friend how open on vista

    Hello

     
     
    You can follow these steps and check
    a. drag the photos out of the file compressed in a new folder.
    b. right click on the compressed folder, and then from the menu choose and extract all.
     
  • How to get the gif file hosted by using the Http connection?

    Hello

    I have an application that downloads animation gif from a server by using the http connection. Here is the code I use to download the image.

    try {
    
                httpConnection = (HttpConnection) Connector.open(url, Connector.READ_WRITE);            httpConnection.setRequestMethod(HttpConnection.GET);
    
                if (httpConnection.getResponseCode() == HttpConnection.HTTP_OK) {                DataInputStream dS = httpConnection.openDataInputStream();
    
                    byte[] data = new byte[dS.available()];                dS.read(data);
    
                    gifImage = (GIFEncodedImage) EncodedImage.createEncodedImage(data, 0,data.length);
    
                } else {                throw new Exception("ResponseCode:" + httpConnection.getResponseCode());            }        } catch (Exception e) {                        gifImage = null;            e.printStackTrace();        }
    

    the problem with this code is, when the gif file is 1175 bytes above, it does not load the gif.

    example:-If the gif on the server is 1500 bytes, this code retrieves only 1175 bytes.

    I think that the rest of the bytes are sent in a different package. But how to get them.

    can someone please provide a code for buffering the inputstream?

    any help is appreciated.

    Dieye

    Hmm, nobody seems to know how to do, it seems. Here's how I did it.

                httpConnection = (HttpConnection) Connector.open(url, Connector.READ_WRITE);
                httpConnection.setRequestMethod(HttpConnection.GET);
    
                int responseCode = httpConnection.getResponseCode();
                if (responseCode == HttpConnection.HTTP_OK) {
                    inputStream = httpConnection.openInputStream();
                    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
    
                    byte[] buffer = new byte[256];
                    int len = 0, imageSize = 0;
    
                    while (-1 != (len = inputStream.read(buffer))) {
                        byteArrayOutputStream.write(buffer);
                        imageSize += len;
                    }
    
                    byteArrayOutputStream.flush();
                    byte[] imageData = byteArrayOutputStream.toByteArray();
                    byteArrayOutputStream.close();
    
                    gifImage = (GIFEncodedImage) EncodedImage.createEncodedImage(imageData, 0, imageSize);
    
  • How to get the mov files to play on ms media player

    Hello how is what we all mov files by our cameras when we're doing videos, that I can up load on youtube very well, but my Media Player will not play. Please don't tell me about codecs unless you include the link to get the mov files. Thank you

    Right-click on the mov file and point to open with, click Windows movie maker,

    Rotation is on the top / center and Save is on the top / right.

  • How to save the zip file of website?

    In one of the tutorials, I was looking on how to do a sensitive Web page with dreamweaver, he told me to save the zip file of the Web site to your documents, but he never showed me how do...!

    Saving a file from archive compressed is no different than to save another file type...

    You will need utility like WinZip or Stuffit decompression any when you go to use the zip file

  • How to get a wav file to play

    How can I get a wav file to play without the person I sent a "share link", by downloading? All I want is to get a review of the mixing of Adobe Audition. I don't want to "give" my work to people, I just want to hear! So they can approve or leave comments on how to improve it. . How can I share it with clients without giving them? I want them to hear. Thanks, but if this is not possible, then the cloud thing is useless for me.

    Hi Harvey.

    You're right that for now, the only way someone can listen to the audio file you shared with them is to download first. For now, it is possible for someone to play a video file sharing but not audio files.  It is in our backlog of needs, but I can't give an estimate for when it will be delivered.

    Thank you
    Island of Elba

  • How to open a zip file, I received in an e-mail?

    Received a notice of Fed Ex, they couldn't deliver the package... I need to print a receipt of the package that is in a Zip file - cannot open it with my Microsoft Word XP... What can I do?

    New version of Windows (Vista and later versions) can open ZIP files internally, but on Windows XP, you must install an Archive Manager to open and extract files from a ZIP archive.

    You can look at the file manager of 7-zip or WinZIP or WinRAR if you don't have a an Archive Manager:

  • How to get the bak files?

    Original title: Bak files.

    How to retrieve the bak files. They were e-mail messages that went somehow in the trash. I got the files, but they have bak next to them. Nothing I do will open to them. Thank you

    Microsoft MSDN can help, try this link.

    http://social.msdn.Microsoft.com/search/en-us?query=opening%20BAK%20Files&emptyWatermark=true&AC=5

Maybe you are looking for

  • Pavilion dv7-6195us: How can I get a Windows 7 ISO to my OEM license?

    Hi all! I expect to download a Windows 7 Home Premium 64 bit ISO from Microsoft, but I'm having trouble. Since I bought my laptop HP with Windows preinstalled, the Microsoft site I cannot get an ISO. It forces me to contact my manufacturer instead. H

  • HP Envy printer range: margins

    I just bought a HP Envy inkjet printer. I installed all the software and printing fine only problem, is that the margin is too high at the head of the paper. How do you define at the top and bottom margins? I don't see anywhere to do it.

  • can I update/upgrade an unlocked AT &amp; T Atrix?

    I have an AT & T Atrix shipping version Blur_Version.4.1.26.MB860.ATT.en.US. IM planning to SIM unlock and send it to the Philippines. Is it possible to update to version Blur_Version.4.1.57.MB860.ATT.en.US of Blur_Version.4.1.83.MB860.ATT.en.US and

  • Windows vista family premium sp2 print spooler continues to stop

    I can't keep feeling close spooler tried Mr. fix and still nothing.

  • Remote update of the BIOS r.620 with Ubuntu

    Anyone know if it is possible to update the bios of a r.620 (with iDrac Express) on Ubuntu 12.04.3 remote. I have problems of the E5-2630 Intel processor performance and read that it could be solved in update of the bios to the latest version: BIOS_T