WebService parameters

Hi anyone out there,
I am writing a web service and have a proxy inside it. I am trying to pass in SAPTables from outside the webservice. I realised two things:
1. If I am connecting the asmx file with another client with sap.net connector i can pass the actual SAPTable object in. when i do this, and declare the item in the parameters, the xml tag generated by the webservice has two instances of the table structure. for example:
      <PtblPoItems>
        <BAPIEKPOC>
          <PO_5fNUMBER>string</PO_5fNUMBER>
        </BAPIEKPOC>
        <BAPIEKPOC>
          <PO_5fNUMBER>string</PO_5fNUMBER>
        </BAPIEKPOC>
      </PtblPoItems>
Logically since this is a table, each of this instance (am not sure, not a VB.Net guru) will represent a line item (correct me if i am wrong), does this mean that the current table during run time has two empty lines in it?
What is the best way to pass in parameters into a web service?

So in other words, for 4.6 installs, if i want to use a web service i still need to generate a proxy as i have done? Three questons are tied to this response:
1. I want to use a web service to access let's say BAPI_SALESORDER_GETSTATUS. Do i create a proxy in a aSP.net web service project, where i will be having both a .sapwsdl and .asmx file?
2. Do i just add web reference to .sapwsdl file? from the responses i am getting from you, it might not be possible right? if not then i will be calling the proxy locally in the asp.net web service and treat the web service as a wrapper.
3. In creating a wrapper I have some problems referencing the BAPIXXTable from the sapwsdl file into the calling application. For example, I have created a scenario as in number (2), and I need to pass a table into the RFC/BAPI. therefore i managed to :
public function xxx(byref table1 as <proj>.<webref>.BAPIXXXTable)
however, when i call from the other application (which i referenced this web service to), i need to populate the table entries, i can't seem to do this, as intellisense only shows the structures but not the table. What's wrong with my declarations?

Similar Messages

  • Inheritance for webservice parameters

    Folks,
    please pardon if this topic has been covered before, but my search has not found much on this specifically.
    I am working on webservices using weblogic 9.1. Starting with an annotated Java bean, using jwsc/jws tasks to generate EJB, etc. All this is being done using ant scripts outside of the workbench.
    I am running into a problem when I try to expose complex types with inheritance as web method parameters. If I have a base class A and classes B and C extend A, when I define webservice method to take A as an argument schema in WSDL does not include declarations for B and C.
    If I create 2 separate methods for B and C, then I get correct WSDL.
    I get the same behaviour if subclassing is involved with member variables of complex types.
    Has anyone solved this problem before?
    Thanks in advance for any tips.

    Hi,
    following link could be helpful for webservice ( OCI) Parameters and configuration..
    SAP Supplier Relationship Management - SAP SRM Open Catalog Interface (B2B-OCI) [original link is broken]
    Thanks
    siva prasad.s

  • CFINVOKE webservice parameters

    Hi, I am trying to consume a web service and having some
    problems passing the parameters to it. I have used a web service
    successfully before where the wsdl looked like this:
    <GetUserDetails xmlns="
    http://zesty.com/webservices">
    <username>string</username>
    <password>string</password>
    <guidString>string</guidString>
    </GetUserDetails>
    and the coldfusion code to access it looked like this:
    <cfinvoke
    webservice="https://mobiledatacapture.zesty.com/alphatest.asmx?wsdl"
    method="GetUserDetails"
    returnvariable="zuser">
    <cfinvokeargument name="username" value="#username#">
    <cfinvokeargument name="password" value="#password#">
    <cfinvokeargument name="guidString"
    value="#zestyGUID#">
    </cfinvoke>
    where username, password and zestyGUID were just strings and
    this worked fine.
    Now they have added another method to the service that has a
    WSDL that looks like this:
    <SubmitResidueTests xmlns="
    http://zesty.com/webservices">
    <ResidueTests>
    <ResidueTest>
    <Label>string</Label>
    <KPIN>int</KPIN>
    <ResidueTypeCode>R or O or X or C or G or
    L</ResidueTypeCode>
    <CollectionDate>dateTime</CollectionDate>
    <DispatchDate>dateTime</DispatchDate>
    </ResidueTest>
    <ResidueTest>
    <Label>string</Label>
    <KPIN>int</KPIN>
    <ResidueTypeCode>R or O or X or C or G or
    L</ResidueTypeCode>
    <CollectionDate>dateTime</CollectionDate>
    <DispatchDate>dateTime</DispatchDate>
    </ResidueTest>
    </ResidueTests>
    </SubmitResidueTests>
    So i thought that i would create an xml variable using cfxml
    and invoke it like this:
    <cfinvoke
    webservice="https://mobiledatacapture.zesty.com/alphatest.asmx?wsdl"
    method="SubmitResidueTests" returnvariable="retVar">
    <cfinvokeargument name="ResidueTests"
    value="#local.xmlRet#">
    </cfinvoke>
    where #local.xmlRet# is an xml variable (<cfxml
    variable="local.xmlRet"...)
    but this gives me an error message:
    (Web service operation SubmitResidueTests with parameters
    {ResidueTests={ 3813 O 18-06-2008 22-12-2008 5369 O 23-04-2008
    22-12-2008 }} cannot be found.)
    Can anyone tell me how to access a web service like this, or
    what I am doing wrong? Thanks very much, and appreciate any help
    anyone can offer
    What is confusing me is how the parameters in this
    wsdl are encapsulated within the <ResidueTests> and how to
    pass multiple types of this object to the web service.

    Ok... the first method was passing just strings, but I'm not
    sure how to format it for the second method, because of the
    <ResidueTests></ResidueTests> tag that the arguments
    for the second method are encapsulated in. I have spoke to the .NET
    developer who wrote it and he said the way in .NET was to send an
    array ResidueTests [ ], but wasn't sure what the analogous method
    in coldfusion would be. Sorry if I am misunderstanding something
    obvious here. Thanks for your reply.

  • QueryViewData webservice parameters

    Hi all,
    I've created the QueryViewData webservice in my BW system and i'm trying to test it.
    When I execute a query which has no parameters everything is ok. But, when I am trying to execute a query that demands parameters I get an error message.
    I am not sure on how to pass the parameters to the query.
    The syntax is as follows -
    Infoprovider <myInfoProviderName>
    Parameter
    Item
      Name FILTER_IOBJNM_1
      Value 0MATERIAL
    Item
      Name FILTER_VALUE_LOW_1
      Value 500101
    Item
      Name FILTER_VALUE_HIGH_1
      Value 5000190
    Item
      Name FILTER_IOBJNM_2
      Value 0CALMONTH
    Item
      Name FILTER_VALUE_LOW_2
      Value 082005
    Item
      Name FILTER_VALUE_HIGH_1
      Value 122005
    Query <MyQueryName>
    ViewId <null>
    In this query the 0CALMONTH is mandatory, and the error I get is 'Invalid input' (Specify a value for variable Calendar Year/Month)

    http://help.sap.com/saphelp_nw04/helpdata/en/71/6c013a53271a05e10000000a11402f/frameset.htm. 
    Look for Commands for webTemplates >> Calling para...
    >> Default var......
    Good luck.

  • PDF calling webservice - handling an incorrect authentication password

    Hi All,
    I have a PDF, connected to a webservice.
    Connecting to this webservice requires authentication (username & password).
    In the event that the user enters an incorrect password, how do I handle this on the PDF form?
    I noticed in LC server logs, it logs that an incorrect password was attempted on a WSDL, however I dont seem to be getting anything back.
    I have put a try catch around the connection in the PDF, but I recieve nothing.
    Surely, I am missing something here about handling Webservice responses when calling from a PDF.
    Thanks in advance.

    Hi Gerben,
    Thanks for hint. I created a new credential for SOAP. But there is a new issue. While calling the webservice, parameters are not passed properly. Service provider considers those values as null and returns an exception. Am I missing any other setting here?
    I have checked Admin guide already. But not much of help.
    Thanks
    Arun Raghavan

  • Size limit on pictures in LG Octane?

    On an LG Octane, I was able to download JPG images to the micro-SD card.  Half of them are not viewable. They show up
    as a big question mark.  I kept the image sizes down to about 800x600, but I have no idea what the limit is on image size. I couldn't find anything relevant in the Octane manual.
    Does anyone know?

    I don't think that's the case.
    See: http://www.geocrawler.com/archives/3/196/2000/9/0/4413382/
    a <[email protected]> wrote:
    I read sometime back that in Java Strings can hold up to 64K of data...
    Not sure if there is lower limit for webservice parameters..?
    lina wrote:
    Hi,
    Does anyone know what the size limit on a String used as a parameterin a web
    service operation is ? I am planning to use a string as a param, andit could
    potentially get very large. I know that 10 MB is the limit on web servicepayload
    size in weblogic, but how much can the string hold ? Is it 2^31 bytes?
    Thanks!
    lina.

  • Optional parameters to webservice method over FORM-GET

    Hi.
    I'm developing a proof of concept webservice using Workshop and my test method looks something like this:
         * @common:operation
         * @jws:protocol soap-style="rpc" http-xml="false"
            form-post="true" http-soap="true"
        public void foobar(
            String param1, String param2, String param3)
        }The schema elements I map to the parameters specifies that they are optional.
    There are no problems when using this as a webservice - I'm able to specify these optional parameters (or not). When I invoke this using FORM-GET, it seems that these parameters are all required (although I can specify an empty value).
    E.g. The following works fine:
    http://localhost:7001/TestWebService/Test.jws?param1=abc&param2=def&param3=ghi
    The following works fine and calls my code with param1 being an empty string:
    http://localhost:7001/TestWebService/Test.jws?param1=&param2=def&param3=ghi
    The following returns an error:
    http://localhost:7001/TestWebService/Test.jws?param2=def&param3=ghi
    The error is: "Unable to transform query arguments to Java arguments Parameter 'param1' - No value found"
    Can anyone advise on how to not require the presence of optional parameters using FORM-GET?
    Regards,
    Michael.

    Hi,
    thanks for the quick turn-around. Jdev version that i am using is Studio Edition Version 11.1.1.6.0. And i am using SOAP. Isnt there a way without using a backing bean? I am planning to use it as a portlet. Would'nt creating a backing bean cause a problem in that case?? Also i am confused here . The method that i am dragging is GET_ACCOUNTOperation(Object). I tried passing the hashmap . It gave the following exception :
    javax.el.MethodNotFoundException: Method not found: GET_ACCOUNTOperation.execute(java.util.HashMap)
    Rampal

  • Posting parameters with Webservice class

    HI,
    I'm trying to use the mx.services.webservice class to
    interrogate and use my .net services. Everything seems to work as
    documented with the exception of passing parameters. There is
    little documentation on how to pass parameters, but a few examples
    seem to indicate passing an ordered list as parameters to the
    method name. So my web service - GetTableOfContents expects a
    string parameter - SectionName. I assumed
    WS.GetTableOfContents(&quot;TheSectionName&quot;) would
    accomplish this, but on inspection of the request xml
    TheSectionName is not included in the xml. Below I've attached the
    webservices debug/info output so you can see what I mean. Note at
    the end the trace of the xml the webservice class builds for the
    request and note the request bit -
    &lt;request&gt;&lt;SectionName
    /&gt;&lt;/request&gt; with a blank parameter tag.
    The parameter is being interpreted in some way by the
    webservices class as you can see at 2/4 10:34:7 SOAP : parameter -
    value - MySectionName, but it's not being in cluded in the xml
    immediately after. Anyone seen this behaviour and know what might
    be going wrong?

    Thankyou very much for your reply, Eric (both here and in the web services forum).
    The way I generate the web service is just to right click on the java file and say 'generate web service'. I can't seem to get at the code that is generated, but it appears that there is nothing in there that I can change to rename the classes.
    I may just live with it and refactor the existing client code to match the class names that are given.
    Tim

  • How to pass GET parameters from BPEL to webservice?

    Hi,
    How can I pass GET parameters to webservice from BPEL. For example if a webservice expects to get 2 parameters as GET parameters like the following URL:
    http://xxx.xxx.xxx.xxx/some-web-service?parama=abc&paramb=123
    How can I pass parama and paramb to the webservice call?
    Thanks,
    Ronen

    Hello Ronen,
    Im assuming that you're using SOA Suite 11g. The developer guide describes the following: http://docs.oracle.com/cd/E29505_01/dev.1111/e10224/sca_bindingcomps.htm#CHDEEGDC
    And the following blogpost explains in detail how to implement https://blogs.oracle.com/reynolds/entry/oracle_http_adapter
    Good luck!
    Melvin

  • XML parameters when consuming webservice

    I am trying to consume a .NET webservice.
    When I try to pass XML as a parameter on a function in the
    service, I get the following (for me at least) very strange error;
    Could not perform web service invocation "Book" because
    AxisFault
    faultCode: {
    http://schemas.xmlsoap.org/soap/envelope/}Server
    faultSubcode:
    faultString: Server was unable to process request. --->
    Value cannot be null.
    Parameter name: uriString
    faultActor:
    faultNode:
    faultDetail:
    http://xml.apache.org/axis/}stackTrace:
    AxisFault
    faultCode: {
    http://schemas.xmlsoap.org/soap/envelope/}Server
    faultSubcode:
    faultString: Server was unable to process request.
    ---&gt; Value cannot be null.
    Parameter name: uriString
    faultActor:
    faultNode:
    faultDetail:
    Server was unable to process request. ---> Value cannot be
    null.
    Parameter name: uriString
    at
    org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
    at
    org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
    at
    org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl .java:1015)
    at
    com.macromedia.crimson.parser.Parser2.maybeElement(Unknown Source)
    at com.macromedia.crimson.parser.Parser2....
    This only happens when I try to use XML -anyone know what the
    problem is?

    Hi Madhu,
    Please tel us how u have solved it. I am also facing this problem.
    I am trying to understand this problem description 'SOAP ACTION name by definition of the logical port.' via the thread Re: Get error "SoapFaultCode:1"Consume web service in ABAP proxy - But couldn't able to understand how to do this.
    Thank You,
    Regards,
    Naresh.

  • SOURCING10: Passing parameters to a Query Based webservice using JAVA

    Hi Experts,
    I have been working on consuming a Query based webservice published in Souricng10 in a simple JAVA class. The query has a filter parameter which is not mandatory. I am able to consume the webservice using the GET method and display the content of the webservice. But when i try to POST a value to the filter parameter of the query i am getting the following error:
    java.io.IOException : Server returned HTTP response code: 415 for URL: http://sapcild9.web.bc:55000/sourcing/ngservices/rest/query/Z_TEST_WS_QUERY/execute/
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    Following is the code which i have used:
       URL url = new URL("http://sapcild9.web.bc:55000/sourcing/ngservices/rest/query/Z_TEST_WS_QUERY/execute/");
       HttpURLConnection connection = (HttpURLConnection)url.openConnection();
       connection.setRequestProperty("Authorization", "Basic " + authStringEnc);
       connection.setRequestProperty("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
       connection.setRequestProperty("Content-Length", "" +Integer.toString(urlParameters.getBytes().length));
       connection.setRequestProperty("Content-Language", "en-US");
       connection.setUseCaches (false);
       connection.setDoInput(true);
       connection.setDoOutput(true);
       connection.setAllowUserInteraction(true);
       connection.setInstanceFollowRedirects(false);
       connection.setRequestMethod("POST");
       connection.connect();
       //Send request
       OutputStream out = connection.getOutputStream();
       OutputStreamWriter wr= new OutputStreamWriter(out, "UTF-8");
       wr.write("EXTERNAL_ID");
       wr.write("=");
       wr.write(URLEncoder.encode("temp","UTF-8"));
       wr.close();
       out.close();
       is = connection.getInputStream();
       isr =new InputStreamReader(is);
       BufferedReader bufferReader = new BufferedReader(isr);
       String str; StringBuffer stringBuffer = new StringBuffer();
       while ((str = bufferReader.readLine()) != null) {
       stringBuffer.append(str);
       stringBuffer.append("\n");
       System.out.println(stringBuffer.toString());
       connection.disconnect();
       is.close();
    Please Advise how to proceed on this isssue?
    Thanks in advance.
    Srikanth Emani

    Hi Gael,
    your URL is made up of :
    [ProcedureName]?[parameter1]=[value1]&[parameter2]=[value2]
    creating URLs like this can have problems especially with spaces and punctuation.
    the answer is a FORM
    the following will create a hidden form :
    FORM ACTION="[ProcedureName]" METHOD="POST" name="F1"
    INPUT type="HIDDEN" name="[parameter1]" value="[value1]"
    INPUT type="HIDDEN" name="[parameter2]" value="[value2]"
    /FORM
    you can set the values in the form using:
    document.F1.[parameter1].value="abc123%%&&$$!";
    document.F1.submit();
    will submit the form and the PL/SQL procedure should receive the text as it was contained in the form.
    the only characters that can now cause problems are :
    " as it delimits the field.
    ' as it may cause problems in PL/SQL.
    \ as it is a special character.
    Regards Michael

  • Error opening report as webservice when there's parameters!

    I followed the instructions in the developer's guide: "Publishing and Consuming a Report as a Web Service"
    I am using VS2008 and Crystal Reports 2008.
    I have a web application with 1 report in it called CrystalReport1.rpt and this report is published as a service called CrystalReport1Service.asmx
    The web service is working normally. I can browse to http://localhost:51132/CrystalReport1Service.asmx
    I am trying to load the report in a windows application (VB.NET) using the following code in the form:
    > Me.CrystalReportViewer1.ReportSource = "http://localhost:51132/CrystalReport1Service.asmx"
    This code works as long as the report does not require any parameters.
    When I modify the report to require a parameter (date param), the viewer displays the parameter popup window, when I enter the parameter and press OK I get an exception error in visual studio IDE, the exception is:
    >System.NullReferenceException was unhandled
    >  Message="Object reference not set to an instance of an object."
    >  Source="CrystalDecisions.Windows.Forms"
    >  StackTrace:
    >       at CrystalDecisions.Windows.Forms.ParameterFieldInfo.get_isDCP()
    >       at CrystalDecisions.Windows.Forms.ParameterValueEditControl.Start()
    >       at CrystalDecisions.Windows.Forms.ParameterUnit.AddEditControl(ParameterValue pv)
    >       at CrystalDecisions.Windows.Forms.ParameterUnit.UpdateControls()
    >       at CrystalDecisions.Windows.Forms.ParameterUnit.set_ParameterFieldInfo(ParameterFieldInfo value)
    >       at CrystalDecisions.Windows.Forms.InteractiveParameterPanel.ShowParameters()
    >       at CrystalDecisions.Windows.Forms.CrystalReportViewer.ShowInteractiveParameters()
    >       at CrystalDecisions.Windows.Forms.CrystalReportViewer.ShowReport()
    >       at CrystalDecisions.Windows.Forms.CrystalReportViewer.OnPaint(PaintEventArgs evtArgs)
    >       at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
    >       at System.Windows.Forms.Control.WmPaint(Message& m)
    >       at System.Windows.Forms.Control.WndProc(Message& m)
    >       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    >       at System.Windows.Forms.ContainerControl.WndProc(Message& m)
    >       at System.Windows.Forms.UserControl.WndProc(Message& m)
    >       at CrystalDecisions.Windows.Forms.CrystalReportViewer.WndProc(Message& msg)
    >       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    >       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    >       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    >       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
    The documentation for publishing a report as a web service does not mention any special way to handle parameters, the windows viewer seems to read the parameter info correctly and automatically displays the window to edit the parameter, but the error happens upon submitting the parameter by clicking ok, this seems like a bug doesn't it?
    The report works fine if I open it directly from Crystal Reports 2008 or if I embed it in my windows application.
    Thanks,
    Talal Nehme

    Hello, Talal;
    When you create the report with the parameter, was it the same report just adding a parameter or a new report?
    Did you recompile the report after adding the parameter so you have a new "CrystalReport1Service.asmx" file?
    The Crystal Report viewer should pass the parameter value correctly to the report as long as the asmx file is the updated report.
    If you look at the parameter in the report, is it a Date, Date Time or String with date value?
    How are you passing the value at runtime - what does the format look like in the prompt?
    You may want to test first with a string or number parameter to eliminate possible format issues and see if you can get the parameter to work.
    Elaine

  • Axis: passing arrays as parameters to webservices

    Hi,
    I'm using axis to setup a webservice.
    In my client application, I need to pass an array of bytes to the webservice.
    How would I set this up when creating my call?
    Here is how I setup my calls:
    call.removeAllParameters();
    call.setOperationName("methodName");
    call.addParameter("paramName1", XMLType.XSD_?, ParameterMode.IN);
    call.setReturnType( XMLType.XSD_BOOLEAN );
    Boolean ret = (Boolean) call.invoke(new Object[]{ bytes });
    where 'bytes' is the array of bytes.
    The question marks are where I don't know what to do.
    Can anyone help me?

    Try XMLType.SOAP_ARRAY (there is an example at this URL: http://www.bii.a-star.edu.sg/infoscience/seg/fileTransfer.asp)

  • Passing Parameters to Webservice model context--Exception in execution

    Hi
    I have a problem while passing the values to the webservice model context.I have 9 input fields in my view 5 of them binded to directly to the model context after mapping. 4 input fields i have binded to seperate node of cardinality 1:1.
    My structure is like this
          Req_Identity_In(model root node)
            Req_Ide_SYNC (Input node of model)
                  Identity( node )
                 UserAccount(node)
                  PersonalAddress(node)
                     PersonName(Node)
                             |
                          givenname,middlename,familyname etc (Attributes)
    This structure is similar to bapi user create ECC Function module after exposing as a webservice.
    I am using the following code for bindings
    ==================
           String givenName = wdContext.currentPersonNamesDataElement().getGivenName();
           String middleName = wdContext.currentPersonNamesDataElement().getMiddleName();
           String familyName = wdContext.currentPersonNamesDataElement().getFamilyName();
           String additionalFamName = wdContext.currentPersonNamesDataElement().getAdditionalFamilyName();
           //getting the data from user for personNames
           //passing the data
           UserAccountCreateModel userAccountCreateModel = new UserAccountCreateModel();
          Request_IdentityUserAccountCreateRequestConfirmation_In request_IdentityUserAccountCreateRequestConfirmation_In = new Request_IdentityUserAccountCreateRequestConfirmation_In(userAccountCreateModel);
           IdentityUserAccountCreateRequestMessage_Sync identityUserAccountCreateRequest_Sync = new IdentityUserAccountCreateRequestMessage_Sync(userAccountCreateModel);
          request_IdentityUserAccountCreateRequestConfirmation_In.setIdentityUserAccountCreateRequest_Sync(identityUserAccountCreateRequest_Sync);
          IdtUsrAcctCrteReq_SyncIdt identity = new IdtUsrAcctCrteReq_SyncIdt(userAccountCreateModel);
          identityUserAccountCreateRequest_Sync.setIdentity(identity);
              IdtUsrAcctCrteReq_SyncUsrAcct userAccount = new IdtUsrAcctCrteReq_SyncUsrAcct(userAccountCreateModel);
              identity.setUserAccount(userAccount);
              IdtUsrAcctCrteReq_SyncDfltSettings defaultSettings = new IdtUsrAcctCrteReq_SyncDfltSettings(userAccountCreateModel);
              userAccount.setDefaultSettings(defaultSettings);
              java.util.List<NOSC_PersonalAddress> personalAddress = new ArrayList<NOSC_PersonalAddress>();
              userAccount.setPersonalAddress(personalAddress);
              NOSC_PersonName personName = new NOSC_PersonName(userAccountCreateModel);
              //kalyan
              //create the personalAddress model
              NOSC_PersonalAddress personalAddrModel = new NOSC_PersonalAddress(userAccountCreateModel);
              //create a element for PersonalAddress Node and node element.
              IPersonalAddressNode paNodeRef = wdContext.nodePersonalAddress();
              IPersonalAddressElement paNodeEle = wdContext.createPersonalAddressElement(personalAddrModel);
              //creating an element in Personname subnode and pass the data
              IPersonNameNode personNameNodeRef = paNodeRef.nodePersonName();
              IPersonNameElement personNameEle = personNameNodeRef.createPersonNameElement(personName);
              personNameEle.setGivenName(givenName);
              personNameEle.setMiddleName(middleName);
              personNameEle.setMiddleName(familyName);
              personNameEle.setAdditionalFamilyName(additionalFamName);
              //personNameNodeRef.addElement(personNameEle);
              //add the PA element to the PA node
              paNodeRef.addElement(paNodeEle);
              //add to the list
              personalAddrModel.setPersonName(personName);
              personalAddress.add(0, personalAddrModel);
              //kalyan
              NOSC_BasicBusinessDocumentMessageHeader messageHeader = new NOSC_BasicBusinessDocumentMessageHeader(userAccountCreateModel);
              identityUserAccountCreateRequest_Sync.setMessageHeader(messageHeader);
              Response_IdentityUserAccountCreateRequestConfirmation_In response = new Response_IdentityUserAccountCreateRequestConfirmation_In(userAccountCreateModel);
              request_IdentityUserAccountCreateRequestConfirmation_In.setResponse(response);
              IdentityUserAccountCreateConfirmationMessage_Sync identityUserAccountCreateConfirmation_Sync = new IdentityUserAccountCreateConfirmationMessage_Sync(userAccountCreateModel);
              response.setIdentityUserAccountCreateConfirmation_Sync(identityUserAccountCreateConfirmation_Sync);
              NOSC_Log log = new NOSC_Log(userAccountCreateModel);
                  identityUserAccountCreateConfirmation_Sync.setLog(log);
                  java.util.List<NOSC_LogItem> item = new ArrayList<NOSC_LogItem>();
                  log.setItem(item);
                  wdContext.nodeRequest_IdentityUserAccountCreateRequestConfirmation_In().bind(request_IdentityUserAccountCreateRequestConfirmation_In);
           //passing the data
           wdThis.wdGetUserCreateCompController().executeIdentityUserAccountCreateRequestConfirmation_In();
           //success
           //wdComponentAPI.getMessageManager().reportSuccess("The user created successfully");
    ================================================
    After executing i am getting the error like this
    Exception on execution of web service with WSDL URL 'http://<host>:<port>/sap/bc/srt/wsdl/bndg_DDB660678B8DB6F1934200142220669B/wsdl11/allinone/ws_policy/document?sap-client=XXX&sap-user=XXXXX&sap-password=XXXX' with operation 'IdentityUserAccountCreateRequestConfirmation_In' in interface 'IdentityUserAccountCreateRequestConfirmation_In'
    Is there any wrong in the code while passing the values to the model.
    What are the possible causes for this exception.
    Regards
    Kalyan

    I am no more working on this.

  • Webservice with multiple output parameters

    As a follow up on Can't create Webservice Project question of mine I have another question.
    I have my webservice now, but only one output parameter. I can only find java-bean examples with just one. How do I get multiple of them.
    Groetjes,
    Jeschael

    Hi Jan,
    I've created a structure. It is a (non EJB) bean with 6 private Strings with getters and setters. I put it into a List (Vector to be precise). When I try to test it, using the Web Services Navigator, I get an error.
    The structure really is just a copy from a SAP-ABAP structure. It looks like this:
    Created on Feb 21, 2007
    To change the template for this generated file go to
    Window>Preferences>Java>Code Generation>Code and Comments
    package com.test.struc;
    import java.io.Serializable;
    @author JeschaelL
    To change the template for this generated type comment go to
    Window>Preferences>Java>Code Generation>Code and Comments
    public class Hrwpc_S_KeyObjec implements Serializable {
         public String PlanVersion;                    //plvar
         public String ObjectType;                    //otype
         public String ObjectID;                    //objid
         public String StartDate;                    //begda
         public String EndDate;                     //endda
         public String PlanningStatus;               //istat
         public String HistoricalRecordFlag;     //histo
         public String ObjectAbbreviation;          //short
         public String ObjectName;                    //stext
         public String ExtendedObjectID;          //realo
    @return
         public String getEndDate() {
              return EndDate;
    @return
         public String getExtendedObjectID() {
              return ExtendedObjectID;     }
    @return
         public String getHistoricalRecordFlag() {
              return HistoricalRecordFlag;
    @return
         public String getObjectAbbreviation() {
              return ObjectAbbreviation;
                   -- etcetera --
    Thanks for your time,
    Jeschael

Maybe you are looking for

  • Wordfinder Crash

    Can anyone tell me what's wrong with the following picture?  The call to PDWordFinderEnumWords is throwing an exception with the message "This operation is not permitted." static int wordCount = 0; static ACCB1 ASBool ACCB2 WordCounterProc (PDWordFin

  • Mono Gtk# applications fail to start

    Hello! Whenever I seem to run a mono Gtk# application, it hangs and fails to continue opening. I've already tried re-installing with pacman -Rdds pinta monodevelop mono and pacman -Syyu pinta monodevelop mono but that hasn't change the behaviour. Pin

  • WCS - controller list not fully populated

    Hi Folks, I have a WCS v.7.0.230.0 and four controllers v.7.0.235.3 (on two WiSMs).  I have a problem now where when adding/modifying guest users the controller list shows only three controllers.  I don't know when this started happening or why but n

  • Web Gallery security setting

    Hi, I have just created my gallery but run into a difficulty with the security setting. If I apply a password to my Album/Event, the Key Photo, number of photos, and scrolling feature is disabled in the My Gallery page. Is there a way of applying thi

  • Adding to RAF

    Hello, can anyone help me by modifying this method so that it simply writes something into a random access file? public static void addingtoRAF() {         UsernameRAF = Username.getText();         System.out.println(UsernameRAF);         try {