Parameters in a Web Services

Do you know who to create a parameters that can i can assign when i developed the web services?

Raise your hand if you understood that question.
That's what I thought. I don't know what you're trying to ask. Is your question about authoring WSDL, using the JWSDP or Axis, writing a web service client for an existing service, or something else?

Similar Messages

  • Passing Substitution Parameters to run_Batch_Job Web Service

    I've been struggling with setting global variables and substitution parameters for my batch job submitted through the Web Service. I have a simple job with a script that refers to one global variable and one substitution parameter.
    Job_param_typeSubstitutionParametersParameter[] parms =
              new Job_param_typeSubstitutionParametersParameter[1];     
    parms[0] = new Job_param_typeSubstitutionParametersParameter();
    parms[0].setName("$XXX");
    parms[0].set_value("Test");
    jobParameters.setSubstitutionParameters(parms);
    request.setJobParameters(jobParameters);
    RunBatchJobRequestGlobalVariablesVariable[] globals =
                   new RunBatchJobRequestGlobalVariablesVariable[1];
    globals[0] = new RunBatchJobRequestGlobalVariablesVariable();
    globals[0].setName("$$YYY");
    globals[0].set_value("Test2");
    request.setGlobalVariables(globals);
    When I pass this request to run_Batch_Job, that call times out after about 5 minutes with a socket read timeout. If I don't set the globals or substitution parameters, the call completes, and the job runs fine.
    The script in the job looks like the following:
    print('Global: ' || $XXX);
    print('SubParm: ' || [$$YYY]);
    What might I be doing wrong?

    The only log that has relevant data is errorlog.txt (and it clearly identifies the problem--missing quotes as I indicated in my earlier post).
    (12.1) 02-25-09 12:47:15 (E) (5624:4360) PAR-010102: Syntax error at line <3>: <print('SubParm: '+$$XXX);>: near <$> found <'$'> expecting <'(', &ERROR, __AL_LOOKUPEX_TRAN,
                                                         __AL_SEARCH_REPLACE_TRAN, __RFC_FUNCTION, __AL_SCRIPT_FUNCTION, __AL_STORED_PROCEDURE, __AL_EXTRACT_FROM_XML,
                                                         __AL_TRAN_FUNCTION, +, AL_UNSPECIFIED_PARAM, CONVERT, a float, identifier, an integer, a null, a quoted identifier, a string, a
                                                         decimal, -, SUBVARIABLE, VARIABLE, -, +>.
                                                         1 error(s), 0 warning(s).
                                                         . Please check and fix the syntax and retry the operation.
    So, the real question now is why does the Web Service take 5 minutes then timeout?
    I'd really like to be able to handle the error gracefully (without delay). Why is there no server response?

  • Parameters and database login with Web Services SDK

    I need to know how to do the two most common report tasks through the Web Services interface to Crystal Reports Server 2008:
    How do I get a list of a report's parameters and set the parameter's values?
    How do I set the database login information?
    I have considerable experience with writing custom web interfaces for Business Objects Enterprise with .NET, but now we're supposed to use web services instead of Enterprise services, especially when writing Windows forms apps. The official line is that writing thick client apps using Enterprise services is "possible but not supported." I can't seem to find the equivalent to the .Parameters property in Web Services.
    The tutorials for Web Services aren't much help. The BIPlatform examples show how to schedule a report without parameters and without setting the database login, but this isn't much help in the real world. The ReportEngine tutorial was apparently written by someone else, and is little or no help.
    This seems like such a simple question, but I have wasted an entire day and am no closer to the answer.

    I think the following resources will help:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/GettingStartedwiththeWebServicesSDK
    http://help.sap.com/businessobject/product_guides/xir2PP/en/qaaws.pdf
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/WS_SDK/wssdk_server/default.htm
    Also, see this forum thread:
    Web Services SDK secLDAP
    Ludek

  • Web Services Parameters that are Arrays

    I am evaluating HTML DB to see if it would be possible to create a simple application that calls a web service.
    The web service was generated using JDeveloper and wraps up a PL/SQL function that takes an object type with several fields as an input parameter and a table of object types as the output parameter.
    The Web service therefore has an input parameter that is an single object containing several input fields and an output parameter that is an array of objects containing several result fields.
    The HTML DB 'test web service' or 'Create a form from a Web Service' does not recognise these input or output parameters, although the 'Web Service Reference' does list all the input and output parameters.
    I am assumming that there is a coding solution when using these kind of parameters but I cannot find any obvious guidence for this.
    Can anyone help or point me in the right direction?
    Thanks

    I have this same problem...
    Is it a bug?
    It's strange because other web services work fine
    is it because we are using the wrong format or version wsdl?
    anyone have any ideas?

  • Can XMLBeans validate Web Services Input Parameters in Weblogic8.1?

    Hi,
    I am very new to XMLBeans and Web Services. From my understanding, schemas can be used to validate an xml document.
    However, I would like to find out:
    1. Can I validate my web service inputs againest the generated XMLBeans objects/schema, in Weblogic 8.1?
    2. How do I validate my input parameters from the web service? My input parameters include enumerations of valid values and also numeric values.
    Fyi, the XMLBeans objects were generated from the schema which i created, and my web service is using these XMLBeans objects.
    Great Thanks!

    This is crazy! Someone must have come across this problem
    before.
    I've simplified my question and used a much simplier method
    from the web service, here goes!
    ::: Here's my code :::
    <cfscript>
    webservice = CreateObject("webservice","dummy?wsdl");
    webservice.doBuildQuoteForItinerary("123456,"en_US","","1113");
    </cfscript>
    ::: Here's the error :::
    Could not perform web service invocation
    "doBuildQuoteForItinerary".
    Here is the fault returned when invoking the web service
    operation:<br> <pre>AxisFault faultCode: {
    http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode: faultString:
    com.raileurope.web.ngserver.InternalErrorException:
    java.lang.NullPointerException faultActor: faultNode: faultDetail:
    http://xml.apache.org/axis/}hostname:dummy
    </pre>
    There must be something wrong with how I'm passing in the
    parameters. Is it the null string??!?!?
    Any help would be great!

  • Can XMLBeans validate Web Services Input Parameters?

    Hi,
    I am very new to XMLBeans and Web Services. From my understanding, schemas can be used to validate an xml document.
    However, I would like to find out:
    1. Can I validate my web service inputs againest the generated XMLBeans objects/schema?
    2. How do I validate my input parameters from the web service? My input parameters include enumerations of valid values and also numeric values.
    Fyi, the XMLBeans objects were generated from the schema which i created, and my web service is referencing/using these XMLBeans objects to package the results to the calling class/method.
    Great Thanks!

    This is crazy! Someone must have come across this problem
    before.
    I've simplified my question and used a much simplier method
    from the web service, here goes!
    ::: Here's my code :::
    <cfscript>
    webservice = CreateObject("webservice","dummy?wsdl");
    webservice.doBuildQuoteForItinerary("123456,"en_US","","1113");
    </cfscript>
    ::: Here's the error :::
    Could not perform web service invocation
    "doBuildQuoteForItinerary".
    Here is the fault returned when invoking the web service
    operation:<br> <pre>AxisFault faultCode: {
    http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode: faultString:
    com.raileurope.web.ngserver.InternalErrorException:
    java.lang.NullPointerException faultActor: faultNode: faultDetail:
    http://xml.apache.org/axis/}hostname:dummy
    </pre>
    There must be something wrong with how I'm passing in the
    parameters. Is it the null string??!?!?
    Any help would be great!

  • Infopath 2013 SOAP Web Service Data Connection - Error: The file is not a valid XML file

    Here are the steps to replicate the issue I’m having when adding lists.asmx or any other SharePoint web service in InfoPath 2013. This web service opens fine in the browser from my desktop. My account is a farm administrator and is added to the
    web application’s User Policy.  I can use these services just fine using Nintex 2013 Workflow.
    Open InfoPath Designer 2013.
    Select Blank Form and click Design Form button.
    Click “Data” tab.
    Click “From Web Service” and select “From SOAP Web Service”
    Enter https://mysiteurl.com/_vti_bin/lists.asmx?WSDL for the web service definition.
    Click Next.
    Windows Security window pops up.
    Enter a credential. I tried both my account and the farm account. My account is a farm admin and is added to the web application’s User Policy with Full Control.
    Click OK. It prompts for credential multiple times.
    I get below this error messages: 
    Sorry, we couldn't open https://mysiteurl.com/_vti_bin/lists.asmx?WSDL
    InfoPath cannot find or cannot access the specified Web Service description.
    The file is not a valid XML file.
    Not enough storage is available to process this command.
    We have a project that is in need of these services using InfoPath so any help is greatly appreciated.

    Hi Brian_TX,
    For your issue, try to the following methods:
    Change your service binding in web.config to:binding="basicHttpBinding". It seems in VS it defaults to wsHttpBinding.
    Replace all instances of "parameters" from the web service wsdl with the name "parameter"
    There are some similar articles about the issue, you can have a look at them:
    http://www.infopathdev.com/forums/t/23239.aspx
    https://social.msdn.microsoft.com/Forums/office/en-US/621929c3-0335-40af-8332-5a0b430901ab/problems-with-infopath-web-service-connection?forum=sharepointcustomizationprevious
    https://social.msdn.microsoft.com/Forums/en-US/5fa5eca8-f8d7-4a2e-81ba-a3b4bdcfe5af/infopath-cannot-find-or-cannot-access-the-specified-web-service-description?forum=sharepointcustomizationlegacy
    Best Regards
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]

  • How to Retrieve Data From Web Service with Optional Arguments

    This should be a simple one. I have a web service that
    returns a list of books. There are 3 optional arguments that can be
    passed to this (ex. book type, author, id) to filter this list. Do
    I still need to use the <mx:request> tags if I am not going
    to pass any parameters to the web service?
    When I look at the services browser in Flex, it says "unable
    to get meta data for CFC". However, if I remove the arguments from
    the CFC and then call the service again, all my data now appears.
    What's the best way to appoach this?
    Thanks in advance

    I have a similar application. What I have done is create one
    argument in my CFC, with a type of "struct". Then, in the Flex
    Application, I create an Object (Associative Array), and pass this
    to the CFC as that one argument.
    Here is the ActionScript:
    // Create the variable to be passed to the WebService
    [Bindable]
    private var object:Object = new Object();
    Then in another function, you create the Object, based on
    specified values - perhaps from ComboBox selections:
    object.bookType = comboBox1.selectedItem["bookType"];
    object.author = comboBox2.selectedItem["author"];
    object.id = comboBox3.selectedItem["id"];
    Then you pass that one argument in your <mx:request>:
    <mx:WebService id="getBooks" wsdl"
    http://server.com/service.wsdl"
    showBusyCursor="true"
    fault="alert(event.fault.faultstring)">
    <mx:operation name="sBooks">
    <mx:request>
    <args>{object}</args>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    Your CFC might look like this:
    <cfcomponent>
    <cffunction method="sBooks">
    <cfargument name="args" type="struct">
    </cffunction>
    </cfcomponent>
    Then you can worry about validating the values passed to the
    CFC in the CFC function. That way, you could send an empty struct
    if you wanted, and the CFC would not throw an exception.
    Hope that helps.

  • Invoking one web service from another web service

    Hi there,
    I want to invoke a web service lets say X. But befor sending parameters to this web service, what i want to do is first pass the parameters to a web service called Y and Y will decide wether to call X or not. In other words i want to invoke a web service from another web service.
    Its kind of urget so do the needful asap.
    Thanks

    Calling another webservice from within a webservice does not require anything special. The service (say svc1) that calls another service (svc2) will be a web svc client. So you will have to do the same steps for svc1 as you would do for any other web service client

  • How to call an ABAP based web service from a web page (form)

    Hi,
    I am trying to figure out how I can call my own developed ABAP based web service. I was able to successfully test it in the WS navigator and am now wondering what I need to do to embed the service call in a plain simply web page (form). Basically I'd like to create a web form allowing to specify the parameters and with a 'Submit' button pass the parameters to the web service and launch it.
    Is this possible or do I need some kind of SDK to accomplish this?
    Thanks for any hints and tips.
    Wolfgang

    Hi,
    refer the following link and this is for cosuming the web service form Web dynpro Java
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50d70a19-45a3-2b10-bba0-807d819daf46&overridelayout=true
    and please go throught the following link if you want to cosume it through web dynpro abap and find the answer given by the Moderator Thomas Jung
    regards
    Manohar

  • Problem generating stubs for Java EJB web service deployed in OAS

    I created an EJB web service and I've successfully deployed it in my Oracle App Server. Some of the methods work fine but others produce the ff error:
    org.apache.soap.SOAPException - java.lang.IllegalArgumentException: No Serializer found to serialize [classname] using encoding style [encoding]It seems that the objects specified as parameters in the web service methods exposed are the only ones that had stubs generated for them. Other objects I use, which are usually wrapped inside a Vector, did not have generated stubs.
    Example:
         public String loginUser(UserDTO userDTO) throws RemoteException, NamingException, SQLException;
    public String addItems (Vector vecItems) throws RemoteException, NamingException, SQLException; // where vecItems is a collection of ItemDTO objects     In this scenario, stubs were generated for the UserDTO class, but not for the ItemDTO class. In effect, calling the addItems method resulted to the exception I mentioned above.
    I did a workaround wherein I declared a dummy method which accepted all the types of objects I needed as parameters so all the necessary stubs can be generated, but this fix doesn't feel like it's the proper solution to my problem.
    If anyone can help me, it would be greatly appreciated. Thanks!

    Crossposted:
    Problem generating stubs for Java EJB web service deployed in OAS

  • Urgent!!!!!!!  Error  200 in Web Service execution

    Hi:
    I created a simple helloWorld WebService (one method that receive a string and return a string) using Jdeveloper 10.1.3. This was created successfully, but when I click on URL generated I got this error in browser :
    Error instantiating web-application
    Error compiling :C:\jdevstudio1013\jdev\mywork\myApplication\myProject\public_html: compilation error occurred
    And my console prints this:
    error #300: MyProjectInt_evaluarSolicitud_ResponseStruct_LiteralSerializer not found in class com.webservice.servicios.runtime.MyWebService1_SerializerRegistry
    CombinedSerializer serializer = new com.webservice.servicios.runtime.MyProjectInt_evaluarSolicitud_ResponseStruct_LiteralSerializer(type, DONT_ENCODE_TYPE);
    Somebody knows something about this problem. Thanks about your comments
    ^

    Hi Johan,
    it seems when you clicking upon the link - it is sending a wrong set of parameters to underlying Web Service method. What I mean is - suppose the web service method is expecting 3 parameters - but the link click is actually effecting into sending less than that number. Please check what & how many parameter values are being sent to the web service.
    Regards,
    Shubho

  • APEX Web Service parsing error

    Hello
    APEX is creating an incorrect item for parameters on my web service below.
    Instead of creating two items of names "name" PARM_TYPE xsd:string and "stringValue" PARM_TYPE xsd:string it is creating a single input item called
    namestringValue     PARM_TYPExsd:stringxsd:string
    <xsd:complexType name="NameParameterValuePair">
    <xsd:sequence>
    <xsd:element name="name" type="xsd:string"/>
    <xsd:choice minOccurs="0" maxOccurs="1">
    <xsd:element name="stringValue" type="xsd:string"/>
    <xsd:element name="booleanValue" type="xsd:boolean"/>
    <xsd:element name="dateValue" type="xsd:dateTime"/>
    <xsd:element name="numericValue" type="messages:NumericValue"/>
    </xsd:choice>
    </xsd:sequence>
    </xsd:complexType>
    I dont know why it is concatenating the two elements.
    I am running apex 3.1.1.00.09 has anyone ever run into this problem or have any suggestions?
    Thanks in advanced
    Rashad

    I found a bug in the Apex handling of WSDL files that was verified by Oracle and reported in metalink quite a while back. I don't remember what version of Apex it was, and I don't know whether the use-case was exactly the same as yours or not.
    I believe the way I verified the problem was I compared the Apex handling of the WSDL with another WSDL tool and the results were clearly different.
    It appeared to me back then that the Apex developers didn't handle the full WSDL standards correctly, and I'm not sure if they've spent more time on making sure that's more robust or not.
    Not much help, I know, but thought I'd let you know that I did uncover a bug re: web services handling.
    Earl

  • "Error in Web Service Execution"

    Hi Guys,
    Need your advise on this one. Upon receiving a Travel Request approval work item then trying to open the link I get the following error:
    Error in web service execution : the launch handler was called with an incomplete parameter list
    Any ideas?
    Regards

    Hi Johan,
    it seems when you clicking upon the link - it is sending a wrong set of parameters to underlying Web Service method. What I mean is - suppose the web service method is expecting 3 parameters - but the link click is actually effecting into sending less than that number. Please check what & how many parameter values are being sent to the web service.
    Regards,
    Shubho

  • Parameter passing for custom web service reports

    <p>Hi,</p><p>I created a report file and published it as a .Net web service. I was able to set the web service to a report viewer in my windows application. I am using Crystal Reports Version 11 R2 and Visual Studio 2005 for my development.</p><font size="2" color="#008080">ReportWebService</font><font size="2"> service = </font><font size="2" color="#0000ff">new</font><font size="2"> </font><font size="2" color="#008080">ReportWebService</font><font size="2">(); </font><font size="2"><p>crystalReportViewer1.ReportSource = service;</p></font><p>Now, my question is how do I pass a parameter from the windows application to the custom report web service. It does not seem to accept any paramters through constructors or other custom web methods.</p><p>If I need to change my design or approach, I am welcome to that as long as I am able to host the report file on a central location. The .rpt file (exposed by the web service) does not have any parameters but the data population logic inside the web service might be based on some conditions which I need to pass as parameter.</p><p>Thanks in advance.Regards, Gulzar</p>

    <p>When using a Report Web Service, you must use the Viewer&#39;s SDK to interact with the report. So in your case, if you want to pass parameters to the report, the viewer exposes a ParameterFieldInfo property that you can set. You can download samples on how to do this or check out the <a href="http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm" target="_blank">DevLibrary</a> for more details.</p><p>However, one of your last statements you said your report does not have any parameters but your web service does.....could you elaborate on that?  Did you modify the .asmx that is autogenerated to add/modify the web service methods?  If so, then you will not be able to pass parameters to the new/modified web service.  The autogenerated web service for the report cannot be modified in this way since the viewer is designed to use the web services methods as-is.   In other words, the viewer is the only client/consumer of the Report Web Service so any interaction you want with the report must be done through the viewer, if the viewer exposes the functionality.  </p><p>In general, because the viewer is the only supported consumer of the Report Web Service, there are many limitations to interacting with the report.  Depending on how much control you want over the report at runtime, you may not want to use Report Web Services.  If you want to centralize reports for a Windows application, your best option is to load the reports from a network share using a UNC path when loading the report.  Of course, this assumes your application is running from some kind of internal network.  Any other kind of solution to centralized reports would require a web-based solution.</p><p>If you must use a Windows application, then you could host a IE control on your form that accesses a web page that displays reports but then you would have to develop and support a web application in addition to your windows application.  It&#39;s not the best solution but it&#39;s an option!  :-)</p><p>-MJ</p>

Maybe you are looking for

  • External monitor with imac not working

    Hello.I have problem with external monitor connected to my imac 27 via mini display port to vga connector. It was working perfectly but around month ago it suddenly stopped. It looks like my monitor doesn`t get any signal from imac, at least that`s w

  • My Netbook that my phone is sync to does not have a cd drive and I want to put my digital copies onto it

    My Netbook that my phone is sync to does not have a cd drive and I want to put my digital copies onto it but I do not know how to, I have a laptop I can put the disks in but I don't know if it will let me copy the file to a flash drive any ideas? als

  • Operation number and work center

    I'm looking for the link between inspection plan/recipe header and operation at table lavel. Reason: I have two inspection plan number with same group number but both has different counter and each has 4 operation and each operation has different wor

  • Simulate a Robot in a 3D Scene

    Hello everybody, I'm trying to Simulate a Robot in a 3D scene using meshes, objects and heritage. Up to now, I can load a 2D .png Plane and a .stl Robot in the same scene and move the plane across the scene to simulate a robot motion. What I should d

  • Cannot find boot record of WD Raptor on KT4

    Hello forum, this is my first post. I have been searching Google for a solution of my problem and found this forum. However, after searching this forum and reading quite a few threads I still could not find the solution. Here's my problem: I have a b