Can we define a complex type that is equivalent to java.util.List?

hi everyone
is it possible to define a complexType that is equivalent to java.util.List? all i know now is how to define an array of some type using either <xs:list> for simpleType or the minOccurs and maxOccurs of the element tag. i was wondering if there is way to define something equivalent to a List in java. thanks

Define a sequence of list tems.
<xs:element name="list">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="item"  maxOccurs="unbounded"  type="xs:string"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>

Similar Messages

  • Non-built-in type contained in a java.util.List creates a SoapFaultException

    I have created a web service that utilizes non-built-in types which uses other
    non-built-in types...(simplified example follows)
    public class MyService {
    public
    Foo getFoo( String id ) {
    Foo foo = ...; // get persisted foo
    return foo;
    package mypackage;
    public class Foo {
    java.util.List barList;
    public java.util.List getBars() { return barList; }
    public void setBars( java.util.List barList ) { this.barList = barList; }
    public class Bar {
    // some attributes
    I autotyped Bar explicitly and had servicegen/service autotype non-built-in data
    types for MyService (aka..Foo)
    When I execute the test web page...I get the following soap fault exception (Note:
    only if the barList contains some Bar objects)
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Exception during processing: Error at line:1 col:9159 '1' expected
    [?! -- [CDATA[ ] (see Fault Detail for stacktrace)</faultstring>
    <detail>
    <bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">Error
    at line:1 col:9159 '1' expected [?! -- [CDATA[ ]
         at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:280)
         at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:176)
         at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:510)
         at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:487)
         at weblogic.xml.babel.baseparser.EndElement.parse(EndElement.java:34)
         at weblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java:444)
         at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:317)
         at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:116)
         at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
         at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
         at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
         at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
         at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
         at weblogic.xml.xmlnode.NodeBuilder.build(NodeBuilder.java:73)
         at weblogic.xml.xmlnode.NodeBuilder.<init>(NodeBuilder.java:46)
         at weblogic.webservice.core.soap.SOAPEnvelopeImpl.<init>(SOAPEnvelopeImpl.java:147)
         at weblogic.webservice.core.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:174)
         at weblogic.webservice.core.handler.CheckSoapFaultHandler.handleResponse(CheckSoapFaultHandler.java:21)
         at weblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.java:231)
         at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:243)
         at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:423)
         at weblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase.java:349)
         at weblogic.webservice.server.servlet.WebServiceServlet.invokeMultiOutput(WebServiceServlet.java:354)
         at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:300)
         at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:344)
         at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:266)
         at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:158)
         at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:255)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:313)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    </bea_fault:stacktrace>
    </detail>
    </env:Fault>
    When barList is empty...the webservice executes without any problems.
    I noticed in the generated types.xml...there is a "List" entry and a "java.util.List"
    entry. The bars has "List" associated with it...
    <?xml version="1.0" encoding="UTF-8"?>
    <XMLSchemaAndTypeMapping>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:mypackage"
    attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="java:mypackage">
    <xsd:complexType name="Foo">
    <xsd:complexContent>
    <xsd:element xmlns:tp="java:language_builtins.util"
    name="bars"
    type="tp:List"
    nillable="true"
    minOccurs="1"
    maxOccurs="1">
    </xsd:element>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:language_builtins.util"
    attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="java:language_builtins.util">
    <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/">
    </xsd:import>
    <xsd:complexType name="List">
    <xsd:complexContent>
    <xsd:restriction xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    base="soapenc:Array">
    <xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    ref="soapenc:arrayType"
    wsdl:arrayType="xsd:anyType[]">
    </xsd:attribute>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:schema>
    <wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
    class-name="mypackage.Bar"
    type="lcl0:Bar"
    serializer="mypackage.BarCodec"
    deserializer="mypackage.BarCodec">
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="java:language_builtins.util"
    class-name="java.util.List"
    type="lcl0:List"
    serializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec"
    deserializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec"
    >
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
    class-name="mypackage.Foo"
    type="lcl0:Foo"
    serializer="mypackage.FooCodec"
    deserializer="mypackage.FooCodec">
    </wsdd:type-mapping-entry>
    </wsdd:type-mapping>
    </XMLSchemaAndTypeMapping>
    Any ideas what is causing the problem?
    Using WLS 8.1 sp2 on WinXP, JDK 1.4
    Thanks in advance.
    - Doug

    Certain generic types like java.lang.Object, List etc
    may not work properly with the test page, because it
    is not possible to figure out how the XML data should
    look like.
    Can you please try it out using a clientgen generated
    stub?
    Regards,
    -manoj
    http://manojc.com
    "Doug Leeper" <[email protected]> wrote in message
    news:40e32790$1@mktnews1...
    >
    I have created a web service that utilizes non-built-in types which usesother
    non-built-in types...(simplified example follows)
    public class MyService {
    public
    Foo getFoo( String id ) {
    Foo foo = ...; // get persisted foo
    return foo;
    package mypackage;
    public class Foo {
    java.util.List barList;
    public java.util.List getBars() { return barList; }
    public void setBars( java.util.List barList ) { this.barList =barList; }
    public class Bar {
    // some attributes
    I autotyped Bar explicitly and had servicegen/service autotypenon-built-in data
    types for MyService (aka..Foo)
    When I execute the test web page...I get the following soap faultexception (Note:
    only if the barList contains some Bar objects)
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Exception during processing: Error at line:1 col:9159 '1'expected
    [?! -- [CDATA[ ] (see Fault Detail for stacktrace)</faultstring>
    <detail>
    <bea_fault:stacktracexmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">Er
    ror
    at line:1 col:9159 '1' expected [?! -- [CDATA[ ]
    at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:280)
    at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:176)
    at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:510)
    at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:487)
    at weblogic.xml.babel.baseparser.EndElement.parse(EndElement.java:34)
    atweblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java:444)
    at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:317)
    at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:116)
    at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
    at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
    at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
    at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
    at weblogic.xml.xmlnode.NodeBuilder.populateChildren(NodeBuilder.java:128)
    at weblogic.xml.xmlnode.NodeBuilder.build(NodeBuilder.java:73)
    at weblogic.xml.xmlnode.NodeBuilder.<init>(NodeBuilder.java:46)
    atweblogic.webservice.core.soap.SOAPEnvelopeImpl.<init>(SOAPEnvelopeImpl.java:
    147)
    atweblogic.webservice.core.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:174
    atweblogic.webservice.core.handler.CheckSoapFaultHandler.handleResponse(CheckS
    oapFaultHandler.java:21)
    atweblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.ja
    va:231)
    atweblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:243)
    atweblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
    atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:423)
    atweblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase
    .java:349)
    atweblogic.webservice.server.servlet.WebServiceServlet.invokeMultiOutput(WebSe
    rviceServlet.java:354)
    atweblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.j
    ava:300)
    atweblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServ
    iceServlet.java:344)
    atweblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:26
    6)
    atweblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:158)
    atweblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet
    .java:255)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:971)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :402)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    atcom.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:
    313)
    atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:6356)
    atweblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
    t.java:317)
    atweblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3635)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2585)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    </bea_fault:stacktrace>
    </detail>
    </env:Fault>
    When barList is empty...the webservice executes without any problems.
    I noticed in the generated types.xml...there is a "List" entry and a"java.util.List"
    entry. The bars has "List" associated with it...
    <?xml version="1.0" encoding="UTF-8"?>
    <XMLSchemaAndTypeMapping>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:mypackage"
    attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="java:mypackage">
    <xsd:complexType name="Foo">
    <xsd:complexContent>
    <xsd:element xmlns:tp="java:language_builtins.util"
    name="bars"
    type="tp:List"
    nillable="true"
    minOccurs="1"
    maxOccurs="1">
    </xsd:element>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:schema>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:stns="java:language_builtins.util"
    attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="java:language_builtins.util">
    <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/">
    </xsd:import>
    <xsd:complexType name="List">
    <xsd:complexContent>
    <xsd:restrictionxmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    base="soapenc:Array">
    <xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    ref="soapenc:arrayType"
    wsdl:arrayType="xsd:anyType[]">
    </xsd:attribute>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:schema>
    <wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
    class-name="mypackage.Bar"
    type="lcl0:Bar"
    serializer="mypackage.BarCodec"
    deserializer="mypackage.BarCodec">
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="java:language_builtins.util"
    class-name="java.util.List"
    type="lcl0:List"
    serializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec"
    >
    deserializer="weblogic.xml.schema.binding.internal.builtin.JavaUtilListCodec
    >>
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="java:mypackage"
    class-name="mypackage.Foo"
    type="lcl0:Foo"
    serializer="mypackage.FooCodec"
    deserializer="mypackage.FooCodec">
    </wsdd:type-mapping-entry>
    </wsdd:type-mapping>
    </XMLSchemaAndTypeMapping>
    Any ideas what is causing the problem?
    Using WLS 8.1 sp2 on WinXP, JDK 1.4
    Thanks in advance.
    - Doug

  • Plz can someone tell me where can I define the material type?

    Hi All,
    I want to create a new group of material, there is a material type should be specified. I want to use my own. plz can someone tell me where can i define it?
    thanks and regards,
    samson

    Hi Samson,
    U can create a new material type using the tcode OMS2 and then copy the material type which u need to modify and then define the name of the new material type and make the required changes which u want for that material type and save it.
    Hope it wud have answered ur question
    reward if useful
    Shawn

  • How Can I parse a complex type WSDL using WSDL4J?

    I cannot parse the element Area---helppppppppppp
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://testfinal" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://testfinal" xmlns:intf="http://testfinal" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
    <schema targetNamespace="http://testfinal" xmlns="http://www.w3.org/2001/XMLSchema">
    <element name="x" type="xsd:string"/>
    <complexType name="Area">
    <sequence>
    <element name="f" type="xsd:int"/>
    <element name="fo" type="xsd:int"/>
    </sequence>
    </complexType>
    <element name="f" type="impl:Area"/>
    <element name="getSampleReturn" type="xsd:string"/>
    <element name="sample" type="xsd:string"/>
    </schema>
    </wsdl:types>
    <wsdl:message name="getSampleRequest">
    <wsdl:part element="impl:x" name="x"/>
    <wsdl:part element="impl:f" name="f"/>
    </wsdl:message>

    FYI, many folks on these forums are behind corporate firewalls that won't allow access to that sort of site. Particularly when the amount of code is small, as it is here, you're better off posting it in the forum
    create or replace procedure myProcedure( i int ) is
      TYPE mapx IS TABLE OF NUMBER INDEX BY VARCHAR2(64);
      TYPE mapy IS TABLE OF mapx INDEX BY VARCHAR2(64);
      instanceOfMapx mapx;
      instanceOfMapy mapy;
    begin
        instanceOfMapx('Australia') := 30000000;
        instanceOfMapy('val1'):=instanceOfMapx;
        dbms_output.put_line('hi');
        /* i want here that in my procedure return this instanceOfMapy */
    end myProcedure;If you want to modify that to return an instance of MAPY
    1) You'll need to declare MAPX and MAPY in a package so that they can be referenced in multiple places
    2) You'll need to add an OUT parameter to your procedure
    The smallest change that would work would be
    CREATE OR REPLACE PACKAGE map_pkg
    AS
      TYPE mapx IS TABLE OF NUMBER INDEX BY VARCHAR2(64);
      TYPE mapy IS TABLE OF mapx INDEX BY VARCHAR2(64);
    END map_pkg;
    create or replace procedure myProcedure( i IN integer, instanceOfMapy OUT map_pkg.mapy )
    is
      instanceOfMapx map_pkg.mapx;
    begin
        instanceOfMapx('Australia') := 30000000;
        instanceOfMapy('val1'):=instanceOfMapx;
        dbms_output.put_line('hi');
        /* i want here that in my procedure return this instanceOfMapy */
    end myProcedure;Of course, practically, I'd expect that you'd likely want to move myProcedure into the package you created.
    Justin

  • How to pass a complex type as input for a Java class in Oracle 11g?

    Hi All,
    This is my Parent Class..
    package ADFapplnPackage.model;
    public class ParentClass {
    String Name;
    int age;
    public ParentClass() {
    super();
    This is my ChildClass :
    package ADFapplnPackage.model;
    public class ChildClass {
    public ChildClass() {
    super();
    public ParentClass display() {
    ParentClass obj=new ParentClass();
    obj.age=20;
    obj.Name="Sabari";
    return obj;
    I have exposed both of them as webservices.
    When I call the display object in the parent class,
    I am getting 'parent' as the response.. I mean that ,only the word 'parent' is at the response. I couldnt find any elements (i mean the age and name) in the output.
    if my function 'display' in the child class is like
    public String display() {
    return "hello";
    then it is working fine. I am getting "hello" in the response. Why is the webservice supporting only standard datatypes.. and not Class datatypes.
    Kindly help me!!
    Thanks ,
    Sabarisri. N

    Hi,
    You can't do that with OLEDB. None of OLEDB providers has such a feature.
    Yuancai (Charlie) Ye
    Use of free SocketPro package for creating super client and server application,
    See 30 well-tested and real OLEDB examples
    at http://www.udaparts.com

  • Where can I download the last version that allows images and java script to be turned off?

    Due to my often slow connection I must have the option to turn off "automatically download images" and Java script. Firefox 23 does not have those options. Where can I download version 22 or whatever the latest version is that allowed these options?
    Thanks

    The Quickimage add-on doesn't work well at all, it gets stuck in the image off mode and will not switch back even after rebooting Firefox. Version 23.0 of Firefox is also very slow on my computer.
    I really need to find an older version of Firefox. Any idea where to download version 22 or earlier?

  • Java.util.list is not Generic type

    Hi All,
    i am creating ADF Mobile application and i am getting this error while executing following code.
    List<String> results = new ArrayList<String>();
    Please help me
    Thanks

    972388 wrote:
    Thanks for your reply. I am getting the error in the code snippet "List<ProcessResponse.ArrayofObjects>". But if I change it to only "List", the error is resolved. But I am not quite sure I should change it, as because the former snippet is getting invoked automatically.I assume you problem occurs in on the mobile side? (ADF Mobile)
    If so, are you using 'Web service client and proxy'? This is not supported in ADF Mobile.

  • Using a complex type as my input parameter

    I have defined a complex type that I want to use as my input parameter for one of my operations. I create the operation and add the complex type to my signature. When I go to the 'Query Map' dialog and try and map the complex type to one of my physical data sources the physical data source is deleted from the picutre.
    Here is what my complex type looks like:
    <xs:complexType name="FinancialContractRequestType">
    <xs:complexContent>
    <xs:extension base="srvcfwork:BaseRequestType">
         <xs:sequence>
         <xs:element name="ContractId" type="nylbt:TextType"/>
         <xs:element name="ContractIssueCd" type="nylbt:TextType" minOccurs="0"/>
         </xs:sequence>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>

    When I cut and pasted the xml I didn't put that part in but I do have it. Here is what my whole schema looks like:
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:srvcfwork="http://newyorklife.com/schemas/framework" xmlns:nylbt="http://newyorklife.com/schemas/cim/common/nylcorebusinesstypes" xmlns:tns="http://newyorklife.com/services/data/financialcontract" targetNamespace="http://newyorklife.com/services/data/financialcontract" elementFormDefault="qualified" version="0.1">
    <xs:import namespace="http://newyorklife.com/schemas/cim/common/nylcorebusinesstypes"
    schemaLocation="../../../schemas/cim/common/NYLCoreBusinessTypes_0_1.xsd"/>
    <xs:import namespace="http://newyorklife.com/schemas/framework"
    schemaLocation="../../../schemas/framework/ServiceFramework_0_1.xsd"/>
    <xs:element name="FinancialContractRequest" type="tns:FinancialContractRequestType"></xs:element>
    <xs:complexType name="FinancialContractRequestType">
    <xs:complexContent>
    <xs:extension base="srvcfwork:BaseRequestType">
         <xs:sequence>
         <xs:element name="ContractId" type="nylbt:TextType"/>
         <xs:element name="ContractIssueCd" type="nylbt:TextType" minOccurs="0"/>
         </xs:sequence>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    </xs:schema>

  • Human tasks, complex types and variable assignment.

    Hi folks,
    I encountered a problem while working with 10.1.3.1 which I haven't managed to solve yet and would be grateful for assistance. I have defined a complex data type (just a sequence of strings) and want to fill that data type by going through a flow of screens, e.g. through several human tasks. I have defined that type as a variable to the BPEL process and have managed to assign simple expressions to the variable and pass that into a Human Task. In the task I see now a simple input form for all attributes of the type.
    Now the problem. After I fill out the form and complete the human task, I have
    The global variable:
    <outputVariable>
         <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
              <MyProcessResponse xmlns="http://xmlns.oracle.com/VacationRequest">
                   <vorname/>
                   <nachname/>
                   <strasse/>
                   <nummer/>
                   <postleitzahl/>
                   <stadt/>
                   <maximaleDauer/>
                   <minimaleDauer/>
              </MyProcessResponse>
         </part>
    </outputVariable>
    and the return value from the human task:
    <task>
         <title>CaptureData</title>-
              <payload>
                   <MyProcessResponse>
                        <vorname>David</vorname>
                        <nachname>Beckham</nachname>
                        <strasse>HighStreet</strasse>
                        <nummer/>
                        <postleitzahl/>
                        <stadt/>
                        <maximaleDauer/>
                        <minimaleDauer/>
                   </MyProcessResponse>
              </payload>
    </task>
    Now the only thing I would like to do is to replace the original values in the variable with the new values that have been returned from the task, this should be performed in an extra assign step. Sounds simple. JDeveloper wouldn't even let me klick through the return value from the HumanTask, so it seems as if I have to do things manually.
    These are my tries:
    Command 1:
    <copy>
         <from variable="CaptureData_1_globalVariable"
    part="payload" query="/task:task/task:payload" />
    <to variable="outputVariable" part="payload"
    query="/ns1:MyProcessResponse"/>
    </copy>
    Result 1:
    <outputVariable>
         <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
              <ns0:MyProcessResponse xmlns="http://xmlns.oracle.com/bpel/workflow/task"     xmlns:ns0="http://xmlns.oracle.com/VacationRequest">
                   <MyProcessResponse xmlns="http://xmlns.oracle.com/VacationRequest">
                        <vorname>David</vorname>
                        <nachname>Beckham</nachname>
                        <strasse>HighStreet</strasse>
                        <nummer/>
                        <postleitzahl/>
                        <stadt/>
                        <maximaleDauer/>
                        <minimaleDauer/>
                   </MyProcessResponse>
              </ns0:MyProcessResponse>
         </part>
    </outputVariable>
    --> There is one MyProcessResponse element too many
    Command 2:
    <copy>
         <from variable="CaptureData_1_globalVariable"
    part="payload" query="/task:task/task:payload"/>
    <to variable="outputVariable" part="payload"
    query="/ns1:MyProcessResponse/ns1:vorname"/>
    </copy>
    Result 2:
    <outputVariable>
         <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
              <MyProcessResponse xmlns="http://xmlns.oracle.com/VacationRequest">
                   <ns0:vorname xmlns="http://xmlns.oracle.com/bpel/workflow/task"                     xmlns:ns0="http://xmlns.oracle.com/VacationRequest">
                        <MyProcessResponse xmlns="http://xmlns.oracle.com/VacationRequest">
                             <vorname>David</vorname>
                             <nachname>Beckham</nachname>
                             <strasse>HighStreet</strasse>
                             <nummer/>
                             <postleitzahl/>
                             <stadt/>
                             <maximaleDauer/>
                             <minimaleDauer/>
                        </MyProcessResponse>
                   </ns0:vorname>
                   <nachname/>
                   <strasse/>
                   <nummer/>
                   <postleitzahl/>
                   <stadt/>
                   <maximaleDauer/>
                   <minimaleDauer/>
              </MyProcessResponse>
         </part>
    </outputVariable>
    --> This was moreless expected, since I tried to copy the stuff to some wrong place.
    Command 3:
    <copy>
         <from variable="CaptureData_1_globalVariable"
    part="payload" query="/task:task/task:payload/ns0:MyProcessResponse"/>
    <to variable="outputVariable" part="payload"
    query="/ns1:MyProcessResponse"/>
    </copy>
    Result 3:
    --> Task does't return (!!!). In the BPEL Worklist, the task is completed, however in the BPEL console it still apears as "waiting to return from Human task".
    Does anyone have a hint on how to copy the values so that I get exactly the structure that I printed at the very top?
    Thanks for help. Rock On !

    Hello everyone,
    It seems that we are talking about different things, I am afraid. Let me describe the scenario once again:
    - I want to have a BPEL process with more than one role involved
    - This process should be used to gather some complex data.
    - All data gathering should be done through HumanTasks.
    So I defined an xsd complex type, that contains a sequence of fields. This complex type should be part of the process payload.
    Now before HumanTask 1 is called, I copy the contents of this variable into the input for tasks1. This works fine and I see the appropriate values, when opening the Human Task in the BPEL worklist application.
    Now after HumanTask1 is completed, the values I entered inside that tasks are returned as a variable from the HumanTask. My problem is, that I cannot copy the contents of the task back into the main process. With simpleTypes this is relatively ok, since Jdev supports the assembling of the copy operation, however for complex tasks it fails.
    A typical scenario for this would be where e.g. a customer fills a shipping address and afterwards a store staff fills product details in the same order. In Java this could be solved via "pass by reference". Who can provide an example?

  • WCF Service as Data source in SSRS report with Complex Types

    Hi All,
    I have a requirement where we are suppose to use WCF service as datasource in SSRS. I was able to do that when the WCF response type was simple.
    Now the requirement have changed where the response type is complex . I couldn't figure out a way of accessing WCF with complex types.
    Any pointer will be of great help as I couldn't find any related articles for this kind of scenario.
    Raj

    Hi Raj,
    WCF uses a serialization engine called the Data Contract Serializer by default to serialize and deserialize data (convert it to and from XML). All .NET Framework primitive types, such as integers and strings, as well as certain types
    treated as primitives, such as DateTime and XmlElement,
    can be serialized with no other preparation and are considered as having default data contracts. Many .NET Framework types also have existing data contracts. For a full list of serializable types, see Types
    Supported by the Data Contract Serializer.
    New complex types that you create must have a data contract defined
    for them to be serializable. You can explicitly create a data contract by using DataContractAttribute and DataMemberAttribute attributes.
    This is normally done by applying the DataContractAttribute attribute
    to the type.
    You can refer to :
    http://msdn.microsoft.com/en-us/library/ms733811(v=vs.110).aspxhttp://www.codeproject.com/Articles/738844/Using-WCF-Data-Contract-Known-Types-by-Example
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Problems populating complex type structre in bpel

    Hi All,
    I'm trying to populate with no good results a complexType variable that contains n maxOccurs="unbounded" element.
    This is the schema:
    <xsd:complexType name="logWarnParam">
    <xsd:sequence>
    <xsd:element name="Message" type="xsd:string"/>
    <xsd:element name="MessageParam" type="xsd:string" maxOccurs="unbounded"/>
    <xsd:element name="context" type="ns1:context"/>
    </xsd:sequence>
    </xsd:complexType>
    This is the bpel variable
    <variable name="logWarnParamVariable" element="ns3:logWarnParam"/>
    and these are the parts of the bpel that applies to this case:
    <while name="While1"
    condition="bpws:getVariableData('i')&lt;number(5)">
    <scope name="Log1" variableAccessSerializable="no">
    <sequence name="Sequence1">
    <assign name="assign1">
    *<bpelx:append>*
    *<bpelx:from expression="string('value1')"/>*
    *<bpelx:to variable="logWarnParamVariable"*
    query="/ns3:logWarnParam/MessageParam"/>
    *</bpelx:append>*
    <copy>
    <from expression="bpws:getVariableData('i')+1"/>
    <to variable="contador"/>
    </copy>
    </assign>
    </sequence>
    </scope>
    </while>
    Can anyone help me with the way to populate this structure?
    Thanks in advance!

    The complexType element defines a complex type. A complex type element is an XML element that contains other elements and/or attributes.
    Its a place holder to hold different types of element or same set of elements.
    In the below example you will get more information.
    *<xs:element name="employee" type="fullpersoninfo"/>*
    *<xs:complexType name="personinfo">*
    <xs:sequence>
    <xs:element name="firstname" type="xs:string"/>
    <xs:element name="lastname" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    *<xs:complexType name="fullpersoninfo">*
    <xs:complexContent>
    <xs:extension base="personinfo">
    <xs:sequence>
    <xs:element name="address" type="xs:string"/>
    <xs:element name="city" type="xs:string"/>
    <xs:element name="country" type="xs:string"/>
    </xs:sequence>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>
    In this example i would like to have more than one employee information. So i have created a complexType as "fullpersoninfo", Then in run time i will populate the values inside "fullpersoninfo"
    not the employee or fullpersoninfo variable, rather i will populate the firstname, lastname, address, city and country.
    The out put will be having value like the below.
    <employee>
         <firstname></firstname>
         <lastname></lastname>
         <address>Duke Street</address>
         <city>Liverpool</city>
         <country>UK</country>
    </employee>
    <employee>
         <firstname></firstname>
         <lastname></lastname>
         <address>Duke Street</address>
         <city>Liverpool</city>
         <country>UK</country>
    </employee>
    I will populate the elements inside the complex type element not it self.
    I took the example from below URL
    http://www.w3schools.com/schema/el_complextype.asp
    You should modify your assign as below.
    <bpelx:append>
    <bpelx:from expression="string('value1')"/>
    <bpelx:to variable="logWarnParamVariable"
    query="*/ns3:logWarnParamVariable/ns3:logWarnParam/ns3:MessageParam*"/>
    </bpelx:append>
    Let me know how you go !!
    Thanks,
    Vijay

  • BPEL PM supports Complex Type?

    In my BPEL process flow, I am trying to invoke a web service operation with Response message an array of Complex Type. When I tried to look the output of the operation from the debug mode of the BPEL Console, I got a message "Error:internal bug (#321) object:id0 not found in object store".
    The operation is defined as
    <wsdl:operation name="getEffects">
    <wsdlsoap:operation soapAction="" />
    <wsdl:input name="getEffectsRequest">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:IBCDS" use="encoded" />
    </wsdl:input>
    <wsdl:output name="getEffectsResponse">
    <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:IBCDS" use="encoded" />
    </wsdl:output>
    </wsdl:operation>
    the Complex Types are defined as
    <complexType name="Effect">
    <sequence>
    <element name="ID" nillable="true" type="xsd:string" />
    <element name="classification" nillable="true" type="xsd:string" />
    <element name="coe" type="xsd:byte" />
    <element name="com" type="xsd:byte" />
    <element name="country" nillable="true" type="xsd:string" />
    <element name="dateMod" nillable="true" type="xsd:dateTime" />
    <element name="deClassDate" nillable="true" type="xsd:dateTime" />
    <element name="def" type="xsd:byte" />
    <element name="description" nillable="true" type="xsd:string" />
    <element name="det" type="xsd:byte" />
    <element name="infl" type="xsd:byte" />
    <element name="name" nillable="true" type="xsd:string" />
    <element name="reliability" type="xsd:double" />
    <element name="tra" type="xsd:byte" />
    </sequence>
    </complexType>
    <complexType name="ArrayOfEffect">
    <complexContent>
    <restriction base="soapenc:Array">
    <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:Effect[]" />
    </restriction>
    </complexContent>
    </complexType>
    and the input/output for the operation are define as
    <wsdl:message name="getEffectsRequest" />
    <wsdl:message name="getEffectsResponse">
    <wsdl:part name="getEffectsReturn" type="impl:ArrayOfEffect" />
    </wsdl:message>
    My project involves lots of Complex Type data, I like to know if the current BPEL PM support the Complex Type that I just described?

    Hi June,
    BPEL PM Supports complex type return. I am not why you see this error in debugger. can you enable the bpel domain debug (under BPEL Console-->Manage Domain-->Logging) and send us the debug log? Is it possible to send your process (including wsdl + xsd) to our support email at [email protected]?

  • In XML Gateway Responsibility How to add User defined Trading Partner type.

    Hi,
    We have a requirements to add user defind Trading Partner Type apart from the default trading partner type.
    How to do this? If any one know , kinldy let me explain it
    Thanks

    I looked it up in the mean time ...
    The docs state that you only can use simple data type or java.util.list or AttributeList (which is a wrapper for any viewRow). So I guess you have to somehow flatten your complex data type or create a custom VO which holds it.
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcextservices.htm#CJAEHFJD
    Scroll down to 11.2.3
    Timo

  • Web service Complex type

    hello i want to ask if i can make a complex type that is composed of many other classes and witch databinding framework should i use to do do the mapping from xml to my one classes not the auto generated classes thanks for your help.

    Hi Ray,
    I just had you set your "per" object to its constructor out of habit. Don't know about you, but I spend too much time chasing null pointer exceptions.
    Try this. It's easy and quick.
    1) Hold your mouse over the ObtenerPersonaActivaDadoCI() method in the Project Navigator tab. By doing this, I'm guessing you'll see it's not returning a Persona object.
    or
    2) Simply drag the ObtenerPersonaActivaDadoCI() method from the Project Navigator tab into your logic. By doing this, you'll notice that it has a value in front of the "=" sign. Again, I'm guessing you'll see it's not returning a Persona object.
    Even though the Persona object and the object that ObtenerPersonaActivaDadoCI() returns both have the same list of attributes, I believe that you'll continue to get the error you're seeing if you try to set per (since it's an Persona object) to the value returned form ObtenerPersonaActivaDadoCI().
    To get around the problem, let's say you instead have the ObtenerPersonaActivaDadoCI() method return it's value to an "opadCI" object (the type of object you found out that the method returns by doing 1 or 2 above). You might want to fix your problem by doing something like this:
    per.firstAttr = opadCI.firstAttr
    per.sedondAttr = opadCI.sedondAttr
    per.thirdAttr = opadCI.thirdAttr
    Hope this helps,
    Dan

  • Mapping List Complex Types in BPM (unbounded)

    Hello,
      I need help in how can I map a list of complex types in BPM.
      I have a list of products that brings a web service that I have to map to the process context. Both types have the same elements, but the process context BPM shows me an error because it is different of the web service.
      Please, any documentation or advice.
    Regards
    SU

    Hi,
    For mapping the complex types, you need to follow the below:
    Start by mapping the outermost node first and then mapping the attributes inside the node. Intially it will show the (types do not match) error and when you are done with all the mapping the error would vanish.
    Cheers,
    Arafat

Maybe you are looking for

  • ACK_ channel for handling ALEAUD back to ECC system

    Hi, I have created a channel called ACK_Receiver_XI_TO_ECC for sending ALEAUD for all IDOC's that are received from ECC to XI. I also have another receiver IDOC channel for all IDOCs that are sent from XI to ECC. I read in one of the pdf's that when

  • IOs7: iPod Touch 5. iMessage and Facetime not working.

    I just updated to ios7 and now imsg and facetime aren't working. It asks me for my Apple ID usename and password and then I get a message that says  "Could not sign in. Please check your network connection and try again." I am in wifi and internet is

  • EZDrummer and Leopard compatability. Has anybody got it to work.

    Just got my Mac mini and have been trying to get EZDrummer to work in garageband 08. I open up garage band and use a software track, but when I drop down the instrument generator there is no EZDrummer option anywhere. Has anybody got this to work? If

  • Upgrading the from 10.2.8 to 10.4.6 (tiger)

    Hi there: I had singal proccossor server with os server 10.2.8 and recently upgraded it to 10.4.6 (tiger) and got the following problem. This is a file server (all the users save gets thier profile, and data by logging into thier computer) using neti

  • How to analyse the data with &without free form of planning

    Hello Expert's, I am new to this concept's and I want to know the difference between with Free form &without Free form in SmartView of Planning data.I need a navigation path to know the difference between these two. Thanks in advance