WebService - Multiple arguments problems

Hi everyone,
I need to call a method of a given Webservice which is
described by the following code in the WSDL file :
<s:element name="loadWorkspace">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="nServer"
type="s:int"/>
<s:element minOccurs="0" maxOccurs="1" name="sWorkspace"
type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
When the WSDL is parsed, and when I call
MyWS.LoadWorkspace(0,"MyWorkspace"), the second parameter is not
caught in the trace. Here is the result :
3/30 17:0:29 [INFO] SOAP: Asynchronously invoking SOAPCall:
LoadWorkspace(0,"plop")
param:loadWorkspace1 0
param:LoadWorkspaceResult plop
3/30 17:0:29 [INFO] : Invoking call LoadWorkspace
loadWorkspaceResponse :-1
Someone can help me to call this method with the two
arguments ?

I up my topic... I realise that I also have problems passing
only one arguments...
It seems that FMS is uncompatible with WebService with
complex types.
Is there a solution to adapt my application to this
Webservice ? Or, have I to re-write a compatible Webservice
?

Similar Messages

  • SUMIFS + multiple arguments for a condition.

    Hello,
    I have a function looking like this :
    =SUMIFS(Test :: $J,Test :: $I,"="&$A5,Test :: $E,"="&C$3,Test :: $C,"="&355)+SUMIFS(Test :: $J,Test :: $I,"="&$A5,Test :: $E,"="&C$3,Test :: $C,"="&360)+SUMIFS(Test :: $J,Test :: $I,"="&$A5,Test :: $E,"="&C$3,Test :: $C,"="&432)
    and I would like to know if I can get it shorter, something like :
    =SUMIFS(Test :: $J,Test :: $I,"="&$A5,Test :: $E,"="&C$3,Test :: $C,"="&(355,360,432))
    I tried multiple syntaxes, but none seems to work =/ The idea is that my last condition is valid when Test::*C is equal to 355 or 360 or 432.
    Additionally, I know the formula works if written : "="&355, but can someone tell me what is the meaning of the "&" and why a simple "="355 returns a syntax error ?
    Thanks a lot !

    If you're running out of columns on your main table, there's no reason the OR formula can't be placed on the Test table.
    The problem with the proposed condition: Test :: $C,"="&OR(355,360,432)
    is that the cell in Test C will meet that condition only if ti contains the boolean value TRUE.
    OR(n,n,n), where n is any number, returns FALSE only if all of the numbers are zero, and returns TRUE if any of the three arguments is a non-zero number.
    As the cell addressed by Test::$C always contains a number, not a Boolean value, the comparison (the number in) Test::$C is equal to (the Boolean value) TRUE will never itself be TRUE. As that condition never returns a TRUE value, none of the values in column J will be included in the SUMIF total.
    That SUMIFS conditions cannot accept multiple arguments is not true. Here's a small example. The Formula is shown in the entry box, the result in the selected cell (in a footer row), and the rows included in the sum are highlighted in yellow.
    Regards,
    Barry

  • Multiple Inheritance problem persists in Interfaces

    Hi,
    I tentatively made a program and found that multiple inheritance problem of C++ persists even with interfaces. Although this is definetely a special case but I want to know what is this problem known as( i know that this is perhaps known as diamond problem in C++). And is there a way out of this thing.
    interface one
         int i=10;
    interface two
         int i=20;
    interface z extends one,two
    public class xyz implements z
         public static void main(String [] a)
         System.out.println(i);
    }O/P
    D:\Education\Java\JavaStudyRoom\Applets>javac xyz.java
    xyz.java:16: reference to i is ambiguous, both variable i in one and variable i
    in two match
    System.out.println(i);
    *^*
    *1 error*
    Thanks for replying

    suvojit168 wrote:
    I tentatively made a program and found that multiple inheritance problem of C++ persists even with interfaces. Although this is definetely a special case but I want to know what is this problem known as( i know that this is perhaps known as diamond problem in C++). And is there a way out of this thing. This is not the so called diamond inheritance problem. What you have here is an ordinary name clash. And as has been noted you can resolve it by qualifying which constant you're referring to, like
    System.out.println(one.i);
    For the diamond inheritance problem to apply both the one and the two interfaces would need to inherit a common ancestor (that's how the diamond is formed). Furthermore the common anscestor would need to carry implementation which would then be inherited two ways, once via one and once via two. This is the diamond inheritance problem Java is avoiding by allowing single inheritance of implementation only.
    P.S. My previous post was posted my mistake.

  • SP10 - multiple approver problem with CUP

    We have SP10 (patch 1) in our development system and cannot move forward to production because of a real show stopper.  I have currently reported this to SAP thru an OSS message (and it is in development) but would like to know if anyone else is having this issue with SP10.  (this happened even before applying patch 1)
    We have multiple approvers when creating NEW users or CHANGING users in CUP.  We have it configured to allow just one of the approvers to approve before going on to the next stage.  Since we put in SP10, CUP is requiring ALL approvers to approve the request before going on to the next stage.  We get the following message when one of the approvers approve the request:  Request no: 5020. is approved, pending for other Approvers. 
    I've seen this reported for UAR and SOD but not for CUP.  In fact, there is a fix for UAR in Patch 1 of SP10.  I applied this patch but it hasn't fixed the CUP issue.  I also don't have the issue when rejecting a CUP request, or when approving it through the configuration --> Request --> Administration screen (what I consider the Back-door since only security administrators get the configuration area).
    Thanks for your input.
    Peggy

    Christian,
    I totally agree with you.
    The good news is.... We installed SP11.1 and the multiple approver problem is fixed. 
    We have decided to leave our production system at SP8 until this system settles down a bit.  Of course, this means we can't use many of the new fixes and features (such as UAR).  We use our sandbox system to apply new support packs and do very rigorous testing.  And our DEV system is at SP8 too.
    Good Luck.
    Peggy

  • L430 multiple driver problems (ultranav and others)

    Hello,
    I have multiple driver problems with my newly purchased L430.
    1) After hibernate the UltraNav driver randomly stops working. This means that the settings are grayed out and my old settings aren't applied. Sometimes the mouse pad and track ball also stop working after hibernate.
    2) The hardware mute button and hibernate don't like each other as well. After resuming from hibernate with the mute button on the sound doesn't work anymore. Rebooting only helps if you have disabled the mute before rebooting.
    3) The intel usb 3.0 driver can't be installed unless you want a lot of bluescreens.
    I do have the newest drivers and BIOS (2.54).

    It's ok my friend,  I just hope I will be able to help.
    Now to the problem. The thing that worries me the most and the reason I asked you to contact a Lenovo Repair Center, is the blue screens with the Intel Usb 3.0 installation. If the driver is correct this should not happen and most of the times it signifies a pure hardware problem, not a software one. Really, it just should not happen, period!
    So please, before anything else, download and boot with a Linux Live cd, any distro you like (e.g. Linux Mint, Fedora, etc). Better choose a 64bit version. It's one way of determining if you're facing a hardware problem with the usb 3.0 ports.
    The information you give is very useful and more or less complete, but I would like to also know the model of your SSDs, both the 2.5'' and msata.
    Meanwhile, you can check either with the Linux Live cd or with Memtest86+ your ram. This does not seem to be a memory problem but it would be nice if we could exclude it from the suspects list. Many - if not most - of these problems are multifactorial and we cannot leave anything to chance..
    Cheers!
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    This will help the rest of the Community with similar issues identify the verified solution and benefit from it.

  • Cfexecute with multiple arguments

    Hello,
    I'm trying to encrypt a file with CFEXECUTE, using OpenSSL. When I run the code in the command prompt, it works fine and the new encrypted file appears in the correct folder. Also, I can run CFEXECUTE with OpenSSL with just one argument and it works fine. ie arguments="version". But the following does not return a value, nor does it create the new folder:
    <cfexecute name = "C:\Program Files (x86)\GnuWin32\bin\openssl"
        arguments = "aes-256-cbc -a -salt -in ""C:\Users\Dev2\Documents\My Stuff\OpenSSL\secrets.txt"" -out ""C:\Users\Dev2\Documents\My Stuff\OpenSSL\secrets2.txt"""
        variable = "result"
        timeout = "5">
    </cfexecute>
    <cfdump var="#result#">
    Any ideas?
    Pete

    BYW,
    This runs fine:
    <cfexecute name = "C:\Program Files (x86)\GnuWin32\bin\openssl"
        arguments = "list-standard-commands"
        variable = "result"
        timeout = "5">
    </cfexecute>
    <cfdump var="#result#">
    and so does this:
    <cfexecute name = "C:\Program Files (x86)\GnuWin32\bin\openssl"
        arguments = "version"
        variable = "result"
        timeout = "5">
    </cfexecute>
    <cfdump var="#result#">
    Maybe someone has a multiple argument example of CFEXECUTE that runs fine.
    I'd be interested to know.
    Pete

  • Event Handlers which trigger functions with multiple arguments

    I am playing two video clips back to back. I have a few
    things which I need to do in between clips, so what I am doing for
    each is adding a handler for VideoEvent.COMPLETE, at which time i
    want to call a function which takes multiple arguments, like this:
    video.addEventListener(VideoEvent.COMPLETE,
    myFunction("1","2","3"));
    private function myFunction(var1:String, var2:String,
    var3:String):void
    video.removeEventListeners(VideoEvent.COMPLETE, myFunction);
    I've already figured out that getting rid of event handlers
    that trigger anonymous functions is impossible. Please don't tell
    me that it's impossible to remove them if functions require more
    than 0 arguments...

    "muskiemania" <[email protected]> wrote in
    message
    news:gc0pk0$jfb$[email protected]..
    >I am playing two video clips back to back. I have a few
    things which I need
    >to
    > do in between clips, so what I am doing for each is
    adding a handler for
    > VideoEvent.COMPLETE, at which time i want to call a
    function which takes
    > multiple arguments, like this:
    >
    > video.addEventListener(VideoEvent.COMPLETE,
    myFunction("1","2","3"));
    >
    > private function myFunction(var1:String, var2:String,
    var3:String):void
    > {
    > video.removeEventListeners(VideoEvent.COMPLETE,
    myFunction);
    > }
    >
    > I've already figured out that getting rid of event
    handlers that trigger
    > anonymous functions is impossible. Please don't tell me
    that it's
    > impossible to
    > remove them if functions require more than 0
    arguments...
    Any function that you add via addEventListener should expect
    exactly ONE
    argument, the event. And 99.958% of the time, you can take
    that event
    object and figure out exactly what you need to know.
    HTH;
    Amy

  • Send multiple argument to backend method

    Dear All,
    I am trying to send the multiple arguments to backend server method using Remote Object. At the backend I am using Weborb for .net
    private function initWebOrb(event:AppEvent):void
        weborbCallback = event.callback;
    var method:String = event.data.method as String;
    var data:Array  = event.parameterdata;
    var op:AbstractOperation = remoteDataObject.getOperation(method);
    op.addEventListener("result", getListResultHandler);
    op.addEventListener("fault", onerrorweborb);
    op.arguments =data;
    op.send();
    but It shows the error unable to find method with name "Testmethod"  and the given argument types  at Weborb.Util.MethodLookup..........
    I have also tried.
    private function initWebOrb(event:AppEvent):void
       weborbCallback = event.callback;
    var method:String = event.data.method as String;
    var data:Array  = event.parameterdata;
    var op:AbstractOperation = remoteDataObject.getOperation(method);
    op.addEventListener("result", getListResultHandler);
    op.addEventListener("fault", onerrorweborb);
    op.send(data);
    I also tried to send the data as object
    var data:Object  = event.parameterdata;
    Note: I change the argument type accordingly while dispatching this event.

    try this
    <%
    int parameter=0;
    %>
    <f:invoke var="${bpmobject}" methodName="oper" retAttName="op" retAttScope = "Page">           
                   <f:arg value=<%= parameter> type="int"/>
    </f:invoke>
    the name of bpmobject passed in the arguments form ...
    edit : http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/taglib/f/arg.html
    Edited by: cealex on Jan 24, 2010 5:34 AM - :pass "parameter" Parameter :)

  • Split on multiple arguments

    I'd imagine this question has been asked lots of times already, but couldn't really find an answer when searching the forum, se here it goes:
    I want to split a string on multiple arguments instead of only one.
    The aim of it is to do some (quite simple) tokenizing, and I want to split on whitespace, dots, comma's, question mark and all. (in total I'd say about 8 characters)
    Read somewhere that this would be possible with the split function, but can't find how.
    Is there an easy way, or do I need some looping in which I first split on one character, after that on the other?

    Igor_Pavlove wrote:
    And the pattern class looks quite useful as well, need to look into that one as well.Well, it defines the split("[/s.,?!:;]") argument thing. The docs for split() refer to it in the "see also" part and by talking about regex.

  • ArrayDescriptor multiple arguments

    hi all,
    Can we able to pass multiple arguments in a single ArrayDescriptor, instead of creating multiple ArrayDescriptor obeject.
    Example
    ArrayDescriptor a_desc = ArrayDescriptor.createDescriptor("A_ARRAY", connection);
    ARRAY app_array = new ARRAY(a_desc, connection , a_id);
    ArrayDescriptor r_desc = ArrayDescriptor.createDescriptor("R_ARRAY", connection);
    ARRAY read_array = new ARRAY(r_desc, connection , r_id);
    Thanks.

    apexlearner wrote:
    Can we able to pass multiple arguments in a single ArrayDescriptor, instead of creating multiple ArrayDescriptor obeject.
    Example
    ArrayDescriptor a_desc = ArrayDescriptor.createDescriptor("A_ARRAY", connection);
    ARRAY app_array = new ARRAY(a_desc, connection , a_id);
    ArrayDescriptor r_desc = ArrayDescriptor.createDescriptor("R_ARRAY", connection);
    ARRAY read_array = new ARRAY(r_desc, connection , r_id);Does this have anything to do with APEX? Looks like Java.

  • How to read multiple arguments separated with space in one line

    How to modify the
    public static void main (String[] args){
    }so that it can read multiple arguments separated with space in a single line?
    e.g.
    java myprogram username password host
    java myprogram2 ipaddress port
    Thx.

    public static void main (String[] args){
      int index = 0;
      for(String arg : args) {
        System.out.println("args["+(index++)+" = "+arg);
    }

  • Problem Calling a WebService multiple times

    Hi Guys,
    I am a relatively new user of DS 12.2 doing a proof-of-concept to call an in-house WebService for a batch of customer records - lets say 1000.
    The WS has an input schema where it's parameters are within a nested table such that it can be called for many customers in a single call if desired. WS input schema (made-up example)=
    -WS
    --$REQUEST_SCHEMA **added by DS on import
    ---CustVerification
    src_nr
    src_state
    I have successfully been able to create a Data-Flow that builds the input-schema such that 1 WS call is made with a nested input of all 1000 customers. This works and the output from the single call is correct (many records relating to the many inputs etc). Input schema =
    - <CustVerification>
    - <Details>
    <src_nr>1234<src_nr />
    <src_state>KY</src_state>
    </Details>
    - <Details>
    <src_nr>1234<src_nr />
    <src_state>KY</src_state>
    </Details>
    - <Details>
    <src_nr>1234<src_nr />
    <src_state>KY</src_state>
    </Details>
    </CustVerification>
    Now the problem - I am wanting to do this flow so that it calls the WS once PER customer i.e. 1 entry in many of the nested CustVerification structures.
    I have, again, been able to produce the correct XML schema (at least it looks correct) which repeats the Input Schema for each customer record. HOWEVER, when hooking this up to the function call of the WS as before, I either get only 1 single call like before with the last entry in the file run through it..... or, after playing with the query's input schema to add an extra root level and changing FROM clauses to map to the function call schema I then get a huge ACCESS_VIOLATION dump which mentions "LoadDFXML::put_string()+2427 byte(s)" and other such XML-related but non-helpful messages.
    New input schema is:
    - <CustVerification>
    - <Details>
    <src_nr>1234<src_nr />
    <src_state>KY</src_state>
    </Details>
    </CustVerification>
    - <CustVerification>
    - <Details>
    <src_nr>1234<src_nr />
    <src_state>KY</src_state>
    </Details>
    </CustVerification>
    - <CustVerification>
    - <Details>
    <src_nr>1234<src_nr />
    <src_state>KY</src_state>
    </Details>
    </CustVerification>
    So.... am I missing something simple in how I call a WS multiple times as opposed to once with multiple inputs? Could this be a setting/property somewhere? IS this linked with how I do a QueryTransform in a certain way to get the function called the right number of times? Anything else??
    Thanks for any advice/help.
    Flip.

    Thanks for the responses guys.... I actually got past the error with a change to the NRDM structure (as mentioned in the first reply, I think a small problem here really changes things).
    So - what I had to do to get this working properly was to add a new 'dummy' level into the structure - this kept it clean to denote that the 1 large bulk of messages were going to be sent through the WS many times. So - structure looks like this:
    Input_Query:
    - <ROOT>
    - <CustVerification>
    - <Details>
    <src_nr>1234<src_nr />
    <src_state>KY</src_state>
    </Details>
    </CustVerification>
    - <CustVerification>
    - <Details>
    <src_nr>1234<src_nr />
    <src_state>KY</src_state>
    </Details>
    </CustVerification>
    - <CustVerification>
    - <Details>
    <src_nr>1234<src_nr />
    <src_state>KY</src_state>
    </Details>
    </CustVerification>
    </ROOT>
    Then, in the Output schema for the function call, I had to create a dummy extra schema level also - say 'WS_Call', and put the function call within this structure. The FROM mapping has to be set so that both the input_query level AND the input_query.root level are mapped to the WS_Call schema.
    And then it works!
    Summary -- its a bugger.... but playing with the structure levels (and adding your own at times) and FROM clauses can work!
    Cheers,
    Flip.

  • VC  7.2 webservice multiple rows output - problem

    I found a wiki which tells about solving the problem about a webservice output.
    i am having a ws with multiple rows as output, but in VC I am getting only the first row.
    I found a solution, but I am not able see the options given to  Add fields.
    please suggest me.
    http://wiki.sdn.sap.com/wiki/display/VC/Outputfieldnotseenas+array

    solved myself
    solution:
    the output of the webservice I had like below
    --a
      ---b
    node be returns field1, field2, field3
    I was selecting a as my entry point(current node as context), so the table was showing only the first row.
    The solution is, make b node as your entry point(current node as context), it will show all rows.
    Enjoy

  • Transactional WebService, non-XA problem

    I have build a transactional web service and it is working fine on if the client and service are on same domain. If they are not am getting the following error:
    Exception thrown from bean; nested exception is: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: java.lang.IllegalStateException: cannot add non-XA Resource to global JTS transaction. Error Code: 0.
    This is my service
    @WebService()
    @Stateless()
    @TransactionManagement(TransactionManagementType.CONTAINER)
    public class EJBService {
    @PersistenceContext(unitName="EJBServicePU")
    private EntityManager em;
    @WebMethod(action="AddDiscount")
    @TransactionAttribute(REQUIRED)
    public void addDiscount(@WebParam(name = "discountCode") String discountCode,@WebParam(name = "rate") double rate)
    DiscountCode code = new DiscountCode(discountCode.charAt(0));
    code.setRate(BigDecimal.valueOf(rate));
    em.persist(code);
    @WebMethod(action="UpdateDiscount")
    @TransactionAttribute(REQUIRED)
    public void UpdateDiscount(@WebParam(name = "discountCode") String discountCode,@WebParam(name = "rate") double rate)
    DiscountCode code = (DiscountCode) em.find(DiscountCode.class, discountCode.charAt(0));
    code.setRate(BigDecimal.valueOf(rate));
    em.merge(code);
    }And this is my client code
    EJBService port = service.getEJBServicePort();
    try
    //out.println("Initial number: " +port.getBalance());+
    +transac.begin();+
    +port.addDiscount("B", 10);+
    +port.addDiscount("S", 44);+
    +transac.commit();+
    +}catch(Exception e)+
    +{+
    +out.println("An error occured, transaction abortedd.<br/>"+ e.getMessage());
    } I am connecting to derby database and using the sample database. I have checked the sample code for WSIT many times and I didnt know what is the problem here.
    Please Help.
    Thank you.

    xxxxx wrote:
    we create 2 pools, both the pools are created but the problem occurs when you start
    some transaction.
    Here there is an EJB transaction and this throws a known exception of weblogic
    that
    "java.sql.SQLException: Connection has already been created in this tx context
    for pool named <first pool's name>. Illegal attempt to create connection from
    another pool: <second pool's name>"
    we want to use more then one non xa drivers and use weblogic connection pools
    at the same time.. any help is appreciated.Hi. this is an EJB/transactional integrity issue. If you get non-XA connections,
    then the transaction coordinator will collude with the JTS driver to ensure that
    any given transaction can only really use one JDBC connection, so we can guarantee
    the commit or rollback will be atomic. Without 2PC, we would otherwise have to commit
    on both connections. If the first succeeded, and the second commit failed, we
    could not recover.
    If you really need to talk to multiple DBMSes, or even just one DBMS but as
    different users, then there is a way, with some risks you will have to accept.
    You can connect to any DBMS at any time if you use a non-TX datasource.
    This will give you a 'raw' pooled connection, whith the transaction coordinator
    knows nothing about. You can use this as you wish, but be very sure to close this
    connection in a finally block, else it will never get back into the pool. ALso note
    that any work you do on this connection is in your hands. If the EJB tx rolls back
    we won't do anything with this connection, so if there's any update you did, it's
    totally up to you to undo them, or respond in whatever way you need to in error
    conditions.
    Joe

  • Calling a webservice multiple times..

    Hi All,
    We have a requirment in which we are mapping a node "XXX" of an IDOC structure with a web service. Multiple occurences of a node "XXX" in IDOC are possible (1..9999). The web service is nothing but an array. At present there is a limit of 20 records per web service call. The records can belong to one or more "XXX" nodes. It is recommended to fill the array as far as possible. My mapping is working fine if there are upto 20 occurences of "XXX", but if there are more than 20 occurences of "XXX", the webservice should be called again to accommodate the remaining data. This is where I am getting problem.
                        Can anybody have an idea how can we implement this?

    Hi,
    >> As changing the SAP standard IDOC structures is not recommended.
    It is not required to change the IDoc structure, only modification needs to be done in the program that generates the outbound IDoc to create an IDoc with only 20 records i.e split the record and create a new IDoc for every 20 records.
    Thanks,
    SaNv...

Maybe you are looking for

  • Notification center widgets crashing

    I'm using a mid-2014 MBP that has been recently upgraded from Mavericks to Yosemite. Checking the console today, I'm seeing several crashes from my NC widgets. Cross referencing with the console, I see: 3/23/15 3:30:30.230 PM com.apple.ncplugin.weath

  • Help i bought a cmputer with adobe photoshop elements 10 on it so i dont have id no. to update2 11?

    Hi I just bought a new computer a VAIO, pink 15.5 screen e series  with window 8, internet explorer 10, adobe reader x, Adobe Photoshop Elements 10 & with an Intel Core 15-3210m processor 2.5 GHz with turbo boost up to 3.10GHz1 already installed on i

  • Validating data in spatial

    Hi, I converted a shape file to oracle format and loaded the data . But when i validated it it gives me 13011 error which means out of bounds. I not sure what srid (i chose 8307) and the bounds for it ??? data which looks as follows:(open_sapce.dat f

  • Broken link to Workflow Builder download

    I'm having trouble downloading the Workflow Builder from the following link. http://download.oracle.com/otn/nt/workflow/B11248-01.zip

  • Desk top files

    hi i have just recently updated windows 7 64 bit and i now have an issue with my desktop files when i opened them before the shortcuts stayed the same size i left them now when i close the file on my desktop they keep reverting to the smallest size w