Conversion string base64 using the WebService

Hi all

Calling a Web service that accepts a base64 value and returns a result of base64. We have a text box where users can enter freetext, but before the web service is called, I need to convert the string to base64. And vice versa on the return parameter, I need to convert base64 to string before be displayed on the page APEX. Any suggestions on how I can do this? I'm writing this question in the right forum?

Thanks for your help! :)

Published by: user561559 on May 11, 2009 11:32

Hello

Check it out [UTL_ENCODE | http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_encode.htm] package. He'll probably have what you need.

-Jennifer

Tags: Database

Similar Questions

  • using the Webservices primavera createProject function

    Hello

    I'm trying to make the integration between primavera and unifier via webservices

    I use Eclipse IDE to call the function of these two Web application services.

    To unify webservices, I added a client in Eclipse and I used the function getProjectshellLIst in which I give the parameters and get the result in XML format

    but the issue I'm facing is when I try to use the function createProject primavera in Eclipse
    It asks me createProjects (createProjects16) which is a class, but I don't know where I should give the required parameters so that the project is created in the primavera

    Please help me with it or provide another option, that I can use to integrate them using webservices

    Hi, I tried your code and code below works for me;

    Please do not forget to sheck P6 Web service settings: http://host:port/p6/admin.jsp

    Demo.Java

    package com.prm;

    to import java.net.MalformedURLException;

    import java.net.URL;

    import java.util.ArrayList;

    import java.util.HashMap;

    import java.util.List;

    import java.util.Map;

    Import org.apache.cxf.frontend.ClientProxy;

    Import org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor;

    Import org.apache.ws.security.WSConstants;

    Import org.apache.ws.security.handler.WSHandlerConstants;

    import com.primavera.ws.p6.activity.Activity;

    import com.primavera.ws.p6.activity.ActivityFieldType;

    import com.primavera.ws.p6.activity.ActivityPortType;

    import com.primavera.ws.p6.activity.ActivityService;

    import com.primavera.ws.p6.activity.IntegrationFault;

    public class Demo {}

    Public Shared Sub main (String [] args) throws IntegrationFault, MalformedURLException {}

    WsdlURL URL = new URL ("http://Host" + ACTIVITY_SERVICE);

    ActivityService service = new ActivityService (wsdlURL);

    ActivityPortType port = service.getActivityPort ();

    customer org.apache.cxf.endpoint.Client = ClientProxy.getClient (port);

    org.apache.cxf.endpoint.Endpoint cxfEndpoint = client.getEndpoint ();

    Map: outProps = new HashMap();

    outProps.put (WSHandlerConstants.ACTION, "UsernameToken Timestamp");

    outProps.put (WSHandlerConstants.USER, "admin");

    outProps.put (WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_TEXT);

    outProps.put (WSHandlerConstants.USERNAME_TOKEN, ClientPasswordCallback.class.getName ());

    outProps.put (WSHandlerConstants.PW_CALLBACK_CLASS, ClientPasswordCallback.class.getName ());

    Set the properties on the interceptor

    WSS4JOutInterceptor wssOut = new WSS4JOutInterceptor (outProps);

    cxfEndpoint.getOutInterceptors () .add (wssOut);

    List listechamps = new ArrayList();

    fieldList.add (ActivityFieldType.fromValue ("Id"));

    fieldList.add (ActivityFieldType.fromValue ("RemainingDuration"));

    String filter = "Id = 'A1000" ";

    List actList = port.readActivities (filter, fieldList, null);

    for (activity Act: actList) {}

    System.out.println ("Activity ObjectId Is" + act.getObjectId ());

    System.out.println ("Activity RemainingDuration is" + act.getRemainingDuration () .getValue ());

    }

    }

    public static final String ACTIVITY_SERVICE = "/ p6ws/services/ActivityService? WSDL ";

    }

    ClientPasswordCallback.java

    package com.prm;

    import java.io.IOException;

    javax.security.auth.callback.Callback import;

    javax.security.auth.callback.CallbackHandler import;

    Import javax.security.auth.callback.UnsupportedCallbackException;

    Import org.apache.ws.security.WSPasswordCallback;

    / public class ClientPasswordCallback implements CallbackHandler {}

    @Override

    public void handle (callback [] arg0) survey IOException,

    {UnsupportedCallbackException}

    PC WSPasswordCallback (WSPasswordCallback) = arg0 [0];

    pc.setPassword ("passwd");

    }

    }

  • How to use the webservice when I or tcp/ip and wifi?

    I ran this code on my application for BIS, if possible tcp/ip or wifi connection...

    but it always give me null in the conDescriptor

    This is the cod

    int [] preferredTransportTypes = {TransportInfo.TRANSPORT_TCP_WIFI, TransportInfo.TRANSPORT_BIS_B};

    ConnectionFactory factory = new ConnectionFactory();

    factory.setPreferredTransportTypes (preferredTransportTypes);

    ConnectionDescriptor conDescriptor = factory.getConnection (url);

    If (conDescriptor! = null) {/ / connection managed}

    int transportUsed = conDescriptor.getTransportDescriptor () .getTransportType ();

    Conn = conDescriptor.getConnection () (HttpConnection);
    Logger.getInstance () .logInformationEvent ("transport" + transportUsed);

    } else {}
    Full book sb = ServiceBook.getSB ();
    Reviews [] ServiceRecord = sb.findRecordsByCid ("IPPP");
    for (int i = 0; i)< records.length;="" i++)="">

    If (records [i] .isValid () &! records [i] .isDisabled ()) {}
    URL += "& foo = true; deviceside = true; » ;
    }
    }
    URL = HTTPConnections.getUrl (url);
             
    Conn = getHttpConnection (url);

    }

    I've never used the api network in blackberry and AFAIK BIS is available on all blackberry devices.

    It shud work...

    What shud I do when I'm neither tcp/ip and wifi?

    Thanks to advanice

    BIS - B is a particular link, you need additional code to support, you will know if you are a member of the Alliance or use the Api to push.  Otherwise, it is not available to you.  You should try WQAP or direct TCP.

    See this video which should explain the options.  Then change your favorite types to include TCP, and WAP support.

    http://supportforums.BlackBerry.com/T5/Java-development/networking-transports-II/Ta-p/446742

  • How to check the windows build the string by using the registry on windows 7?

    I would like to get my rope of construction of windows 7 Windows in the registry, can someone tell me where is it located? Thank you.

    Take a look at this place: HKLM\SOFTWARE\Microsoft\DataAccess\Version

    You may also save this code as a .vbs file. When you double-click it, and then you get some numbers you are after. What do you really want to?

    Set oWMIService = GetObject("winmgmts:\\.\root\CIMV2")
    Define cItems = oWMIService.ExecQuery ("" SELECT * FROM Win32_OperatingSystem ", 48")
    sResultat = «»
    For each oItem in cItems
    sResultat = sResultat & "Version:"& oItem.Version & \n ".
    sResultat = sResultat & "SerialNumber:"& oItem.SerialNumber & \n ".
    sResultat = sResultat & "BuildNumber:"& oItem.BuildNumber & \n ".
    sResultat = sResultat & "caption:"& oItem.Caption & \n ".
    sResultat = sResultat & "OSProductSuite:"& oItem.OSProductSuite. "
    Next
    MsgBox sResultat

  • Get transcript of discussion on the WebServices API CCA?

    Hello

    When you use the WebServices API against the ACC (Contact Center Anywhere) it means this method:
    IInteractions.getHistory (String sessionId, String sInteractionId)
    where a kind of event history can be retrieved.

    But how to find messages of real discussion for this interaction?

    Or they are only sent to the FTP server?

    Thank you
    Lucas

    Try:

    Interactions.WSDL

    getMediaFile

  • ADF/authentication to connect using the security of ADF (with Page of custom Login)

    Hi all!

    I am trying to achieve a simple project where I need my Application users to open a session before access to these pages in the application.

    I found some tutorials, but most of them manually added user security, and I need them to be ONLY on the database, because I use a Web service to retrieve the data.

    Here is my business needs:

    • Create a custom Login page, requesting identification by name of user and password information
    • Extract data using the Webservice (this part is done)
    • If the data matches a Session must be opened.
    • Some data user as username, preferences... must be registered on a SessionBean
    • The session must be opened up to disconnection of the user or the timeout.

    Any tips/advice on how to set up the login page and follow the data Session and status?

    PS: Using jdev 12 c


    Best regards

    Luis Cabaco

    You can enable the ADF security in your application and configure the authenticator RDBMS on WLS.

    http://Biemond.blogspot.BA/2008/12/using-database-tables-as-authentication.html

    For the custom login page, see: https://docs.oracle.com/middleware/1213/adf/develop/adf-web-securing.htm#ADFFD2008

    Dario

  • How to use the query xml in as3

    What follows is the result of the motion preset xml export.

    < motion duration = "1" xmlns="fl.motion. * ' xmlns:geom=" flash.geom. * ' xmlns:filters="flash.filters. * '>

    < source >

      < source frameRate = "24" x="449.5" y="138.55" scaleX="1" scaleY="1" rotation="0" elementType="movie clip" instanceName="ball" symbolName="ball">

    < size >

      < geom: Rectangle left="-51.5" top="-51.5" width="103" height="103"/>

    < / size >

    < transformationPoint >

      < geom: Point x="0.5" y="0.9956310679611651"/>

    < / transformationPoint >

    < / source >

    < / source >

    <Keyframe index="0"/>

    < / movement >


    can someone show me how the as3 in flash script should be to put the motion to my mc "ball" in the fla?

    You cannot use a string.  Use the movieclip, evt.target not evt.target.name.

    (p.s when you use the adobe forums, check useful/correct, if there is.)

  • I downloaded an app from a worker ID mobile shop and I am still registered my ID and I am using the application normally but I wonder if he could access this application and see my pictures and conversations!

    I downloaded an app from a worker ID mobile shop and I am still registered my ID and I am using the application normally but I wonder if he could access this application and see my pictures and conversations!

    Any help please?

    N ° unless you have given him your Apple ID and password, in which case he would have access to your entire account.

    You must download the application using your Apple ID. Otherwise, you will have questions the next time the app must replace or update. Strictly speaking, what you were doing was not quite legal, oven if it was a free app.

  • Using the string Variable name to ChnFind

    Overview - I find crossing points of zero on a set of data so that I can calculate the phase shift of channel to another in my data.

    Small image - I start by finding the zero 1 cross in the data, once I found I want to use the index to find the next and so on

    Problem

    The posted script comes from looking for the 1st pass by zero before moving on to the next channel. The problem is that I can't find out do my group and channel changes with loops.

    Option Explicit  ' force explicit declaration of all variables in a script.
    Dim intCount, intChan ' loop variables
    Dim z

    IntCount = 2 GroupCount-1 ' groups
    Call GROUPDEFAULTSET (intCount) ' change the current group
    IntChan = 1 to ChnNoMax ' Browse channels
    Z = ChnFind ("Ch(""[intCount]/[intchan]"")<0") 'this="" does="" not="" work,="" but="" i'm="" not="" sure="" how="" to="" fix="">
    MsgBox (z)
    next

    I don't know I'm missing something obvious.

    MK

    Hi Michael,

    You need not global variables to simplify this, but I would certainly use object variables to simplify.  When indexing of groups or channels, it is easier to use the variable of index with the Data.Root.ChannelGroups collect or Group.Channels collection directly.  I also prefer to store the group object and the channel object in a variable.  For example, you can then use Channel.DataType to add exactly the same string data to the new group coming from the old group.  You can also easily get the name, unit and all sorts of other properties directly from the object variable.  I prefer to use a separate group object variable to reduce congestion in the colde, although it adds 2 lines to your example of code snippet.

    Set FromGroup = Data.Root.ChannelGroups (intCount)
    Set FromChannel = FromGroup.Channels (intChan)
    Define participatory = Data.Root.ChannelGroups ("Index" & FromGroup.Name)
    The rise in the value = ToGroup.Channels.Add (FromChannel.Name & "Rising", DataTypeChnFloat64)
    Fall in the value = ToGroup.Channels.Add (FromChannel.Name & "Falling", DataTypeChnFloat64)

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • CHD: the string is used as an index of change in data type? String to double?

    Hello

    I'm new to the tiara. I'm reading the line of a channel number and then to read the data of a channel which is in the same line of another channel.

    That's why I use the SMC function but my index seems not to fit. What I need to change in the code?

    error:

    CHD (2, NOVALUE): = 785 wird die Textvariable «...» CHD (2, > N)

    Code:

     

    DIM intloop, zeilenwerte
    Line DIM, aktwert, index
    Call ChnAlloc ("zeilenwerte", lang, 1, DataTypeFloat64) ' Create channel, 'lang' is the size of a channel
    index = 0
    index = 1 to lang
    index = index + 1
    aktwert zeit (index) = ' get the value that will be compared to the SOPS in the following line of code
    Line = PNo (myChannel, aktwert) ' it returns the line only by comparing aktwert valued myChannel
    CHD (line, zeilenwerte) = intloop ' <--->here the error. try to get the value in a line @index do String data types does not match? what do I do then?
    Next

    Thank you very much for your help!

    Buddhist salvation,

    It seems to me that you would be better to use "Linear Mapping" in the palette of ANALYSIS "Suitable curve", but you should be able to get your code works by passing the name of the channel in this second parameter instead of an empty string variable.  You would have noticed that if you had OPTION EXPLICIT the first line of your code - always a good idea.

    Brad Turpin

    Tiara Product Support Engineer
    National Instruments

  • Is there a way to parse a string containing % (percentage symbols) using the function 'analysis of the chain?

    I am communication in series with a mirror device and the syntax of the input string contains this text: "% hr ="

    I was not able to find a way to say to the function that the percentage here is not a format specifier. Is it possible, or should I just try to use a different function?

    Thank you.

    Use %% in your format string for what he knows to use the percent literally.  So % RH = %f

    EDIT: Darin has one here in front of me.  It seems to be-% and % both work.

  • Display the test using the output "string" indicator?

    Hi, I'm trying out the test to the indicator of string data as you can see below,

    but with 'For' the logic of loop that it is only the display last number, so if you run this, you'll see

    following output.

    Test #6

    If I move the concatenation of string outside of the loop block, you will see the result as below.

    Test #0123456

    However, I want to achieve more of output. Can someone suggest me a way to do it?

    By the way, I use the for loop.

    The output I want to display with the for loop

    Test #0

    1

    2

    3

    4

    5

    6

    Thank you

    Close but no cigar.

    You need concatenate the string using a shift register.

    This will be the output:

  • How to change the value of string clustered, to implement using the node value of property instead of writing directly on the flow of data or using the variable

    new to labview :-) and I have a problem when I want to change the value of a string in bunches, and I want to implement this using the node value of property instead of writing directly to the stream or by using the variable, enclosed is the picture.   No matter, I have change in cluster (control) or value of Popery out (indicator) cluster, the value (sensor 7) dataflow keeps unchanged even I gave the new value by value of property node. Thank you to give me some advice about this.

    Hi GerdW

    Thanks a lot for your answer. The reason I'm stubbornly tring to break the flow of DATA is: we have a test system that have about 100 screws, they have a few connected flow, some of them will be unbundling a cluster dataflow chain to check the value in order to make the different cases.  Now I want to insert user event by changing the control and influential cases during run time.

    As I initially uses a global variable (to control cases) instead of unbundle string data flow, it works well.  But then, I found there are a lot of screws that are using the string unbundle.  One of the 'lazy' means, I tried is to change the value via the property node (because that way, I did not need to find all the places where using the unbundle string and replace them with the global variable), then I noticed a problem with "dataflow", the value in the stream of cluster in fact will not be changed by changing the value of the property node.

    I did a test with VI simple (like the picture in last post), and after reading your advice, I tell myself that I need to understand the concept of "DATAFLOW" in labview, it seems that my "lazy" way can not work in this scenario.

    I have attached the criterion VI here, have you furthur suggestions on what I can do in this case?

    Mant thanks!

    Minyi

  • How to use the string as a terminal window control

    Hi all

    I am setting up a terminal window in my VI and to do this I have a control of the chain and an indicator of the chain.

    I want the user to be able to write a command in the terminal and when hitting enter into the control must update, but not before! I'd do it

    as the user to be able to enter several commands without having to re - click the control with the mouse, so he must stay in the

    control window.

    The result of this chain control is introduced to an external motor controller, which responds with a string entry in the string of an invoke node indicator.

    I tried to make some case of the event, but not quite sure how I'm going to only detect the input control.

    Any ideas how to precede?

    Thank you

    Concerning

    Tommy

    Yes, in the structure of your event, look for an event of your control chain called 'key' down... on the left, there are several upcoming parameters (char, Vcle etc.) where you can use for example the char find char = 13 (back).

    Look here: http://zone.ni.com/reference/en-XX/help/371361B-01/lvprop/control_key_down/

    Good luck

    Christian

  • using the same indicator of string in different stacked sequences

    Hi guys, I want to use the same string in different sequences stacked indicator. I tried to plug the output of each string constant through the sequence on my indicator chain outside the block in the sequence, but then I get an error "wire connected to a tunnel not channeled. What is the best way to use the same indicator for all sequences?

    Hi JoVMo,

    You can just use a local Variable of this indicator within the sequence...

    Kind regards

    Nitz...

    (Kudos are always welcome)

Maybe you are looking for