BPELProcess - Assign Activity - xsd choice element difficulties

Hi,
I am trying to copy values from a pipe ("|") delimited text file that has been picked - up by a file adaptor and converted into xml of form (C1,C2,C3,...,Cn). My problem arises when I need to populate an xsd:choice element with C5 & C6 as the same type. If you need more info just let me know, Please advise...
Kind Regards,
Warren.

well, lets say ur looking at the 'Copy Rules' screen, my converted string delimited file is on the left and the xsd im copying to is the right+ :
body                             body
spiLine                           ServiceOrder
C1 ------------------- orderType
C2 ------------------- refrence number
... +choice
+equipment
C5 ------------------ value
C6
if you can make any sense of this, what I need is to create another equipment node to assign C6 too, in the xsd:choice element...

Similar Messages

  • Assign activity: xsd complex type variable assignment

    <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"><part name="summary"><summary>XPath query string returns multiple nodes.
    According to BPEL4WS spec 1.1 section 14.3, The assign activity part and query /ns5:returnResultResponse/return should not return multipe nodes.
    Please check the BPEL source at line number "158" and verify the part and xpath query /ns5:returnResultResponse/return.
    </summary>
    </part></selectionFailure>
    I am trying to add nodes to an existing variable.
    I think this is possible in WS-BPEL 2.0, what is the workaround till then?
    Thanks in advance

    To add new child nodes to a parent node, you should use append, insert-before or insert-after operations in the assign activity.
    Serkan

  • How to assign and transform or how to deal with xsd:anyType elements in 10g

    Hi,
    Any Update on this please...
    Hi,
    we are using canonical model as part of 10g, here I am not able to assign or tranform elements of type xsd:anyType to/from to other type elements. Solution with an example and quick reply is appreciated.
    =========================================
    Hi,
    By using copy-of xslt construct again input element structure is getting copied into the target mapper file, by using value-of xsl:construct just the value is getting assigned. Can you please elaborate on how to use this xsd:anyType elements in assign and tranform activities, overall how to use these elements in 10g, while implementing the canonical model.
    ex:
    xsl file: by using value-of
    <xsl:template match="/">
    <ns1:abstractRef>
    <ns1:amount>
    <xsl:value-of select="/ns1:BPELProcess1ProcessRequest/ns1:input"/>
    </ns1:amount>
    </ns1:abstractRef>
    </xsl:template>
    Result:
    <abstract1>
    -<abstractRef xmlns:ns1="http://xmlns.oracle.com/BPELProcess1" xmlns="http://sample/test">
    <ns1:amount>6556</ns1:amount>
    </abstractRef>
    </abstract1>
    Here amount is of type xsd;anyType which is present in the abstract complexType.
    xsl file: by using copy-of:
    <xsl:template match="/">
    <ns1:abstractRef>
    <ns1:amount>
    <xsl:copy-of select="/ns1:BPELProcess1ProcessRequest/ns1:input"/>
    </ns1:amount>
    </ns1:abstractRef>
    </xsl:template>
    Result:
    <abstract1>
    -<abstractRef xmlns:ns1="http://xmlns.oracle.com/BPELProcess1" xmlns="http://sample/test">
    <ns1:amount>
    <ns1:input>6556</ns1:input>
    </ns1:amount>
    </abstractRef>
    </abstract1>
    and while using it on assign activity, it is not assigning the input value to the xsd:anyType element, please provide an example on how to do this activity along with tranform.
    Edited by: user12679330 on Mar 1, 2010 4:46 AM

    >
    Try bpelx:append as a copy rule.
    >
    Since this thread is over three years old it will be interesting to see if OP is still waiting for a reply. ;)

  • Get All Element Values in Assign Activity

    Given the below XML, how can I get both values with a single statement?
    I tried /root/set/name/. with no luck. I would like to assign John Jane to a variable in a BPEL Assign Activity.
      <root>
        <set>
         <name>John</name>
        </set>
        <set>
         <name>Jane</name>
        </set>
      </root>

    If you want to select multiple nodes in an assign copy activity you will receive a selectionFailure. You can try this out by using /node/*[local-name() = 'nodename'] construct where * means all child elements and [local-name() = 'nodename'] represents the element name that needs to match.
    According to the BPEL Specification a selectionFailure MUST be thrown in the following situations:
    1. the from-spec selects multiple XML information items
    2. the from-spec selects one XML information item and the to-spec does not select exactly one XML information item.
    see BPEL Spec (section 8.4.1) http://docs.oasis-open.org/wsbpel/2.0/OS/wsbpel-v2.0-OS.html#_Toc164738498
    To have the desired result an assign activity with an expression can help. Use the concatenate function. See http://docs.oracle.com/cd/E28280_01/dev.1111/e10224/bp_manipdoc.htm#BABBHGAJ
    If you want to dynamically concatenate use a xslt transformation.
    Good luck!
    Melvin

  • Assign activity type  to WBS element  without network

    Hi There,
    I have a customer business scenario where I have to assign activites to WBS element  without network.
    can any one help me on that..
    Thanks,
    Paritosh

    Hi Thomas,
    Thanks for your information. I have created customer Project with one network and multiple WBS.
    But another issue related to project RBB & DIP profile. I have a scenario it like quantity should be updated from DIP profile in quotation and billing price should take from sales condition record.
    After booking activity base cost directly from KB21N and it is showing in line item. Still when I am trying to run transaction with DP82 to update sales base price system is giving me a message "No expenditure item found" although in WBS level showing all the cost/quantity.
    Can any one tell why I am getting message and how to correct it?
    Paritosh

  • Assign activity for Complex XML type in BPEL

    Hi All,
    I am NEW to BPEL. I am trying to assign a constant value to a XML Fragment of complex type in BPEL.
    Here is my XSD definition.
    <xs:element name="AssetGetList">
    <xs:complexType>
    <xs:sequence>
    <xs:element xmlns:q59="http://schemas.datacontract.org/2004/07/Xerox.MPS" minOccurs="0" name="request" nillable="true" type="q59:SearchRequest"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:complexType name="SearchRequest">
    <xs:complexContent mixed="false">
    <xs:extension base="tns:RequestBase">
    <xs:sequence>
    <xs:element xmlns:q8="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="Filters" nillable="true" type="q8:ArrayOfanyType"/>
    </xs:sequence>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="RequestBase">
    <xs:sequence>
    <xs:element minOccurs="0" name="APIKey" nillable="true" type="xs:string"/>
    <xs:element minOccurs="0" name="AccountID" nillable="true" type="xs:string"/>
    <xs:element minOccurs="0" name="AllAccessibleAccounts" type="xs:boolean"/>
    <xs:element minOccurs="0" name="PageNumber" type="xs:int"/>
    <xs:element minOccurs="0" name="PageSize" type="xs:int"/>
    <xs:element minOccurs="0" name="SortDirection" type="tns:SortDirection"/>
    <xs:element minOccurs="0" name="SortField" nillable="true" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="RequestBase" nillable="true" type="tns:RequestBase"/>
    <xs:complexType name="DateRangeFilterParameter">
    <xs:sequence>
    <xs:element minOccurs="0" name="ColumnName" nillable="true" type="xs:string"/>
    <xs:element minOccurs="0" name="EndDate" type="xs:dateTime"/>
    <xs:element minOccurs="0" name="StartDate" type="xs:dateTime"/>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="DateRangeFilterParameter" nillable="true" type="tns:DateRangeFilterParameter"/>
    <xs:complexType name="ArrayOfanyType">
    <xs:sequence>
    <xs:element minOccurs="0" maxOccurs="unbounded" name="anyType" nillable="true" type="xs:anyType"/>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="ArrayOfanyType" nillable="true" type="tns:ArrayOfanyType"/>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/">
    <xs:element name="anyType" nillable="true" type="xs:anyType"/>.
    In the above XSD I am able to invoke the webservice by passing the Basic inputs APIKey,AccountID and it works fine without the Filters.
    Example:
    <Invoke_1_AssetGetList_InputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="parameters">
    -<AssetGetList xmlns="http://api.services.xerox.com">
    -<request>
    <APIKey xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS">1130a5ff-d41b-4e55-becc-f572046ff231</APIKey>
    <AccountID xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS">58c6d7e4-5b7e-4cfe-acf5-f1997284ed72</AccountID>
    <AllAccessibleAccounts xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS">true</AllAccessibleAccounts>
    <PageNumber xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS">1</PageNumber>
    <PageSize xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS">10</PageSize>
    <SortDirection xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS">Ascending</SortDirection>
    <SortField xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS">AssetId</SortField>
    <Filters xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS"/>
    </request>
    </AssetGetList>
    </part>
    </Invoke_1_AssetGetList_InputVariable>
    When I try to add the filters I get the error message as
    **INPUT:**
    <temp_AssetGetList_InputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="parameters">
    -<AssetGetList xmlns="http://api.services.xerox.com">
    -<request>
    <APIKey xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS">1130a5ff-d41b-4e55-becc-f572046ff231</APIKey>
    <AccountID xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS">58c6d7e4-5b7e-4cfe-acf5-f1997284ed72</AccountID>
    -<Filters xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:xer="http://schemas.datacontract.org/2004/07/Xerox.MPS" xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS">
    -<arr:anyType xmlns="http://www.w3.org/2001/XMLSchema-instance" type="xer:DateRangeFilterParameter">
    <xer:ColumnName>ModifiedDate</xer:ColumnName>
    <xer:EndDate>2011-11-08T17:31:00</xer:EndDate>
    <xer:StartDate>2011-10-02T20:31:00</xer:StartDate>
    </arr:anyType>
    </Filters>
    </request>
    </AssetGetList>
    </part>
    </temp_AssetGetList_InputVariable>
    OUTPUT
    <fault>
    -<SerializationFaultFault xmlns="http://api.services.xerox.com">
    -<part name="detail">
    -<SerializationFault xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS.Faults" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <Code xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS.Faults" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">300</Code>
    <Message xmlns="http://schemas.datacontract.org/2004/07/Xerox.MPS.Faults" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    Element anyType from namespace http://schemas.microsoft.com/2003/10/Serialization/Arrays cannot have child contents to be deserialized as an object. Please use XmlNode[] to deserialize this pattern of XML.
    </Message>
    </SerializationFault>
    </part>
    </SerializationFaultFault>
    </fault>
    I want to add filters to this by passing the values to the DateRangeFilterParameter. I am trying to assign the StartDate and EndDate values using copy operation but was unable to do so.
    Please let me know if you need any other information regarding this.
    Could you please help me as how I need to pass these values of ComplexType in BPEL.Thanks for your time.
    Thanks
    Murthy

    To add new child nodes to a parent node, you should use append, insert-before or insert-after operations in the assign activity.
    Serkan

  • Problem: bpel deployment with xsd choice

    hi!
    i have the problem that after deploying my bpel process i dont see the choice defined in my xsd. with a very simple example the choice just dont show in the bpel console. (bpel processes => initiate => xml source just shows the xml without the choice)
    i use jdeveloper 10.1.3.1.0.3984.
    does anyone know a solution for this problem?
    thanks
    my xsd:
    <?xml version="1.0" encoding="ISO-8859-15" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns="http://www.example.org"
                targetNamespace="http://www.example.org"
                elementFormDefault="qualified">
      <xsd:element name="exampleElement">
        <xsd:annotation>
          <xsd:documentation>
            A sample element
          </xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="element1" type="xsd:string"/>
            <xsd:choice>
              <xsd:element name="element3" type="xsd:string"/>
              <xsd:element name="element4" type="xsd:string"/>
            </xsd:choice>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>the bpel process consists just of an assign-component.

    Is JAXB 1.0 used to generate the client code. xsd:choice is supported, but xsd:any is not supported by JAXB 1.0.

  • Problem with asyn bpel process assign activity

    hi
    i m creating asyn bpel process,in my assign activity,i want to copy operation.But it seems that when i expand my input variable it doesnt expand.so i m not able to copy.what would be the reason.anybody suggest me
    thanks

    works for me
    i added the xsd to my composite application
    created a new bpel in it, for input/ouput used both your elements.
    after that i added the assign and could just 'browse' the tree to both the input-element and the result-element, with this result :
        <sequence name="main">
            <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess2.wsdl) -->
            <receive name="receiveInput" partnerLink="bpelprocess2_client" portType="client:BPELProcess2" operation="process" variable="inputVariable" createInstance="yes"/>
            <!--
              Asynchronous callback to the requester. (Note: the callback location and correlation id is transparently handled using WS-addressing.)
            -->
            <assign name="my_assign">
                <copy>
                    <from variable="inputVariable" part="payload"
                          query="/ns1:AsyncallerProcessRequest/ns1:input"/>
                    <to variable="outputVariable" part="payload"
                        query="/ns1:AsyncallerProcessResponse/ns1:result"/>
                </copy>
            </assign>
            <invoke name="callbackClient" partnerLink="bpelprocess2_client" portType="client:BPELProcess2Callback" operation="processResponse" inputVariable="outputVariable"/>
        </sequence>when you put your bpel in design mode (first tab), and the and the left bottom browse to <your process.bpel> > Variables > Process > Variables > inputVariable > payload > ns1:AsyncallerProcessRequest > input
    you do see this element ?
    at the bottom fo this window you see a checkbox "show detailed node information", in case of errors or non validation xsd's this would be usefull, but the xsd validates for me.
    any other errors you can find ?

  • BPEL Question : assign one xsd:unbounded to other xsd:unbounded

    Hi, i have a problem executing a bpel which maybe im procesing bad.
    I am invoking some web services:
    response of webservice #1 returns a list of elements. (xsd:)
    request of webservice #2 receives a list with some elements from the response above (ws #1).
    [JPG helps to understand that process.|http://img230.imageshack.us/img230/6471/img1pa0.jpg]
    is there somenthing im missing when I try to assign one xsd:unbounded to other xsd:unbounded?
    runtime appserver stacktrace in the bpel process.
    BPCOR-6129:Line Number is 77
    BPCOR-6130:Activity Name is Assign_DatosGeneradorReporte
           at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELInterpreter.createVirtualFaultUnit(BPELInterpreter.java:250)
           at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELInterpreter.execute(BPELInterpreter.java:202)
           ... 7 more
    Caused by: com.sun.xml.transform.sware.TooManyElementsException: Too many elements: {null}cedula
           at com.sun.xml.transform.sware.impl.DOMSorter.addToSortedList(DOMSorter.java:509)
           at com.sun.xml.transform.sware.impl.DOMSorter.sort(DOMSorter.java:296)
           at com.sun.xml.transform.sware.impl.DOMSorter.sort(DOMSorter.java:413)
            ....Thanks!

    I have figured out that with xpath and copy-of operation I can copy all nodes that come in place of xsd:any from one schema to other .But beofre copying I want to change the attribute values of the node that come in place of xsd:any based on the mapping stored in the DVM.Request some one to please help .

  • XSL transformations - choice element

    Hi all,
    Need inputs in doing xslt transformations on a choice element. Please provide helpful urls/inputs.
    My xsd(similar one):-
    <xs:element name="Root">
                        <xs:complexType>
                             <xs:choice minOccurs="0" maxOccurs="1">
                                  <xs:element name="field1" type="xs:string"></xs:element>
                                  <xs:element name="field2" type="xs:string"></xs:element>
                                  <xs:element name="field3" type="xs:string"></xs:element>
                                  <xs:element name="field4" type="xs:string"></xs:element>
                             </xs:choice>
                        </xs:complexType>
    Required output:-
    <Root>
    <field1>message</field1>
    </Root>
    or
    <Root>
    <field2>message</field2>
    </Root>
    or
    <Root>
    <field3>message</field3>
    </Root>
    But when i do transformations the output is shown below. How could I get the above input?
    <Root>
    <field1>message</field1>
    <field2/>
    <field3/>
    <field4/>
    </Root>
    Please let me know

    Hi,
    Do you use the "transformation" activity of the BPEL ?
    If yes then you can check two things :
    - That the option of the XSL map doesn't generate empty node for all unmapped nodes
    - That you have an if condition checking if the node exist before mapping it.
    regards,
    mathieu

  • Cos-nonambig in xsd:choice group 'Unique Particle Attribution'

    Hello forum.
    I've following XSD specification:
    <?xml version="1.0" encoding="utf-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="data">
    <xsd:complexType>
    <xsd:choice>
    <xsd:group ref="elem1" />
    <xsd:group ref="elem2" />
    </xsd:choice>
    </xsd:complexType>
    </xsd:element>
    <xsd:group name="elem1">
    <xsd:sequence>
    <xsd:element name="order_no" type="order_no_type" />
    <xsd:element name="someAttributeElem1">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:minLength value="1" />
    <xsd:pattern value="[^|=]*" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    </xsd:sequence>
    </xsd:group>
    <xsd:group name="elem2">
    <xsd:sequence>
    <xsd:element name="order_no" type="order_no_type" />
    <xsd:element name="someAttributeElem2" />
    </xsd:sequence>
    </xsd:group>
    <xsd:simpleType name="order_no_type">
    <xsd:restriction base="xsd:integer">
    <xsd:totalDigits value="8" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:schema>
    on
    final SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    final Schema schema = factory.newSchema(xsd);
    i get the following exception
    org.xml.sax.SAXParseException: cos-nonambig: "":order_no and "":order_no (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
         at com.sun.org.apache.xerces.internal.impl.xs.XSConstraints.reportSchemaError(XSConstraints.java:315)
         at com.sun.org.apache.xerces.internal.impl.xs.XSConstraints.fullSchemaChecking(XSConstraints.java:463)
         at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:530)
         at com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl.newSchema(SchemaFactoryImpl.java:206)
         at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:489)
         at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:505)
    Possibly this is related to the following bug?
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4996456
    So from my point of view reading the W3C Spec, in a choice the group is
    distinct. So we should be able to use it like i did.
    Is the an solution or workaround provided by JAVA init self or can anybody
    tell me how to find an solution in an other JAVA library. I didn't work XML
    validation that often, but in the past I did use some of the Apache
    Frameworks. But as I can see in the error discription, Apache is already
    involved.
    Attention:
    The original XSD is more complicatated and shared by different programms
    in different Languages, C#, .Net, Navision. So, if there is no error in
    the XSD which will be handled by the other frameworks less strict or
    leniant, it will be complicated for to me to argue, that we have to change
    the XSD so that we can handle it in Java.
    TIA
    Holger

    Possibly this is related to the following bug?
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4996456
    Actually, as I read that bug (and I haven't gone back to the XSD spec to verify), it seems to say that the behavior you want is actually not valid -- the bug is that it would accept the choice with common first element and shouldn't have.
    This seems to be the sort of lookahead problem that affects most grammars: you can't differentiate between two productions without reading one or more following symbols. Parser generators usually have a way to let you say "lookahead N tokens for this next production," but I don't believe XSD has anything like that. And I can't imagine that it would, as the structure of XML would require an essentially infinite lookahead.
    But as I can see in the error discription, Apache is already involved.Yeah, the Sun JDK embeds Xerces and Xalan. To my knowledge, these two have pretty much taken over the Java parsing/transform space; there were some others (such as JDom), but they have pretty much been abandoned in terms of active development.
    The original XSD is more complicatated and shared by different programms
    in different Languages, C#, .Net, Navision. So, if there is no error in
    the XSD which will be handled by the other frameworks less strict or
    leniant, it will be complicated for to me to argue, that we have to change
    the XSD so that we can handle it in Java.Well, you could simply point out that this is a case of Don't Repeat Yourself: if you have multiple complexTypes that share the same elements, that those elements should be extracted out into a common containing type.
    But I think, if you read the spec carefully, you'll find that such structures are not permitted by XSD.

  • ABAP Proxy generation terminated (WSDl choice element not supported)

    Hello
    Im trying to generate ABAP proxy from WSDL file (A valid XSD file has imported as External definitions in to XI Integration Repository and created Out bound Interface which gives WSDL file for Proxy generation in SPROXY).
    Unfortunately one of the WSDL file element "<choice>" not supported by ABAP Proxy Generation. it gives the following error.
    Proxy generation terminated: WSDL error (<choice> not supported)
    Message no. SPRX038
    Syntax of <choice> element code in WSDL file:
    <xsd:choice minOccurs='1' maxOccurs='1'>
    <xsd:element name='Employees' minOccurs='1' maxOccurs='1'>
    </xsd:element>
    </xsd:choice>
    Can some one please help if already come across this kind of problem.
    Please suggest me if there any alternate element for WSDL <choice>.
    Regards
    Rajesh

    Hi Aamir
    Thanks for your help...
    I have gone through attached thread.
    Does It means should i change <choice> element with any alternate element. If it is the case can u suggest me any alternate to <choice> element.
    Can u pls tell what are all changes i need to do in WSDL file to support ABAP proxy generation. 
    Regards
    Rajesh

  • Xml Schema xs:choice element in dynamic forms

    Hi all,
    I'm developing an xml schema for creating the data model of a form. I connect LC Designer-8.2ES to this schema.
    In the schema I do have mutually exclusive elements implemented with a <xs:choice> element. A very comparable situation was described in this thread : http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=123 in 2007.
    The problem, as related in this thread, is that only the very first element of the choice is displayed in the generated pdf and I don't know how to display all parts as a real choice.  So what's the best way to let user fill in one part or the other of the choice?
    Does it need to be implemented with scripting (xfa...myform.presence = visible | hidden)?
    I want that only the filled element of the choice be exported from the form, the resulting xml being valid according the schema. I seems to work, but as of now, only for the first element...
    BTW, what's the best document describing what parts of xml schema are usable in dynamic XFA forms?  Is it 100% compatible?  I've observed that the constraints in my schema are not validated in the forms.  Shouldn't xml schema generate validating script in LCD? Does it apply for a subset of xml schema?
    Thanks in advance,
    jgrd

    Hi all,
    finally, I understand that we cannot use "anonymous" sequences neither in LiveCycle (like this following example where person might have many email)
        <xs:element name="person">
            <xs:complexType>
                <xs:sequence maxOccurs="unbounded">
                    <xs:element name="email" type="xs:string"/>
                </xs:sequence>
            </xs:complexType>
        </xs:element>
    valid instance with 3 emails :
    <person xsi:noNamespaceSchemaLocation="Untitled39.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <email>String</email>
        <email>String</email>
        <email>String</email>
    </person>
    In LC Designer, element with same name (<email>) are not used AFAK.  Maybe I'm wrong?
    The same hands with <xs:choice> where only first choice appears in pdf although being present in LC Designer.
    As for sequences, my idea is to produce <email1>, <email2>, etc. in a static schema, before connecting schema's data to LCD.
    Hope someone can show up and tell it's the right way or not.
    Regards
    jgrd

  • "xsi:type" attribute coming automatically in XML by using Assign activity

    Hi,
    I am using below copy operation in assign activity
    *<copy>*
    *<from variable="StopSeq"/>*
    *<to variable="InvokeGlog_IV" part="Transmission"*
    *query="/ns2:Transmission/ns2:TransmissionBody/ns2:GLogXMLElement/ns2:ActualShipment/ns2:Shipment    /ns2:ShipmentStop[bpws:getVariableData('SCounter')]/ns2:StopSequence"/>*
    *</copy>*
    which is copying from one local variable(StopSeq of int type ) to another variable(StopSequence of string type).
    It was working fine in SOA 11.1.1.3 and I was getting result as below
    Expected Result *<StopSequence>1</StopSequence>*
    But recently we have migrated from 11.1.1.3 to 11.1.1.5 and we started to get below output for the same assign activity.
    Current Result *<StopSequence xsi:type="ns:int">1</StopSequence>*
    Please suggest.
    Thanks

    I found one workaround for the problem,
    "<from variable="StopSeq"/>"
    As of now , StopSeq was a variable created by me in BPEL file.
    I was using this variable to do some calculations.
    As a workaround of the problem, I created a schema with "StopSeqType" as a simple int type element.
    Then inside the BPEL, I marked the the existing variable "StopSeq" as a type of "StopSeqType" of my new schema.
    After this change I found the expected result.
    Now my doubt is , Is it the case for all variables created in BPEL ?
    If yes , how we can prevent this ?

  • BPEL Assign Activity XPath failure

    Hi,
    My BPEL process fails during the Assign activity and it is failing because the Query expression does not find the 'from' element. Which makes sense because for one my test cases I am not including a value for that element in the XML instance. My question - How do I handle this situation such that when the 'from' element is either missing or has no value then nothing gets assigned to the target variable?
    ******* Error Message from BPEL PM Assign audit *****************
    [2009/05/14 21:37:45] Error in evaluate <from> expression at line "127". The result is empty for the XPath expression : "/ns2:CRMODAccounts/ns2:CRMODContactID".less
    oracle.xml.parser.v2.XMLElement@1a1d727
    [2009/05/14 21:37:45] "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.less
    - <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    - <part name="summary">
    <summary>
    empty variable/expression result.
    xpath variable/expression expression "/ns2:CRMODAccounts/ns2:CRMODContactID" is empty at line 127, when attempting reading/copying it.
    Please make sure the variable/expression result "/ns2:CRMODAccounts/ns2:CRMODContactID" is not empty.
    Possible reasons behind this problems are: some xml elements/attributes are optional or the xml data is invalid according to XML Schema.
    To verify whether XML data received by a process is valid, user can turn on validateXML switch at the domain administration page.
    </summary>
    </part>
    </selectionFailure>
    *********************** section from bpel source for the assign function ****************
    <assign name="assignEBSAccountDetails">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns2:CRMODAccounts/ns2:CRMODAccountID"/>
    <to variable="invokeEBSAccountDetails_GetEBSAccountDetailsPL_InputVariable"
    part="InputParameters"
    query="/ns3:InputParameters/ns3:P_CRMOD_ACCOUNT_ID"/>
    </copy>
    (versions) BPEL PM 10.1.3.4.0 JDev 10.1.3.4
    thanks,
    ilyas

    Use a switch, e.g. if string-lenght(/ns2:CRMODAccounts/ns2:CRMODContactID) > 0
    or you can do a transform and put an if condition for the mapping using the same code.
    cheers
    James

Maybe you are looking for