Cannot send complex type as method parameter

Cannot send complex type as method parameter
Hi!
I'm using a kSOAP 1.2 client and i'm having trouble executing a method that takes an object
of complex type as parameter:
method:
public void addSquareDetail(SquareDetail sd){/stuff}
-SquareDetail is a java bean class that implements KvmSerializable
- a mapping was added to classmap
-legacy namespace is not an issue (i AM able to execute the following methods successfully
over kSOAP):
-getting one SquareDetail object
-getting a vector of squareDetail objects
Here's how i'm trying to call the 'send' method:
     ClassMap classMap = new ClassMap();
classMap.addMapping("urn:SquareWebService/types", "SquareDetail", (new
SquareDetail()).getClass());
System.out.println("add one SquareDetail");
request = new SoapObject(serviceURN, "addSquareDetail");
sd = new SquareDetail();
request.addProperty("SquareDetail_1", sd);
tx = new HttpTransport(this.endPointURL, "addSquareDetail");
tx.debug = true;
tx.setClassMap(classMap);
tx.call(request); //exception here
(above:)
private String endPointURL = "http://localhost:8080/SquareWebService/SquareWebService";
protected static final String serviceURN = "urn:SquareWebService/wsdl";
Error(from server, Sun ONE App Server7):
SoapFault - faultcode: 'env:Server' faultstring: 'Internal Server Error (deserialization
error: unexpected XML reader state. expected: END but found: START: someInt)' faultactor:
'null' detail: null
Here are request/response dumps:
-request---------
<SOAP-ENV:Envelope xmlns:n0="urn:SquareWebService/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<addSquareDetail xmlns="urn:SquareWebService/wsdl" id="o0" SOAP-ENC:root="1">
<SquareDetail_1 xmlns="" xsi:type="n0:SquareDetail">
<someFloat xsi:type="SOAP-ENC:float">1.5</someFloat>
<someInt xsi:type="xsd:int">-1</someInt>
<someString xsi:type="xsd:string">someString from SquareDetail</someString>
<propertyCount xsi:type="xsd:int">4</propertyCount>
</SquareDetail_1>
</addSquareDetail>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
response------------
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="urn:SquareWebService/types"
xmlns:ns1="http://java.sun.com/jax-rpc-ri/internal"
env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><env:Body><env:Fault><faultcod
e>env:Server</faultcode><faultstring>Internal Server Error (deserialization error:
unexpected XML reader state. expected: END but found: START:
someInt)</faultstring></env:Fault></env:Body></env:Envelope>
So, apparently, the request message is not understood by the server. what exactly is it
missing, and how can i add/correct that? (my guess in SquareDetail_1 xmlns="" should be
"urn:SquareWebService/types", although it's just a guess AND i don't know how to make kSOAP
get it in there)
I'm not sure what kind of SOAP parser my app server utilizes, but i'm guessing it's an
apache product (how can i tell?). I also have a WSDL file available, should anyone be
willing to look at it, please let me know
thanks
-nikita

Don't know if it will help but Can you check if the serializable object has a public empty no args constructor with an empty call to super()
Also make sure that a type mapping registry is added with a reference to the serializable object in it.
Please paste The WSDL as well

Similar Messages

  • Hard-coding complex type web service parameter

    Hi,
    I am trying to populate a drop-down list with data returned from a web service. The web service requires one parameter, but it is a complex type with many elements. I don't need any user input, I want to set the the parameter values programatically. Is this something that can be done with a web service data control?
    I know that I can edit the action binding and specify a parameter, but I'm not sure how to do this when the parameter is a complex type.
    I hope I am explaining this in a way that makes sense. I am fairly new to both Jdeveloper and web services.
    I am using JDeveloper 11.1.2.0.0
    Thanks.

    Thanks for the link. The article is from 2006 and I was under the impression that there was more support for complex types now. Maybe in my case I am better off using a web service proxy?

  • Web service call problem with complex types input

    We are trying to call a web service and pass as parameter
    some complex types. When invoking the web service everything works
    well on flex side, but on the server side the input parameters we
    get from flex are not correct - complex type is removed and the
    elements of the complex type are sent. See the example:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:WebService id="ws_id" wsdl="link" useProxy="false"
    fault="wsFault(event)">
    <mx:operation id="op_id" name="op"
    result="wsResult(event)">
    <mx:request>
    <parameters>
    <parameter1>{value1}</parameter1>
    <parameter2>{value2}</parameter2>
    <parameter3>{value3}</parameter3>
    <parameter4>
    <parameter4_1>{value4_1}</parameter4_1>
    <parameter4_2>{value4_2}</parameter4_2>
    <parameter4_3>{value4_3}</parameter4_3>
    </parameter4>
    </parameters>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    </mx:Application>
    on server side we get this:
    <parameters>
    <parameter1>{value1}</parameter1>
    <parameter2>{value2}</parameter2>
    <parameter3>{value3}</parameter3>
    <parameter4_1>{value4_1}</parameter4_1>
    <parameter4_2>{value4_2}</parameter4_2>
    <parameter4_3>{value4_3}</parameter4_3>
    </parameters>
    Instead of :
    <parameters>
    <parameter1>{value1}</parameter1>
    <parameter2>{value2}</parameter2>
    <parameter3>{value3}</parameter3>
    <parameter4>
    <parameter4_1>{value4_1}</parameter4_1>
    <parameter4_2>{value4_2}</parameter4_2>
    <parameter4_3>{value4_3}</parameter4_3>
    </parameter4>
    </parameters>
    Any idea how is it possible to send complex type as web
    service input from flex ?

    Hi,
    I also have similar type of problem where I need to invoke a Web service with Complex input parameters.
    I followed Susan's blog but I stuck at a point where methos getItem is created.
    Can anyone tell me how to get that method for my requirement.
    If possible can you guys share your solutions here.
    Thanks in advance.

  • Complex Types in Webservices

    Hi,
    I'm trying to make a call to a web service method which takes a complex type as a parameter.
    I'm using an object of type Object and setting two properties of the object called name and body then passing the object as the parameter of the webservice method.  The problem that I'm seeing is that the name property doesn't seem to be getting set.  I'm using Wireshark to packet sniff the SOAP request Flex sends to the webservice and I never see the name property in the request (but I do see the body property every time).
    Please note that this is not a connectivity issue as I am able to successfully make several other methods which do not take parameters with complex types.
    Does anybody know what I need to do to get this name property to show up properly in the complex type?
    Here is my Flex code:
    </mx:Script>
    <![CDATA[
    public function init() : void {
         var mb : Object;
         mb = new Object();
         mb.name = "inputMsg";
         mb.body = "foo";
         service.setMessage.send(mb);
    ]]>
    </mx:Script>
    <mx:WebService
      id="service"
      result="onResult(event)"
      fault="onFault(event)"
      wsdl="http://FOOBAR:8282/EngineService/engine?wsdl">
      </mx:WebService>
    Here is the SOAP request I picked up in Wireshark:
    O@8qE2@g@t@F#H"P0<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
        <ns0:setMessage xmlns:ns0="http://isws.pervasive.com">
          <mb xsi:type="intf:Message" xmlns:intf="http://isws.pervasive.com/">
            <body xsi:type="xsd:string">foo</body>
          </mb>
        </ns0:setMessage>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Thanks,
    Dan

    user10455639 wrote:
    So I think you are right that I messed it up, So let me explain -
    Using JAXB -
    1. You can use Types annotation and Hence also specify what all your class can return. For example -
    public void saveAlert(Alert alert)
    so we can say using types something like -
    public void saveAlert(@Types({"com.businessobject.BalanceThreshold"}) Alert alert)
    indicating that your inout can also be a balanceThrshold object
    or something like -
    (@Types({"com.businessobject.BalanceThreshold"})
    public Alert getAlert()
    indicating that your ouput can also be a balanceThrshold object
    However with JAXB I get stuck with when the return type internally has a complext data type.
    using JAXWS-
    I donot know if there is a way to specify those extension as described above
    But you are right that the return type gets automatically taken care of with JAX-WS
    can you suggest similar notation to Types in JAXWS?
    On JAXB - I didnt understand your comment of "My suggestion is that you should try start from WSDL"
    Your comments are very helpful.
    thanksI assume that you mean JAX-RPC, not JAXB. According to link, @Types should only be used on WebMethod or the WebMethod parameter. So it wouldn't work if you specify it on complex data type.
    Start from WSDL is so called top down WebServices, it assumes that you have a WSDL as contract first, then you can generate the JWS from this WSDL.

  • Cannot send a null Map key for type 'java.util.HashMap'

    Hi All,
      I am haing an issue with sending data from Server to the client using the AMF Channel.
      Most of the method invocations on the RemoteObject are throwing the following Exception.
    [CODE]
    (mx.rpc.events::FaultEvent)#0
      bubbles = false
      cancelable = true
      currentTarget = (null)
      eventPhase = 2
      fault = (mx.rpc::Fault)#1
        content = (null)
        errorID = 0
        faultCode = "Server.Processing"
        faultDetail = (null)
        faultString = "Cannot send a null Map key for type 'java.util.HashMap'."
        message = "faultCode:Server.Processing faultString:'Cannot send a null Map key for type 'java.util.HashMap'.' faultDetail:'null'"
        name = "Error"
        rootCause = (null)
      headers = (null)
      message = (mx.messaging.messages::ErrorMessage)#2
        body = (null)
        clientId = "22E55FB1-910E-312F-E37A-ED5167139CB0"
        correlationId = "4DB54224-662A-C596-D165-F7C3EBB64DB8"
        destination = "TimeMap"
        extendedData = (null)
        faultCode = "Server.Processing"
        faultDetail = (null)
        faultString = "Cannot send a null Map key for type 'java.util.HashMap'."
        headers = (Object)#3
        messageId = "22E56255-D62F-2ACF-4DA5-CF1E4D6353BB"
        rootCause = (null)
        timestamp = 1266877198902
        timeToLive = 0
      messageId = "22E56255-D62F-2ACF-4DA5-CF1E4D6353BB"
      statusCode = 0
      target = (null)
      token = (mx.rpc::AsyncToken)#4
        message = (mx.messaging.messages::RemotingMessage)#5
          body = (Array)#6
          clientId = (null)
          destination = "TimeMap"
          headers = (Object)#7
            DSEndpoint = "my-amf"
            DSId = "22E53936-7E0E-B21C-C936-EF1078000306"
          messageId = "4DB54224-662A-C596-D165-F7C3EBB64DB8"
          operation = "getMapKey"
          source = (null)
          timestamp = 0
          timeToLive = 0
        responders = (Array)#8
          [0] (com.universalmind.cairngorm.events::Callbacks)#9
            conflictHandler = (null)
            faultHandler = (function)
            priority = 0
            resultHandler = (function)
        result = (null)
      type = "fault"
    [CODE]
    The Spring bean which is exposed as a Remote Object has the following method signature..
    [CODE]
    public String getMapKey() {
            return mapKey;
    [/CODE]
    I am unable to understand why AMF Channel or Blaze DS is treating the String as HashMap !!!
    This was working pefectly fine till yesterday !!
    The version of the BlazeDS i am using is : blazeds_turnkey_3-0-0-544
    and the Flex SDK Version is : flex_sdk_3.5.0.12683
    We recently upgraded to Flex 3.5.0 version earlier we were using 3.3 version
    Thanks
    mars

    Hi All,
    I chcked my server side java beans ( which are managed by Spring) and they are all returning the data property and none of the Keys in the returned hashmaps are null.
    Not sure why this is happening.
    Thanks
    kumars

  • WARNING: Complex type 'any' cannot be supported

    Not sure what to make of this warning ... any suggestions?
    oracle.adfinternal.model.adapter.webservice.MessagePart checkComplexPrototype
    WARNING: Complex type 'any' cannot be supported

    I actuall have the same problem but I can give you some more context.
    I have a Webservice made with JAX-WS in JDeveloper it uses Complex types with inheritance such as:
    abstract class Mammal{
    public Mammal get(){ return this; }
    @WebService
    public class Human extends Mammal {
    @WebMethod
    public Mammal get(){ return this; }
    Exposing the WSDL to i.e. C# works perfectly the Polymorphism works like a charm, however when i follow the JSF tutorial from the JDeveloper page and want to add my method get i get the following error:
    Sep 2, 2009 3:32:29 PM oracle.adf.adapterDC.webservice
    WARNING: Complex type '{http://local/}mammal' cannot be supported
    Is this due to that Mammal is Not exposed correctly or what could possible cause this?
    A popup also shows that an error occured telling me the following:
    "DCA-29000: Unexpected exception caught:
    java.lang.NullPointerException, msg=null"
    Thanks,
    Filip

  • Invoking a web service - cannot resolve method parameter

    I am getting a failure trying to invoking a method called sl_Access on a web service.
    (Same code worked in Workshop 7.1, but fails in Workshop 8.0. The WDSL has not
    changed.) WLW is not able to revolve a method parameter called piCustNo. The service
    call works in WLW 7.1, but not 8.0.
    Any insight on how to fix this problem?
    The service call
    private AnonType_sl_AccessResponse response = null;
    nlastid = response.piLastId;
    the service definition from wsdlControl.jcx ----
    * @jc:protocol form-post="false" form-get="false" http-soap="true"
    public AnonType_sl_AccessResponse sl_Access (int piCustno);
    console error output -----
    Submitted at Wednesday, October 8, 2003 2:15:22 PM EDT
    Exception in sl_Access
    com.bea.control.ServiceControlException:
    SOAP-ENV:Client
    An error was detected in the Web Service request. (10894)
    Cannot resolve method sl_Access parameter ns:piCustno (10933)e91a6247e9b693c3:-1b6d127:f811fed2db:-8000#17
    at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:846)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:359)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393)
    at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:387)
    at $Proxy11.sl_Access(Unknown Source)
    at com.ovid.service.AccessService.getRepl(AccessService.java:93)
    at com.ovid.service.AccessService.processBatch(AccessService.java:71)
    at Controller.runAccess(Controller.jws:399)

    see:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.workshop&item=1730
    Joe Smith wrote:
    >
    I am getting a failure trying to invoking a method called sl_Access on a web service.
    (Same code worked in Workshop 7.1, but fails in Workshop 8.0. The WDSL has not
    changed.) WLW is not able to revolve a method parameter called piCustNo. The service
    call works in WLW 7.1, but not 8.0.
    Any insight on how to fix this problem?
    The service call
    private AnonType_sl_AccessResponse response = null;
    nlastid = response.piLastId;
    the service definition from wsdlControl.jcx ----
    * @jc:protocol form-post="false" form-get="false" http-soap="true"
    public AnonType_sl_AccessResponse sl_Access (int piCustno);
    console error output -----
    Submitted at Wednesday, October 8, 2003 2:15:22 PM EDT
    Exception in sl_Access
    com.bea.control.ServiceControlException:
    SOAP-ENV:Client
    An error was detected in the Web Service request. (10894)
    Cannot resolve method sl_Access parameter ns:piCustno (10933)e91a6247e9b693c3:-1b6d127:f811fed2db:-8000#17
    at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:846)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:359)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393)
    at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:387)
    at $Proxy11.sl_Access(Unknown Source)
    at com.ovid.service.AccessService.getRepl(AccessService.java:93)
    at com.ovid.service.AccessService.processBatch(AccessService.java:71)
    at Controller.runAccess(Controller.jws:399)

  • Complex Type arguments in COM methods.

    Problem:
    A COM’s object method is expected to receive two
    arguments by reference. Both arguments are complex type (objects).
    According to CFMX documentation, you pass variables ‘by
    reference‘ by enclosing them in quotes. This works for simple
    types, but not for objects.
    Any idea how to pass an object by reference?

    Would it help to convert it to a string while passing between Python and LabVIEW?
    Then you can typecast it accordingly in each environment.
    Cory K

  • How to specify Complex Type Parameter

    Hi,
    Can anyone tell me how to specify a complex type parameter using the AddServiceDefinition command in the fnscript? Thanks
    Pao Wang
    NMR

    The only types supported are those listed in the Process Development Guide.
    Stephen

  • My iOS customers cannot download the video clips I send via Adobe Send "Safari cannot download this type of file"

    My customers who use iOS cannot download the video files I send by Adobe Send "Safari cannot download this type of file" is the report they get. I have tried created a zip file of the clip but get the same result. Please help

    This error seems to point at a problem not directly related to the encoding. The message might be misleading but I read "Safari cannot download this type of file" as relating to the file type - the end of the name (perhaps MIME type setup, but let's start with the file type).
    But... some web searching finds others say that iOS cannot download files AT ALL because it has no filing system you can access. Clearly (?) you just want it to show the movie, but I don't know any more than that.
    Perhaps someone else has worked in this area. Also worth trying suitable iOS forum.

  • 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>

  • I cannot send nor receive emails. The message I get is that I need to type in my account password which I've done but still unable to send or receive. I get texts fine

    My Iphone 4 is new, and I have been able to send and receive texts, but cannot send nor receive emails. I get the message that I need to input my password for my yahoo account which I've done many times. When I type messagefor outgoing it only allows me to save as a draft. Any ideas?

    Are you positive you're typing the correct password in? You might want to try and reset your password, and try again.  You'll get texts because it isn't connected to your email account. 

  • Cannot send attachment beyond 1.5 MB, the MaxFileSize parameter is already set to 6 MB and the exchange server's limit is 10 MB

    Hi Experts,
    I cannot send attachment beyond 1.5 MB, the MaxFileSize parameter is already set to 6 MB and the exchange server's limit is
    10 MB.
    What could be the issue?
    aa

    But I am able to send the same  attachment from my web browser
    aa
    I am not expert in Exchange but web browser may not be using SMTP protocol? Check with your SMTP/Exchange Admin about "4.3.1 Message size exceeds fixed maximum message size"
    4.3.1 is response from the server.
    Balmukund Lakhani
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    | Facebook
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • Cannot assign value to a Variable of Complex Type beyond index 1

    Hello:
    I have a variable defined as a complex type as followed. I tried to assign a value to each of the two elements but it only allows me to assign to the 'element#1.
    This statement that tries to assign a value into element#2 will not work, if I assign with '[1]' for the first element it will work:
    <copy> <---- THIS WORKS
    <from expression="'John'"/>
    <to variable="My_Variable"
    part="My_Collection"
    query="/ns9:My_Collection/ns9:Collection/ns9:Collection_Item[1]/ns9:pname"/>
    </copy>
    <copy> <---- THIS DOES NOT WORK
    <from expression="'John'"/>
    <to variable="My_Variable"
    part="My_Collection"
    query="/ns9:My_Collection/ns9:Collection/ns9:Collection_Item[2]/ns9:pname"/>
    </copy>
    Is there something wrong with my definition below that allows only element#1 to be refererenced but not element#2???? Am I missing some kind of initialization that is needed to initialize both elements????
    Here are my message and Complex Type definitions:
    <variable name="My_Variable" messageType="ns8:args_out_msg"/>
    <message name="args_out_msg">
    <part name="My_Collection" element="db:My_Collection"/>
    </message>
    <element name="My_Collection">
    <complexType>
    <sequence>
    <element name="Collection" type="db:Collection_Type" db:index="2" db:type="Array" minOccurs="0" nillable="true"/>
    <element name="Ret" type="string" db:index="3" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <complexType name="Collection_Type">
    <sequence>
    <element name="Collection_Item" type="db:Collection_Type_Struct" db:type="Struct" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
    </sequence>
    </complexType>
    <complexType name="Collection_Type_Struct">
    <sequence>
    <element name="pname" db:type="VARCHAR2" minOccurs="0" nillable="true">
    <simpleType>
    <restriction base="string">
    <maxLength value="25"/>
    </restriction>
    </simpleType>
    </element>
    </sequence>
    </complexType>
    The error msg it gives me is as followed:
    [2010/09/04 00:47:59] Error in <assign> expression: <to> value is empty at line "254". The XPath expression : "" returns zero node, when applied to document shown below:less
    oracle.xml.parser.v2.XMLElement@1fa7874
    [2010/09/04 00:47:59] "{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>
    XPath query string returns zero node.
    According to BPEL4WS spec 1.1 section 14.3, The assign activity &lt;to&gt; part query should not return zero node.
    Please check the BPEL source at line number "254" and verify the &lt;to&gt; part xpath query.
    </summary>
    </part>
    </selectionFailure>
    Thanks
    Newbie

    Hello:
    Base on the suggestion to use 'append' instead of 'copy', I tried to define a 'singleNode' which is of type 'Collection_Type_Struct' so I can append this individual 'struct' into my array (i.e. as the 2nd. element of my array "/ns9:My_Collection/ns9:Collection/ns9:Collection_Item"), but I am getting an error in defining this variable as:
    <variable name="singleNode" element="Collection_Type_Struct"/> <--- error
    Can someone tell me how should I define "singleNode" so I can put a value in it and then append this 'singleNode' into the array:
    <variable name="singleNode" element=" how to define this????"/>
    <assign>
    <copy>
    <frem expression="'Element2Value'"/>
    <to variable="singleNode"
    part="My_Collection"
    query="/ns9:My_Collection/ns9:Collection/ns9:Collection_Item/ns9:pname"/>
    </copy>
    </assign>
    <bpelx:assign>
    <bpelx:append>
    <from variable="singleNode" query="/ns9:My_Collection/ns9:Collection/ns9:Collection_Item"/>
    <to variable="My_Variable"
    "part="My_Collection"
    query="/ns9:My_Collection/ns9:Collection"/>
    </bpelx:append>
    </bpelx:assign>
    Again here is my definition in my .xsd file:
    <element name="My_Collection">
    <complexType>
    <sequence>
    <element name="Collection" type="db:Collection_Type" db:index="2" db:type="Array" minOccurs="0" nillable="true"/>
    <element name="Ret" type="string" db:index="3" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <complexType name="Collection_Type">
    <sequence>
    <element name="Collection_Item" type="db:Collection_Type_Struct" db:type="Struct" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
    </sequence>
    </complexType>
    <complexType name="Collection_Type_Struct">
    <sequence>
    <element name="pname" db:type="VARCHAR2" minOccurs="0" nillable="true">
    <simpleType>
    <restriction base="string">
    <maxLength value="25"/>
    </restriction>
    </simpleType>
    </element>
    </sequence>
    </complexType>
    Thanks for any help!!!!

  • Web Services and Nested Complex Types

    I am having troubles trying to get coldfusion to use a web
    service function.
    I know that the web service works as I am sending another
    function in a simple variable and receiving a simple variable. I
    know the function exists as I when I dump the object the function
    is there and I have been told by who supplies it that it works in
    other languages.
    The problem I am having is that when I call the function I
    get the following error: Web service operation "[function name]"
    with parameters [parameters] could not be found. I am lead to
    believe that it may have to do with the fact that one of the
    parameters is a complex type with nested complex types, because of
    the amount of trouble it took to get nested complex types to
    (apparently) work.
    Has anyone had this problem before and/or know how to fix
    it?

    You can invoke methods which take complextypes as parameters.
    The idea is to create first a structure which represents the
    complextype. For example; crit = structNew(), crit.paramname1 =
    value1, ctir.paramname2 = value2. After this, you just pass the
    structure
    crit as a parameter value, for example with
    <cfinvokeargument>.
    Always check the wsdl and the possible documentation
    carefully. You'll get always an error if the types of the
    parameters passed didn't match exactly to what was expected.
    Handling complextype responses is also possible, but not very
    elegant with ColdFusion.
    For example, you have <cfinvoke
    returnvariable="wsResult"... >, and you get a java object as a
    response which you can really do nothing about with CF functions,
    you must use Java Reflection API to extract the values.
    <cfset oFields =
    wsresult.getClass().getDeclaredFields()>
    <cfoutput>
    <cfloop from="1" to="#arraylen(oFields)#" index="fi">
    <cfset field = oFields[fi].getName()>
    <cfif isdefined("wsresult." & field) AND field NEQ
    "typedesc">
    #field# = #wsResult[field]#<br>
    </cfif>
    </cfloop>
    </cfoutput>
    The above is just an example, and It might work with only
    some types of complextype responses. But it's a start. :)
    http://www.mail-archive.com/[email protected]/msg00553.html
    is also another example about handling complextype responses. It
    plays "safer", not relying that CF can extract values without
    "getters" automatically, and is more of a complete solution.

Maybe you are looking for

  • Error while deploying Java EAR including flex

    I am developing Flex + Java in RAD 6.0, codes run correctly. But when I want to deploy the ear file of the whole application. Error is raised while deploying the flex folder under WEB-INF. Following the detailed information: Anyone know how to solve

  • Deletion of EAN number in Material Master using a BAPI BAPI_MATERIAL_SAVEDA

    Hello , I am  using the BAPI_MATERIAL_SAVEDATA to update material master, I am trying to set the deletion flag to EAN code in the Basic data>>Additonal Data view. I am setting the deletion flag in the internal table for table bapi_mean. After running

  • Payment run for DME file- error

    I have successfully executed payment run. the varaint is defined for DME file. when i execute the print program i get error 'Payment run/group (20110701 DME2) locked by user 10609576'

  • Resolution Issues in Jpeg Options when Saving

    Hi, I am suddenly experiencing an issue when saving Jpeg files in photoshop CS4. I work on hundreds of files at a time. I open the Jpeg photo, edit it and when ready hit 'save' and 'return' to accept the settings which are usually set by default to 1

  • Understanding garbage collector output

    Hi all. My application uses an increasing amount of memory, and in order to solve the problem I have turned on the -verbosegc option. The output is as follows: <GC: managing allocation failure: need 1040 bytes, type=1, action=1> <GC: 504 milliseconds