Passing complexType parameter to webservice

HI,
I have a webservice generated with the following. wsdl attached.
when I invoke the code following:
public void invoca(){
     try{
String targetNamespace = "http://xmlns.example.com/1298640415905";
QName serviceName = new QName(targetNamespace, "intfConsultaARS-service.serviceagent");
QName portName = new QName("intfwsConsultaARSEndpoint0");
     QName operationName = new QName("http://ws.catalagoservico.consulta.caixa.gov.br/ARSEntrada", "ConsultaARSOp");
URL wsdlLocation = new URL("http://VOSTRO-USER:9090/BusinessProcesses/Services/intfConsultaARS-service.serviceagent?wsdl");
ServiceFactory factory = ServiceFactory.newInstance();
Service service = (Service) factory.createService(wsdlLocation, serviceName);
Call call = (Call) service.createCall(portName, operationName);
OperationDesc oper = new OperationDesc();
ParameterDesc param = new ParameterDesc(new QName("http://ws.catalagoservico.consulta.caixa.gov.br/ARSEntrada", "Entrada"), ParameterDesc.IN, new QName("http://ws.catalagoservico.consulta.caixa.gov.br/ARSEntrada", ">Entrada"), EntradaVO.class, false, false);
oper.addParameter(param);
oper.setReturnType(new QName("http://ws.catalagoservico.consulta.caixa.gov.br/ARSSaida", ">Saida"));
oper.setReturnClass(SaidaVO.class);
oper.setReturnQName(new QName("http://ws.catalagoservico.consulta.caixa.gov.br/ARSSaida", "Saida"));
oper.setStyle(org.apache.axis.constants.Style.DOCUMENT);          
OperationDesc[] operations = new OperationDesc[1];
operations[0] = oper;
call.setOperation(operations[0]);
EntradaVO entrada = new EntradaVO();
entrada.setCodigo("1");
Object retorno = ((Object) call.invoke(new Object[] {entrada}));
SaidaVO saida = (SaidaVO) JavaUtils.convert(retorno, SaidaVO.class);
System.out.println(saida.getNome());          
     }catch(Exception ex){
          ex.printStackTrace();
happens the following error
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.io.IOException: No serializer found for class br.gov.caixa.bsb.sigti.EntradaVO in registry org.apache.axis.encoding.TypeMappingDelegate@1b9b03
faultActor:
faultNode:
faultDetail:
I am grateful for any help.
Regards,

Hi,
Looking at the Exception Trace, I think Serializer and Deserializer for EntradaVO are missing or not matching to the EntradaVO class. While generating the WSDL there are some files that gets created based on your mapping with the Complex Type parameters. So either these mappings do not exist or they did not match with the Complex Object.
Second point to check is whether this class is marked as Serializable or not.
Check for these two things you might get the solution.

Similar Messages

  • Help - Passing complextype arguement to WebService

    Hi,
    I'm trying to pass a complex type into a web service request.
    <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="CEM_Services_HTTP_BI_Service" xmlns:tns1="dsws.businessobjects.com" targetNamespace="CEM_Services_HTTP_BI_Service" xmlns="http://schemas.xmlsoap.org/wsdl/" name="BIServices">               
    - <s:simpleType name="Operator">
    - <s:restriction base="s:string">
      <s:enumeration value="EQUAL" />
      <s:enumeration value="GREATER" />
      <s:enumeration value="GREATER_OR_EQUAL" />
      <s:enumeration value="LESS" />
      <s:enumeration value="LESS_OR_EQUAL" />
      <s:enumeration value="NOT_EQUAL" />
      <s:enumeration value="INLIST" />
      <s:enumeration value="NOT_INLIST" />
      </s:restriction>
      </s:simpleType>
    - <s:complexType name="FilterCondition">
    - <s:sequence>
      <s:element name="value" type="s:string" />
      <s:element name="operator" type="s0:Operator" />
      </s:sequence>
      </s:complexType>
    </s:element>
    - <s:element name="GetReportBlock_CEM_Service_HTTP_DL_Per_Server">
    - <s:complexType>
    - <s:sequence>
      <s:element name="login" type="s:string" minOccurs="0" nillable="true" />
      <s:element name="password" type="s:string" minOccurs="0" nillable="true" />
      <s:element name="Web_Server" type="s0:FilterCondition" minOccurs="0" maxOccurs="unbounded" nillable="true" />
      <s:element name="resetState" type="s:boolean" minOccurs="0" nillable="true" />
      <s:element name="refresh" type="s:boolean" minOccurs="0" nillable="true" />
      <s:element name="getFromLatestDocumentInstance" type="s:boolean" minOccurs="0" nillable="true" />
      <s:element name="getFromUserInstance" type="s:boolean" minOccurs="0" nillable="true" />
      <s:element name="turnOutputToVTable" type="s:boolean" minOccurs="0" nillable="true" />
      </s:sequence>
      </s:complexType>
      </s:element>
    Here is the code which written in Flex;
      <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    <s:WebService id="serviceID" wsdl="http://hostname:8080/dswsbobje/qaawsservices/biws?wsdl=1&cuid=FnB4g03HzwwAxTQAALBLF0UAABFD 6L5R"
      endpointURI="http://hostname:8080/dswsbobje/qaawsservices/queryasaservice?&cuid=FnB4g03HzwwAxTQAALBLF0U AABFD6L5R&authType=secEnterprise&locale=en&timeout=60&ConvertAnyType=true"
      service="CEM_Services_HTTP_BI_Service" port="BIServicesSoap" makeObjectsBindable="true" >
    <s:operation  name="GetReportBlock_CEM_Service_HTTP_DL_Per_Server"
    resultFormat="e4x"
      result="showResult(event);"
      fault="genericFaultHandler(event)"
    >
    </s:operation>
    </fx:Declarations>
            <fx:Script>
                    <![CDATA[
                   private function send_data():void {             
                   host = new Array( ["www.music.com","INLIST"]);
                   serviceID.GetReportBlock_CEM_Service_HTTP_DL_Per_Server("administrator", "password", host, true, false, true, true, true);
    But When I capture the http request dump, its not as expected:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <SOAP-ENV:Body>
        <s0:GetReportBlock_CEM_Service_HTTP_DL_Per_Server xmlns:s0="CEM_Services_HTTP_BI_Service">
          <s0:login>administrator</s0:login>
          <s0:password>Tekelec1</s0:password>
          <s0:Web_Server>
            <s0:value>www.music.com,INLIST</s0:value>
            <s0:operator>www.music.com,INLIST</s0:operator>
          </s0:Web_Server>
          <s0:resetState>true</s0:resetState>
          <s0:refresh>false</s0:refresh>
          <s0:getFromLatestDocumentInstance>true</s0:getFromLatestDocumentInstance>
          <s0:getFromUserInstance>true</s0:getFromUserInstance>
          <s0:turnOutputToVTable>true</s0:turnOutputToVTable>
        </s0:GetReportBlock_CEM_Service_HTTP_DL_Per_Server>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    I tried to pass the paramter value in WebService tag itself:
    <s:request>
    <login>administrator</login>
    <password>Tekelec1</password>
    <Web_Server>
    <value>www.music.com</value>
    <operator>INLIST</operator>
    </Web_Server>
    <resetState>true</resetState>
    <refresh>false</refresh>
    <getFromLatestDocumentInstance>true</getFromLatestDocumentInstance>
    <getFromUserInstance>true</getFromUserInstance>
    <turnOutputToVTable>true</turnOutputToVTable>
    </s:request>
    <s:request>
    <login>administrator</login>
    <password>Tekelec1</password>
    <Web_Server>www.music.com, INLIST</Web_Server>
    <resetState>true</resetState>
    <refresh>false</refresh>
    <getFromLatestDocumentInstance>true</getFromLatestDocumentInstance>
    <getFromUserInstance>true</getFromUserInstance>
    <turnOutputToVTable>true</turnOutputToVTable>
    </s:request>
    But it again did not work. Actually WebService always pass same values to Web_Server.value and Web_Server.Operator tags. But my requirement is to pass website address in Web_Server.value tag and "INLIST" in Web_Server.Operator tag.
    Can somebody help in resolving this issue??
    Thanks in advance,
    Vikas Jindal

    Hi,
    Looking at the Exception Trace, I think Serializer and Deserializer for EntradaVO are missing or not matching to the EntradaVO class. While generating the WSDL there are some files that gets created based on your mapping with the Complex Type parameters. So either these mappings do not exist or they did not match with the Complex Object.
    Second point to check is whether this class is marked as Serializable or not.
    Check for these two things you might get the solution.

  • How to query WCF webservice and pass a parameter

    I am using SQL Server 2012, and I have use SSRS quite extensively to query SQL Server and Oracle data, but I am currently trying to query a new WCF web service, call a method and pass a parameter.  The XML query language is something I know very little
    about.  
    So far all I have is the URL to the web service like so:  http://webserv-01:8025/Tst_DataService.svc
    When I browse to that url and access the wsdl:  http://webserv-01:8025/Tst_DataService.svc?singleWsdl
    I get a bunch of info like this on the page:
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy"xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://tempuri.org/" xmlns:wsa10="http://www.w3.org/2005/08/addressing"xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" name="CSS_DataService" targetNamespace="http://tempuri.org/">
    <wsdl:types>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
    <xs:element name="GetAddress">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="accountNumber" nillable="true" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="GetAddressResponse">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="GetAddressResult" nillable="true" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <wsdl:message name="ICSS_DataService_GetAddress_InputMessage">
    <wsdl:part name="parameters" element="tns:GetAddress"/>
    </wsdl:message>
    <wsdl:message name="ICSS_DataService_GetAddress_OutputMessage">
    <wsdl:part name="parameters" element="tns:GetAddressResponse"/>
    </wsdl:message>
    <wsdl:operation name="GetAddress">
    <wsdl:input wsaw:Action="http://tempuri.org/ICSS_DataService/GetAddress" message="tns:ICSS_DataService_GetAddress_InputMessage"/>
    <wsdl:output wsaw:Action="http://tempuri.org/ICSS_DataService/GetAddressResponse" message="tns:ICSS_DataService_GetAddress_OutputMessage"/>
    </wsdl:operation>
    <wsdl:operation name="GetAddress">
    <soap:operation soapAction="http://tempuri.org/ICSS_DataService/GetAddress" style="document"/>
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    I am trying to access the GetAddress method which takes one param (accountNumber) and return data for that account number so I can display the individual fields from that method on the report.  
    fyi-
    The XML returned from the webservice will look like this:
    <AddressRec xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"">
    <ACCOUNTNUMBER>2070257842</ACCOUNTNUMBER>
    <MY_BILL_ACCT>2070257842</DPL_BILL_ACCT>
    <SA_LINE_1>ABCDEFT                            </SA_LINE_1>
    <SA_LINE_2>8101 SMITHVILLE PKE                </SA_LINE_2>
    <SA_LINE_3>MIAMI, FL 78342                    </SA_LINE_3>
    <SA_LINE_4>                                   </SA_LINE_4>
    <MA_LINE_1>ABCDEFT                            </MA_LINE_1>
    <MA_LINE_2>C/O FACILITY IQ - MS1253 SITE#0604 </MA_LINE_2>
    <MA_LINE_3>P O BOX 9942                       </MA_LINE_3>
    <MA_LINE_4>SPOKANE WA 99210                   </MA_LINE_4>
    <PREM_PHONE>817-454-7150</PREM_PHONE>
    <CD_METER_BILL_UNIT> 4</CD_METER_BILL_UNIT>
    <FL_BILL_BB>N</FL_BILL_BB>
    <FL_NET_METER>N</FL_NET_METER>
    <FL_PIPP>N</FL_PIPP>
    <CapStatus>GENT_PLUS_DMD</CapStatus>
    </AddressRec>
    Any help/guidance is greatly appreciated as I am a bit lost at the moment!

    This is just about the only support I have found on any MS site for this, but so far have been unable to resolve my issue.  Very frustrated as I have found a total 3 relevant articles via Google, they all mention each other as there seems to be no support
    for this dating back to around 2008 and the first few lines of the most helpful article that I have found (http://weblogs.asp.net/jezell/using-wcf-endpoints-with-sql-reporting-services)
    says this:
    Consuming WCF endpointpoints with SQL Reporting Services can be difficult. Most of this difficulty is for two reasons:
    1) SQL Reporting Services XML and web services support is slightly better than a piece of crap.
    2) Documentation for the XML query provider in SQL Reporting Services blows.

  • Cannot pass parameter to webservice using wsdl

    cannot pass parameter to webservice using wsdl
    I write code the following:
    step 1
    -->
    DECLARE
    SERVLET_NAME VARCHAR2(32) := 'orawsv';
    BEGIN
    DBMS_XDB.deleteServletMapping(SERVLET_NAME);
    DBMS_XDB.deleteServlet(SERVLET_NAME);
    DBMS_XDB.addServlet(NAME => SERVLET_NAME,
    LANGUAGE => 'C',
    DISPNAME => 'Oracle Query Web Service',
    DESCRIPT => 'Servlet for issuing queries as a Web Service',
    SCHEMA => 'XDB');
    DBMS_XDB.addServletSecRole(SERVNAME => SERVLET_NAME,
    ROLENAME => 'XDB_WEBSERVICES',
    ROLELINK => 'XDB_WEBSERVICES');
    DBMS_XDB.addServletMapping(PATTERN => '/orawsv/*',
    NAME => SERVLET_NAME);
    END;
    step 2
    --> CREATE USER test IDENTIFIED BY test QUOTA UNLIMITED ON users;
    step 3
    --> GRANT CONNECT,CREATE TABLE, CREATE PROCEDURE TO test;
    step 4
    --> GRANT XDB_WEBSERVICES TO test
    step 5
    --> GRANT XDB_WEBSERVICES_OVER_HTTP TO test
    step 6
    --> GRANT XDB_WEBSERVICES_WITH_PUBLIC TO test
    step 7
    -->
    SELECT dbms_xdb.getftpport() FROM dual;
    SELECT dbms_xdb.gethttpport() FROM dual;
    exec dbms_xdb.setHttpPort(8080);
    exec dbms_xdb.setFtpPort(2100);
    step 8
    -- Double check
    host lsnrctl STATUS
    SET head off
    -- Valid?
    SELECT * FROM dba_registry WHERE comp_id='XDB';
    SET head ON
    connect test/test;
    CREATE OR REPLACE FUNCTION FACTORIAL_I(N PLS_INTEGER)
    RETURN PLS_INTEGER
    IS
    n_result number;
    BEGIN
    IF N > 1 THEN
    n_result := N * FACTORIAL_I(N - 1);
    RETURN(n_result);
    ELSE
    RETURN(1);
    END IF;
    END;
    WSDL Output:
    http://localhost:8080/orawsv/TEST/FACTORIAL_I?wsdl
    output picture: http://www.picza.net/show.php?id=20120429vlxdlFdvFPdvF134795
    I try pass prameter by http://localhost:8080/orawsv/TEST/FACTORIAL_I?SBINARY_INTEGER-FACTORIAL_IInput=5
    but error <ErrorNumber>ORA-31011</ErrorNumber>
    Edited by: 930927 on 29 เม.ย. 2555, 9:02 น.

    Using something like SoapUI or do it via PL/SQL as shown here: Re: Ora-31011 with a very, very simple native webservice

  • How to read parameter in WebService

    hello, i am new to webservices and i want to pass a parameter to my webservice.
    i declared a parameter "myname" in my wsdd file:
    <deployment xmlns="http://xml.apache.org/axis/wsdd/"
        xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
      <service name="TestService" provider="java:RPC">
        <parameter name="className" value="testService.TestService"/>
        <parameter name="allowedMethods" value="*"/>
        <parameter name="myname" value="myvalue"/>
      </service>
    </deployment>how can i read this parameter in my webservice classes?

    Hi,
    Here is an incomplete answer for our problem that works for me, but is unfortunately not enough because it is not specific to one webservice but to the whole axis server...
    This is certainly not the official way to do it (don't even know if there is any one) but hey...
    Okay, you have first to open the web.xml file under the following directory on my computer, I let you find yours ;)
    C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\web.xml
    BEFORE any <servlet> tag, add this:
    <context-param>
       <param-name>myParamName</param-name>
       <param-value>myParamValue</param-value>
    </context-param>then in the java code, in the init function of the ServiceLifeCycle, use the context Object passed as parameter like this:
    import javax.servlet.ServletContext;
    import javax.xml.rpc.server.ServletEndpointContext;
    public void init(Object context){
    ServletContext sc = ((ServletEndpointContext)context).getServletContext();
    String myParamValue = sc.getInitParameter("myParamName");
    }There you go (works for me)!
    As I said, I really hope It is possible to specify such a parameter Value for a given webservice because currently this is a very global declaration and it is not easy to modify it. The best way of doing it would be to put the thing in the wsdd file!
    Hope that help!
    Don't hesitate to post anything new if you find something, that would help me too!

  • Pass search parameter to ResultSet iView.

    Hi,
    I am using standard MDM WebDynpro Components in which requirement is not to use Std. Search iView and pass search parameter say "xxxx" to Std. Result Set iView to show the result for "xxxx".
    Please let me know how shall I pass the value or default the search criteria in resultset
    - Akshay

    fine , but then ur record ids are selected based on a search parameter - isnt it ??
    how will then get the record ids , without knowing what to set
    you have to use search component here in the program  as a pre-requisite !
    this is like calling a webservice - with the java server down
    thanks
    -Adrivit

  • Pass a parameter from webi to Xcelsius

    Hi all,
    Anybody knows how to pass a parameter from a webi report to Xcelsius via URL?
    I need to refresh the Xcelsius data with a parameter coming from the webi report. With Live Office works but only the first time: the data is not being refreshed in Xcelsius everytime I change the parameter in the webi report.
    I'm thinking in someting like openDocument.jsp but how do I read this parameter in Xcelsius? Which connection should I use?
    Thank you very much,
    jon

    Hi Peter,
    the link provided refers to Xcelsius V4.5.
    In Xcelsius 2008 you have to control Flash Vars in the Data Manager.
    Go to the Data Manager, Add the Flash-Var Connection Type, Select CSV-FlashVar and define a name and a range.
    But i am not sure if Xcelsius Engage can handle FlashVars, because i am only working with Enterprise.
    Please take a look at your manual.
    For sure there are other ways to import data during runtime. Take a Look at the Connections provided by Data Manager. (e.g. QaaWS, SSRS, LiveOffice, Webservices, ...)
    Also take a look at the link below. It might be another nice option for "pseudo" data connectivity
    http://labs.businessobjects.com/xcelsiuspublishing/default.asp
    Best Regards
    Ulrich

  • Passing xml to rpc webservice

    We need to pass a fairly large xml file to our webservice. In the wsdl file we use anyType and the webservice method the parameter type is XmlObject. This seems to work except for the additional namespaces added as attributes to the first element. The parser does not like that. Any help or direction is much appreicated.
    thanks,
    Rick

    Anurag,
    I think I've sent the information as you requested, if you need more or are not
    able to help please let me know. I know you are busy and I do appreciate your
    help, and I will be patient, but if this is a dead end I need to know.
    thanks
    Rick
    "Rick" <[email protected]> wrote:
    >
    Anurag, Is there something else you need?
    thanks,
    Rick
    "Rick" <[email protected]> wrote:
    thanks Anurag,
    Not using a Service Control.
    Here is the contents of the jws file and instructions of how to reproduce
    the
    behavior:
    import weblogic.jws.control.JwsContext;
    import java.io.*;
    * @jws:protocol soap-style="rpc" http-xml="true"
    public class OmService
    implements com.bea.jws.WebService
    /** @jws:context */
    JwsContext context;
    * This is the default constructor.
    public OmService() {
    * @jws:operation
    public String submit(com.bea.xml.XmlObject clientXml) {
    return "result";
    Create a webservice application with the above code.
    Put a breakpoint on the retrun statement of the submit method.
    then select Debug -> Start, go to Test XML and enter <test> this isa
    test </test>
    between the clientXml tags.
    Hit submit
    On the breakpoint look at clientXml (XMLObject)
    <test xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:open="http://www.openuri.org/"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> this is
    a
    test </test>
    thanks again Anurag I apprecitae your time and effort
    Rick
    "Anurag" <[email protected]> wrote:
    Rick,
    Could you please attach a sample of the XML which is passed on to your
    webservice? Are you using a Service Control to invoke your webservice
    and
    passing an XmlObject to the service control?
    Regards,
    Anurag
    "Rick Nichols" <[email protected]> wrote in message
    news:[email protected]...
    We need to pass a fairly large xml file to our webservice. In thewsdl
    file we use anyType and the webservice method the parameter type is
    XmlObject. This seems to work except for the additional namespacesadded
    as
    attributes to the first element. The parser does not like that. Any
    help
    or direction is much appreicated.
    thanks,
    Rick

  • Unable to pass the parameter to other portlet

    Hi,
    I am trying to pass the parameter from one portlet to other portlet using the convention below...
    Example say you have two reports on a page dept and employee. You want to refresh employee report by clicking on
    the dept in the department report in the same page.
    (1) Create the first report based on the query
    SELECT htf.anchor('http://domain/servlet/page?&_pageid=97&_dad=portal_dad&_schema=portal_schema&_mode=3&dept_code='||DEPTNO,DEPTNO) Department,
    dname FROM scott.dept;
    (2) Create a 2nd report
    select * from EMP where DEPTNO = :dept_code
    (3) In the the additional pl/sql code section before display page on the 2nd report do this
    portal30.wwv_name_value.replace_value(
    l_arg_names, l_arg_values,
    p_reference_path||'.dept_code',portal30.wwv_standard_util.string_to_table2(nvl(get_value('dept_code'),10)));
    (4) Created a page and added these reports as portlets.
    In point (4) I am not getting the value of selected deptno in 'dept_code'. It is always taking the default value as '10'...
    I like to have the quick solution for this so that I can show the demo to my client...
    Thanks in Advance
    Sudheer

    Hi Ali,
    We can add parameterized queries to any TableAdapter (and controls to accept parameter values and execute the query) using the
    Search Criteria Builder Dialog Box. 
    For detail information, please refer to the following article to create a Windows Form to Search Data:
    http://technet.microsoft.com/en-us/library/hbsty6z7.aspx
    In addition, this issue is more related to Windows Form. I would suggest open a new thread in Windows Form forum if you have any more qestions:
    http://social.msdn.microsoft.com/Forums/windows/en-US/home?forum=winforms
    Regards, 
    Elvis Long
    TechNet Community Support

  • Web link to pass the parameter to custom web app then update the field

    Hi,
    I have created the web link in service request object to refer Account Object. I want to let user able to select the account from web link then base on the current SR no and account that have created update the record in CRMOD. My question is how to pass the parameter out to my external web app so that they can update my SR correctly?
    Thank you

    Hi Messer,
    I have put in the syntax as below :-
    https://secure-ausomxega.crmondemand.com/OnDemand/user/AssocAccountPopup?mapBC=Service+Request&OACTRL=Account&ophi=PopupNewForm.Account+Id&pfid=PopupNewForm&OMTHD=AssocPopup&OMTGT=PopupSearchList&assocInit=Y&opht=4&OAOBJ=Service+Request&mapField=Account&ophd=PopupNewForm.Account&ophpd=3&disableclear=Y&ophr=AssocAccountPopup&assocval=&ParentType=Edit
    This pop up screen wil let the user to select the account then i will pass the account and the SR to external web app to update back the CRMOD. I am not too sure the above syntax is correct or maybe can you give some example.
    I am new in CRMOD, hope that you can advice on this.
    Thank you,
    SK

  • How to pass date parameter from one page to other in BSP application

    Hello gurus,
    In my BSP application i have taken an input field and made its type "date" and its value also of type date and have set showhelp .
    Now once a particular date is given as an input i want to pass its value to next page. And in next page i have to fire a query based on the date entered in previous page...
    Now my prb is that my date value is not getting passed to the next page.
    I have used
    navigation->set_parameter( name = 'BEGDA' value = BEGDA ).
    to pass date parameter.....still parameter is not getting passed.
    plz help me with this.....
    thankx.....

    Hi Eddy,
    By truncation i mean the entire date becomes 10 char including the ' . ' eg(06.12.2006).
    so with begda being 8chars it takes my date as 06.12.200
    as a result my query is not getting executed.
    now i have tried to use a FM  'CONVERT_DATE_TO_INTERN_FORMAT'.
    in my 1st page but still in 2nd page its giving me following error.
    <b>The data that was read could not be written to the specified target field during a SELECT access. Either the conversion is not supported for the type of the target field, or the target field is too short to accept the value, or the data is not in the appropriateformat for the target field.
    </b>
    Regards
    Swati

  • How to pass the parameter of a stored procedure to iReport

    Hi... i don't know how to pass the parameter of the stored procedure to the iReport.
    In the Report Query, i tried
    1. sp_storedprocedure ' value'
    2. sp_storedprocedure +''''+$P{parameter}+''''+
    3. sp_storedprocedure +$V+$P{parameter}++$F($F is a variable having a value of ' (a single quote))may you enlighten us please? thank you

    For M$ SQL server I find that it only works when U use the fully qualified name...
    e.g. catalod.dbo.my_procedure_name 'variable'
    My full query in the Report Query window is something like this:
    EXEC arc.dbo.jasper_Invoice 1000
    Note that you may find that selecting from VIEWS / TABLES fails for no apparent reason and iReport will prompt you with the usual very unhelpful (we have what we "pay" for) prompt, stating that "The document is empty".
    To work around this issue, where a statement like "SELECT * FROM arc.dbo.acc_invoices WHERE Invoice_id=1000" does not work, simply create a PROC, something like:
    CREATE PROC jasper_MyProc (@my_rec_id integer) AS
    SELECT * FROM arc.dbo.acc_invoices WHERE Invoice_id= @my_rec_id integer
    ...to wrap your SELECT statement, then call the PROC
    Edited by: Sylinsr on Apr 22, 2008 4:23 PM

  • Passing one parameter to multiple views

    Is this possible?  I would like to pass one parameter, a date field, to multiple views.  I cannot use it in the record selection, because my views do a mathematical computation which returns a single value, but I only want to select the data for a single day. 
    The problem is that there are several views and I do not want to have to enter the date parameter a dozen times.

    Try to use add command and write the query like this
    select * from view where datefield={?date}
    also create another add command for the other view
    select * from view2 where datefield2={?date}
    for all the queries create the same parameter with the name {?date}
    Regards,
    Raghavendra

  • How to pass Cascading Parameter in SSRS using Java

    How to pass Cascading Parameter in SSRS using Java---
    We are having a problem with dependent parameters.There are three drop down--
    1.first dropdown is of Country.When we select a country--Accordingly next dropdown(State)will populate
    2.Second dropdown is of State. When we select a state--Accordingly next dropdown(City)will populate.
    I have three data sources are
    CountryList-
    SELECT CountryRegionCode, Name
    FROM Person.CountryRegion
    ORDER BY Name
    StateList
    SELECT StateProvinceID, StateProvinceCode, CountryRegionCode
    FROM Person.StateProvince
    WHERE CountryRegionCode = @CountryRegionCode
    ORDER BY StateProvinceCode
    CityList
    SELECT StateProvinceID, City
    FROM Person.Address
    GROUP BY StateProvinceID, City
    HAVING (StateProvinceID = @StateProvinceID)
    ORDER BY City
    Ihave to show report that has been deployed on server on the besis of these parameters
    I am using ReportViewer in JSP Page through url--
    http://192.168.90.149/ReportServer/Pages/ReportViewer.aspx?%2fReport+Project1%2fCascading_Parameters&rs:Command=Render&rs:parameter=true&Country="+Country+"&State="+State;
    But it is not accepting parameter if they are cascaded.It is working fine if Both parameters are independent.
    Edited by: kaushlee on May 11, 2010 9:22 PM

    Take a look at set_custom_property:
    public static final ID SETTEXT = ID.registerProperty("SETTEXT");
    public boolean setProperty(ID pid, Object value)
        if (pid == SETTEXT)
    String text = value.toString();
    and in forms
    set_custom_property('beans.bean_item', 1, 'SETTEXT', 'some text');
    cheers

  • Passing query parameter through xcelsius 2011 at run time

    I am using reporting service as a web connectivity and I am trying to pass the query parameter at run time from the dashboard. While executing the xcelsius at first time it is working well with the default value but after passing the parameter from combo box, the data is not loading. It is not returning anything except the field name.
    I am new to this xcelsius. Your help will be really appreciated.
    Thanks.

    Hi,
    if you do the following thing,i think it may be helpfull,
    First select Data in menubar>Connection->select required connection>select the useage option in connection definition window>give  trigger cell value as combo box destination cell.
    Thanks,
    Ramana

Maybe you are looking for