Webservice input parameter

Hello together,
I want to create a webservice from a portal service in NWDS and need to have an input parameter or similar which can take an xml file. In my portal service I have to parse the xml and transform it.
My question is how can I realize it to that the webservice can take an xml file or xml string as input and how can I work with it inside my portal service?
Any help would be great.
Regards,
Andreas

Hey,
thanks for your help but I cannot see how this can help me in any way???
I want to create a webservice based on a portal service which can be filled with an xml file or xml string.
On my side I want to know how to handle the xml file or xml string to retrieve all the information inside the file that I need!
Hope this makes it a little bit clearer!
Does anyone see a better way?
Regards,
Andreas

Similar Messages

  • How to pass a structure/array of structure as input parameter in a webservice

    Hi Team,
    I am trying to create a webservice in powerbuilder .net( pb 12.5.1) . As this webservice will be used by external world to access some of data on basis of some input paarameter.
    So can i use array of structure as input parameter to a webservice ? If no, then how can i pass a result set ( mora then 1 row with more than one column)
    as an argument to the webservice.
    Regards
    Subrat

    I am assuming this is the same for .Net but in Classic you can create NVO's with Instance Variables and then reference them in the NVO that will be used as the parameter for the Public WebService.
    WS NVO's:
    Children
         String             Child[]
    Customer
         String             FirstName
         String             LastName
         String             DOB
         Children          Children
    Public Interface uses Customer
    Calling Code Example:
    integer    rc, liNdx
    string     lsReturn
    SoapConnection lSoapConnect
    proxy_testing  px_Testing
    lSoapConnect = CREATE SoapConnection
    if IsValid(lSoapConnect) then
    TRY
      rc = lSoapConnect.CreateInstance(px_Testing, 'proxy_testing')
      CHOOSE CASE rc
       CASE 100
        lsReturn = "Invalid proxy name"
       CASE 101
        lsReturn = "Failed to create proxy"
       CASE 0
        Proxy_Customer lNewCustomer
        lNewCustomer = CREATE Proxy_Customer
        lNewCustomer.FirstName = 'Chris'
        lNewCustomer.LastName = 'Craft'
        lNewCustomer.DOB = 'Getting Older'
        Proxy_Children lChildren
        lChildren = CREATE Proxy_Children
        lChildren.Child[1] = 'Madeline'
        lChildren.Child[2] = 'Hayden'
        lNewCustomer.Children = lChildren
        lsReturn = px_Testing.NewCustomer(lNewCustomer)
       CASE ELSE
        lsReturn = "Unknown error (" + String(rc) + ")"
      END CHOOSE
      if rc <> 0 then MessageBox("Invocation Error", lsReturn, Exclamation!)
    CATCH (RuntimeError rte)
      rc = -1
      MessageBox("Runtime Error", rte.text, Exclamation!)
    END TRY
    end if
    Chris Craft

  • Can't see input parameter in model for webservice

    Hai All,
      I have created model for a webservice in webdynpro project. For a method in that webservice there is an input parameter which is <b>two dymensional string arry</b> . But I am unable to see that parameter in schema of created model. How can i see that input parameter.
    could anybody help me out.
    Regards,
    Charan

    Hai Charan,
    I am Also Facing the same Problem,
    we cant change the auto generated code in webdynpro,
    Its Better to try with object array instead of two dimensional array.
    regards,
    Naga Raju.m

  • How to pass byte array / binary data to a webservice as parameter in osb

    i have a webservice that has a byte array input parameter. i tried to use this WS in a message flow via service-callout. the problem i encountered is the following: since webservice call by using service-callout requires you to use an xml input as part of soap message, i insert both of $body/ctx:binary-content and $body/ctx:binary-content/@ref variables individually into this xml-message to pass binary-data to WS. When i debug the code, i see that it make calls to WS with $body/ctx:binary-content/@ref parameter, but the byte array passed is empty(not NULL)...
    note: i tried java-callut instead of service-called and used $body/ctx:binary-content as input parameter it worked. i think, this is because java-callout doesnt need an xml input and enable to take variables as is...
    can anybody help me to solve the problem with service-callout please?
    here is the input i use to call ws with service-callout method...
    <iso2Xml xmlns="http://www.mycompany.com.tr">
    <request>{$body/ctx:binary-content/@ref}</request>
    </iso2Xml>
    and this is my WS's signature:
    @WebMethod
    public String iso2Xml(byte[] request)

    Hi
    See this thread
    /message/2187817#2187817 [original link is broken]
    Kind Regards
    Mukesh

  • Adobe form as PDF string in Webservice importing parameter

    Hello Experts,
    Can you please clarify the below issue.
    I have created a webdynpro.
    I have placed an interactive form on one of it's view.
    And kept one Submit button(Execute type) on the form to trigger one webservice.
    This webservice has the importing parameter as the PDFSTRING.
    So my requirement is to pass the entire form with filled values to the webservice importing parameter. I will be storing this PDF string in some tables.
    What scripting i need to use in the form for getting this done.
    Thanks in advance.
    Regards,
    Ram.

    Hi Sai,
    Thanks for ur input.
    My requirement is not exactly the string with XML data, but the string with PDF data.
    I will try to explain my requirement here in detail.
    I have the adobe form triggering from the webdynpro. This form has different objects like, text fields, dropdowns, check boxes, radio buttons...etc and one SUBMIT button for which webservice is attached in the properties.
    User will fill all the fields and clicks on SUBMIT. When he clicks on the SUBMIT, the webservice should attach the filled PDF document at partner level.
    For this purpose, i need the string with PDF data and not the XML.
    WIth this PDF string again i should be able to re generate the PDF document which was filled by the user.
    If string with PDF data is not possible, Please suggest me the possible way of achieving this?
    Regards,
    Ram.

  • XmlElement  Input Parameter to the webmethod.

    Here is the WSDL Snippet.
    <s:element name="RegisterService">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="InputElement">
    <s:complexType>
    <s:sequence>
    <s:any />
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:sequence>
    </s:complexType>
    </s:element>
    The web service method input parameter is defined as an XmlElement in the .Net Environment
    public XmlElement RegisterService(XmlElement InputElement)
    How the InputElement will be put in the Java Client Code. Please provide how to proceed for the Client side code for calling the RegisterService method.
    Regards \
    Pramod

    Here is the Client Code generated for the web service i need to build the client for.
    How do i make the method call with the InputElement for the RegisterInput .
    package com.test.webservices;
    import javax.xml.bind.annotation.XmlAccessType;
    import javax.xml.bind.annotation.XmlAccessorType;
    import javax.xml.bind.annotation.XmlAnyElement;
    import javax.xml.bind.annotation.XmlElement;
    import javax.xml.bind.annotation.XmlRootElement;
    import javax.xml.bind.annotation.XmlType;
    * <p>Java class for anonymous complex type.
    * <p>The following schema fragment specifies the expected content contained within this class.
    * <pre>
    * &lt;complexType>
    * &lt;complexContent>
    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    * &lt;sequence>
    * &lt;element name="InputElement" minOccurs="0">
    * &lt;complexType>
    * &lt;complexContent>
    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    * &lt;sequence>
    * &lt;any/>
    * &lt;/sequence>
    * &lt;/restriction>
    * &lt;/complexContent>
    * &lt;/complexType>
    * &lt;/element>
    * &lt;/sequence>
    * &lt;/restriction>
    * &lt;/complexContent>
    * &lt;/complexType>
    * </pre>
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
    "inputElement"
    @XmlRootElement(name = "RegisterInput")
    public class RegisterInput {
    @XmlElement(name = "InputElement")
    protected RegisterInput.InputElement inputElement;
    * Gets the value of the inputElement property.
    * @return
    * possible object is
    * {@link RegisterInput.InputElement }
    public RegisterInput.InputElement getInputElement() {
    return inputElement;
    * Sets the value of the inputElement property.
    * @param value
    * allowed object is
    * {@link RegisterInput.InputElement }
    public void setInputElement(RegisterInput.InputElement value) {
    this.inputElement = value;
    * <p>Java class for anonymous complex type.
    * <p>The following schema fragment specifies the expected content contained within this class.
    * <pre>
    * &lt;complexType>
    * &lt;complexContent>
    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    * &lt;sequence>
    * &lt;any/>
    * &lt;/sequence>
    * &lt;/restriction>
    * &lt;/complexContent>
    * &lt;/complexType>
    * </pre>
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
    "any"
    public static class InputElement {
    @XmlAnyElement(lax = true)
    protected Object any;
    * Gets the value of the any property.
    * @return
    * possible object is
    * {@link Object }
    public Object getAny() {
    return any;
    * Sets the value of the any property.
    * @param value
    * allowed object is
    * {@link Object }
    public void setAny(Object value) {
    this.any = value;
    }

  • GRC VirsaCCRiskAnalysisService userid input parameter GRC 5.3

    Hi Experts,
    I'm trying to find out the meaning of all the input parameters that this Web Service contains ( VirsaCCRiskAnalysisService ). For the simulation of a Risk analysis I see the System, Role and many parameters that are optional, but the thing is, that I don't see the input parameter userid.
    I assume that this is the most important input parameter to let the Web Service check the validation like you do in the SAP GRC Acces Control -> Risk Analysis for an user.
    I see other input parameters like userGroup, userRange, but not the specific userid like the one in the SAPGRC_AC_IDM_RISKANALYSIS Web Service.
    ¿Is it possible to simulate a Risk Analysis for a given userid, system and hypothetical role?
    Thanks in advance,
    Toni
    Edited by: Toni Luque on Oct 5, 2010 1:17 PM

    Hi Toni,
    In the webservice (VirsaCCRiskAnalysisService).  U need enter the user id in the object range field.
    if there is only one user id put that is object from value.
    if there are range of user than u can enter the range in object from & object to field.
    Put Object type 1 is for users.
    Kind Regards,
    -Srinivasan

  • WSDL generated by WSGEN contains input parameter as arg0

    Hi,
    I have deployed a webservice in weblogic 6.1, the WSDL file has been generated by the WSGEN, but the WSDL file contains the input parameter as "arg0" as shown below
    - <message name="getTempRequest">
    <part name="arg0" type="xsd:string" />
    </message>
    i need the part name should show the exact variable name in the service method.
    plz help me out in this,
    thanx,
    kamal.

    The request and response elements will always be generated in the form below. It cannot be customized.
    <xs:schema targetNamespace="ld:hello_ws" elementFormDefault="qualified" xmlns:stns="ld:hello_ws" ... >
    <s:element name="HelloWorld">
    <s:element name="HelloWorldResponse">
    </>
    Unless the targetnamespace for your logical data service matches, there will always need to be a second schema element.
    Your logical dataservice can have whatever schema you want.

  • Pass Layout Template as a input parameter to Data Template

    Hi,
    I am using BI Publisher Standalone version 10.1.3.4. I was wondering if it is possible to use the selected layout template as a input parameter to the data model (SQL Query or Data Template).
    Any help is appreciated.
    Thank you in advance.

    Well, you could get the list of templates using Webservices but then you need develop a java application
    to make use of it :), I guess this changes the original question.
    regards
    Jorge

  • XML INPUT parameter in a MII BLS Transaction

    Hi.
    Please anybody has some good XSD file that can be used as a data type for a xml input parameter of a BLS Transaction ? could share it with us ? I will use it as a sample to create my own XSD file.
    Until now, all XSD files that I created worked but I could not import the webservice on ECC.

    Hi Stephen Kuykendall, thank you.
    I still have to following error message when try to execute the webservice in wsnavigator:
    [location : http://srvsdmii01.malwee.com.br:50000/XMII/WSDLGen/Default/teste2] ERROR : Definition of /definitions/types/s:schema/s:complexType[1]/s:sequence/s:element/s:complexType/s:sequence/s:element is not correct. Missing top level component (uri: 'http://schemas.xmlsoap.org/wsdl/'; name: 'GET_DETAILS').
    I created a XSD file and put your xsd contente there:
    so, I created a transaction propert of type "Input" with Data Type "xml" and assined your XSD with the element "GET_DETAILS":
    The WSDL url (/XMII/WSDLGen/Default/teste2) generated the wsdl with the following content:
    <?xml version="1.0" encoding="UTF-8"?><definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.sap.com/xMII" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.sap.com/xMII">
        <!-- Types -->
        <types>
            <s:schema elementFormDefault="qualified" targetNamespace="http://www.sap.com/xMII"><s:import schemaLocation="http://srvsdmii01.malwee.com.br:50000/XMII/WSDLGen/db/Default/WEB/Entrada.xsd"/>
                <s:complexType name="InputParams">
                    <s:sequence id="InputSequence">
                    <s:element maxOccurs="1" minOccurs="0" name="P_Entrada"><s:complexType><s:sequence><s:element ref="GET_DETAILS"/></s:sequence></s:complexType></s:element></s:sequence>
                </s:complexType>
                <s:element name="XacuteRequest">
                    <s:complexType>
                        <s:sequence>
                            <s:element maxOccurs="1" minOccurs="0" name="LoginName" type="s:string"/>
                            <s:element maxOccurs="1" minOccurs="0" name="LoginPassword" type="s:string"/>
                            <s:element maxOccurs="1" minOccurs="0" name="InputParams" type="s0:InputParams"/>
                        </s:sequence>
                    </s:complexType>
                </s:element>
                <s:complexType name="Rowset">
                    <s:sequence>
                        <s:element maxOccurs="unbounded" minOccurs="0" name="Row" type="s0:Row"/>
                    </s:sequence>
                    <s:attribute name="Message" type="s:string"/>
                </s:complexType>
                <s:complexType name="Row">
                    <s:sequence id="RowSequence">
                    <s:element maxOccurs="1" minOccurs="1" name="P_Saida" type="s:string"/></s:sequence>
                </s:complexType>
                <s:element name="XacuteResponse">
                    <s:complexType>
                        <s:sequence>
                            <s:element maxOccurs="1" minOccurs="0" name="Rowset" type="s0:Rowset"/>
                        </s:sequence>
                    </s:complexType>
                </s:element>
            </s:schema>
        </types>
        <!-- Messages -->
        <message name="XacuteSoapIn">
            <part element="s0:XacuteRequest" name="parameters"/>
        </message>
        <message name="XacuteSoapOut">
            <part element="s0:XacuteResponse" name="parameters"/>
        </message>
        <!-- Ports -->
        <portType name="XacuteWSSoap">
            <operation name="Xacute">
                <input message="s0:XacuteSoapIn"/>
                <output message="s0:XacuteSoapOut"/>
            </operation>
        </portType>
        <!-- Bindings -->
        <binding name="XacuteWSSoap" type="s0:XacuteWSSoap">
            <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
            <operation name="Xacute">
                <soap:operation soapAction="http://www.sap.com/xMII" style="document"/>
                <input>
                    <soap:body use="literal"/>
                </input>
                <output>
                    <soap:body use="literal"/>
                </output>
            </operation>
        </binding>
        <!-- Service mapping -->
        <service name="XacuteWS">
            <port binding="s0:XacuteWSSoap" name="XacuteWSSoap">
                <soap:address location="http://srvsdmii01.malwee.com.br:50000/XMII/SOAPRunner/Default/teste2"/>
            </port>
        </service>
    </definitions>

  • Log Error : Invalid Input Parameter %s for every SAP B1 Client

    Hi Everybody,
    in my company we have performed SAP B1 upgrade from 2007A to 8.81 PL07, in two steps upgrading first to PL04.
    Everything is working fine for all our clients, we are able to post and work normally with the system.
    The only annoying problem is an error message coming up every minute for every client in the log:
    SQLMessage       Error              I     Technical     Invalid input parameter: %s # #     MID=-1     BOID=-1     BO=     UserID=manager     C:\Program Files (x86)\SAP\SAP Business One\SAP Business One.exe     Version=8.81.315     Area=     PID=1316     TID=4340     D:\depot\BUSMB_B1\8.8_SP1_REL\SBO\8.8_SP1_REL\Application\__Engines\DBM\__DBMC_DataBase.cpp     9547
    I couldn't find anything regarding this topic in the forum, only one similar post but unanswered.
    We are using two server: one for the licence server and one for the database (the database server is clustered)
    Does anyone have any idea about this? Has it ever happened to anybody?
    Thanks for your help

    Hi Julie,
    it must be a triggered action from the system. The only problem is that log files grow very big, few mb every day, and it is a situation that's not very ideal. And also i don't want to turn them off because it is always a good resource for other errors.
    It is very strange that SAP hasn't noticed this behaviour and there isn't any note available for the purpose.
    Thanks for your help

  • Error while trying to choose query parameter Inconsistent input paramete

    I got error on PRD while trying to choose parameter before executing BEX query:
    101 Inconsistent input parameter (parameter: <unknown>, value <unknown>)
    100 Program error in class SAPMSYY1 method: UNCAUGHT_EXCEPTION
    Notes:
    the same functionality works fine in DEV environment.
    the other parameters on query in PRD work fine
    the parameter  with error based on custom hierarchy
    P.S. I heart BEx :]

    Hello,
    This problem has been solved before with notes 1236774, 1151320 & 1264213.
    Please check.
    Thanks,
    Michael

  • Build error: an input parameter is invalid

    I am looking for help with a build error. I am getting the following error message when I try to build a project in 8.5.1:
    Error 1 occurred at Open VI Reference in AB_Source_VI.lvclasspen_Reference.vi->AB_Build.lvclass:Copy_Files.vi->​AB_Application.lvclass:Copy_Files.vi->AB_Build.lvc​lass:Build.vi->AB_EXE.lvclass:Build.vi->AB_Engine_​Build.vi->AB_Build_Invoke.vi->AB_Build_Invoke.vi.P​roxyCaller
    Possible reason(s):
    LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
    =========================
    NI-488:  Command requires GPIB Controller to be Controller-In-Charge.
    VI Path:
    Tom Rhoads
    Goodrich FUS
    Vergennes, Vermont

    Arducopter:
    Did you check to see if the KB Hunter posted resolves the issue?
    If you're opening a project in a newer version of LabVIEW, then there's a chance the mass compile tool might work. It will open and save all of the VIs within a specified folder. The tool is fairly self-explanatory, and you can access it from within LabVIEW by going to "Tools --> Advanced --> Mass Compile..."
    Good luck!
    Caleb Harris
    National Instruments | Mechanical Engineer | http://www.ni.com/support

  • Crystal Report with text(csv) data file, can we set it as input parameter?

    Hi,
    I am a new user of Crystal Reports 2008.
    I have created a report with charts in it. The input data comes from a csv text file.
    Can I set the name of this text file as an input parameter?
    as I need to generate 44 similar reports with different text filenames(and data)?
    Thank you.
    Regards

    Brian,
    Thanks much.
    I did exactly what you said.
    Just to see any change, I first gave a bad report file name just to see if I am accidentally pointing to a different file,
    but I got an error saying report not found.
    Then I renamed my original datafile name and generated a report and it still generated one without giving an error.
    Then I also gave a junk name to the logoninfo and printed that name, the new name was assigned to logoninfo, but the code did not error out.
    It ended up generating the report.
    Now here is what I think is happening,
    1) The save data in report option seems to be still on even though I have turned it off in 2 locations
    a) file -> Report Options
    b) file -> Options -> Reporting tab.
    2) For some reason the logoninfo is getting ignored as well.
    Since I did not see any answers yesterday I posted a link to this thread on the .Net forum
    Crystal Report with text(csv) data file, can we set it as input param? C#
    and Ludek Uher says that I am connecting to the text file via a DAO database engine and so need to use the same code for changing the text file as for changing an Access database.
    But the link he gave me tells me to try the same thing that we have been trying..
    Here is my plan,
    1) I will first try and find out why my save data with report option is still on ( but it shows off in Crystal ).
    2) why is LogonInfo getting ignored.
    Meanwhile any suggestions from anyone are welcome.

  • How to disabled the input parameter dialog box in crystal reports 9

    Post Author: Murtaza
    CA Forum: General
    Hi friends,I have got stuck with a weird problem.  In my
    crystal report, I have set up some input parameters.  I am setting
    values for these parameters somewhere inside code.  But I don't
    want to show the default input parameter dialog box. Under any case,
    user should not see the ugly parameter dialog box that crystal
    presents.   Please suggest me how I can achieve
    this.  I cannot do this through code, because our environment does
    not allow that.  I have to do this in crystal reports viewer and
    by setting some property of the crystal report object. But everything
    must be done on UI, not through code. So, the solution should not be the following. 
    // step before step 1
    // **** the line needs to refer to the report and be set before setting
    ReportSource in the viewer to myReport
    myReport.EnableParameterPrompting = False
    Any help would be greatly appreciated.  Murtaza

    Post Author: sleahcim
    CA Forum: General
    Hi Murtaza,
    Unfortunately, I am not aware of any method to suppress the prompt for the input parameters, but still use them.  It is truly a design-related issue for the report.  The reason that the prompt appears is because the parameter it is prompting for is used in the report; in particular either the Group or Record Selection, or referenced in another formula.
    The only way I can think of to not show the prompt, is to not use the parameter in the report.  You did mention that you are setting the value of the parameter inside of the report -- are you doing this through using a formula?  Perhaps you can just remove the parameter and only use the formula that you are setting the default values with.
    -Michael

Maybe you are looking for

  • Unable to see Airport Express from Windows Airport Utility

    I am setting up an Airport Express to connect remote speakers for a friend with windows base system. The router is a TrendNet. I have managed to add the Airport Express to the network. I can ping the router, and if I put in the IP address to Airport

  • Address Field Of Purchase Order

    Hi All ,         i need to get the address field of a purchase order . This is to know where the purchsed goods are directly delivered to customer from the vendor its self or from the plant (which raises a po)... Thxs, vind

  • How to escape spaces in a URL with HyperlinkEvent.getDescription()

    Hi, I'm trying to open a file whose URL contains spaces, this way: if (ev.getEventType() == HyperlinkEvent.EventType.ACTIVATED) String urlStr = ev.getDescription(); BrowserLauncher.openURL(urlStr); My urlStr contains the value: "file:/C:/Program File

  • SQL-tab / refresh button: does not take into account renamed constraint.

    I discovered a small bug: 1) find or create a table with system generated constraint names (SYS_C007289) 2) open that table in SQL Developer (I'm using 3.0.04.34). On the constraints tab, there will be the SYS% constraints. On the SQL-tab, the constr

  • Any Adobe product won't install, stops after 10%

    Exit Code: 6 -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 50 error(s), 79 warning(s) WARNING: OS requirements not met for {667C8B6C-3EAF-4646-A8EC-D85CCC4D3D84} WARNING: OS requirements not