Setting the charset in dynamic invocation

I'm on WLS 8.1 SP1. The doc (http://e-docs.bea.com/wls/docs81/webserv/i18n.html)
shows how to set the charset attribute of the Content-Type HTTP header via the
client stub. But I am not using client stubs, I'm using dynamic invocation. So
how do I accomplish the equivalent? I don't see an obvious javax.xml.rpc.Call
property field for this.
TIA...
Mark

The trouble with this example is that it doesn't use JAX-RPC dynamic invocation.
The attachment contains an example of what I am trying to do. The method of interest
is case3(), in which. on lines 294-296, is an (unsuccessful) attempt to set the
character set. The other methods of interest here are getEMAExceptionServices()
(which creates the javax.xml.rpc.Service object) and getUpdateExceptionResolutionStatusCall(Service
iService) (which creates the javax.xml.rpc.Call object).
[OK, this time I attached something.]
-- Mark --
Bruce Stephens <[email protected]> wrote:
Hi Mark,
Take a quick look at Manoj's Mega example [1] and see if this clears
things up. If not, post your code and we can take a look, or speak to
our outstanding support team: http://support.bea.com or [email protected]
Thanks,
Bruce
[1]
http://manojc.com/tutorial/mega/client/BindingProperties.java
Mark Shaffer wrote:
Bruce,
If I try to get the "weblogic.webservice.bindinginfo" property froma Call object,
this exception is thrown:
javax.xml.rpc.JAXRPCException: unknown property: weblogic.webservice.bindinginfo
at weblogic.webservice.core.rpc.CallImpl.getProperty(CallImpl.java:322)
-- Mark --
Bruce Stephens <[email protected]> wrote:
Hi Mark,
Did you try the code in the doc?
import weblogic.webservice.binding.BindingInfo;
BindingInfo info =
(BindingInfo)stub._getProperty("weblogic.webservice.bindinginfo" );
// The following method sets the Content-Type HTTP header
info.setCharset( "UTF-8" );
port.helloWorld();
Thanks,
Bruce
Mark Shaffer wrote:
Bruce,
OK, but the disconnect here is that I don't have a BindingInfo object,nor do
I know how to obtain one. All I have is javax.xml.rpc.* objects.
-- Mark --
Bruce Stephens <[email protected]> wrote:
Hi Mark,
Your client application can specify the character set that it would
prefer the Web Service to use in its response by using the
weblogic.webservice.binding.BindingInfo.setAcceptCharset() method.
See: http://e-docs.bea.com/wls/docs81/webserv/i18n.html#1069629
There is example code there as well.
Hope this helps,
Bruce
Mark Shaffer wrote:
I'm on WLS 8.1 SP1. The doc (http://e-docs.bea.com/wls/docs81/webserv/i18n.html)
shows how to set the charset attribute of the Content-Type HTTP
header
via the
client stub. But I am not using client stubs, I'm using dynamic
invocation.
So
how do I accomplish the equivalent? I don't see an obvious javax.xml.rpc.Call
property field for this.
TIA...
Mark
[UTEMAExceptionServices.java]

Similar Messages

  • How to set the charset encoding dynamically in JSP

    Is there any way to set the charset encoding dynamically in a JSP
    page?
    we are using weblogic 6.1 on HP unix.
    is there some way we can set the charset dynamically in the page directive
    <%@ page contentType="text/html;charset=Shift_JIS" %>
    and in MAET tag
    <meta http-equiv="Content-Type" content="text/html" charset="Shift_JIS">
    Saurabh Agarwal

    Dear Saurabh,
    I guess it is possible. Here is an example I have made some time ago :
    In my html page :
    <form name="form1" METHOD=POST Action=Lang ENCTYPE="application/x-www-form-urlencoded" >
    <p>
    <select name="code" size="1">
    <option value="big5">Chinese</option>
    <option value="ISO-2022-KR">Korean</option>
    <option value="x-euc-jp">Japanese</option>
    <option value="ISO-8859-1">Spanish</option>
    <option value="ISO-8859-5">Russian</option>
    <option value="ISO-8859-7">Greek</option>
    <option value="ISO-8859-6">Arabic</option>
    <option value="ISO-8859-9">French</option>
    <option value="ISO-8559-1">German</option>
    <option value="ISO-8859-4">Swedish</option>
    <option value="ISO-8859-8">Hebrew</option>
    <option value="ISO-8859-9">Turkish</option>
    </select>
    </p>
    <p>
    <textarea name="entree_text"></textarea>
    <input type="submit" name="Submit" value="Submit" >
    </p></form>
    and in my jsp :
    // Must set the content type first
    res.setContentType("text/html");
    code = req.getParameter("code");
    example = req.getParameter("entree_text");
    PrintWriter out = res.getWriter();
    // The Servlet send to the Browser the informations to format the language type
    out.println("<html><head><title>Hello World!</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset="+code+"\"></head>");
    // System recover the general Character encoding
    String reqchar = req.getCharacterEncoding();
    out.println("<body><h1>Hello MultiLingual World!</h1>");
    out.println("You have defined an ISO of : "+code);
    out.println("<BR>This is the code of the page that is displayed in this page<BR>");
    out.println("<BR>");
    out.println("<BR>");
    out.println("Character encoding of the page is : "+reqchar);
    out.println("<BR>This is the character code in the Servlet");
    out.println("<BR>");
    out.println("<BR>");
    out.println("<BR>");
    out.println("You have typed : "+example);
    out.println("<BR>");
    out.println("");
    out.println("</body></html>");
    I think starting from this example it is surely easy to modify dynamically the jsp.
    The other possibility would be to use the Weblogic Commerce and the LOCALIZE function, so that you'll have an automatic redirection to the right jsp-encoding depending on the customer's language.
    Feel free to reply on the forum for any related issue.
    Best regards
    Nohmenn BABAI
    BEA EMEA Technical Support Engineer
    "Saurabh" <[email protected]> a écrit dans le message de news: [email protected]...
    Is there any way to set the charset encoding dynamically in a JSP
    page?
    we are using weblogic 6.1 on HP unix.
    is there some way we can set the charset dynamically in the page directive
    <%@ page contentType="text/html;charset=Shift_JIS" %>
    and in MAET tag
    <meta http-equiv="Content-Type" content="text/html" charset="Shift_JIS">
    Saurabh Agarwal[att1.html]

  • Setting the charset from an adapter module

    Hi folks,
    I'm trying to set the charset encoding of a payload using an adapter module (I know there is a TextCodepageConverterBean, but I want to set the charset for a message that hasn't one yet). The problem is probably more clear using an example.
    I output a UTF-8 flat string from my message mapping to the adapter framework (mail adapter in my case). Afterwards I want to convert this UTF-8 string to an ISO-8859 encoding with the TextCodepageConverterBean. But if I set the charset using the setContentType() function of my TextPayload object the information gets cut away. I'm using the format
    setContentType("text/plain;charset=utf-8;name=Test.txt")
    . But everything after the first semicolon is dropped. Setting the charset using the MessageTransformBean works, but I want to avoid this by all means, as I need to set the mime type from the adapter module.
    This is running on NW2004 with SP 16 and the latest patch.
    Any idea, why the MessageTransformBean works and not the setContentType call?

    This bug will be fixed with SP20.
    Regards
    Stefan

  • How to set the Range size dynamically in an Iterator?

    Hi,
    One of my scenrio, i read the range size of Iterator and i performed the business logic validation. But in my case, range size is changed as per business requriement for a paricular Iterator.
    Is it possible to set the Range size property dynamically in an Iterator of pageDef File.
    I'm using JDeveloper 11.1.1.3.0
    Can anyone help me regarding this???
    Thanks & Regards,
    Perumal S

    Good afternoon,
    This works: f?p=1:#MYPAGENUMBERCOLUMN#::Session:Request:Debug:Clearcache:itemname:itemvalue:printerfreindly
    It works very well. I have been struggling for a couple of hours trying to figure out how to calculate the page number I wanted to link to from a report column defined as a linked item. I ended up modifying my VIEW to include the page number for that particular type of data and use this technique to jump to the correct page.
    Thanks for posting this. Nothing else seems to work.
    Don.

  • Problems setting the charset encoding via jdbc

    Dear list,
    I would like to know if/how its possible to set the character encoding via the jdbc string, with the oracle thin driver client (classes12.jar).
    Microsoft SQLserver for example supports the addition of a charset="utf-8" for example in the jdbc url.
    Please could tell me how/if this is possible.
    A pasted example would be much appreciated..
    ben bookey

    This bug will be fixed with SP20.
    Regards
    Stefan

  • Setting the role name dynamically

    Hi,
    I have defined 4 roles in the application. In the workflow navigation, i have created a notification. How can i set the role name property of the Notification message dynamically so that as soon as the control comes to that notification, all the users in that role gets the notification message?
    Thank you.

    Hello,
    Define a attribute which holds the value of one of the four defined roles.Then create some activity (with some defined function) which will select the role and assign to the attribute.
    In the notification give the performer value as attribute name.
    This will solve your purpose.
    Kind Regards,
    Kumar.

  • Getting Exception when setting the LOV whereclause Dynamically

    Hi all,
    I have created the LOV in which the whereClause is set dynamically.
    The LOV is fetching proper value when I query it first two times but after that it goes to the exception page-
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (Select pvsa.vendor_site_code SITE_NAME,
    hou.NAME Operating_unit,
    pvco.vendor_site_id vendor_site_id,
    pvco.vendor_contact_id vendor_contact_id,
    hzr.subject_id subject_id
    from PO_VENDOR_CONTACTS pvco,
    hz_party_sites hps,
    hz_parties hp,
    hz_relationships hzr,
    PO_VENDOR_SITES_ALL pvsa,
    hr_operating_units hou
    Where pvco.PARTY_SITE_ID = hps.PARTY_SITE_ID
    AND hps.PARTY_ID = hzr.PARTY_ID
    and hou.organization_id = pvsa.org_id
    /*AND hzr.subject_id = :1*/
    and hp.party_id = hzr.subject_id
    and hzr.relationship_type = 'CONTACT'
    and hzr.relationship_code = 'CONTACT_OF'
    and hzr.subject_type = 'PERSON'
    and hzr.object_type = 'ORGANIZATION'
    AND pvsa.vendor_site_id = pvco.vendor_site_id
    AND pvsa.pay_site_flag = 'Y') QRSLT WHERE (subject_id = :1 AND ( UPPER(SITE_NAME) like :2 AND (SITE_NAME like :3 OR SITE_NAME like :4 OR SITE_NAME like :5 OR SITE_NAME like :6)))
    - INVALID COLUMN TYPE.
    Below is the Code for my LOV CO-
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = (OAApplicationModule)pageContext.getApplicationModule(webBean);
    OADBTransaction oadbtransaction = (OADBTransaction)am.getOADBTransaction();
    String ContactPartyIdStr=null;
    ContactPartyIdStr = (String)oadbtransaction.getValue("ContactPartyId");
    System.out.println("In PR of LOV CO - ContactPartyIdStr is - " + ContactPartyIdStr);
    if (ContactPartyIdStr != null )
    Serializable[] parameters1 = { ContactPartyIdStr};
    am.invokeMethod("SiteLovInit",parameters1);
    Code for LOV AM-
    public void SiteLovInit(String ContactPartyIdStr)
    SitesLovVOImpl vo = (SitesLovVOImpl)getSitesLovVO1();
    if(vo == null)
    MessageToken[] errTokens = { new MessageToken("OBJECT_NAME", "SitesLovVO1")};
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
    vo.initVOQuery(ContactPartyIdStr);
    Code for LOV VOImpl-
    public void initVOQuery(String ContactPartyIdStr)
    if ((ContactPartyIdStr != null) && (!("".equals(ContactPartyIdStr))))
    Integer ContactPartyId = Integer.parseInt(ContactPartyIdStr);
    this.clearCache();
    StringBuffer whereClause = new StringBuffer("subject_id = :1");
    setWhereClause(null);
    setWhereClause(whereClause.toString());
    setWhereClauseParams(null);
    setWhereClauseParam(0,ContactPartyId);
    if(isLoggingEnabled(1))
    writeDiagnostics(this, "Query in SitesLovVOImpl "+this.getQuery(), 1);
    try
    executeQuery();
    catch(Exception e)
    e.printStackTrace();
    String sQuery = new String(this.getQuery());
    System.out.println(" The Site VO query is - "+ sQuery); *// This query prints the same query all the time*
    I also tried running the query in the back end. It fetches teh required rows.
    I am unable to debug this.
    Plz help... :)

    Hi Anand,
    Thanks for ur help. But the link shows how to use a filed from the page as criteria item.
    But my reqirement is that I need to set the whereClause using a ID which is passed from previous page.
    So how do I go about it using the criteria item in this case.

  • Problem setting the fillColor on dynamic tables using javascript

    I try to set the background color on some text fields that I put in a dynamic table. When I set the border color, everything works fine, but not with the fillColor. If I set the fillColor for the enter event for example, the field will only get a colored border, and when I click another field, the field turns completely colored. If I set an exit event with a different color, the field flickers before changing back to white. This happens in dynamic tables only. I am using Designer 8 on Windows XP. This problem has been confirmed by others, and in different forms.

    this.border.fill.color.value = "value" works for me
    value is in 255,255,255 rgb format

  • How to set the file path dynamically based on sytem, username, and date

    Hi All,
    My requirement is upload the data into one  structure like xyz that is related to t.code MCSZ.
    file will be in  UNIx SERVER .
    PATH IS: /sapif
    file name is xy789 load .txt
    I have  to write code in one user-exit
    how can i set the file path for this.
    shall i put hard code file path?
    because i have to writecode in user-exit.
    plz tell me how to set the file path based ons syetem, username, date
    Thanks in advance
    Ram.A

    Concatenate the field SY-SYSID, SY-UNAME and SY-DATUM for the file path

  • How do I set the charset in robohelp?

    I have to edit a Polish help file but Robohelp change the
    charset of every topic I edit from
    charset=windows-1250 to charset=windows-1252
    Resulting in the Polish characters not being displayed
    properly.
    charset=windows-1250 is for Belarusian, Croatian, Czech,
    Hungarian, Polish, Romanian, Serbian, Slovak, Slovenian
    But I can't choose any of these languages in Project
    settings.
    How can I force Robohelp in keeping or using
    charset=windows-1250?

    I haven't tried with Japanese, but Roboholp will keep the
    original charset of your htm files as long you don't open/edit
    them.
    First it's important you change you Regional options and
    Language for non-unicode programs to japanese.
    Then if I need to edit something, I will make my changes save
    the project then change the charsert using notepad.
    (If you edit a bunch of them you can use notepad++ to do a
    find and replace in files)
    Then reopen the project and compile it.
    Don't edit the htm source in Robohelp what you see is not
    necessarily what you get.

  • How to set the condition for dynamic Xquery in OSB11g

    Hi to all,
    I have a requirement like three different requests all are converted in to standard format.For this scenario I use dyamic X-query transformation.For Example RequestA,RequestB and RequesrC what ever request it should be converted into one standard format say Response.For this I create three X-Query transformations,and proxy service.If i get the request from RequestA related XQuery will execute (RequstA to Response transformation).
    RequestA------Response
    RequestB------Response
    RequestC------Response
    Actually my idea is based on requset schema name (like RequestA) it will convert,for this scenario how can I set condition in dynamicXquery.
    Thanks in advance.

    Hi,
    Can u plz tel how make the x-query for an XML file,basically i follow the below link
    http://beatechnologies.wordpress.com/2010/12/01/dynamic-xquery-in-oracle-service-bus/
    In this example I'm creating the routing rulesXML file in Eclipse,I'm unable to assigning this xml file to an variable.I create a Xquery for this XML with any type,And I create GetRouting.XQ.can u pls tel which is correct method to Xquery with any type for this XML or else i send my jar file,tell me any modifications are required.
    Thanks in advance

  • Setting the Charset for outgoing mail in Mail

    When I send mails to windows-systems, the Outlook program gets the message with wrong characters. Especially of course the special danish characters, but also other information goes wrong. F.ex. grey lines hows up where I certainly did not put it!
    I have noticed, that the header of the message from Mail is like this:
    --Apple-Mail-1--672517002
    Content-Transfer-Encoding: 7bit
    Content-Type: text/plain;
    charset=US-ASCII;
    delsp=yes;
    format=flowed
    Sometimes like this:
    --Apple-Mail-9--596884052
    Content-Transfer-Encoding: quoted-printable
    Content-Type: text/plain;
    charset=UTF-8;
    delsp=yes;
    format=flowed
    When using the HTML functionality in Mail I get headers like this:
    --Apple-Mail-2--619494695
    Content-Transfer-Encoding: quoted-printable
    Content-Type: text/plain;
    charset=WINDOWS-1252;
    delsp=yes;
    format=flowed
    And the HTML-mails show's correctly!
    I guess it is an charset issue, but how can I control that maually?

    Open your Mail.app
    From the top of your screen choose Window>Connection Doctor.
    Double click on each server and make sure the password field is filled out, (your smtp server is likely to be missing the password)
    Enter the password into the field you find empty and close the preferences windows (saving changes if prompted) and close the Connection Doctor.
    Test to make sure you are fixed.
    If issues continue its going to be an issue with Keychain Access and you will need additional steps.
    EE

  • Setting the -client option on invocation of Java via JavaApplicationStub

    I'm in my info.plist. I've added VMOptions. I've tried
    <key>Java</key>
    <dict>
    <key>VMOptions</key>
    <array>
    <string>-client</string>
    </array>
    </dict>
    I've tried
    <key>Java</key>
    <dict>
    <key>VMOptions</key>
    <string>-Xclient</string>
    </dict>
    And yet when I run my app and look in System.getProperties() I see
    java.vm.name=Java HotSpot(TM) 64-Bit Server VM
    When what I wanna see is
    java.vm.name=Java HotSpot(TM) Client VM
    I do see that when I invoke Java from the command line.
    I also have the 'open in 32-bit mode' checked. It doesn't seem to make a difference.
    What am I doing wrong?

    Yes, I have. I can't seem to get the JVM to take any VMOptions at all. I tried using the Jar Bundler too and got the same result. Here's my entire Info.plist... if there's anything obvious I'm missing, please let me know.
    {code}
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>CFBundleAllowMixedLocalizations</key>
    <string>true</string>
    <key>CFBundleDevelopmentRegion</key>
    <string>English</string>
    <key>CFBundleExecutable</key>
    <string>JavaApplicationStub</string>
    <key>CFBundleIconFile</key>
    <string>GenericJavaApp.icns</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>boogiepants</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>100.0</string>
    <key>Java</key>
    <dict>
    <key>ClassPath</key>
    <string>$JAVAROOT/boogiepants.jar:$JAVAROOT/bluecove-2.1.0.jar</string>
    <key>JVMVersion</key>
    <string>1.5</string>
    <key>MainClass</key>
    <string>boogiepants.util.BoogiepantsBootstrap</string>
    <key>Properties</key>
    <dict>
    <key>-Xdock:name</key>
    <string>boogiepants</string>
    <key>apple.laf.useScreenMenuBar</key>
    <string>true</string>
    <key>bluecove.jsr82.psmminimumoff</key>
    <string>true</string>
    <key>java.library.path</key>
    <string>$JAVAROOT</string>
    </dict>
    <key>VMOptions</key>
    <string>-client</string>
    </dict>
    </dict>
    </plist>
    {code)

  • Setting Up the File Server Dynamically

    I have a scenario wherin i have to set up the FTP server name  and directory where i have to put the final file dymically.
    I was able to set the directory path dynamically using Adapter Specific Message properties.
    Can somebody suggest me if i can set the server name also by module processor (have not written one till now)or some other way. The steps to follow etc
    Waiting for your useful answers.

    Hi Siva,
    Setting up a Server name Dynamically -I don't think so it is possible with this point of time.
    So try to do in Java Proxy if required.
    Receiver File Adapter - Dynamic FTP Server Address
    Hope this helps,
    Regards,
    Moorthy

  • Setting the locale dynamically in .shell file

    Hi ,
    I am using <netuix:locale language="en"/> in .shell file for the header in Weblogic Portal 9.2 application.
    How i can set the language attribute dynamically as currently it is set to English that's why my header area always displays the text in English language for the first time when I login into my application.
    Looking forwar for the response
    Thanks in Advance
    Regards
    Gaurav

    Hi Guarav,
    The <netuix:locale> control is used within Portal Framework markup (.shell, .portlet, .portal, etc.) to specify the local for that resource's title and description. For example: if you have a file named headerFooter.shell, its English title might be "The Header-Footer Shell", and that's how you would identify the shell in the Portal Admin Tools. If you had users who spoke/read Spanish, you'd create a <netuix:locale> element for headerFooter.shell that had the title as "El Cabeza-Pata Shell" (or something :). What I'm saying is: that control only affects the localization of the title and description of that WLP resource itself, not its content.
    To change what language the text of your header uses, check out the i18n JSP tag library: http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/javadocjsp/p13n/i18n/tld-summary.html.
    Hope that helps,
    George

Maybe you are looking for