Problem in sending XML input as String in BPEL

Hi,
We have a BPEL flow (assign, invoke, assign) which takes an XML input as String.
<RegisterCustomerOnVAS><CustomerID>100</CustomerID><MSISDN>9999999</MSISDN><CustomerName>sanjeev</CustomerName><customerInfo>new user</customerInfo></RegisterCustomerOnVAS>
Assignment is doing fine, but when Invoke calls partner link, the input is getting parsed and only the first text value (eg 100) is getting passed to the partner webservice instead of the entire XML as string.
Can any one please help us in fixing in this problem.
Thanks

Hi,
You should watch your assign activity (maybe a bad assigment level in copy rule). I think the probem is there.
Cyryl

Similar Messages

  • Problems sending xml data as string to a web service

    Hello!
    I need to develop a client in order to invoke a web service. I have the WSDL of the web service, so I generate a web service proxy, from that WSDL, using JDeveloper 10.1.3.0.
    Among other things, that web service receive RPC request (binding style is RPC) and the request has only one parameter, which consists of a string. That string must be an XML document (that is, the web service receives one parameter which is a XML document as a String). I generate that parameter, and it looks like the following:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <inputMessage xmlns="http://ws/validacion" xmlns:xsi="http://www.w3.o
    rg/2001/XMLSchema-instance" xsi:SchemaLocation="http://localhost/ws/xsd/mservic/ws.xsd">
    <request>ServiceRequest</request>
    <versionMsg>1.0</versionMsg>
    <data>AAAAAAAAAAAAAA</data>
    </inputMessage>
    However, when I send the request and capture it through HTTPAnalyzer, I get the following:
    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><MyWebService xmlns="http://soapinterop.org/"><myWebServiceRequest xsi:type="xsd:string" xmlns="">&lt;?xml version = '1.0' encoding = 'UTF-8'?>
    &lt;inputMessage xmlns="http://ws/validacion" xmlns:xsi="http://www.w3.o
    rg/2001/XMLSchema-instance" xsi:SchemaLocation="http://localhost/ws/xsd/mservic/ws.xsd">
    &lt;request>ServiceRequest&lt;/request>
    &lt;versionMsg>1.0&lt;/versionMsg>
    &lt;data>AAAAAAAAAAAAAA&lt;/data>
    &lt;/inputMessage></myWebServiceRequest></MyWebService></soapenv:Body></soapenv:Envelope>
    As you can see, the symbol '<' y replaced with '&lt;'.
    Why does it happen? Is there a way of avoiding that?
    Could anybody be so kind to help me, please?
    Thank you very much in advance.

    Hello!
    I need to develop a client in order to invoke a web
    service. I have the WSDL of the web service, so I
    generate a web service proxy, from that WSDL, using
    JDeveloper 10.1.3.0.
    Among other things, that web service receive RPC
    request (binding style is RPC) and the request has
    only one parameter, which consists of a string. That
    string must be an XML document (that is, the web
    service receives one parameter which is a XML
    document as a String). I generate that parameter, and
    it looks like the following:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <inputMessage xmlns="http://ws/validacion"
    xmlns:xsi="http://www.w3.o
    rg/2001/XMLSchema-instance"
    xsi:SchemaLocation="http://localhost/ws/xsd/mservic/ws
    .xsd">
    <request>ServiceRequest</request>
    <versionMsg>1.0</versionMsg>
    <data>AAAAAAAAAAAAAA</data>
    nputMessage>
    However, when I send the request and capture it
    through HTTPAnalyzer, I get the following:
    <?xml version="1.0"
    encoding="UTF-8"?><soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelop
    e/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body><MyWebService
    xmlns="http://soapinterop.org/"><myWebServiceRequest
    xsi:type="xsd:string" xmlns=""><?xml version =
    '1.0' encoding = 'UTF-8'?>
    <inputMessage xmlns="http://ws/validacion"
    xmlns:xsi="http://www.w3.o
    rg/2001/XMLSchema-instance"
    xsi:SchemaLocation="http://localhost/ws/xsd/mservic/ws
    .xsd">
    <request>ServiceRequest</request>
    <versionMsg>1.0</versionMsg>
    <data>AAAAAAAAAAAAAA</data>
    ;/inputMessage></myWebServiceRequest></MyWebService></
    soapenv:Body></soapenv:Envelope>
    As you can see, the symbol '<' y replaced with
    '<'. (I hope you can see it now)
    The symbol '<' is replace with '& l t ;' (with no whitespaces)
    >
    Why does it happen? Is there a way of avoiding that?
    Could anybody be so kind to help me, please?
    Thank you very much in advance.

  • Problem in sending a variable length string

    Hello friends,
    I have created a scenario as follows.
    Our
    Application ==>(SOAP) ==> XI  ==> (RFC) ==> SAP TABLE.
    I am sending a record with one of the fields of the type 'VARILRAW'
    When I send this, it is sending me a response that it was inserted in the table succesfully, But when I try to retrieve, all fields get returned correctly, but not this variable length field. This sends me back a huge string of letter 'A's.
    Here is what I see on SXMB_MONI
    The following shows that for insertion, the proper data is coming in XML format.
    ===============================================
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:ZBAPI_ADD_CONFIG_DNA xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
    - <CONFIG_DNA_DATA>
      <CONFIG_ID>4607.1164846986188077.494</CONFIG_ID>
      <STRING_NAME>USC1</STRING_NAME>
      <STRING_FORMAT>TXT</STRING_FORMAT>
      <STRING_VALUE>ONE,TWO,THREE,FOUR</STRING_VALUE>
      <OBJECT_NAME>TEMP</OBJECT_NAME>
      </CONFIG_DNA_DATA>
      </ns1:ZBAPI_ADD_CONFIG_DNA>
    =================================================
    When I try to search for the same data again using the Key field CONFIG_ID,
    I am getting back the following. Notice that all fields are coming back with right data but for STRING_VALUE, which is coming as a long string of As
    ====================================================
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:SEARCH_CONFIG_DNA_RESPONSE xmlns:ns1="http://cincom.com/config">
    - <RETMSG>
      <RETURNMESSAGE>1 Records found</RETURNMESSAGE>
      <SUBRC>0</SUBRC>
      </RETMSG>
    - <CONFIG_DATA>
    - <item>
      <CONFIG_ID>4607.1164846986188077.494</CONFIG_ID>
      <STRING_NAME>USC1</STRING_NAME>
      <STRING_FORMAT>TXT</STRING_FORMAT>
      <STRING_VALUE>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</STRING_VALUE>
      <OBJECT_NAME>TEMP</OBJECT_NAME>
      </item>
      </CONFIG_DATA>
      </ns1:SEARCH_CONFIG_DNA_RESPONSE>
    ========================================================
    Any help will be greatly appreciated.
    Thanks
    Ram

    go to RFC and insert a BREAK-POINT and check what do you receive in the field. if you receive same you send so its a problem of SAP Team.
    try this

  • HTTPService problems while sending a String Variable to Server

    I have an xml in string form..... I want to send it as an http request to the server, which is written in .NET... server wud make its decession on the basis of this xml and wud return me another xml as http response..
    Problem ---->
    this request reaches server but when i look at the request reached at server it has my client infotmation but does not has my variable anywhere...... i iterate through all the parameters in Request.Params... but I don't find my string at all.... any idea why I can't find my sent variable ???
    Actionscript code to send xmlString to .NET Server using HTTPService:
    public function sendRequest(syncXmlString : String, httpResultHandler : Function) : void {
    try {
       var objectParam : Object = {name:PARAM_NAME, value:syncXmlString };
       var params : Object = [objectParam];
       var httpService : HTTPService = new HTTPService();
       httpService.url = serverUrl;
       httpService.method = HTTPRequestMessage.POST_METHOD;
       httpService.contentType =  HTTPService.CONTENT_TYPE_XML;
       httpService.resultFormat = HTTPService.RESULT_FORMAT_XML;
       httpService.addEventListener(ResultEvent.RESULT, httpResultHandler);
       httpService.addEventListener(FaultEvent.FAULT, httpFaultHandler);
       httpService.send(params);
    } catch (err : Error) {
       Alert.show(err.message);
    Thanks and Regards,
    Ahmed.

    No, that is the problem, the request object should not be an indexed array[], it should be an Object{}.  Remove that imtermediate array and pass objectParams in the send()
    Also, don't mess with the contentType without very good reason.
       httpService.contentType =  HTTPService.CONTENT_TYPE_XML;
    that says you are sending XML, but you are not, you are sending the default name=value pairs.  Remove that assignment and leave it at the default "form"
    One more, you do not want that resultFormat, it is the legacy AS2 class.  You want E4X
       httpService.resultFormat = RESULT_FORMAT_E4X;
    Tracy

  • Problem in transforming XML to string using XSLT

    Hi there,
    I have a R/3 -> XI -> WebService scenario where the message from XI to webservice needs to be sent in document/wrapped mode (the message xml must be embedded in a string element) and this message needs to be digitally signed.
    We are using another webservice to sign the messages, also with the message being sent in a string. To transform the XML's into string and vice-versa, we are using XSLT (/people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping).
    The problem is that both the signer and the final webservice understand the special characters (like '<', '>', '&', '"' etc) in one way but the XSLT generates them in another way. For example, the character '<', in both webservices, is returned as "&#60;" but the XSL Transformation results in "&lt;".
    The problem now is that our messages are always being rejected because the signature is not being recognized as true, though we are almost 100% sure that it's being done correctly. The only possibility to the error that we found is this character mapping being done differently.
    So, it's like this:
    XI sends string to signer as "&lt;"
    XI receives string from signer as "&#60;"
    XI processes the message
    XI sends string to webservice as "&lt;"
    XI receives string from webservice (containing error message) as "&#60;"
    Is there a way of making the XSLT to return "&#60;" instead of "&lt;"?
    Thanks in advace,
    Henrique.

    For Java Mapping, you can refer this-
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
    In Java Mapping, in the startdocument event , you need to check for the specialchars, and just repalce the value required.
    But, what i am thinking is , just try with Java functions inside the XSLT mapping instead of going for Java Mapping. You can call java functions from the XSLT. So before the document starts pasring, you need to replace the special characters. I did not try in XSLT like this.
    For this , you can think with this e.g
    /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
    Regards,
    Moorthy

  • Problem while sending unicode (utf-8) xml to IE.

    Hi,
    I have encoding problem while sending utf-8 xml from servlet to IE (Client), where i am parsing the xml using Ajax.
    In the log I can see proper special characters that are being sent from the servlet. but when same is seen in the client end,, it is showing ? symbols instead of special charcters.
    This is the code that sends the xml from servlet.
    ByteArrayOutputStream stream = new ByteArrayOutputStream(2000);
    transformer.transform(new DOMSource(document), new StreamResult(new OutputStreamWriter(stream, "iso-8859-1")));
    _response.setContentType("text/xml; charset=UTF-8");
    _response.setHeader("Cache-Control", "no-cache");
    _response.getWriter().println(new String(stream.toByteArray(),  "UTF-8"));
    In the log i can see :
    <response status="success" value="1154081722531" hasNextPage="false" hasPreviousPage="false" ><row row_id="PARTY_test_asdasd" column_0="PARTY_test_asdasd" column_1="asdasd �" mode="edit" column_en_US="asdasd �" column_de_DE="? xyz" column_fr_FR="" ></row></response>
    But in the Client side I am able to see
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <response status="success" value="1154082795061" hasNextPage="false" hasPreviousPage="false"><row row_id="PARTY_test_asdasd" column_0="PARTY_test_asdasd" column_1="asdasd ?" mode="edit" column_en_US="asdasd ?" column_de_DE="? xyz" column_fr_FR=""/></response>
    I am getting ? instead of �.
    It will be greatful if somebody tell how to send utf xml from servlet, for ajax purpose.
    Thanks,
    Siva1

    This is the code that sends the xml from servlet.
    ByteArrayOutputStream stream = new
    ByteArrayOutputStream(2000);
    transformer.transform(new DOMSource(document), new
    StreamResult(new OutputStreamWriter(stream,
    "iso-8859-1")));Here you produce XML that's encoded in ISO-8859-1. (!!!)
    _response.setContentType("text/xml; charset=UTF-8");Here you tell the browser that it's encoded in UTF-8.
    _response.getWriter().println(new String(stream.toByteArray(), "UTF-8"));Here you convert the XML to a String, assuming that it was encoded in UTF-8, which it wasn't.
    Besides shooting yourself in the foot by choosing ISO-8859-1 for no good reason, you're also doing a lot of translating from bytes to chars and back again. Not only is that a waste of time, it introduces errors if you don't do it right. Try this instead:_response.setContentType("text/xml; charset=UTF-8");
    _response.setHeader("Cache-Control", "no-cache");
    _transformer.transform(new DOMSource(document_),
                    new StreamResult(_response.getOutputStream()));

  • XML Input String too long to Test Web Service in App Server

    We have a Web Service that accepts an XML input string but when we deploy this web service and try to test it through the Application Server it errors out because the input string is too long. Is there any way around this??
    Thanks...

    Update:
    Now I see that there are in fact two error messages. The second one is the one presented above. But the first one says:
    Line: 145
    Char: 97
    Error: Expected ';'
    Code: 0
    My question now is to what file it is referring?? Is it to ProjectAccountingPort.js that is automatically created? THen why is it not properly created??
    Please, please help me with this! The deadline is in a few days...

  • 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

  • Sending xml over http

    I have a WLS 6.0 servlet that receives XML transactions via a post method.
              Code snippet as follows:
              public void doPost(HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException
              int txContentLength = req.getContentLength();
              //get entire input xml stream and store in a stringbuffer
              InputStream inp = req.getInputStream();
              BufferedReader br = new BufferedReader(new InputStreamReader(inp));
              byte[] ba = new byte[txContentLength];
              System.out.println("Reading...");
              int bytesRead = inp.read(ba);
              System.out.println("bytesRead= " + bytesRead);
              while(bytesRead < txContentLength) {
              int moreRead = inp.read(ba, bytesRead, (ba.length - bytesRead));
              if(moreRead == -1)
              break;
              bytesRead += moreRead;
              System.out.println("finished reading buffer...");
              StringBuffer sb = new StringBuffer(new String(ba));
              I have a java client on my PC that takes an XML file as input and sends the
              information to the servlet without any problems.
              The problem is a client that is connecting to our network via a T1
              connection. When they send transactions, about 1 out of every 4
              transactions makes it past the "Reading..." statement above. The other
              transactions appear to 'hang' when it hits the inp.read(ba) line above.
              From all indications, that servlet's execute thread appears 'hung' as if the
              inp.read() is waiting forever.
              I've tried using readLine() on the InputStream() and my local client program
              is unaffected - it works OK. The remote client is having problems using
              either method. The only difference I've noted with the remote client is
              that they are using HTTP 1.0 and I'm using HTTP 1.1. Initially, their
              mime-type was null but they've changed it to text/xml and no luck. I've
              even sent them my client code that is working and they are still having
              problems...
              Another strange anomoly is that req.getContentLength() is returning a valid
              number on the transactions that fail. For example, I had some debug code
              that showed the content length and it was always something like 4012 or
              3500, etc. Not -1 as I would expect...
              Has anyone run into this problem with receiving XML transactions?
              Thanks
              Rob Mason
              

    Thanks for the suggestion - I went back and added a check on the
              contentLength to make sure it had a valid number before trying to call any
              'read' methods... still no luck.
              I did go in and put a try/catch around the read() logic below. The
              exception thrown is an InterruptedIOException. The docs say that this is
              thrown 'to indicate that an input or output transfer has been terminated
              because the thread performing it was terminated.'
              This would seem to indicate that WLS is having the problem - not the client?
              Via the console, under the Configuration section, my HTTP section has the
              following values:
              POST timeout secs: 10
              Max POST time: 10
              Max POST size: -1
              Is there anything else I can try on the server level?
              Thanks
              Rob Mason
              "Xiang Rao" <[email protected]> wrote in message
              news:[email protected]...
              >
              > T1 shouldn't be the problem. We even use dialup to upload file via HTTP
              POST. HTTP
              > 1.0 shouldn't be problem. If you think this is the only difference, you
              can ask
              > other developers to change it to HTTP 1.1 when they request your servlet.
              >
              > The hang at read(ba) most likely means no request data are sent to your
              servlet
              > even if you think there should be some data. In your code, you are better
              to add
              > a block to check if the content_length is GREATER THAN 0 (-1 or 0), if
              not, you
              > shouldn't open any inputstream and shouldn't call any read method. If the
              content_length
              > is 0, your character buffer will have length 0 and I really don't know
              what you
              > can put into such buffer. It is not necessary to set a buffer with the
              length
              > of expected Content_Length. Since you use BufferedReader, you can create a
              buffere
              > with large enough size (see 1K, 8K, 16K, etc)and the return value of read
              will
              > give you the exact length you get for each read call, then append result
              to your
              > Stringbuffer. On the other hand, it is better for you to handle
              IOException in
              > your servlet.
              >
              > Ask the other side developers to send you their client code and compare
              their
              > code with your test code word by word. Check how they compute the
              Content_Length
              > and how they send Content_Length field to you. If this field is not
              explicitly
              > set, I think you should get -1 or 0, even there are request data out. Also
              you
              > should check how the data are sent out to make sure they really send you
              request
              > data.
              >
              >
              >
              >
              > "Rob Mason" <[email protected]> wrote:
              > >I have a WLS 6.0 servlet that receives XML transactions via a post
              method.
              > >Code snippet as follows:
              > >
              > > public void doPost(HttpServletRequest req, HttpServletResponse res)
              > > throws ServletException, IOException
              > > {
              > > int txContentLength = req.getContentLength();
              > >
              > > //get entire input xml stream and store in a stringbuffer
              > > InputStream inp = req.getInputStream();
              > > BufferedReader br = new BufferedReader(new InputStreamReader(inp));
              > >
              > > byte[] ba = new byte[txContentLength];
              > > System.out.println("Reading...");
              > > int bytesRead = inp.read(ba);
              > > System.out.println("bytesRead= " + bytesRead);
              > > while(bytesRead < txContentLength) {
              > > int moreRead = inp.read(ba, bytesRead, (ba.length - bytesRead));
              > > if(moreRead == -1)
              > > break;
              > > bytesRead += moreRead;
              > > }
              > >
              > > System.out.println("finished reading buffer...");
              > > StringBuffer sb = new StringBuffer(new String(ba));
              > >}
              > >
              > >
              > >I have a java client on my PC that takes an XML file as input and sends
              > >the
              > >information to the servlet without any problems.
              > >The problem is a client that is connecting to our network via a T1
              > >connection. When they send transactions, about 1 out of every 4
              > >transactions makes it past the "Reading..." statement above. The other
              > >transactions appear to 'hang' when it hits the inp.read(ba) line above.
              > >From all indications, that servlet's execute thread appears 'hung' as
              > >if the
              > >inp.read() is waiting forever.
              > >
              > >I've tried using readLine() on the InputStream() and my local client
              > >program
              > >is unaffected - it works OK. The remote client is having problems using
              > >either method. The only difference I've noted with the remote client
              > >is
              > >that they are using HTTP 1.0 and I'm using HTTP 1.1. Initially, their
              > >mime-type was null but they've changed it to text/xml and no luck. I've
              > >even sent them my client code that is working and they are still having
              > >problems...
              > >
              > >Another strange anomoly is that req.getContentLength() is returning a
              > >valid
              > >number on the transactions that fail. For example, I had some debug
              > >code
              > >that showed the content length and it was always something like 4012
              > >or
              > >3500, etc. Not -1 as I would expect...
              > >
              > >Has anyone run into this problem with receiving XML transactions?
              > >
              > >Thanks
              > >Rob Mason
              > >
              > >
              > >
              >
              

  • Load and Send XML values

    I am new to ActionScript 3 and have a project I would like to get some help on. I have an XML file on a server that has two types of parent nodes... an example is below:
    <bodytypesuggestions>
    <ID1>36</ID1>
    <ID2>34</ID2>
    <ID3>37</ID3>
    </bodytype>
    <bodytypes>
    <ID1>34</ID1>
    <ID2>32</ID2>
    <ID3>35</ID3>
    </bodytype>
    The AS code below connects my flash to the URL:
    import flash.net.*;
    import flash.events.*;
    var myXML:XMLList;
    var url:URLRequest = new URLRequest("MYSERVER.COM");
    var XMLLoader:URLLoader = new URLLoader(url);
    XMLLoader.addEventListener(Event.COMPLETE, GetRecommendations);
    XMLLoader.addEventListener(Event.CHANGE, updateAndGetRecommendations);
    function GetSuggestions(event:Event):void {
    if (XMLLoader.data) {
    myXML = XMLList(XMLLoader.data);
    var myDev:XMLList = new XMLList(XMLLoader.data)
    var bodytypelist:XMLList = myDev..bodytypes
    var bydytypesugglist:XMLList = myDev..bodytypesuggestions
    trace(bodytypelist);
    this["ID1"].text = bodytypelist.ID1;
    this["ID1"].restrict = "0-9.";
    this["ID1"].maxChars = 5;
    this["ID2"].text = bodytypelist.ID2;
    this["ID2"].restrict = "0-9.";
    this["ID2"].maxChars = 5;
    this["ID3"].text = bodytypelist.ID3;
    this["ID3"].restrict = "0-9.";
    this["ID3"].maxChars = 5;
    Now in my flash file, I have 3 textInput fields that are populated with the above XML values from the bodytype child values.
    My question is - how can I write a function that when a user changes a value in any one of the text fields, the data returned is from the bodytypesuggestions node value instantly, i.e. once a field value is changed, the other two will change accordingly. The actual XML on the server already handles those calculations. I hope this makes sense, I really need some help on this one.

    I am not 100% certain what you're asking for here...
    I would tend to send XML rather than an XMLList string. I can't get the e4x filtering to work for an XMLList like that, which means (I assume) that you would need to iterate the list and using filtering on each XML object in the list. Perhaps I've missed something as you don't seem to be expressing a problem with loading the xml data and getting it into the textfields initially. I've not tried using the filtering on an XMLList directly before but could not get it working the way you have it. So in the following simulation I have wrapped the list in a top level tag to get it working the way I wanted.
    Here is a non-loading simulation of what you seem to want. The difference here is that the GetSuggestions 'listener' is called manually with the data string rather than by the URLLoader's listener with the data attached to the URLLoader's dispatched event.
    Hope that helps some.
    var xStr:String="<bodytypesuggestions><ID1>36</ID1><ID2>34</ID2><ID3>37</ID3></bodytypesuggestions><bodytypes><ID1>34</ID1><ID2>32</ID2><ID3>35</ID3></bodytypes>";
    var myXML:XML;
    var suggestions:XMLList;
    //requires 3 input textfields on the stage named ID1, ID2, ID3
    function GetSuggestions(data:String):void {
    if (data) {
    var myXML:XML = XML("<wrapper>"+XMLList(data).toXMLString()+"</wrapper>");
    var bodytypelist:XMLList = myXML..bodytypes;
    suggestions = myXML..bodytypesuggestions;
    ID1.text = bodytypelist.ID1;
    ID1.restrict = "0-9.";
    ID1.maxChars = 5;
    ID2.text = bodytypelist.ID2;
    ID2.restrict = "0-9.";
    ID2.maxChars = 5;
    ID3.text = bodytypelist.ID3;
    ID3.restrict = "0-9.";
    ID3.maxChars = 5;
    GetSuggestions(xStr)
    ID1.addEventListener(Event.CHANGE,myTextListener)
    ID2.addEventListener(Event.CHANGE,myTextListener)
    ID3.addEventListener(Event.CHANGE,myTextListener)
    function myTextListener(e:Event):void{
         var updates:Array = ['ID1','ID2','ID3'];
         //check to see if current value is recognized
         if (TextField(e.currentTarget).text == suggestions.elements(TextField(e.currentTarget).name).text()){
              trace('found match')
              for each(var fieldName:String in updates){
                   if (TextField(e.currentTarget).name==fieldName) continue;
                   TextField(this[fieldName]).text = suggestions.elements(fieldName).text();
                   trace(' set '+fieldName + ' to '+TextField(this[fieldName]).text)

  • Problem in Sender File Adapter using FCC with Variable structure

    Hi Experts,
    Hi Experts,
    I have facing an issues while using FCC in Sender File adapter. Below are the configs for the same:-
    Recordset structure required is ==HEADER,1,DATA,*,TRAILER,1
    Recordset per message == *
    Key Field Name == Key
    (Sorry i dont know how to insert screen shot here..pls tell me how can i insert screen shots here on sdn)
    HEADER.fieldSeparator           ,
    HEADER.endSeparator           u2018nlu2019
    HEADER.fieldNames               Key,x,y,zu2026
    HEADER.keyFieldValue          1
    HEADER.keyFieldInStructure      ignore
    HEADER.fieldContentFormatting     trim
    HEADER.additionalLastFields     ignore
    HEADER.missingLastFields     ignore
    DATA.fieldSeparator
    DATA.endSeparator
    DATA.fieldNames
    DATA.keyFieldValue
    DATA.keyFieldInStructure
    DATA.fieldContentFormatting
    DATA.additionalLastFields
    DATA.missingLastFields
    Using same variables for Trailer record as well.
    Source CSV file which i am picking:-
    ADSE ,RASD,replan  Contact ,2  0080509 0 8:43:25   ,        
    EMPL ,0011111,  S Top Up ,20080401  ,20080430  ,sdf  ,                          00000000431250  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:07:35,
    EMPL ,0222222,  r Cash Award ,20070701  ,20070703  ,ded  ,                          00000000023509  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:09:31,
    EMPL ,0233333,   Cash Award ,20070801  ,20070831  ,df  ,                          00000000044057  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:10:56,
    EMPL ,0244444,   Cash Award ,20080101  ,20080111  ,sf  ,                          00000000026717  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:08:29,
    BTRL ,   5140, 
    When i tested the scenario and monitored it using MDT in CC monitoring tool its giving me below mentioned error.
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'http://myurlname/mdt/me...
    However if i change the occurence of DATA as some specific value for eg 4 instead of * it works fine.
    Kindly help me in solving this problem.
    Thanks,
    Aditya Verma

    Hi Madan,
    Thanks a lot for giving me the way to this. But when i tested this with the below file its giving me the same error. Please let me know if i need to do any changes to the parameters mentioned above:-
    ADSE ,ASDA,Sha  replan Fr ont Feed Contact ,2  0080509 0 8:43:25   ,        
    EMPL ,0011111,   Cash Top Up ,20080401  ,20080430  ,TPV  ,                          00000000431250  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:07:35,
    EMPL ,0222222,   r Cash Award ,20070701  ,20070703  ,TPV  ,                          00000000023509  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:09:31,
    EMPL ,0233333,  r Cash Award ,20070801  ,20070831  ,TPV  ,                          00000000044057  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:10:56,
    EMPL ,0244444,   Cash Award ,20080101  ,20080111  ,TPV  ,                          00000000026717  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:08:29,
    EMPL ,0255555,   Cash Award ,20080301  ,20080320  ,TPV  ,                          00000000027870  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:08:25,
    EMPL ,0266666,   Cash Award ,20071001  ,20071020  ,TPV  ,                          00000000020681  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:09:31,
    EMPL ,0877777,   Cash Top Up ,20080401  ,20080430  ,TPV  ,                          00000000036000  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:07:05,
    EMPL ,0888888,   Leaver Cash Award ,20071201  ,20071231  ,TPV  ,                          00000000157200  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:11:29,
    EMPL ,0899999,  S Leaver Cash Award ,20080301  ,20080331  ,TPV  ,                          00000000153530  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:07:42,
    EMPL ,0800000,  S Leaver Cash Award ,20070701  ,20070731  ,TPV  ,                          00000000012234  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:08:34,
    BTRL ,   5140,
    This the original csv file which i'll get in live. Kindly suggest as ur solution worked with other file but not working with this scv file.
    Thanks a lot,
    Aditya.

  • How to send XML using UTL_HTTP

    I am trying to workout how to send XML data to a webserver using UTL_HTTP but am not getting any reply
    I need to submit the following XML document to a server "http://api.fastsms.co.uk/api/xmlapi.php"  Their instructions are "The XML Document should be posted unencoded, with a UTF-8 character set as parameter 'xml'"
    If I submit the following XML on their test form
    <?xml version="1.0"?>
    <apirequest version="1">
    <user>
      <username>**USER**</username>
      <password>**PASSWORD**</password>
    </user>
    <application>
      <name>Example Application</name>
      <version>1.0</version>
    </application>
    <inboundcheck lastid="10711399"/>
    </apirequest>
    I get an XML response back with the messages in my inbox. 
    This is the code I am trying to use to accomplish the same from PL/SQL : I know a response is coming back as there is header information - just no content.  What am I doing wrong ?
      l_xml VARCHAR2(5000);
      req utl_http.req;
      resp utl_http.resp;
      header_name VARCHAR2(256); -- Response header name
      header_value VARCHAR2(1024); -- Response header value
      response_text VARCHAR2(4000); -- Response body
      l_url VARCHAR2(100);
    BEGIN
      l_xml := 'xml=<?xml version="1.0"?>';
      l_xml := '<apirequest version="1">';
      l_xml := '<user>';
      l_xml := '<username>**USER**</username>';
      l_xml := '<password>**PASSWORD**</password>';
      l_xml := '</user>';
      l_xml := '<application>';
      l_xml := '<name>Example Application</name>';
      l_xml := '<version>1.0</version>';
      l_xml := '</application>';
      l_xml := '<inboundcheck lastid="10711399"/>';
      l_xml := '</apirequest>';
      -- Open HTTP connection
      l_url := 'http://api.fastsms.co.uk/api/xmlapi.php';
      req := utl_http.begin_request(l_url,'POST',utl_http.HTTP_VERSION_1_1);
      -- Set headers for type and length
      utl_http.set_header(req,'Content-Type','application/x-www-form-urlencoded');
      utl_http.set_header(req,'Content-Length',to_char(length(l_xml)));
      -- Write parameter
      utl_http.write_text(req,l_xml);
      -- Read response file
      resp := utl_http.get_response(req);
      -- Print out the response headers
      FOR i IN 1 .. utl_http.get_header_count(resp) LOOP
        utl_http.get_header(resp,i,header_name,header_value);
        logging_pkg.info(header_name || ': ' || header_value);
      END LOOP;
      -- Print out the response body
      BEGIN
        LOOP
          utl_http.read_text(resp,response_text);
          logging_pkg.info(response_text);
        END LOOP;
      EXCEPTION
        WHEN utl_http.end_of_body THEN
          logging_pkg.info('End of body');
      END;
      -- close http connection
      utl_http.end_response(resp);
      EXCEPTION
        WHEN utl_http.end_of_body THEN
          utl_http.end_response(resp);
    END;
    Cheers,
    Brent

    Hi Billy
    Yikes - how embarassing !  Thanks for pointing out my beginners mistake there.  I've fixed my code - and also implemented the substitutions of parameters like you suggested - I like that approach.
    Unfortunately the end result is no better - the line
    utl_http.read_text(resp,response_text);
    Still returns nothing back
    The headers that are coming back are
    Date: Thu, 04 Jul 2013 08:31:56 GMT
    Server: Apache/2.2.16 (Ubuntu)
    X-Powered-By: PHP/5.3.3-1ubuntu9.3
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Vary: Accept-Encoding
    Content-Length: 0
    Content-Type: text/html; charset=UTF-8
    Connection: close
    I guess I will need to try chasing it with the fastsms vendor so see if they can check my incoming request and see if there are any glaring problems. I know the xml is correct as I am now logging the xml string just before I send it and when I take that string and put it in their test form it works perfectly - something else in the puzzle is missing. I've had no experience using utl_http before - perhaps it's no possible to read the xml repsonse using this ?
    Anyway, thanks for your help Billy.
    ps - How do you paste your code into your message to get that formatting ?
    Cheers,
    Brent

  • Problem  while reading XML file from Aplication server(Al11)

    Hi Experts
    I am facing a problem while  reading XML file from Aplication server  using open data set.
    OPEN DATASET v_dsn IN BINARY MODE FOR INPUT.
    IF sy-subrc <> 0.
        EXIT.
      ENDIF.
      READ DATASET v_dsn INTO v_rec.
    WHILE sy-subrc <> 0.
      ENDWHILE.
      CLOSE DATASET v_dsn.
    The XML file contains the details from an IDOC number  ,  the expected output  is XML file giving  all the segments details in a single page and send the user in lotus note as an attachment, But in the  present  output  after opening the attachment  i am getting a single XML file  which contains most of the segments ,but in the bottom part it is giving  the below error .
    - <E1EDT13 SEGMENT="1">
      <QUALF>001</QUALF>
      <NTANF>20110803</NTANF>
      <NTANZ>080000</NTANZ>
      <NTEND>20110803<The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource 'file:///C:/TEMP/notesD52F4D/SHPORD_0080005842.xml'.
    /SPAN></NTEND>
      <NTENZ>000000</NTENZ>
    for all the xml  its giving the error in bottom part ,  but once we open the source code and  if we saved  in system without changing anything the file giving the xml file without any error in that .
    could any one can help to solve this issue .

    Hi Oliver
    Thanx for your reply.
    see the latest output
    - <E1EDT13 SEGMENT="1">
      <QUALF>003</QUALF>
      <NTANF>20110803</NTANF>
      <NTANZ>080000</NTANZ>
      <NTEND>20110803</NTEND>
      <NTENZ>000000</NTENZ>
      <ISDD>00000000</ISDD>
      <ISDZ>000000</ISDZ>
      <IEDD>00000000</IEDD>
      <IEDZ>000000</IEDZ>
      </E1EDT13>
    - <E1EDT13 SEGMENT="1">
      <QUALF>001</QUALF>
      <NTANF>20110803</NTANF>
      <NTANZ>080000</NTANZ>
      <NTEND>20110803<The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource 'file:///C:/TEMP/notesD52F4D/~1922011.xml'.
    /SPAN></NTEND>
      <NTENZ>000000</NTENZ>
    E1EDT13 with QUALF>003 and  <E1EDT13 SEGMENT="1">
    with   <QUALF>001 having almost same segment data . but  E1EDT13 with QUALF>003  is populating all segment data
    properly ,but E1EDT13 with QUALF>001  is giving in between.

  • Cannot view XML input using XSL style sheet. Please correct the error and..

    Hi All,
    Scenario XML to IDOC.
    The interface determination decides whether to create IDOC X or IDOC Y based on a xml segment value.
    I have an error in the SXMB_MONI:
    <!--  Interface Determination
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="IF_DETERMINATION">CX_ID_PLSRV</SAP:Code>
      <SAP:P1>Problem evaluating a condition: Exception CX_SWF_RLS_RULE occurred (program: CL_SWF_RLS_CONDITION==========CP, include: CL_SWF_RLS_CONDITION==========CM00Q, line: 160).</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error when determining the inbound interface: Problem evaluating a condition: Exception CX_SWF_RLS_RULE occurred (program: CL_SWF_RLS_CONDITION==========CP, include: CL_SWF_RLS_CONDITION==========CM00Q, line: 160). Problem evaluating a condition: Exception CX_SWF_RLS_RULE occurred (program: CL_SWF_RLS_CONDITION==========CP, include: CL_SWF_RLS_CONDITION==========CM00Q, line: 160). Exception CX_SWF_RLS_RULE occurred (program: CL_SWF_RLS_CONDITION==========CP, include: CL_SWF_RLS_CONDITION==========CM00Q, line: 160). Exception CX_SWF_RLS_OPERAND_MISSING occurred (program: CL_SWF_RLS_COMPARISON=========CP, include: CL_SWF_RLS_COMPARISON=========CM002, line: 63). Exception CX_SWF_RLS_OPERAND_MISSING occurred (program: SAPMSSY1, include: , line: 0). Exception CX_SWF_EXP_EVALUATE occurred (program: CL_SWF_EXP_EXPRESSION=========CP, include: CL_SWF_EXP_EXPRESSION=========CM027, line: 38). Exception CX_SWF_EXP_EXPRESSION occurred (program: CL_SWF_EXP_EXPRESSION=========CP, include: CL_SWF_EXP_EXPRESSION=========CM01Z, line: 520). Exception CX_SWF_EXP_EXPRESSION occurred (program: CL_SAI_SWF_RULE_ENGINE========CP, include: CL_SAI_SWF_RULE_ENGINE========CM00S, line: 42). Problem extracting values from the Payload: Check line 2 column 1 of the XML document</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    From the SXMB_MONI, the inbound message payload is truncated with an error:
    - <ProductIdentification>
      <GlobalProductIdentifier />
    - <PartnerProductIdentification>
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    The following tags were not closed: Pip3B12ShippingOrderConfirmation, ShippingOrder, ShipmentLineItem, isContainsHazardousMa...
    ">   <GlobalPartnerClassificationCode />
      <ProprietaryProductIdentifier>000000000000101369</ProprietaryProductIdentifier>
      </PartnerProductIdentification>
      </ProductIdentification>
    - <QuantityInformation>
    - <confirmedQuantity>
      <ProductQuantity>1.00</ProductQuantity>
      </confirmedQuantity>
    I've checked that the xml format is OK.
    As a matter of fact, if I try to resend the xml file from directory, the message is processed correctly and the payload shows all the xml file.
    Thanks.
    Daniele
    Edited by: Daniele*Verdone on Feb 1, 2010 11:22 AM
    Edited by: Daniele*Verdone on Feb 1, 2010 11:23 AM

    Hi Suraj,
    That option is not available in FTP mode..
    This option is applicable only for the File adapter. If you enter a value in this field when configuring the sender FTP adapter, it will have no effect.
    Yes, you're right !!
    Are you sure that the message is not getting picked in half-way
    Now, at this time, I can't see the XML data in the CC monitoring because the tool shows only the recent polling execute in the last 10 minutes. If the error recurs, I will check the payload of CC.
    How can I solve the problem with reading incomplete file (FTP mode)?
    ...Meanwhile I will try with Full cache refresh.
    Thanks
    Daniele

  • How to pass a xml CDATA in string element when OSB calling a webservice?

    How to pass a xml CDATA in string element when OSB calling a webservice?
    I have a business service (biz) that route to operation of a webservice.
    A example of request to this webservice legacy:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:eg="example">
    <soapenv:Header/>
    <soapenv:Body>
    <ex:execute>
    <ex:arg><![CDATA[<searchCustomerByDocumentNumber>
    <documentNumber>12345678909</documentNumber>
    </searchCustomerByDocumentNumber>]]></ex:arg>
    </ex:execute>
    </soapenv:Body>
    </soapenv:Envelope>
    the type of ex:arg is a string.
    How to pass this CDATA structure to webservice in OSB?

    Steps to solve this problem:
    1. Create a XML Schema. E.g.:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
         elementFormDefault="unqualified">
         <xs:complexType name="searchCustomerByDocumentNumber">
              <xs:sequence>
                   <xs:element name="documentNumber" minOccurs="0">
                        <xs:annotation>
                             <xs:documentation>
                             </xs:documentation>
                        </xs:annotation>
                        <xs:simpleType>
                             <xs:restriction base="xs:string" />
                        </xs:simpleType>
                   </xs:element>
         </xs:sequence>
         </xs:complexType>
         <xs:element name="searchCustomerByDocumentNumber" type="searchCustomerByDocumentNumber"></xs:element>
    </xs:schema>
    With this XSD, the XML can be generate:
    <?xml version="1.0" encoding="UTF-8"?>
    <searchCustomerByDocumentNumber xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="searchCustomerByDocumentNumber.xsd">
    <documentNumber>documentNumber</documentNumber>
    </searchCustomerByDocumentNumber>
    2. Create a XQuery to create a searchCustomerByDocumentNumber ComplexType. E.g.:
    (:: pragma bea:global-element-return element="searchCustomerByDocumentNumber" location="searchCustomerByDocumentNumber.xsd" ::)
    declare namespace xf = "http://tempuri.org/NovoSia/CreateSearchCustomerByDocumentNumber/";
    declare function xf:CreateSearchCustomerByDocumentNumber($documentNumber as xs:string)
    as element(searchCustomerByDocumentNumber) {
    <searchCustomerByDocumentNumber>
    <documentNumber>{ $documentNumber }</documentNumber>
    </searchCustomerByDocumentNumber>
    declare variable $documentNumber as xs:string external;
    xf:CreateSearchCustomerByDocumentNumber($documentNumber)
    3. In your stage in pipeline proxy add a assign calling the XQuery created passing the document number of your payload.
    Assign to a variable (e.g.: called searchCustomerByDocumentNumberRequest)
    4. Create another XQuery Transformation (XQ) to create a request to the webservice legacy. E.g.:
    <ex:arg>{fn-bea:serialize($searchCustomerByDocumentNumberRequest)}</ex:arg>
    For more information about xquery serialize function:
    41.2.6 fn-bea:serialize()
    You can use the fn-bea:serialize() function if you need to represent an XML document as a string instead of as an XML element. For example, you may want to exchange an XML document through an EJB interface and the EJB method takes String as argument. The function has the following signature:
    fn-bea:serialize($input as item()) as xs:string
    Source: http://docs.oracle.com/cd/E14571_01/doc.1111/e15867/xquery.htm

Maybe you are looking for

  • Advice on using RH's ePub Format & Mobile Device Help

    Hi All, I'd like some advice on the ePub format and creating help for mobile devices using RoboHelp. I need to create online help for a basic Contact Record Managment system that will be available on the iPhone, Android, iPad, BlackBerry Torch, etc.

  • My Thunderbolt Display looses its picture when connected to a new 27" iMac?

    Does anyone else have this problem?  It works fine when connected to my air...

  • Sales order auto PO

    Dear All, For a third party process, settings can be made such that a purchase requisition gets generated once the sales order doc is saved. Instead of the PR, is there a possibility that on saving the sales order a purchase order (PO) gets generated

  • Problem with transition : green screen

    Hi i'm using iMovie HD 6.0.3. i work with DV i have .avi files from my Camera (Canon ixus 850is), i convert my files in .dv with Visual Hub (i know iMovie can do it). *But there is the problem :* when i apply a transition effect or a title, the scree

  • Notation

    Hi, I am trying to figure out if you can record your voice into garageband using the built in mic and view that recording/track in musical notation. The reason I'd like to be able to do this is that it's easier to invent a jazz solo by singing it. I