GetResourceAsStream problems Read(byte[])

Heres my code. Some images show up fine, others dont show up at all, and others show up as black images when the images are in a jar file. All images show up fine when they are on the lcoal file system. All images DO fit in the ~60kb byte array. Any suggestions on what the problem is, I have worked around my problem but I would like to know what was going on. My work around was to loop inputstream.read() into the byte array and that has worked.
    public static ImageIcon GetImage(String fileName)
        InputStream iStream=null;
        ImageIcon ic = null;
        try
            if( classLoader == null )
                try
                    classLoader = Class.forName( "myappclass" ).getClassLoader();
                catch( Exception x)
                    System.out.println( x.toString() );
                    return ic;
            iStream = classLoader.getResourceAsStream( fileName );
            byte[] bytes = new byte[65000];
            iStream.read(bytes);
           //heres around where it goes caplooyey
            ic = new ImageIcon(bytes);
        catch (IOException ex)
//            iStream.close();
            System.out.println("No existing file to copy");
            return ic;
        return ic;
    }

Your code is reading the stream before all the data are available so one read will grab only a partial image. One solution would be to use a BufferedInputStream, but that would consume even more memory than your current approach.
A much simpler, more efficient, and wholly equivalent technique is accomplished with this one line of code:
ic = new ImageIcon(ClassLoader.getSystemResource(fileName));

Similar Messages

  • Problem reading image from input Stream

    I'm having a problem reading an image through an input stream. It gives me the error
    Premature end of JPEG file
    sun.awt.image.ImageFormatException: JPEG datastream contains no imageand my code looks like
    public Image getImage(String name, String command){
              if(command.equals(pCode)){
                   Image image=null;
                   System.out.println(name);
                   InputStream is = getClass().getResourceAsStream(name);
                   BufferedInputStream bis = new BufferedInputStream(is);
                    byte[] byBuf =new byte[10000];
                     try {
                        int byteRead = bis.read(byBuf,0,10000);
                   } catch (IOException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                     image = Toolkit.getDefaultToolkit().createImage(byBuf);
                   return image;
              return null;
         }And the string name looks when printed is: usr/images/PRLogo.jpg

    If the image is bigger than 10K, this code will break.
    You can pass an InputStream to javax.imageio.ImageIO.read. That's probably an easier option than trying to do the buffering yourself.

  • SocketInputStream.read(byte[], int, int) extremely slow

    Hi everyone,
    I'm trying to send several commands to a server and for each command read one or more lines as response. To do that I'm using a good old Socket connection. I'm reading the response lines with BufferedReader.readLine, but it's very slow. VisualVM says, that SocketInputStream.read(byte[], int, int) is consuming most of the cpu time. A perl script, which does the same job, finishes in no time. So it's not a problem with the server.
    I'm runnning java version "1.6.0_12"
    Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
    Java HotSpot(TM) Server VM (build 11.2-b01, mixed mode) on Linux henni 2.6.25-gentoo-r7 #3 SMP PREEMPT Sat Jul 26 19:35:54 CEST 2008 i686 Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz GenuineIntel GNU/Linux and here's my code
    private List<Response> readResponse() throws IOException {
            List<Response> responses = new ArrayList<Response>();
            String line = "";
            while ( (line = in.readLine()) != null) {
                int code = -1;
                try {
                    code = Integer.parseInt(line.substring(0, 3));
                    line = line.substring(4);
                } catch (Exception e) {
                    code = -1;
                // TODO create different response objects ?!?
                NotImplemented res = new NotImplemented(code, line);
                responses.add(res);
                // we received an "end of response" line and can stop reading from the socket
                if(code >= 200 && code < 300) {
                    break;
            return responses;
        }Any hints are appreciated.
    Best regards,
    Henrik

    Though it's almost an sscce I posted there, I will try to shrink it a little bit:
    Dummy server:
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.PrintStream;
    import java.net.ServerSocket;
    import java.net.Socket;
    public class Server {
        public Server() throws IOException {
            ServerSocket ss = new ServerSocket(2011);
            Socket sock = ss.accept();
            BufferedReader br = new BufferedReader(new InputStreamReader(sock.getInputStream()));
            PrintStream ps = new PrintStream(sock.getOutputStream());
            ps.println("200 Welcome on the dummy server");
            String line = "";
            while(line != null) {
                line = br.readLine();
                ps.println("200 Ready.");
        public static void main(String[] args) throws IOException {
            new Server();
    }the client:
    import java.io.IOException;
    import java.io.PrintStream;
    import java.net.InetSocketAddress;
    import java.net.Socket;
    import java.net.UnknownHostException;
    import java.util.Scanner;
    import de.berlios.vch.Config;
    public class Client {
        private Socket socket;
        private PrintStream out;
        private Scanner scanner;
        public Client(String host, int port, int timeout, String encoding)
            throws UnknownHostException, IOException {
            socket = new Socket();
            InetSocketAddress sa = new InetSocketAddress(host, port);
            socket.connect(sa, timeout);
            out = new PrintStream(socket.getOutputStream(), true, encoding);
            scanner = new Scanner(socket.getInputStream(), encoding);
        public synchronized void send(String cmd) throws IOException {
            // send command to server
            out.println(cmd);
            // read response lines
            readResponse();
        public void readResponse() throws IOException {
            while (scanner.hasNextLine()) {
                String line = scanner.nextLine();
                System.out.println(line);
                int code = -1;
                try {
                    code = Integer.parseInt(line.substring(0, 3));
                    line = line.substring(4);
                } catch (Exception e) {
                    code = -1;
                if (code >= 200 && code < 300) {
                    break;
        public static void main(String[] args) {
            try {
                Client con = new Client("localhost", 2011, 500, "utf-8");
                con.readResponse();
                con.send("version 0.1");
                con.send("menu = new menu Feeds");
                con.send("menu.EnableEvent close");
                con.send("menu.SetColorKeyText -red 'Öffnen'");
                for (int i = 0; i < 100; i++) {
                    String groupId = "group"+i;
                    long start = System.currentTimeMillis();
                    con.send(groupId+" = menu.AddNew OsdItem '"+groupId+"'");
                    con.send(groupId+".EnableEvent keyOk keyRed");
                    long stop = System.currentTimeMillis();
                    System.out.println((stop-start)+"ms");
            } catch (Exception e) {
                e.printStackTrace();
    }This code makes me believe, it's not a java problem, but some system setting of my os.

  • How to do it?  Alternate readLine(), read bytes?

    Problem: How to alternate between an InputStreamReader and a raw InputStream when reading data from an InputStream. The catch is that the InputStreamReader may read ahead a few bytes and so subsequent reading from the underlying InputStream will miss those buffered bytes.
    Background:
    I have an application that communicates with a Tomcat servlet with Http protocol.
    I want to send a request, and receive a response as a Java Object. The problem is receiving the response as a Java Object.
    Actually, I have no problem if I use a URLConnection and create an ObjectInputStream from the URLConnection InputStream. But the URLConnection is very slow to use for uploading large files.
    There is a code project called JUpload which uploads files very fast, at least 10 times as fast as URLConnection. It uses sockets and their input/output streams. So I'm adapting some of that code for my application.
    The problem is that the JUpload code is harder to use. It parses the HTTP headers in both directions. When receiving the response, it parses the HTTP headers using an InputStreamReader wrapped in a BufferedReader to read lines, and continues reading lines for any other responses destined to the application.
    However, I need to read a Java object after the header. Therefore, I need to get the underlying InputStream so I can create my ObjectInputStream.
    There is a conflict here. The BufferedReader may (and does) read ahead, so I can't get a "clean" InputStream.
    I have a workaround, but I'm hoping there is a better way. It is this: After reading the HTTP header lines, I read all the remaining characters from the BufferedReader and write them to a ByteArrayOutputStream wrapped in an OutputStreamWriter. Then I create a new ByteArrayInputStream by getting the bytes from the ByteArrayOutputStream. I then "wrap" my ObjectInputStream around the ByteArrayInputStream, and I can read my Java Object as a response.
    This technique is not only clumsy, but it requires buffering everything in memory after the header lines are processed (which happens to be OK for now as my response Object is not large). It also gets really clumsy if the returned HTTP reponse is chunked, because the BufferedReader is needed alternately to read the chunk headers. Fortunately, I haven't encountered a chunked response.
    It feels like what I need is a special Reader object that allows you to alternately read characters or read bytes without "stuttering" (missing buffered bytes).
    I would think the authors of the URLConnection would have encountered this same problem.
    Any thoughts on this would be appreciated.
    -SB
    Edited by: SB4 on Mar 21, 2010 8:08 PM
    Edited by: SB4 on Mar 21, 2010 8:09 PM
    Edited by: SB4 on Mar 21, 2010 8:10 PM

    Yes, that is the problem as you noted. My solution is to continue reading all the characters from the BufferedReader and to convert them back to a byte stream using the ByteArrayOutputStream, OutputStreamWriter, etc.
    It works, just seems clumsy and not scalable.
    I was hoping there might exist a special "CharByteReader" (invented name) class somewhere that would be like a BufferedReader, but that would implement a read(byte[], offset, length) type of method that could access the read-ahead buffer in the same way the read(char[], offset, length) method does.
    URLConnection is just too slow, including chunked mode.

  • Message - There was a problem reading this document (57)

    Anyone else have this problem?
    Purchased version of Windows 32 bit version of Acrobat XI update will not install properly or work.
    First error info message is as per title after initial red screen which only appears once.
    Second error info message is verify operation failed.
    2 downloads, 3 installs and 2 repairs produce same result.
    Adobe Australia called three times on 1800614863 but only automated selections 322323 made and transfer promised.
    First call at 0901 local time.
    All calls placed on hold first two timed out.
    31 minutes into third call got an answer from a man in India.
    In answer to my question:
    Are you receiving reports of problems installing purchased upgrade versions of Acrobat XI Pro?
    The answer was No.
    He took details of messages and offered to help but I declined.
    I have purchased and used all Acrobat Pro upgrades since 6.
    Complete installation attempted.
    Being done on a clean install of Windows XP SP3 on an OQO02 with only other program installed Office 2007 SBE.
    Message was edited by: OQOroger to reflect inability to connect  to seller Adobe Australia. Also Adobe site can't stay on Australia but reverts to USA. Full price of $A282 paid. USA purchasers only pay $US199 ($A191.57 at present exchange rates.) Credit card account already debited for purchase made yesterday. Subject line corrected 'as' changed to 'was'.
    Message was edited by: OQOroger Corrected the price paid and currency conversion amount to show extra paid by Australians for 'local' support (from India). Added 'Message -' to title to make it less cryptic.
    Message was edited by: OQOroger  Typical setup installation results in same problems except
    'There was a problem reading this document (57)'
    window does not appear.
    First window displaying and asking for acceptance of license conditions has no bottom section when first displayed so there is no way to accept these conditions except to close this window (confirm window appears) and launch program again when bottom panel is displayed.

    Despite my advice of some of the many faults I have experienced with Acrobat XI Pro, Adobe support has never asked me to provide a 'Systems Report' which is available under the 'Help' tab.
    This report indicates:
    'Installed Acrobat: C:\Program Files\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe
        Version: 11.0.0.379
        Creation Date: 2012/09/23
        Creation Time: 8:43:44 PM'
    So if anyone has a working version other than 379 please let me know.
    Complete 'Systems Report' is in a window named 'System Information' as is set ot below.
    From first window
    Adobe Acrobat Pro
    menu
    Help/Online Support/Generate System Report
    returns window
    System Information
    with 2 parts
    'System Parameters' and 'Installed Plug-ins'
    first part details:
    System Parameters
    Account Detail:
       User Rights: Admin
       User Account Control: Undefined
       Process Integrity: Undefined
       Profile Type: None
    Acrobat Detail:
       Sandboxing: Off
       Captive Reader: No
       Multi-Reader on Desktop Support: Off
    Available Physical Memory: 530036 KB
    Available Virtual Memory: 1993360 KB
    BIOS Version: OQO    - fe60019
    Default Browser:
    Default Mail: Microsoft Office Outlook
        mapi32.dll
        Version: 1.0.2536.0 (XPClient.010817-1148)
    Display Detail:
       Screen Width: 800
       Screen Height: 480
       Number of Monitors: 1
       Number of Mouse Buttons: 8
       Has Mouse Wheel: Yes
       Has Pen Windows: No
       Double Byte Character Set: No
       Has Input Method Editor: Yes
       Inside Screen Reader: No
    Graphics Card: VIA/S3G UniChrome Pro II IGP
        Version: 6.14.10.385
        Check: Not Supported
    Installed Acrobat: C:\Program Files\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe
        Version: 11.0.0.379
        Creation Date: 2012/09/23
        Creation Time: 8:43:44 PM
    Locale: English (Australia)
    Monitor:
        Name: VIA/S3G UniChrome Pro II IGP
        Resolution: 800 x 480 x 60
        Bits per pixel: 32
    OS Manufacturer: Microsoft Corporation
    OS Name: Microsoft Windows XP Professional
    OS Version: 5.1.2600  Service Pack 3
    Page File Space: 2203236 KB
    Processor: x86 Family 6 Model 10 Stepping 9  CentaurHauls  ~1496  Mhz
    Session Detail:
       Boot Type: Normal
       Is Shutting Down: No
       Network: Available
       Inside Citrix: No
       Inside VMWare: No
       Remote Session: No
       Remote Control: No
    System Name: YOUR-1561454D88
    Temporary Directory: C:\DOCUME~1\OQOuser\LOCALS~1\Temp\
    Time Zone: Pacific Standard Time
    Total Physical Memory: 911792 KB
    Total Virtual Memory: 2097024 KB
    User Name: OQOuser
    Windows Detail:
       Tablet PC: No
       Starter Edition: No
       Media Center Edition: No
       Slow Machine: No
    Windows Directory: C:\WINDOWS
    Installed Plug-ins
    C:\Program Files\Adobe\Acrobat 11.0\Acrobat\plug_ins\Accessibility.api
        Version: 11.0.0.379
        Creation Date: 2012/09/23
        Creation Time: 8:43:52 PM
    C:\Program Files\Adobe\Acrobat 11.0\Acrobat\plug_ins\AcroForm.api
        Version: 11.0.0.379
        Creation Date: 2012/09/23
        Creation Time: 8:43:54 PM
    C:\Program Files\Adobe\Acrobat 11.0\Acrobat\plug_ins\Annots.api
        Version: 11.0.0.379
        Creation Date: 2012/09/23
        Creation Time: 8:43:54 PM
    C:\Program Files\Adobe\Acrobat 11.0\Acrobat\plug_ins\DigSig.api
        Version: 11.0.0.379
        Creation Date: 2012/09/23
        Creation Time: 8:43:54 PM
    C:\Program Files\Adobe\Acrobat 11.0\Acrobat\plug_ins\EScript.api
        Version: 11.0.0.379
        Creation Date: 2012/09/23
        Creation Time: 8:43:52 PM
    C:\Program Files\Adobe\Acrobat 11.0\Acrobat\plug_ins\IA32.api
        Version: 11.0.0.379
        Creation Date: 2012/09/23
        Creation Time: 8:43:52 PM
    C:\Program Files\Adobe\Acrobat 11.0\Acrobat\plug_ins\PPKLite.api
        Version: 11.0.0.379
        Creation Date: 2012/09/23
        Creation Time: 8:43:54 PM
    C:\Program Files\Adobe\Acrobat 11.0\Acrobat\plug_ins\SendMail.api
        Version: 11.0.0.379
        Creation Date: 2012/09/23
        Creation Time: 8:43:54 PM
    C:\Program Files\Adobe\Acrobat 11.0\Acrobat\plug_ins\Updater.api
        Version: 11.0.0.379
        Creation Date: 2012/09/23
        Creation Time: 8:43:54 PM
    I can easily see 2 matters which an inexperienced support desk staff member could home in on.
    Acrobat XI Pro system requirements include
    1024x768 screen resolution and
    Internet Explorer 7, 8, 9, or 10; Firefox Extended Support Release; Chrome
    Well my OQO report above includes
    Display Detail:
       Screen Width: 800
       Screen Height: 480
    and leaves blank
    Default Browser:
    (actually Firefox 17.0.1)
    Yet 'Firefox Extended Support Release' is described by
    Mozilla:
    'Who is it not for?
    Individual users who always want the latest features, performance enhancements and technologies in their browser without waiting for them to become available in ESR several development cycles later.'
    http://www.mozilla.org/en-US/firefox/organizations/
    Since starting this post, I loaded Adobe Acrobat XI Pro on another similar computer I own and use regularly. This was in a dock and connected to an external display. Same problems and reports experienced.
    'Systems Report' for this installation follows:
    Account Detail:
       User Rights: Admin
       User Account Control: Undefined
       Process Integrity: Undefined
       Profile Type: None
    Acrobat Detail:
       Sandboxing: Off
       Captive Reader: No
       Multi-Reader on Desktop Support: Off
    Available Physical Memory: 614280 KB
    Available Virtual Memory: 1988144 KB
    BIOS Version: OQO    - fe60019
    Default Browser:
    Default Mail: Outlook Express
        %ProgramFiles%\Outlook Express\msoe.dll
        Version:
    Display Detail:
       Screen Width: 1280
       Screen Height: 1024
       Number of Monitors: 1
       Number of Mouse Buttons: 8
       Has Mouse Wheel: Yes
       Has Pen Windows: No
       Double Byte Character Set: No
       Has Input Method Editor: Yes
       Inside Screen Reader: No
    Graphics Card: VIA/S3G UniChrome Pro II IGP
        Version: 6.14.10.358
        Check: Not Supported
    Installed Acrobat: C:\Program Files\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe
        Version: 11.0.0.379
        Creation Date: 2012/09/23
        Creation Time: 20:43:44
    Installed Acrobat: C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe
        Version: 10.1.3.23
        Creation Date: 2012/04/04
        Creation Time: 16:53:54
    Locale: English (United Kingdom)
    Monitor:
        Name: VIA/S3G UniChrome Pro II IGP
        Resolution: 1280 x 1024 x 60
        Bits per pixel: 32
    OS Manufacturer: Microsoft Corporation
    OS Name: Microsoft Windows XP Professional
    OS Version: 5.1.2600  Service Pack 3
    Page File Space: 2006176 KB
    Processor: x86 Family 6 Model 13 Stepping 0  CentaurHauls  ~1496  Mhz
    Session Detail:
       Boot Type: Normal
       Is Shutting Down: No
       Network: Available
       Inside Citrix: No
       Inside VMWare: No
       Remote Session: No
       Remote Control: No
    System Name: OKETT143
    Temporary Directory: C:\DOCUME~1\oqo\LOCALS~1\Temp\
    Time Zone: AUS Eastern Standard Time
    Total Physical Memory: 911792 KB
    Total Virtual Memory: 2097024 KB
    User Name: oqo
    Windows Detail:
       Tablet PC: No
       Starter Edition: No
       Media Center Edition: No
       Slow Machine: No
    Windows Directory: C:\WINDOWS
    C:\Program Files\Adobe\Acrobat 11.0\Acrobat\plug_ins\Accessibility.api
        Version: 11.0.0.379
        Creation Date: 2012/09/23
        Creation Time: 20:43:52
    C:\Program Files\Adobe\Acrobat 11.0\Acrobat\plug_ins\Updater.api
        Version: 11.0.0.379
        Creation Date: 2012/09/23
        Creation Time: 20:43:54
    (I did not bother installing plug-ins and deactivated installation before removal of program.)
    With 5 installs producing the same error reports, I am convinced Acrobat XI Pro won't work for me on my computers and have little confidence of useful support from Adobe.
    THERE ARE SO MANY GLARING PROBLEMS WITH MY INSTALLATIONS WITH THE SUPPORT DESK'S RESPOSES UNHELPFUL AND UNINFORMED. I REALLY DON'T ENJOY DOING ADOBE'S QUALITY CONTROL FOR THEM FOR FREE, BUT I CONTINUE TO POST HERE IN THE HOPE THAT SOMEONE WITH REAL AUTHORITY WILL EVENTUALLY TAKE NOTICE AND ARANGE A FIX OF THE PROBLEMS.
    15 Dec 2012 1409 local time.
    Further feedback provided that 1Ghz memory preferred. Problem not addressed. Reply
    Notes from Customer
    Friday, December 14, 2012 7:07:57 PM PST
    System reports at #12 on http://forums.adobe.com/message/4862987#4862987 
    Alert- although ordered in Australia from Australian site and paid in Australian dollars by MasterCard, Adobe chose without warning to process this payment through an overseas account incurring an extra foreign transaction charge for me.
    Adobe support to date has been of no use and their billing practices unreasonably expensive.

  • Maximum size of a file that  the getResourceAsStream() can read?

    hi guys.before i post this new topic, i have search through the forum,and google. on the web .so reply are appreciated.
    1) getResourceAsStream() method, is there a way to know the maximum size of a file that the getResourceAsStream() can read?
    InputStream          is = getClass().getResourceAsStream("Dream2.gif");
                                  byte[]               byte0          = new byte[10 * 1024];
    bcos the size of my bytearray is hardcoded, if any thing is greater than that size ,my program would crash.so i would like to know if there is a way to do that
    2)if that is not available, are there any methods in j2me using any connection (http or socket),that can know the maximum size of the file that are available??????

    You won't be able to tell how big the resource is using this approach. However, since your resource is in the JAR you will be able to know the size of it before hand.
    Otherwise, use the read(byte[], int, int) method to read the resource in chunks like this:
    int count = 0;
    byte[] bytes = new byte[1024];
    while ((count = read(bytes, count, 1024)) != -1) {
      // do something like write to a ByteArrayOutputStream
    }Although redundant, using this approach you can see that you can keep a count of the number of bytes you've read and thus know the total size of the resource.

  • LR5 encountered problems reading this photo.

    Hi,
    I am working on a Macbook Pro, 8gb with 1 tb
    Recently did external back up.
    Mac was having issues so we ( IT guys ) did a clean install and only brought back in basics.
    ( I was on LR3 and PSE9 ) but we didn't bring it over as mirror copy because there were so many other items on Mac I didn't need.
    I bought Mac with LR3 and PSE9 so I could not do upgrade,
    I instead started the trial today, so we could merge from the external the images to Pictures. ( so it was on external in pictures and now on os-x pictures )
    So LR5 brought all my catalogs in, I even got smug mug to find its catalogs. , but now I am getting ! on every image.
    I have selective chosen the image from external and moved it to OS X  pictures folder.
    Why am I getting the ! on the images. When I right click the ! I get error, LR has encountered problems reading this file.
    when I click find in file folder I get a tiff picture with a loop on top and if I click that I get this... Item “untitled-8547-Edit.tif” is used by OS X and can’t be opened.
    one thing I did just notice is the date on the tiff says, Jan 24th 1984 3am 0 bytes tiff image.   ( what the heck? )
    now the image right beside it to the left is the image ( I can actually see ) and it looks good.
    why is finder bringing up a bogus tiff ?
    Thank you for your help. Need to be up and running. Need these ! gone , please help.
    Diana

    Suggestion to all who encounter problems like this: if you've installed 3rd party memory cards (ram), go back to your original ram, or at least the brand of ram that your computuer came with.
    Long story, short:
    I had the same error message in LR5.  It only happened with several images in a given import.  If I deleted all of the images from the import and reimported the images, a different set of images would have the error message.  The images that originally had the message would no longer have the problem.  I deleted and reimported several times while observing the same behavior. 
    Not only did lightroom give me issues, but Bridge had problems reading the files, and the previews of the problem images would not show up in Finder (Mac speak).  This ruled out, to me at least, that it was a software issue.  I went out and purchased a new card reader and had the same problems.  I tried a different card with different images and got the same problems. 
    After I contacted Adobe, they had me upload two files with the error, and they said the files were corrupted due to faulty hardware.  I took my mac book pro (13in early 2011 w/ 10.7.5) to the apple store and they ran a diagnostic test amoung other test and we came up with nothing.  Everything seemed to be good on the hardware side.  After some research the Rep. asked me about my ram (memory cards).  I had in the past installed two 3rd party cards to boost my ram from 4GB to 8GB. The rep. suggested that I go home and test the issue with the original ram my computer came with before we go any farther.  So far, I haven't had any issues. 
    I hope this helps,
    Josef

  • Read byte from a long

    Hi,
    How can I read bytes from a long. i..e read one byte by one byte from long.
    Naman Patel

    ok here is my problem how do i ignore the sign byte i.e please check this code
    long nr=1345345333L, add=7, nr2=0x12345671L;
              long tmp;
              long[] result = new long[2];
              char[] pwd = password.toCharArray();
              for (int pCount = 0; pCount < pwd.length; pCount++){
                   if (pwd[pCount] == ' ' || pwd[pCount] == '\t')
                        continue;
                   tmp= (long) pwd[pCount];
                   nr^= (((nr & 63)+add)*tmp)+ (nr << 8);
                   nr2+=(nr2 << 8) ^ nr;
                   add+=tmp;
              result[0]=nr & (((long) 1L << 31) -1L); /* Don't use sign bit (str2int) */;
              result[1]=nr2 & (((long) 1L << 31) -1L);
              int i = 0;
              long x = result[0];
              byte b[] = longToBytes(x);
              String str = "";
              i = 0;
              while(i < 4){
                   if(b[i] == 0x00) {
                        System.out.println("byte is 0x00");
                        str += "00";
                   else {
                        if(b[i] <= 0x0f && b[i] >= 0) {
                             System.out.println("byte is 0x0f" + b);
                             str += "0";
                        break;
                   i++;
              i = 0;
              str += Long.toHexString(result[0]);
              x = result[1];
              b = longToBytes(x);
              while(i < 4){
                   if(b[i] == 0x00) {
                        System.out.println("byte is 0x00");
                        str += "00";
                   else {
                        if(b[i] <= 0x0f && b[i] >= 0) {
                             System.out.println("byte is 0x0f");
                             str += "0";
                        break;
                   i++;
              str += Long.toHexString(result[1]);

  • Unable 2 read bytes array of images

    I have made a client application which will
    receive an image from server
    the mobile app (clent) is reveiving bytes array in emulator
    but unable 2 receive it in real application...
    message = new byte[2073]; //string 2 read pic;
    for(i=0;i<2073;i++)
    //read pic array byte by byte
    x=is.read(); //(is is an input stream)
    message= (byte)x;
    // also tried this
    //is.read(message)
    works fine in emulator but not in real appication in sony erricson k310i

    sorry actually code was.....
    for reading byte by byte...............
    message = new byte[2073]; //string 2 read pic;
    for(a=0;a<2073;a++)
    //read pic array byte by byte
    x=is.read(); //(is is an input stream)
    message[a]= (byte)x; //problem in last post i[] //converting it into italic
    //for reading whole array message
    // also tried this
    is.read(message)
    and i think there shall be no problem in converting an[b] int into byte

  • Problem reading attached PDF files

    <!--[if gte mso 9]><xml>
    </xml><![endif]--><!--[if gte mso 9]><xml>
    Normal
    0
    false
    false
    false
    MicrosoftInternetExplorer4
    </xml><![endif]--><!--[if gte mso 9]><xml>
    </xml><![endif]--><!--[if !mso]>
    <object
         classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui>
    </object>
    <style>
    st1\:*{behavior:url(#ieooui) }
    </style>
    <![endif]-->
    <!--[if gte mso 10]>
    <style>
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-parent:"";
    mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
    mso-para-margin:0cm;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:10.0pt;
    font-family:"Times New Roman";
    mso-ansi-language:#0400;
    mso-fareast-language:#0400;
    mso-bidi-language:#0400;}
    </style>
    <![endif]-->
    Hello.
    At my work, we use JavaMail (version 1.4.1) in server
    programs, processing mails with attached files from customers. Mostly it is
    TIFF images, but it can also be PDF
    files, and the attached files are extracted and saved for further processing.
    Sometimes, we have a problem, reading attached PDF
    files. The files get saved, but is of size 0 bytes. If I forward it, however,
    using an Outlook client, the forwarded item can be read by our JavaMail program, and files saved OK.
    I have tried to forward it using JavaMail, but I cannot
    compose the mail parts, that fails, however - of the same reasons: I cannot
    read the them in:-)
    It looks like it's when the mail is send from a Mac.
    Anyway, the part to read is of content type "APPLICATION/APPLEFILE" whereas when it's forwarded, it's content
    type is "APPLICATION/OCTET-STREAM"
    The way, I read the part, is to check if the part is an
    instance of an InputStream, and then saving into a byte array, like this:
    h5. Object
    obj = part.getContent();
    if (obj instanceof
    InputStream) {
    InputStream
    inStream = part.getInputStream();
    byte[]
    buffer = new byte[BUFFER_SIZE];
    int
    bytesRead;
    BufferedOutputStream
    outBufStream = new BufferedOutputStream(new FileOutputStream(attFileName));
    while
    ((bytesRead = inStream.read(buffer)) != -1)
    outBufStream.write(buffer,
    0, bytesRead);
    inStream.close();
    h5. outBufStream.close();
    Problem
    is that .read() method always returns -1 when content type Is APPLICATION/APPLEFILE,
    so a file of 0 bytes are created.
    Interesting is perhaps, that debugging shows me that the
    part instance of the InputStream actually is a
    com.sun.mail.util.BASE64DecoderStream when it fails, and a
    com.sun.mail.util.QPDecoderStream
    when it works OK.
    So I have this idea, that I's a certain type of decoder
    stream we're missing? We use Java 1.6.0 update 10 and JavaMail 1.4.1. and since
    we use java 1.6 we use the JAF framework from that one, I guess?
    Hope you guys can help?
    Thanks in advance, Per Jensen
    [email protected]

    We have two (MS Exchange) servers (from trace log):
    Microsoft Exchange IMAP4rev1-server version 5.5.2650.23
    Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7226.0
    - the first one is the one, we're using here, but I have tried on the other, newer version too, and it didn't help either.
    But I've found out a couple of interesting things:
    1: Debugging shows me, that the part instance of the InputStream actually is a com.sun.mail.util.BASE64DecoderStream when it fails, and if I forward the mail via Outlook as described earlier, and it can be read OK, the part is a com.sun.mail.util.QPDecoderStream instance.
    2: I can save the WHOLE message to a file, using message.getInputStream(), and when I opens the file I can find the individual attachments - as well as the bodytext, if any - as they are separated with the disposition, mimetype and filename fields, showed as plain text. And the attachments are showed as blocks of characters; I guess it's the ascii character representation of the bytes. Here's a snippet, note the first two sentences. They seemes to be added, somehow, when I dump the message to file(?):
    <START OF DUMPED FILE>
    This message is in MIME format. Since your mail reader does not understand
    this format, some or all of this message may not be legible.
    ------_=_NextPart_000_01C9A8A2.19479FE4
    Content-Type: text/plain;
         charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    (The body text here)
    ------_=_NextPart_000_01C9A8A2.19479FE4
    Content-Type: application/applefile;
         name="first_attachment.pdf"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment;
         filename="first_attachment.pdf"
    AAUWAAACAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAIAAAASgAAABAAAAAJAAAAWgAAACAAAAADAAAA
    egAAABAAAAABAAAAigAAI6IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAA1NzE2NSBCTkhhdWcucGRmJVBERi0xLjMKJbe+raoKMSAwIG9iago8PAovVHlwZSAv
    Q2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCjIgMCBvYmoKPDwKL1R5cGUgL1BhZ2VzCi9L
    aWRzIFsgNCAwIFIgXQovQ291bnQgMQo+PgplbmRvYmoKMyAwIG9iago8PAovUHJvZHVjZXIgKEhh
    ...(and so on)
    DMgMDAwMDAgbg0KMDAwMDAwNTM1NSAwMDAwMCBuDQowMDAwMDA2NTA5IDAwMDAwIG4NCjAwMDAw
    MDc2NjUgMDAwMDAgbg0KdHJhaWxlcgo8PAovUm9vdCAxIDAgUgovSW5mbyAzIDAgUgovU2l6ZSAx
    MQo+PgpzdGFydHhyZWYKODgyNAolJUVPRgo=
    ------_=_NextPart_000_01C9A8A2.19479FE4
    Content-Type: application/applefile;
         name="second_attachment.pdf"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment;
         filename="second_attachment.pdf"
    AAUWAAACAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAIAAAASgAAABAAAAAJAAAAWgAAACAAAAADAAAA
    egAAABAAAAABAAAAigAAI9wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    AAAAAAAAAAA1NzE4MSBCTkhhdWcucGRmJVBERi0xLjMKJbe+raoKMSAwIG9iago8PAovVHlwZSAv
    Q2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCjIgMCBvYmoKPDwKL1R5cGUgL1BhZ2VzCi9L
    ...(and so on)
    <END OF DUMPED FILE>I understand that it's base64 encoded and must be decoded, and I have tried to copy/paste the blocks separately, run them through the com.sun.mail.util.BASE64DecoderStream, and saving them as PDF files, which works fine(!).
    As the solution seems to be painfull: Parse the mail to find where the attachments starts and stops and saving them as files, I hope you guys can send me on the right track?
    PS: The trace log when dumping the file shows everything OK, I think. Here's a bit of the log at the end of dumping the message:
    (...)MTUgMDAwMDAgbg0KMDAwMDAwNTg2NyAwMDAwMCBuDQowMDAwMDA3MDIxIDAwMDAwIG4NCjAwMDAw
    MDgxNzcgMDAwMDAgbg0KdHJhaWxlcgo8PAovUm9vdCAxIDAgUgovSW5mbyAzIDAgUgovU2l6ZSAx
    MQo+PgpzdGFydHhyZWYKOTMzNgolJUVPRgo=
    ------_=_NextPart_000_01C9A8A2.19479FE4--
    A10 OK FETCH fuldført.
    A11 FETCH 1 (BODY[TEXT]<40336.16384>)
    * 1 FETCH (BODY[TEXT]<40336> {0}
    20/03-09 15:18:21,445 3 Done, writing bytes to ByteArrayOutputStream. Size: 40336 bytes (..common.mail.MailUtil.dumpMessageToFile.dumpMessageToFile)
    20/03-09 15:18:21,445 3 Done, writing ByteArrayOutputStream to file. (..common.mail.MailUtil.dumpMessageToFile.dumpMessageToFile)
    A11 OK FETCH fuldført.

  • Reading bytea column over dblink

    Hi,
    I try to read bytea column from postgresql db over a dblink in Oracle DB. But I could not. How can I solve the problem?
    In windows environment there is a parameter in odbc driver bytea as LO. I could not find how to set it on unix odbc.
    Versions of products I Use:
    Postgresql 8.3.3 on redhat
    Oracle DB : 10.2.0.4 on HP/UX
    HSODBC : 10.2.0.4

    CURRENT_DATE is not supported:
    Supported SQL Syntax and Functions
    However, from reading this part:
    Supported SQL Syntax and Functions
    it becomes clear that you'll need to use a string of DATE datatype (in a fixed format) or select from a DATE column.
    You could just boldly try: to_date(CURRENT_DATE) , but you'll probably receive ORA-02070 again...

  • RE: [Adobe Reader] when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? i

    HelloThank's for your helpsI hope this document is helpfulBest Regards,
    Date: Sun, 22 Jun 2014 17:10:17 -0700
    From: [email protected]
    To: [email protected]
    Subject:  when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th
        when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help m
        created by Anoop9178 in Adobe Reader - View the full discussion
    Hi,
    Would it be possible for you to share the document?
    Regards,
    Anoop
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6485431#6485431
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
         To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • Problem reading RFC values from IRecordSet !!!!

    Hi All,
    I am having some problem reading values from IRecordSet. Can not seem to parse the output structure from RFC. AM using connector gateway service to execute BAPI_EXCHRATE_GETCURRENTRATES.
    Here is the code,
    MappedRecord input = rf.createMappedRecord("input");
    input.put("DATE",new String("01011990"));
    input.put("DATE_TYPE", new String("V"));
    input.put("RATE_TYPE", new String("M"));
    MappedRecord output = (MappedRecord) ix.execute(ixspec, input);
    Object rs = null;
    IRecordSet recSet = null;
    Object result = output.get("EXCH_RATE_LIST");
    if (result == null) {
    response.write("<BR>null");
    rs = new String(" ");
    } else if (result instanceof IRecordSet) {
    IRecordSet irs = (IRecordSet) result;
    response.write("<BR>Got some dataaa");
    IRecordMetaData rsmd = null;
    rsmd = irs.retrieveMetaData();
    irs.beforeFirst();
    while(irs.next()){
    response.write("Row::"+irs.getString("RATE_TYPE")+" "+irs.getString("FROM_CURR")+" "+irs.getString("EXCH_RATE"));
    Am getting the pritn statement, Got Some Data on the PDK component.
    But somehow not able to read the values from IRecordSet
    What is the mistake here?
    Pls help
    Edited by: Aakash Jain on Oct 11, 2008 12:22 AM

    Hi
    Try in this way.
    IRecordSet resultTable = (IRecordSet)outputParams.get("TABLE_NAME");
    for(resultTable.beforeFirst(); resultTable.next(); ) {
    response.write(resultTable.getString(0));
    response.write(resultTable.getString(1));
    Thanks

  • S.O.S. - I have a problem reading an XML to save it in a database

    I have a problem reading an XML I trying to save the data in a database. In a log cuardo the message as text and is correct, but I do not type in the database
    Glassfish give me this error in the log:
    HTTPBC-E01052: The value set on the org.glassfish.openesb.address.url normalized message property is invalid. This property is expected to be of String type only.
    Accepted the message in DBBC Binding. 99574032187979-45019-134439471876390116
    Accepted message with exchange ID 99574032187979-45019-134439471876390116 in DBBC outbound message processor.
    Accepted message with exchange ID 99574032187979-45019-134439471876390116 in DBBC outbound message processor.
    Pattern for exchange Id 99574032187979-45019-134439471876390116 is http://www.w3.org/2004/08/wsdl/in-out.
    Gettin bean for {http://j2ee.netbeans.org/wsdl/bd}serviceport
    Adding reply listener for messsage exchange:99574032187979-45019-134439471876390116
    Received in-out message 99574032187979-45019-134439471876390116.
    Using Jndi Name:: jdbc/logger
    Executing SQL....insert into dbo.appender (timestamp,mensaje) values (?,?)
    BPCOR-6151:The process instance has been terminated because a fault was not handled; Fault Name is {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure; Fault Data is null
    com.sun.jbi.engine.bpel.core.bpel.exception.StandardException: BPCOR-6174:Selection Failure occurred in BPEL({http://enterprise.netbeans.org/bpel/MapeoPedidosEntrada/MapeoPE}MapeoPE) at line 39
    BPCOR-6129:Line Number is 37
    BPCOR-6130:Activity Name is Assign1
    at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELInterpreter.createVirtualFaultUnit(BPELInterpreter.java:234)
    at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELInterpreter.execute(BPELInterpreter.java:202)
    at com.sun.jbi.engine.bpel.core.bpel.engine.BusinessProcessInstanceThread.execute(BusinessProcessInstanceThread.java:98)
    at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELProcessManagerImpl.process(BPELProcessManagerImpl.java:1046)
    at com.sun.jbi.engine.bpel.core.bpel.engine.impl.EngineImpl.process(EngineImpl.java:278)
    at com.sun.jbi.engine.bpel.core.bpel.engine.impl.EngineImpl.process(EngineImpl.java:1293)
    at com.sun.jbi.engine.bpel.BPELSEInOutThread.processStatus(BPELSEInOutThread.java:590)
    at com.sun.jbi.engine.bpel.BPELSEInOutThread.processMsgEx(BPELSEInOutThread.java:292)
    at com.sun.jbi.engine.bpel.BPELSEInOutThread.run(BPELSEInOutThread.java:193)
    normalized message
    Finished processing outbound messages.
    Accepted the message in DBBC Binding. 99574032187979-45019-134439471876390116
    Accepted message with exchange ID 99574032187979-45019-134439471876390116 in DBBC outbound message processor.
    Accepted message with exchange ID 99574032187979-45019-134439471876390116 in DBBC outbound message processor.
    Pattern for exchange Id 99574032187979-45019-134439471876390116 is http://www.w3.org/2004/08/wsdl/in-out.
    Gettin bean for {http://j2ee.netbeans.org/wsdl/bd}serviceport
    Adding reply listener for messsage exchange:99574032187979-45019-134439471876390116
    Received in-out message 99574032187979-45019-134439471876390116.
    Finished processing outbound messages.
    I take data from a XML and I put in two tables in a database. I do not understand what it is the problem.
    The main BPEL is this:
    <?xml version="1.0" encoding="UTF-8"?>
    <process
    name="MapeoPE"
    targetNamespace="http://enterprise.netbeans.org/bpel/MapeoPedidosEntrada/MapeoPE"
    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
    xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
    xmlns:tns="http://enterprise.netbeans.org/bpel/MapeoPedidosEntrada/MapeoPE" xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" xmlns:ns0="http://j2ee.netbeans.org/xsd/tableSchema" xmlns:ns1="http://java.sun.com/xml/ns/jaxb" xmlns:ns2="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab">
    <import namespace="http://j2ee.netbeans.org/wsdl/MapeoPedidosEntrada/PollInPE" location="PollInPE.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
    <import namespace="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab" location="recumat_htor2-siglo_ped_ext_cab.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
    <import namespace="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" location="recumat_htor2-siglo_ped_ext_lin.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
    <import namespace="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" location="localhost_9080/bitacoraService/bitacoraPort.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
    <partnerLinks>
    <partnerLink name="siglo_ped_ext_cab" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab" partnerLinkType="tns:jdbcpartner" partnerRole="jdbcPortTypeRole"/>
    <partnerLink name="siglo_ped_ext_lin" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" partnerLinkType="tns:jdbcpartner" partnerRole="jdbcPortTypeRole"/>
    <partnerLink name="log" xmlns:tns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" partnerLinkType="tns:bitacora" partnerRole="bitacoraPortTypeRole"/>
    <partnerLink name="Entrada" xmlns:tns="http://j2ee.netbeans.org/wsdl/MapeoPedidosEntrada/PollInPE" partnerLinkType="tns:PollInPE" myRole="FileInboundPortTypeRole"/>
    </partnerLinks>
    <variables>
    <variable name="BitacoraOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" messageType="tns:bitacoraOperationRequest"/>
    <variable name="InsertOutSIGLO_PED_EXT_LIN" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" messageType="tns:insertRetMsg"/>
    <variable name="InsertInSIGLO_PED_EXT_LIN" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" messageType="tns:inputMsg"/>
    <variable name="InsertOutSIGLO_PED_EXT_CAB" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab" messageType="tns:insertRetMsg"/>
    <variable name="InsertInSIGLO_PED_EXT_CAB" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab" messageType="tns:inputMsg"/>
    <variable name="PollIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/MapeoPedidosEntrada/PollInPE" messageType="tns:PollInputMessage"/>
    </variables>
    <sequence>
    <receive name="Receive1" createInstance="yes" partnerLink="Entrada" operation="poll" xmlns:tns="http://j2ee.netbeans.org/wsdl/MapeoPedidosEntrada/PollInPE" portType="tns:FileInboundPortType" variable="PollIn"/>
    <assign name="Assign2log">
    <copy>
    <from>string($PollIn.part1)</from>
    <to variable="BitacoraOperationIn" part="part1"/>
    </copy>
    </assign>
    <invoke name="log" partnerLink="log" operation="bitacoraOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" portType="tns:bitacoraPortType" inputVariable="BitacoraOperationIn"/>
    <assign name="Assign1">
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/@numero</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_numero_pedido</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/@FechaPedido</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_fecha_pedido</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/@FechaEntrega</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_fecha_entrega</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/@Observaciones</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_observaciones</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/@ejercicio</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_ejercicio</to>
    </copy>
    <copy>
    <from>number($PollIn.part1/ns1:ORDERS/@Funcion)</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_funcion</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/@tipoPedido</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_tipo_pedido</to>
    </copy>
    <copy>
    <from>string($PollIn.part1/ns1:ORDERS/@condFacturar)</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_condfacturar</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/@id</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_usuario_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/ns1:Contacto/@tipo</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contacto_tipo</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/ns1:Contacto/@id</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contacto_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/ns1:Contacto/@descripcion</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contacto_desc</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/ns1:Contacto/@valor</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contacto_valor</to>
    </copy>
    <copy>
    <from>number($PollIn.part1/ns1:ORDERS/ns1:Procedimiento/@codigo)</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_proced_cod</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Procedimiento/@descripcion</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_proced_desc</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/@id</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_ped_ext_cab_pk</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Procedimiento/@id</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_proced_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Contrato/@id</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contrato_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Contrato/@Expediente</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contr_expedte</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Contrato/@CCA</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contr_cca</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@codigo</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_cod</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@id</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_empresa_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@CIF</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_cif</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@nombreComercial</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_nom_comerc</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@EANDestino</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_ean_dest</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@nombreFiscal</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_nom_fiscal</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@EANvendedor</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_ean_vend</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@descripcion</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orgestor_desc</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@id</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orgestor_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@EANEmisor</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orges_eanemis</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@EANQpide</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orges_eanqpide</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@EANAqsf</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orges_eanaqsf</to>
    </copy>
    <copy>
    <from>number($PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@numeroSerie)</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_num_serie</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@numeroLinea</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_numero_linea</to>
    </copy>
    <copy>
    <from>number($PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@numeroLote)</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_num_lote</to>
    </copy>
    <copy>
    <from>number($PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@numeroAlbaran)</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_num_albaran</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@fechaAlbaran</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_fecha_albaran</to>
    </copy>
    <copy>
    <from>number($PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@valorarAlbaranes)</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_valorar_albar</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@CantidadCompra</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_compra</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@Observaciones</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_observaciones</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@cantidadPendiente</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_pendiente</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@cantidadAnulada</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_anulada</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@precio</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_precio</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@CIP</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_produ_cip</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@marca</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:spl_produ_marca</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@refFabricante</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_produ_refabric</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@modelo</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_produ_modelo</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_producto_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@codigo</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_codigo</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@codigoLocal</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_codigo_loc</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@codigoSAS</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_codigo_sas</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@unidadMedida</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_und_medida</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@unidadContratacion</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_und_contra</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_artgenerico_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_presentac_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/@codigoEAN</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_pre_cod_ean</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/@refDistribuidor</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_ref_distribuid</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/ns1:Oferta/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_oferta_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/ns1:Oferta/@factorContratacion</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_factor_contrat</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/ns1:Oferta/@cantidadEnUnidades</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_en_unds</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/ns1:Oferta/@cantidadContratacion</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_contrata</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:ProgramacionEntregas/ns1:Entregar/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_linprogent_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:ProgramacionEntregas/ns1:Entregar/@cantidad</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_entrega</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:ProgramacionEntregas/ns1:Entregar/@fecha</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_fecha_entrega</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:PuntoEntrega/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_pto_entrega_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:PuntoEntrega/@EANReceptor</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_ean_receptor</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:PuntoEntrega/@descripcion</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_pto_entre_desc</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_origen_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:SolicitudLinea/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_lin_solic_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:TipoOrigen/@descripcion</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_tp_origen_desc</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:TipoOrigen/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_tp_origen_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:SolicitudLinea/ns1:Solicitud/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_solicitud_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:SolicitudLinea/ns1:Solicitud/@codigo</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_solicitud_cod</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_ped_ext_lin_pk</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pec_ped_ext_cab_pk</to>
    </copy>
    </assign>
    <invoke name="Invoke_SIGLO_PED_EXT_CAB" partnerLink="siglo_ped_ext_cab" operation="insert" portType="ns2:jdbcPortType" inputVariable="InsertInSIGLO_PED_EXT_CAB" outputVariable="InsertOutSIGLO_PED_EXT_CAB"/>
    <invoke name="Invoke_SIGLO_PED_EXT_LIN" partnerLink="siglo_ped_ext_lin" operation="insert" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" portType="tns:jdbcPortType" inputVariable="InsertInSIGLO_PED_EXT_LIN" outputVariable="InsertOutSIGLO_PED_EXT_LIN"/>
    </sequence>
    </process> Thanks in advance!!!
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  &n

    I change the bpel to this:
    <?xml version="1.0" encoding="UTF-8"?>
    <process
    name="MapeoPE"
    targetNamespace="http://enterprise.netbeans.org/bpel/MapeoPedidosEntrada/MapeoPE"
    xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
    xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
    xmlns:tns="http://enterprise.netbeans.org/bpel/MapeoPedidosEntrada/MapeoPE" xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" xmlns:ns0="http://j2ee.netbeans.org/xsd/tableSchema" xmlns:ns1="http://java.sun.com/xml/ns/jaxb" xmlns:ns2="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab">
    <import namespace="http://j2ee.netbeans.org/wsdl/MapeoPedidosEntrada/PollInPE" location="PollInPE.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
    <import namespace="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab" location="recumat_htor2-siglo_ped_ext_cab.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
    <import namespace="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" location="recumat_htor2-siglo_ped_ext_lin.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
    <import namespace="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" location="localhost_9080/bitacoraService/bitacoraPort.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
    <partnerLinks>
    <partnerLink name="siglo_ped_ext_cab" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab" partnerLinkType="tns:jdbcpartner" partnerRole="jdbcPortTypeRole"/>
    <partnerLink name="siglo_ped_ext_lin" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" partnerLinkType="tns:jdbcpartner" partnerRole="jdbcPortTypeRole"/>
    <partnerLink name="log" xmlns:tns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" partnerLinkType="tns:bitacora" partnerRole="bitacoraPortTypeRole"/>
    <partnerLink name="Entrada" xmlns:tns="http://j2ee.netbeans.org/wsdl/MapeoPedidosEntrada/PollInPE" partnerLinkType="tns:PollInPE" myRole="FileInboundPortTypeRole"/>
    </partnerLinks>
    <variables>
    <variable name="BitacoraOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" messageType="tns:bitacoraOperationRequest"/>
    <variable name="InsertOutSIGLO_PED_EXT_LIN" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" messageType="tns:insertRetMsg"/>
    <variable name="InsertInSIGLO_PED_EXT_LIN" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" messageType="tns:inputMsg"/>
    <variable name="InsertOutSIGLO_PED_EXT_CAB" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab" messageType="tns:insertRetMsg"/>
    <variable name="InsertInSIGLO_PED_EXT_CAB" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab" messageType="tns:inputMsg"/>
    <variable name="PollIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/MapeoPedidosEntrada/PollInPE" messageType="tns:PollInputMessage"/>
    </variables>
    <faultHandlers>
    <catchAll>
    <sequence name="Sequence1" xmlns:tns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora">
    <assign name="Assign2log">
    <copy>
    <from>string($PollIn.part1)</from>
    <to variable="BitacoraOperationIn" part="part1"/>
    </copy>
    </assign>
    <invoke name="log" partnerLink="log" operation="bitacoraOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" portType="tns:bitacoraPortType" inputVariable="BitacoraOperationIn"/>
    </sequence>
    </catchAll>
    </faultHandlers>
    <sequence>
    <receive name="Receive1" createInstance="yes" partnerLink="Entrada" operation="poll" xmlns:tns="http://j2ee.netbeans.org/wsdl/MapeoPedidosEntrada/PollInPE" portType="tns:FileInboundPortType" variable="PollIn"/>
    <sequence name="Sequence1bis" xmlns:tns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora">
    <assign name="bisAssign2log">
    <copy>
    <from>string($PollIn.part1)</from>
    <to variable="BitacoraOperationIn" part="part1"/>
    </copy>
    </assign>
    <invoke name="bislog" partnerLink="log" operation="bitacoraOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" portType="tns:bitacoraPortType" inputVariable="BitacoraOperationIn"/>
    </sequence>
    <empty name="HastaAquiVa"/>
    <assign name="Assign1">
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/@numero</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_numero_pedido</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/@FechaPedido</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_fecha_pedido</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/@FechaEntrega</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_fecha_entrega</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/@Observaciones</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_observaciones</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/@ejercicio</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_ejercicio</to>
    </copy>
    <copy>
    <from>number($PollIn.part1/ns1:ORDERS/@Funcion)</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_funcion</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/@tipoPedido</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_tipo_pedido</to>
    </copy>
    <copy>
    <from>string($PollIn.part1/ns1:ORDERS/@condFacturar)</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_condfacturar</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/@id</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_usuario_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/ns1:Contacto/@tipo</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contacto_tipo</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/ns1:Contacto/@id</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contacto_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/ns1:Contacto/@descripcion</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contacto_desc</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/ns1:Contacto/@valor</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contacto_valor</to>
    </copy>
    <copy>
    <from>number($PollIn.part1/ns1:ORDERS/ns1:Procedimiento/@codigo)</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_proced_cod</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Procedimiento/@descripcion</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_proced_desc</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/@id</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_ped_ext_cab_pk</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Procedimiento/@id</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_proced_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Contrato/@id</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contrato_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Contrato/@Expediente</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contr_expedte</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Contrato/@CCA</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contr_cca</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@codigo</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_cod</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@id</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_empresa_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@CIF</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_cif</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@nombreComercial</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_nom_comerc</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@EANDestino</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_ean_dest</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@nombreFiscal</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_nom_fiscal</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@EANvendedor</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_ean_vend</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@descripcion</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orgestor_desc</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@id</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orgestor_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@EANEmisor</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orges_eanemis</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@EANQpide</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orges_eanqpide</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@EANAqsf</from>
    <to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orges_eanaqsf</to>
    </copy>
    <copy>
    <from>number($PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@numeroSerie)</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_num_serie</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@numeroLinea</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_numero_linea</to>
    </copy>
    <copy>
    <from>number($PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@numeroLote)</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_num_lote</to>
    </copy>
    <copy>
    <from>number($PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@numeroAlbaran)</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_num_albaran</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@fechaAlbaran</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_fecha_albaran</to>
    </copy>
    <copy>
    <from>number($PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@valorarAlbaranes)</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_valorar_albar</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@CantidadCompra</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_compra</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@Observaciones</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_observaciones</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@cantidadPendiente</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_pendiente</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@cantidadAnulada</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_anulada</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@precio</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_precio</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@CIP</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_produ_cip</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@marca</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:spl_produ_marca</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@refFabricante</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_produ_refabric</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@modelo</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_produ_modelo</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_producto_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@codigo</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_codigo</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@codigoLocal</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_codigo_loc</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@codigoSAS</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_codigo_sas</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@unidadMedida</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_und_medida</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@unidadContratacion</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_und_contra</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_artgenerico_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_presentac_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/@codigoEAN</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_pre_cod_ean</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/@refDistribuidor</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_ref_distribuid</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/ns1:Oferta/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_oferta_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/ns1:Oferta/@factorContratacion</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_factor_contrat</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/ns1:Oferta/@cantidadEnUnidades</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_en_unds</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/ns1:Oferta/@cantidadContratacion</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_contrata</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:ProgramacionEntregas/ns1:Entregar/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_linprogent_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:ProgramacionEntregas/ns1:Entregar/@cantidad</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_entrega</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:ProgramacionEntregas/ns1:Entregar/@fecha</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_fecha_entrega</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:PuntoEntrega/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_pto_entrega_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:PuntoEntrega/@EANReceptor</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_ean_receptor</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:PuntoEntrega/@descripcion</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_pto_entre_desc</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_origen_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:SolicitudLinea/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_lin_solic_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:TipoOrigen/@descripcion</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_tp_origen_desc</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:TipoOrigen/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_tp_origen_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:SolicitudLinea/ns1:Solicitud/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_solicitud_id</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:SolicitudLinea/ns1:Solicitud/@codigo</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_solicitud_cod</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_ped_ext_lin_pk</to>
    </copy>
    <copy>
    <from>$PollIn.part1/ns1:ORDERS/@id</from>
    <to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pec_ped_ext_cab_pk</to>
    </copy>
    </assign>
    <invoke name="Invoke_SIGLO_PED_EXT_CAB" partnerLink="siglo_ped_ext_cab" operation="insert" portType="ns2:jdbcPortType" inputVariable="InsertInSIGLO_PED_EXT_CAB" outputVariable="InsertOutSIGLO_PED_EXT_CAB"/>
    <invoke name="Invoke_SIGLO_PED_EXT_LIN" partnerLink="siglo_ped_ext_lin" operation="insert" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" portType="tns:jdbcPortType" inputVariable="InsertInSIGLO_PED_EXT_LIN" outputVariable="InsertOutSIGLO_PED_EXT_LIN"/>
    </sequence>
    </process>
    And change the XML input to that:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <root>
    <ORDERS id="125" numero="34" FechaPedido="05/10/2006" FechaEntrega="05/11/2006" Observaciones="Pedido en monitorización." ejercicio="2006" Funcion="0" tipoPedido="220" condFacturar="81E">
    <Usuario id="45">
    <Contacto id="13" tipo="TE" descripcion="Teléfono de Juanjo Carmona" valor="620987845"/>
    </Usuario>
    <Procedimiento id="1" codigo="0" descripcion="Concurso Público"/>
    <Contrato id="1457467" Expediente="07CSU001" CCA="123+WER345"/>
    <Empresa id="13" codigo="237619" nombreComercial="nombreComercial1" nombreFiscal="nombreFiscal1" CIF="cif1" EANvendedor="CODIGOEAN111" EANDestino="CODIGOEAN112"/>
    <OrganoGestor id="1" descripcion="Hospital Virgen de Tal" EANQpide="CODIGOEAN113" EANAqsf="CODIGOEAN114" EANEmisor="CODIGOEAN115"/>
    <Lineas>
    <PedidoLinea id="234" numeroLinea="1" numeroSerie="1" numeroLote="1" numeroAlbaran="1" fechaAlbaran="05/11/2006" valorarAlbaranes="true" CantidadCompra="3" Observaciones="observaciones lÃÂnea1" cantidadPendiente="3" cantidadAnulada="0" precio="11.243">
    <Producto id="1228" CIP="" refFabricante="CS-16402" modelo="modelo1" marca="marca1"/>
    <Articulo id="89" codigo="001097" codigoSAS="01.02.07.120045" codigoLocal="014554" unidadContratacion="CMK" unidadMedida="CMK"/>
    <InfLogistica id="45" codigoEAN="codigoEAN1" refDistribuidor="refDistribuidor1">
    <Oferta id="67" factorContratacion="2.5" cantidadContratacion="7.5" cantidadEnUnidades="7"/>
    </InfLogistica>
    <ProgramacionEntregas>
    <Entregar id="61" cantidad="3" fecha="05/11/2006"/>
    </ProgramacionEntregas>
    <PuntoEntrega id="546" EANReceptor="CODIGOEAN120" descripcion="Almacen principal"/>
    <Origen id="464">
    <TipoOrigen id="1" descripcion="tipo1"/>
    <SolicitudLinea id = "453">
    <Solicitud id="67" codigo="3456"/>
    </SolicitudLinea>
    </Origen>
    </PedidoLinea>
    </Lineas>
    </ORDERS>
    </root>
    An the result is:
    I18N: BPJBI-3002: Pattern for exchange Id 123033969803782-31456-134439750656880061 is http://www.w3.org/2004/08/wsdl/in-only
    I18N: BPJBI-3004: Received in-only message for M Ex 123033969803782-31456-134439750656880061 content is <?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:msgns="http://j2ee.netbeans.org/wsdl/MapeoPedidosEntrada/PollInPE" type="msgns:PollInputMessage" version="1.0" xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"><jbi:part><root>
    <ORDERS FechaEntrega="05/11/2006" FechaPedido="05/10/2006" Funcion="0" Observaciones="Pedido en monitorizaci�³n." condFacturar="81E" ejercicio="2006" id="125" numero="34" tipoPedido="220">
    <Usuario id="45">
    <Contacto descripcion="Tel�©fono de Juanjo Carmona" id="13" tipo="TE" valor="620987845"/>
    </Usuario>
    <Procedimiento codigo="0" descripcion="Concurso P�ºblico" id="1"/>
    <Contrato CCA="123+WER345" Expediente="07CSU001" id="1457467"/>
    <Empresa CIF="cif1" EANDestino="CODIGOEAN112" EANvendedor="CODIGOEAN111" codigo="237619" id="13" nombreComercial="nombreComercial1" nombreFiscal="nombreFiscal1"/>
    <OrganoGestor EANAqsf="CODIGOEAN114" EANEmisor="CODIGOEAN115" EANQpide="CODIGOEAN113" descripcion="Hospital Virgen de Tal" id="1"/>
    <Lineas>
    <PedidoLinea CantidadCompra="3" Observaciones="observaciones lÃ?Ânea1" cantidadAnulada="0" cantidadPendiente="3" fechaAlbaran="05/11/2006" id="234" numeroAlbaran="1" numeroLinea="1" numeroLote="1" numeroSerie="1" precio="11.243" valorarAlbaranes="true">
    <Producto CIP="" id="1228" marca="marca1" modelo="modelo1" refFabricante="CS-16402"/>
    <Articulo codigo="001097" codigoLocal="014554" codigoSAS="01.02.07.120045" id="89" unidadContratacion="CMK" unidadMedida="CMK"/>
    <InfLogistica codigoEAN="codigoEAN1" id="45" refDistribuidor="refDistribuidor1">
    <Oferta cantidadContratacion="7.5" cantidadEnUnidades="7" factorContratacion="2.5" id="67"/>
    </InfLogistica>
    <ProgramacionEntregas>
    <Entregar cantidad="3" fecha="05/11/2006" id="61"/>
    </ProgramacionEntregas>
    <PuntoEntrega EANReceptor="CODIGOEAN120" descripcion="Almacen principal" id="546"/>
    <Origen id="464">
    <TipoOrigen descripcion="tipo1" id="1"/>
    <SolicitudLinea id="453">
    <Solicitud codigo="3456" id="67"/>
    </SolicitudLinea>
    </Origen>
    </PedidoLinea>
    </Lineas>
    </ORDERS>
    </root></jbi:part></jbi:message>
    I18N: BPJBI-3015: Sending status for 123033969803782-31456-134439750656880061. Status: Done.
    I18N: BPJBI-3019: Sending a one way outbound message to the NMR. MessageExchangeId is 123033969803782-31456-134439750657350062, service name is {http://enterprise.netbeans.org/bpel/MapeoPedidosEntrada/MapeoPE}log, endpoint name is bitacoraPortTypeRole_partnerRole.
    I18N: BPJBI-3018: The contents of the message are : <?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:msgns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" type="msgns:bitacoraOperationRequest" version="1.0" xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"><jbi:part>
    </jbi:part></jbi:message>
    HTTPBC-E01052: The value set on the org.glassfish.openesb.address.url normalized message property is invalid. This property is expected to be of String type only.
    I18N: BPJBI-3002: Pattern for exchange Id 123033969803782-31456-134439750657350063 is http://www.w3.org/2004/08/wsdl/in-only
    I18N: BPJBI-3004: Received in-only message for M Ex 123033969803782-31456-134439750657350063 content is <?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:msgns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" name="input1" type="msgns:bitacoraOperationRequest" version="1.0" xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"><jbi:part xmlns:m="http://j2ee.netbeans.org/wsdl/bitacora/bitacora">
    </jbi:part></jbi:message>
    I18N: BPJBI-3015: Sending status for 123033969803782-31456-134439750657350063. Status: Done.
    I18N: BPJBI-3002: Pattern for exchange Id 123033969803782-31456-134439750657350062 is http://www.w3.org/2004/08/wsdl/in-only
    I18N: BPCOR-3003:
    document before transformation:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?><jbi:message xm

  • There was an error processing a page. there was a problem reading this document (110)?

    hi
    my name is kapil and i am trying to open one (which is downloded) pdf document.which giving me an error as there was an error processing a page. there was a problem reading this document (110) for some page only. i am using acrobat reader x. is it any 3d setting or any thing else please give me an idea. i am waiting for replay as soon as possible...........
    your sincerely
    KAPIL TRIVEDI

    When I encountered an error "there was a problem reading this document 110" in Acrobat Pro 11 on 28.7 MB CS6 file, it indeed was very frustrating.
    I solved my problem, but since I don't know which step benefitted me, I've to enumerate all the steps I took:
    Read below:
    1.1. I could copy the file anywhere on the drive, but couldn't 'save as' from Acrobat Pro.
    1.2. No document security was applied of any sort on the file.
    1.3. Still in the first tab of the document properties, all details under advance section were empty. No 'PDF Version' 'location' 'file size' etc were populated. Nothing.
    1.4. I couldn't change and save anything in any of property dialogue. I could comment on the text, but as soon as I tried to save, it gave an error (some sort of 'File reading' error).
    1.5. When I tried to extract a page (I tried many), it gave 'reading error'.
    1.6. I didn't try 'splitting error'. Since I was 100% sure, it'll give me same reading error.
    1.7. I opened the file in Firefox and tried saving it as pdf from there. But no error, but no save either.
    1.8. I ran 'Remove Hidden Information' from protection panel without any errors.
    1.9. I tried 'sanitize document' from the same tab, but didn't succeed.
    1.10. Then (here I think the problem was resolved), from Document Processing panel, I did some commands. 1st, 'Export all images', successfully. Then 'Remove all links', it found 0.
    1.11. Then in 'print production' panel, I clicked/tried to open acrobat distiller. The same opened, did some processing. But I don't know if it did something in solving the problem or not.
    1.12. Although I think my problem was resolved till now, but the last step I did was 'Saved As' the file (from the file menu) as a .ps file. Though I've not yet reopened/used that ps file (to convert it into a pdf file again). But around here I wanted to close the file and it asked me whether I wanted to save the file, I said yes. And it saved the file correctly. And I checked that in properties dialogue, the missing information was populated too.
    1.13. Sorry for so lengthy instructions, but I had no choice.

Maybe you are looking for

  • Gmail contacts and calender no longer sync with my BlackBerry

    Hi  I noticed a while back that the contacts and calender events that I enter through Google Chrome on my Gmail account don't show up on my BB anymore. It used to take a day or three, but now it is simply not doing anything.  CICAL, SYNC and CMIME ar

  • Selection screen default value maintain,user cant chage the default value

    hi Friends SELECTION-SCREEN  BEGIN OF BLOCK SCLDBLOCK WITH FRAME. SELECT-OPTIONS:   S_WERKS FOR EBAN-WERKS DEFAULT 'IN01' NO INTERVALS NO-EXTENSION ,                   S_MATNR FOR EBAN-MATNR,                   S_BANFN FOR EBAN-BANFN,                 

  • Clear a session variable

    Hi., I am using jdeveloper 11.1.1.5 Could any one pls help me how to clear a session varable when the logout link had been clicked?

  • This is getting annoying

    ok i tried that copypodphoto thing and it only is a trial version. and i dont have like 15 bucks for the full version. so i didnt get that. i just gave up and had it delete all my photos so i can put the other photos from my other computer to my ipod

  • Authenticated user to run agent (ibot) on demand

    Is there a way that it can be done? Can a user invoke an agent on demand? obiee 11g. thanks,