Parameter Mashup Webservice

Hi all,
I am currentyl facing a minor issue in one of my mashup webservices.
I created a mashup webservice to consume one of bing maps geocoding rest services. This rest service returns the coordinations of a provided location.
When I provide my service with only one parameter, for example "Walldorf" (https://dev.virtualearth.net/REST/v1/Locations/Walldorf), I get a valid json file with the coordinates. But when I provide instead of only one parameter two, for example Walldorf%20Deutschland (https://dev.virtualearth.net/REST/v1/Locations/Walldorf%20Deutschland), I get errors and I don't know why. I also tested the url with the chrome add-on postman and there it was working.
So I am now assuming that the "%" is not being interpreted as a character but rather as modulo function. Maybe anyone of you guys know how to solve this problem.
Best regards,
Jan-Thomas

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

Similar Messages

  • 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!

  • Error while passing non built in java type as parameter to webservice

    Hi,
    I am using Weblogic8.1 to deploy my webservice. I have designed Dynamic Proxy client to invoke my webservice. While calling webservice, i am passing array of my POJO class as an input parameter to my webservice and getting below error -
    [java] java.lang.reflect.UndeclaredThrowableException
    [java] at $Proxy0.lookup(Unknown Source)
    [java] at cititru.scan.transScan.createGiService(transScan.java:64)
    [java] at cititru.scan.transScan.main(transScan.java:26)
    [java] Caused by: java.rmi.RemoteException: Failed to invoke; nested exception is:
    [java] javax.xml.rpc.JAXRPCException: web service invoke failed: javax.xml.soap.SOAPException: failed to serialize class [Lcititru.api.interdict.gi.ScannedTextData;weblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=class [Lcititru.api.interdict.gi.ScannedTextData; class context=TypedClassContext{schemaType=['java:cititru.api.interdict.gi']:ArrayOfScannedTextData}
    [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    [java] at weblogic.webservice.core.rpc.StubImpl.throwRemoteException(StubImpl.java:266)
    [java] at weblogic.webservice.core.rpc.StubImpl.invoke(StubImpl.java:251)
    [java] ... 3 more
    In above error message ScannedTextData is my POJO class which i am passing as an array to my webservice.I am using servicegen and clientgen ant task to generate my service. Also i am setting generateTypes=True to generate Serialization class automatically. Please anyone can tell me what's need to be done to resolve the above error.
    I am also pasting code snippet of my Dynamic Proxy client.
    import javax.xml.namespace.QName;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.encoding.TypeMappingRegistry;
    import javax.xml.rpc.encoding.TypeMapping;
    import java.net.URL;
    import java.util.StringTokenizer;
    import java.util.ArrayList;
    import cititru.api.interdict.gi.*;*
    *import cititru.interdict.gi.*;
    String wsdlURL = "http://localhost:7001/ws_gi_server/GiService?WSDL";
    String namespace = "http://www.bea.com/ws_gi_server";
    String serviceName = "GiService";
    String portName = "GiServicePort";
    ServiceFactory serviceFactory = ServiceFactory.newInstance();
    QName service_Name = new QName(namespace, serviceName);
    Service sampleService = serviceFactory.createService(new URL(wsdlURL), service_Name);
    TypeMappingRegistry tmr = sampleService.getTypeMappingRegistry();
    TypeMapping tm = (TypeMapping)tmr.createTypeMapping();
    tm.register(ScannedTextData.class, service_Name, new ScannedTextDataCodec(), new ScannedTextDataCodec());
    /* Service access */*
    *GiServerInterface gi = (GiServerInterface) sampleService.getPort(new QName(namespace, portName),*
    *GiServerInterface.class);*
    */* Service invocation */
    bluReplyData = gi.lookup("MUMBAI",ruleSet,"EXECUTOR1",std);-----
    Regards,
    Ankit

    Hi,
    I am using Weblogic8.1 to deploy my webservice. I have designed Dynamic Proxy client to invoke my webservice. While calling webservice, i am passing array of my POJO class as an input parameter to my webservice and getting below error -
    [java] java.lang.reflect.UndeclaredThrowableException
    [java] at $Proxy0.lookup(Unknown Source)
    [java] at cititru.scan.transScan.createGiService(transScan.java:64)
    [java] at cititru.scan.transScan.main(transScan.java:26)
    [java] Caused by: java.rmi.RemoteException: Failed to invoke; nested exception is:
    [java] javax.xml.rpc.JAXRPCException: web service invoke failed: javax.xml.soap.SOAPException: failed to serialize class [Lcititru.api.interdict.gi.ScannedTextData;weblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=class [Lcititru.api.interdict.gi.ScannedTextData; class context=TypedClassContext{schemaType=['java:cititru.api.interdict.gi']:ArrayOfScannedTextData}
    [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    [java] at weblogic.webservice.core.rpc.StubImpl.throwRemoteException(StubImpl.java:266)
    [java] at weblogic.webservice.core.rpc.StubImpl.invoke(StubImpl.java:251)
    [java] ... 3 more
    In above error message ScannedTextData is my POJO class which i am passing as an array to my webservice.I am using servicegen and clientgen ant task to generate my service. Also i am setting generateTypes=True to generate Serialization class automatically. Please anyone can tell me what's need to be done to resolve the above error.
    I am also pasting code snippet of my Dynamic Proxy client.
    import javax.xml.namespace.QName;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.encoding.TypeMappingRegistry;
    import javax.xml.rpc.encoding.TypeMapping;
    import java.net.URL;
    import java.util.StringTokenizer;
    import java.util.ArrayList;
    import cititru.api.interdict.gi.*;*
    *import cititru.interdict.gi.*;
    String wsdlURL = "http://localhost:7001/ws_gi_server/GiService?WSDL";
    String namespace = "http://www.bea.com/ws_gi_server";
    String serviceName = "GiService";
    String portName = "GiServicePort";
    ServiceFactory serviceFactory = ServiceFactory.newInstance();
    QName service_Name = new QName(namespace, serviceName);
    Service sampleService = serviceFactory.createService(new URL(wsdlURL), service_Name);
    TypeMappingRegistry tmr = sampleService.getTypeMappingRegistry();
    TypeMapping tm = (TypeMapping)tmr.createTypeMapping();
    tm.register(ScannedTextData.class, service_Name, new ScannedTextDataCodec(), new ScannedTextDataCodec());
    /* Service access */*
    *GiServerInterface gi = (GiServerInterface) sampleService.getPort(new QName(namespace, portName),*
    *GiServerInterface.class);*
    */* Service invocation */
    bluReplyData = gi.lookup("MUMBAI",ruleSet,"EXECUTOR1",std);-----
    Regards,
    Ankit

  • Pass parameter to WebService call

    Hi all,
    I would like to do the same thing defined in the documention for SQLQueries but for WSDL data source
    I havew created a parameter MyParam, and I triy to add the parameter to the WSDL param with :: :MyParam
    But it doesnt works.
    Thanks.

    ChitWooi, I created a list that holds all necessary configurations just like a parameter file, and passed the list to the webservice call to invoke the workflow. See example below. Example: list[0].Name = 'Parameter Name';list[0].Value = 'Value';list[0].Scope = 'Scope'; Thanks,Eric

  • Start Runbook with Parameter over Webservice with JSON / Jquery / Javascript

    Hi i try to figure out to add a Job to the Webservice with JQuery/Json to the Webservice
    The follow i have:
    I tryed it with Various things, but i cannot get it to work, there must be something special about the Parameter Node, someone got an Idea or an working sample?
    var paramJson = {
    "Data": {
    "Parameter":{
    "ID": "8665b6e6-acea-498f-ac35-5c239a0c1023", "Value": "Test"
    var paramJsonWithoutData = {
    "Parameter": {
    "ID": "8665b6e6-acea-498f-ac35-5c239a0c1023", "Value": "Test"
    var paramString = "&lt;Data&gt;&lt;Parameter&gt;&lt;Name&gt;Username&lt;/Name&gt;&lt;ID&gt;{8665b6e6-acea-498f-ac35-5c239a0c1023}&lt;/ID&gt;&lt;Value&gt;tester&lt;/Value&gt;&lt;/Parameter&gt;&lt;/Data&gt;";
    var paramXML = "<Data><Parameter><ID>8665b6e6-acea-498f-ac35-5c239a0c1023</ID><Value>Tester</Value></Parameter></Data>";
    //var stringParamData = JSON.stringify(jsonRBID);
    var jsonData = { "RunbookId": runbookId, "Parameters": paramXML };
    //var jsonData = { "RunbookId": runbookId, "Parameters": "<![CDATA['&lt;Data&gt;&lt;Parameter&gt;&lt;Name&gt;Username&lt;/Name&gt;&lt;ID&gt;{8665b6e6-acea-498f-ac35-5c239a0c1023}&lt;/ID&gt;&lt;Value&gt;tester&lt;/Value&gt;&lt;/Parameter&gt;&lt;/Data&gt;]]>" };
    var datastring = JSON.stringify(paramJsonWithoutData);
    var orchurl = GetOrchURL(server) + "Jobs";
    $.ajax({
    url: orchurl,
    async: false,
    contentType: "application/json; charset=utf-8",
    type: "POST",
    data: datastring,
    dataType: 'json',
    success: function (json) {
    JobID = json.d.results[0].Value;
    error: function (json) {
    alert(datastring + " || " + json.responseText);
    Its the ghost in the machine how dont let me go in vadication :-)

    Here is my new Test Script but still not working
    I writed the Response for Each Parameter in Comment Above.
    Maybe we can Check this out and i write a jquery  ODATA wrapper class then :-)
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <script src="script/jquery-1.4.4.js" type="text/javascript"></script>
    <script src="script/date.js" type="text/javascript"></script>
    <title></title>
    <script type="text/javascript">
    $(document).ready(function () {
    //Response An Error occured while processing this request
    var paramXML = "<Data><Parameter><ID>8665b6e6-acea-498f-ac35-5c239a0c1023</ID><Name>Username</Name><Value>Tester</Value></Parameter></Data>";
    //Response An Error occured while processing this request
    var paramXML2 = "<Data><Parameter><ID>8665b6e6-acea-498f-ac35-5c239a0c1023</ID><Value>Tester</Value></Parameter></Data>";
    //Job parameter not in expected format. <Data><Parameter><ID></ID><Value><Value></Parameter><Parameter><ID></ID><Value></Value></Parameter></Data>
    //So Somethings Works here with the CDATA Tag or it not Works and it is invalid Datan and the other 2 XML requests look good
    var paramXML3 = "<![CDATA[<Data><Parameter><ID>8665b6e6-acea-498f-ac35-5c239a0c1023</ID><Value>Tester</Value></Parameter></Data>]]>";
    //Job parameter not in expected format. <Data><Parameter><ID></ID><Value><Value></Parameter><Parameter><ID></ID><Value></Value></Parameter></Data>
    var paramString = "&lt;Data&gt;&lt;Parameter&gt;&lt;Name&gt;Username&lt;/Name&gt;&lt;ID&gt;8665b6e6-acea-498f-ac35-5c239a0c1023&lt;/ID&gt;&lt;Value&gt;tester&lt;/Value&gt;&lt;/Parameter&gt;&lt;/Data&gt;";
    //Job parameter not in expected format. <Data><Parameter><ID></ID><Value><Value></Parameter><Parameter><ID></ID><Value></Value></Parameter></Data>
    var paramString2 = "&lt;Data&gt;&lt;Parameter&gt;&lt;ID&gt;{8665b6e6-acea-498f-ac35-5c239a0c1023}&lt;/ID&gt;&lt;Value&gt;tester&lt;/Value&gt;&lt;/Parameter&gt;&lt;/Data&gt;";
    //Job parameter not in expected format. <Data><Parameter><ID></ID><Value><Value></Parameter><Parameter><ID></ID><Value></Value></Parameter></Data>
    var paramString3 = "<![CDATA[&lt;Data&gt;&lt;Parameter&gt;&lt;ID&gt;{8665b6e6-acea-498f-ac35-5c239a0c1023}&lt;/ID&gt;&lt;Value&gt;tester&lt;/Value&gt;&lt;/Parameter&gt;&lt;/Data&gt;]]>";
    var paramJsonShort = {
    "RunbookId": "c979eb39-3b00-481c-881b-20ab1ba1e081",
    "RunbookServerId": "76bac998-57ec-4246-8efa-a4aac43ae3b2",
    "Parameters": paramString3
    var JobID;
    var datastring = JSON.stringify(paramJsonShort);
    var orchurl = "http://<enter_server_here>:81/Orchestrator2012/Orchestrator.svc/Jobs";
    $.ajax({
    url: orchurl,
    async: false,
    contentType: "application/json; charset=utf-8",
    type: "POST",
    data: datastring,
    dataType: 'json',
    success: function (json) {
    JobID = json.d.results[0].Value;
    alert(JobID);
    error: function (json) {
    alert(datastring + " || " + json.responseText);
    </script>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    Nothing to see Here
    </div>
    </form>
    </body>
    </html>
    Its the ghost in the machine how dont let me go in vadication :-)

  • 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.

  • Calling a webservices method, paramaters are not pass correctly

    Hi, I would like a Eclipse's MedRec tutorial...All project build, compil, deploy correctly.
    When I invoke the "public PatientWS findPatientBySsn(String pId): ---> parameter "888888888" " Webservice's method from the WBL8.1 amin console, all is working correctly: it response me Patient[Id: 105 |...
    But the same thing, call from the PhysicianWebApp, the webservices paramter invocation is NULL? I don't understan why!
    standalone trace fromm admin console:
    **********************************************************15:17:57,102 MedRecWebServicesEJB INFO executeThread:
    '14' for queue
    : 'weblogic.kernel.Default' - Finding patient by ssn.
    03/01/2006 15:17:57,112 MedRecWebServicesEJB DEBUG ExecuteThread: '14' for queue
    : 'weblogic.kernel.Default' - SSN: 888888888
    paramater invocation trace from PhysicianWebApp
    03/01/2006 15:23:02,040 MedRecWebServicesEJB DEBUG ExecuteThread: '14' for queue
    : 'weblogic.kernel.Default' - <b>SSN: null</b>
    03/01/2006 15:23:02,040 PatientSessionEJB DEBUG ExecuteThread: '14' for queue: '
    weblogic.kernel.Default' - SSN: null
    Thank                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I find the solution, it was webServicesEjb_client.jar file problem. I use in the physicianEar.ear the jar providing from the tutorial!
    When I generate my own webServicesEjb_client.jar and place it in the ear, it's all right!
    For generate this librairie look at:
    -->Tutorial 12-Procedure 1-step3
    Personnal I add to my ant build.xml script:
    <target name="build.ws.client">
         <clientgen
         wsdl="http://localhost:7101/ws_medrec/MedRecWebServices?WSDL"
         packageName="com.bea.medrec.webservices"
         keepGenerated="true"
                   clientjar="./deploy/webServicesEjb_client.jar" />
         </target>
    Thank a lot Stef-âne

  • Problem in passing xstring data from abap to webservice method.

    Hi,
    I want to upload the document from ABAP to Microsoft SharePoint. So for that i have created the webservice in .net for uploading the document in SharePoint.
    Now in Abap i have consumed this service by creating proxy class. The web service has one method as Upload_File which takes byte[] as paramerter, so in wsdl file this parameter get converted into s:base64Binary and in abap it get converted into RAWSTRING.
    Now, when i try to upload the file with very small content (less than 54 character mean the rawstring variable which contain the file content has length less than 108 ), file gets uploaded with no problem, but when the file has content more than 54 character, it give error like "SOAP:1.032 SRT: Wrong Content-Type and empty HTTP-Body received"
    And also one thing when i have created the proxy class it gives warning that "The XSD type base64Binary does not exactly correspond to the ABAP type RAWSTRING"
    What can be the problem? how to pass file content to external web service?
    Thanks,
    Vikram

    Hi Nick,
    Yes, when i declare the data type as string in XSD it get converted into xsd:string.
    I have already tried using String as parameter in WebService method instead of byte[].
    But then in .Net, I need to write some code for converting the string variable ( which content the file content in hexadecimal format) into byte array and for that there is a method provided by .Net framework but when I use it, it write the hexadecimal content in file.
    So I have written my own code for converting hexadecimal content which string variable content to byte array.
    By doing this, it working fine and all type of file getting uploaded in SharePoint but when I try to open the file only .TXT file get open properly and other type of file give me some error.

  • Hoe to pass object as a parameter thru webSerive

    I need to pass Object as a parameter to web service:
    example:
    public calss returnCodes{
    int ret_code;
    String ret_string;
    public retrunCodes(int ret_code, String ret_string){
    this.ret_code = ret_code;
    this.ret_string = ret_string;
    public int getret_code()
    return this.ret_code;
    public String getret_string {
    return this,ret_string
    and other repc holder class to hold returnCodes
    public class retrunCodesHolder implents javax.xml.rpc.Holder
    returnCode value;
    pubic returnCodesHolder(){
    public returnCodesHolder(returnCodes value) {
    this.value = value;
    In Webservice I use returnCodesHolder as parameter.
    WebService getReturnCodesWs I have
    returnCodes retCodes = new returnCodes(04,"Good return code)
    returnCodesHolder retholder = new returnCodesHolder(retCodes)
    return myString;
    When I am calling above webService in servlet I have code:
    org.test.mytest.returnCodesHolder retHolder = new org.test.mytest.returnCodesHolder();
    String result = port.getReturnCodesWs(retHolder);
    How to I access /get values of returnCodes class in my calling servlet?
    I am using Tomcat v 6.0

    I believe (although have never used, so if I'm wrong,
    correct me please!) you can do it with implicit
    dynamic cursors, such as:
    For rec in 'select col1, col2 from table 1 '||lstr
    loop
    Not really:
    michaels>  declare
       lstr   varchar2 (30) := ' where empno = 7788';
    begin
       for rec in 'select * from emp e ' || lstr
       loop
          null;
       end loop;
    end;
    Error at line 1
    ORA-06550: line 5, column 4:
    PLS-00103: Encountered the symbol "LOOP" when expecting one of the following:
       . ( * @ % & - + / at mod remainder rem .. <an exponent (**)>
       ||

  • Error while calling webservice in flex

    Hi,
    I have done one sample application like adding the 2 no. But
    i dont know how to pass the parameter from webservice to flex. I
    have attached my code here. Plz reply.Its showing the error as
    Required parameter 'a' not found in input arguments."

    add this to get your reply from web service.
    private function
    configureListeners(dispatcher:IEventDispatcher):void {
    // Override xml socket event listeners with custom functions
    // Reference the XML Socket API for Event descritpions
    xml_s.addEventListener(Event.CLOSE, onClose);
    xml_s.addEventListener(Event.CONNECT, onConnect);
    xml_s.addEventListener(DataEvent.DATA, onData);
    xml_s.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
    xml_s.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    onSecurityError);
    // below is where you will receive your results from the web
    service
    public function onData(event:DataEvent):void
    // do something with data
    // i.e. indata.text = event.text;

  • Timeout problems with Webservices

    Hi,
    I'm facing problems with the timeout parameter("weblogic.webservice.rpc.timeoutsecs"). It seems that the timeout is not working and i got stuck threads in my Weblogic Queue.
    has anyone benn through a similar situation?
    Thanks in Advance
    Erick Akamine

    System.setProperty("weblogic.webservice.UseWebLogicURLStreamHandler","true");
    // create a call instance
    ((weblogic.webservice.core.rpc.CallImpl) myCallInstance).setProperty("weblogic.webservice.rpc.timeoutsecs", "1");
    //check the parameters names
    ((weblogic.webservice.core.rpc.CallImpl) myCallInstance).getParameterNames();

  • Generating Webservices from PL/SQL Problem

    Hello,
    when I try to automatically generate a webservice from my pl/sql package, I cannot choose a specific procedure.
    The "why not" button tells me, that there is no xml schema mapping or serializer available.
    my question:
    The pl/sql procedures output parameter are tables, like:
    Spec:
    TYPE my_type IS TABLE OF t_my_table.id%TYPE
    INDEX BY NATURAL;
    Body:
    procedure .... (
    out_param OUT my_type;
    Is it generally possible to autogenerate this kind of output parameter as webservice or have I missed something ?
    Do I have to use java instead ?
    Thank you for your help,
    Frank

    Hi,
    Within the package dbms_xmlquery there is a procedure called setDateFormat which you can use to set a format mask.
    But the format mask must be one recognised by the java.text.SimpleDateFormat class. an example would be.
    dbms_xmlquery.setDateFormat(lc_xmlgen_contex, 'dd.MM. yyyy');
    Hope this helps

  • ALBPM Webservice timeout

    {color:#999999}Hi Blazers,
    in ALBPM 6.04 on WLS9.2, I would like to to set the WebService Timeout.
    I have tried to set the parameter -Dfuego.webservices.timeout=300 as startup ARGUMENTS of WLS Server.
    But it didn't work. I got timeout error after only 1 minute.
    Someone has alredy done?
    Thanks
    Marco{color}

    Hi,
    I had the same problem look this :
    Web services access timeout is not configurable. System property 'fuego.webservices.timeout' can be used to set it (value in seconds). Default timeout is 60sec. (Issue #25878)
    Version :
    AquaLogic BPM 6.0 MP 4 build #88762
    in link : http://albpmsupport.bea.com/Download/v60/mp4/Release_Notes_BEA_AquaLogic_BPM_6-0-4_HF.htm
    after test in version 6.0.4, worked fine.

  • Web service XML-Java conversion

    Hello,
    It's said in BEA documentation that "web services tries to convert the XML
    data inside the body of the SOAP message into one of the Java data types
    listed
    in "Supported Data Type...." see link for quote source.
    Does this mean, BEA SOAP servlet does javaBean serialization/deserialization
    automaticly
    without user defining any data type mapping ?
    in Apache SOAP implementation, user has to add a mapping element to specify
    how SOAP
    server should handle custom parameters such as a java object.
    http://edocs.bea.com/wls/docs61/webServices/develop.html#1049481
    ur prompt response is most appreciated.
    thank you and regards.
    Sheldon Yang

    marekst wrote:
    webservice receives xml data as parameter or webservice use SOAP XML letter to receive data?
    if you get xml as parameter then you have to process XML to get java objects, if it is SOAP letter, then webservice has done job for you and you get set of java objects that should be persisted.
    To persist data easiest way is to use EJB 3.0 and JPA. Webservice create using EJB 3.0 is easy as well.
    to convert data in XML into java objects you can use DOM document + xPath or http://commons.apache.org/digester/ or something else, depending on size of XML doc
    No need to be muddying the waters with such a heavyweight solution at this point. The guy's a relative newbie, and also has stated that the number of messages is very small. The simple APIs suggested above are much more in order, otherwise the guy's got a massive learning curve ahead of him, for no real benefit. Besides, you've not mentioned ESBs, message routing, EIP and the like, so your buzzword-compliance score has dropped dramatically :-)

Maybe you are looking for

  • Accessing Data Warehouse with HTML DB

    I have a test data warehouse database 10g comprising of seven dimension tables and one fact table. When I access one table at a time, the query runs fine, but when I join two dimension tables or more to the fact table, the result set comes out wrong.

  • Reading of VIDEO_TS files in MacOSx??

    Hi, is there any program out there for mac which allows the viewing of videos for VIDEO_TS folder's files (Extracted directly from DVD movies).... I am hoping not to do any conversion to other format at all. I understand that windows windows media pl

  • Why do I get "Import Errors"?

    I just shot 16 clips with my Canon HD camcorder (AVCHD). I put the memory card in my desktop computer (Windows7) after I had PrE11 running. Then I clicked Video Editor/New Project/Videos from Flip cameras, AVCHD cameras. I saw all my clips and I clic

  • PDF generation for Non English Characters from ADF

    Hi We are using below piece of code to generate pdf from ADF Managed bean. It works fine. However for non English Characters(eg. Japanese,Vietnamese,Arabic)  it puts I got few blogs https://blogs.oracle.com/BIDeveloper/entry/non-english_characters_ap

  • Anyone else having they're notifications repeated?

    So far I've noticed it happening with Instagram, Mailbox and Facebook. 90% of them come form IG, and only once has it happened with the others. It's only been going on for about 3 weeks. All my apps are up-to date. With Instagram, a single 'like' or