How can I use XMLBeans in a Web Services client?

How can I use XMLBeans in a standalone Java client with a Web Service?
I posted the message below earlier in the year, but have not yet been successful
in my
attempts.
regards
Eddie
Hi,
I'm trying to using XMLBeans to send a document to a web service from a standalone
Java client. I'm using the PurchaseOrder (easypo) example document, and the service
expects a parameter of type PurchaseOrderDocument. The client proxy class generated
by WebLogic Workshop, however, expects to send a parameter of type PurchaseOrder.
In the client, I can instantiate a PurchaseOrderDocument, and then obtain a PurchaseOrder
(e.g. pod.getPurchaseOrder() ), but the returned class is not compatible with
the PurchaseOrder type that the client proxy expects.
In a previous attempt (not using Workshop), the client would not compile because
it expected to send a non-abstract class with a public default constructor (presumably
a JAX-RPC requirement), and XMLBeans had generated an interface.
Any help would be greatly appreciated!
thanks & regards
Eddie

I have been experiencing similar problems with the HTML Editor and have managed to find an answer that should start to answer some of my questions. The Apex HTML Editor Standard is actually an HTML editor called FCKeditor. The FCKeditor has a Javascript API that can be found at http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API. Unfortuately this doesn't seem to give the whole answer and I found more at http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:49607.
I needed to get the text entered within my html editor standard (e.g. P1_MYTEXT) and use it within my javascript function. I did this by using the following script
<script language="JavaScript" type="text/javascript">
function showtext(){
var oEditor = FCKeditorAPI.GetInstance('P1_MYTEXT');
var editortext = escape(oEditor.GetXHTML(oEditor.FormatOutput));
alert(editortext);
</script>
Hope this helps.
Matthew

Similar Messages

  • How can I create a query with web service data control?

    I need to create a query with web service data control, in WSDL, it's query operation, there is a parameter message with the possible query criteria and a return message contains the results. I googled, but cannot find anything on the query with web service. I cannot find a "Named Criteria" in web service data control like normal data control. In Shay's blog, I saw the topics on update with web service data control. How can I create a query with web service data control? Thanks.

    Hi,
    This might help
    *054.     Search form using ADF WS Data Control and Complex input types*
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html

  • How can I authenticate and authorize with Web Service on ESB ?

    Hello,
    I want to authenticate and authorize client with Web Service published
    by HTTP/SOAP BC.
    Simply if it is an Web Service as J2EE application, I will use
    Basic Authentication with JAX-RPC and Realm.
    But I think that Web Service published by HTTP/SOAP BC is not belong
    to J2EE Application. Threre is no place to describe security role mapping
    (like web.xml).
    JBI 1.0 the section "5.5.1.1.3 Normalized Message Properties" comments
    JAAS Subject is given in the NM Properties. Really in this package
    com.sun.jbi.internal.security.*
    implements JAAS autentication and authorization (at JaasAuthenticator).
    But I can't see how to configure my Service to use this.
    How can I authenticate and authorize with Web Service on ESB ?
    I referred to the resources.
    Mutual Authentication for Web Services: A Live Example
    http://developers.sun.com/prodtech/appserver/reference/techart/mutual_auth.html
    XML and Web Services Security
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Security7.html
    JAAS Authentication Tutorial
    http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html
    Thanks,
    Takurou
    - environment ---------------------------------------------
    OpenESB : Project Open ESB Starter Kit
    AppServer : Sun Java Systems Application Server 9.0 PE
    OS : Windows XP
    I don't assume to use SSL (if It's necessary I will try).
    User information is stored in a LDAP Server.
    -----------------------------------------------------------

    Hello,
    I read this resource.
    SecurityDesign
    http://www.glassfishwiki.org/jbiwiki/Wiki.jsp?page=SecurityDesign
    Then I think [non-ssl and ssl/tls and so on] securing by basic authentication is ongoing feature at this time.
    But I can't see well why this page comments 'HTTP over SSL, TLS'.
    HTTP/SOAP Binding Component Overview
    http://download.java.net/general/open-esb/docs/jbi-components/httpsoap-bc.html
    Does BC support only "SSL server authentication" ?
    Doesn't BC support "SSL client authentication" by username/password ?
    Thanks,
    Takurou

  • How can i use my X6 as web camera.?

    how can i use my phone's camera as web camera.....????

    Shivneet wrote: ... I would like the display for the MacBook to be turned off so I can see video only on my TV. ... Is there any way to achieve this?
    Not that I could find.
    The easiest workaround that I could find is a trimmed piece of Black Construction Paper taped over the Mac's display.
    Alternatively, you could use an external Mac Compatible Web Cameras and then close the lid, but that is a higher cost option.
    Message was edited by: EZ Jim
    Mac OSX 10.8.4

  • How to prevent downloading wsdl in weblogic web service client

    Hi,
    I get a problem regarding weblogic web service client. My working environment:
    weblogic server 8.1
    Windows XP SP2
    JDK 1.4
    I use the weblogic tool to generate the client jar file from the wsdl file.
         <target name="generate-client">
              <clientgen wsdl="ACCESS.wsdl"
                   packageName="xxxxxx.client"
                   clientJar="${client}/${AccessClient_jar_file}"
                   keepGenerated="true"
                   saveWSDL="true"
              />
              <javac srcdir="${source}"
              destdir="${client}"
              includes="**/AccessClient.java">
              <classpath>
              <pathelement path="${client}/${AccessClient_jar_file}"/>
              </classpath>
              </javac>
         </target>
    After that, I create a client java file to invoke the service deploy in the server.
    public static void main(String[] argv)
    throws Exception
         int transactionId = 100;
         int id = 1000;
    // Setup the global JAXM message factory
    System.setProperty("javax.xml.soap.MessageFactory", "weblogic.webservice.core.soap.MessageFactoryImpl");
    // Setup the global JAX-RPC service factory
    System.setProperty( "javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
    AccessServicePorts ws = new AccessServicePorts_Impl(argv[0]);
    AccessService port = ws.getAccessService();
    // Resource - create
    Resource resource = new Resource();
    resource.setRES_CD("Create ResCo");
    resource.setCODE_CODE("code_cod");
    resource.setRES_TYPE("Resource typ");
    resource.setCOMMON_FIELD(common);
    AccessDefaultResult resultItems = port.createResource(resource);
    System.out.println("createResource : " + resultItems);
    I find that this web service client always issue 2 http requests to invoke an web service method deployed in server.
    1st http reqeust:
    GET /AccessEpol/EpolServiceSoap?WSDL HTTP/1.1
    User-Agent: Java/1.4.2_08
    Host: 127.0.0.1:8001
    Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Connection: keep-alive
    the return result is the wsdl downloaded from the server.
    2nd http request is the real web service request.
    The question is how could I eliminate the 1st http request because it's really unnecessary. I use other web service client like Axis 1.x, Axis client never has the http request to download the wsdl from the server.
    I read through weblogic web service document. It do mentions that put saveWSDL="true" in the clientgen ant task. the default value for saveWSDL is true already. I did try saveWSDL="false" also. None of them can eliminate the 1st http request.
    appreciate for any answer my question?

    Hi David,
    thanks for the reply.
    More or less I agree some points you mentioned above.
    I did use Axis 1.x to test the inter-operability. The web service was developed in Weblogic 8.1 and is a part of an existing web application. It will be merged to existing application deployed in weblogic 8.1.
    I also program the web service client to test the web service.
    The implementation of the server and client will be handed over the project team and training for supporting or continuous development have to be conducted by me. So I don't like to use two types of technologies which will make thing complex.
    I found this issue when I tried to protected the web service endpoint, eg http://localhost:7001/epol/service, using the web application Basic mechanism. The wsdl URL http://localhost:7001/epol/service?WSDL is also protected in this case. Unfortunately the username/password pair is not sent to the server when the weblogic client download the WSDL from the server. In this case, the client failed and throw exception.

  • Can i use flex to consume web services?

    I am not a Flex developer and before delving into it I want
    to be sure that it satisfies my project requirements. Mainly,
    consuming web services. the other part of the project are a bunch
    of buttons and graphs that constitute any GUI. so I think Flex can
    handle this part as good as Flash.
    Currently, I am using flash but my current client insists on
    using flex. so my question is: can I develop in Flex whatever I can
    develop in flash? or are there limitations?

    If you are developing applications in Flash, then you will
    love Flex. Flex will make you much more productive than Flash for
    producing applications of any complexity. You can do at least
    "most" of what you can do in Flash, and more. There might be a few
    things you can do only in Flash, or more easily in Flex, but your
    client has it right. They want Flex and they should want it. Check
    out the FB3 help for the WebService, RemoteObject, and HTTPService
    components.

  • How can I use a variable in webi query filter

    I created a webi report using the fiscal year/month(period) field as a filter to show a window of 18 periods.  The report works just as requested using a between filter on fiscal period with prompts for both the start and ending periods.  Now I'd like to calculate the start period based on what was entered in the prompt for the ending period (e.g. enter 201106 for the TO prompt on the between statement and have the FROM statement filled in as 201001.)  I can create variables in the report to display both the user response to the ending period prompt and the calculated starting period, but I cannot figure out how to incorporate that calculated starting date into the FROM side of the between query filter.
    Any suggestions? 
    Thanks,
    Doug
    Sorry I got my froms and to's mixed up in the first draft. Edited by: Doug Roswold on Mar 4, 2011 6:27 PM

    Let me understand what you want to do.  You don't want to use two prompts, just one, insn't it?
    I mean, instead of:
    Filter area:
    Date between "From prompt" to "To Prompt"
    You want something like:.
    Filter area:
    Date between Variable  to "To Prompt"
    if I'm not wrong that's not possible to achieve in Webi Query  Panel.
    Can you modify your universe? The only way to achieve it is modifying your universe, creating your formula in the universe and assigning it to an object, so you can use this new object in your filter area like this:
    Date between MyUniverseObject  to "To Prompt"
    Edited by: PadawanGirl on Mar 4, 2011 8:15 PM

  • How can I use java on the web?

    hi
    I would like to learn about making websites using java?? do i have to learn about javascript or another type of java??
    Im new in using java applet, threading and stuff like that :).
    And maybe I can make management systems in java language is this possible?
    thanks

    mshadows wrote:
    hi
    I would like to learn about making websites using java?? do i have to learn about javascript or another type of java??
    javascript is not a type of java. It is a separate language. What do you mean by "making websites". A website in its simplest form is just an HTML page. If you want to learn what's called a "server side web programming language", which will allow you to do things like retrieve data that a user entered into a form on an HTML page and store it in a database, then first you need to learn basic java, and then you need to learn basic HTML(and it would be beneficial to learn basic javascript although that's not mandatory), and then you need to learn "servlets+jsp"--which is the java version of a "server side web programming language". The easiest "server side web programming language" to learn and the one that is most popular is php.
    Some books you might consider:
    beginning Java: "Java2: A Beginner's Guide"
    beginning servlets+jsp: "Murach's Java servlets and JSP(2008 edition)" -- includes an introduction to HTML
    Im new in using java applet, threading and stuff like that :).OK. You don't need know applets or threading to learn servlets+jsp.
    And maybe I can make management systems in java language is this possible?
    Sure.
    Edited by: 7stud on Jun 6, 2008 10:17 PM

  • How can I use bridge to create web galleries with more than 10 images?

    I am new to building web galleris for my website. When i try to load more than 10 images in a gallery , Bridge cuts off all images beyond 10. I am confident that I can do this if i can find the right settings

    I am not at my PS computer right now, but I think the Preview only shows 10 images (for speed) but they will all be there in the final output.

  • How can I use EPCM.loadClientData in Web Dynpro???

    Hello colleagues,
    I've created Web Dynpor application and want it to be iView receiveing aparameters from another (not mine) iView on the page. Another iView generates event and store data to EPCF client data bag. In my Web Dynpro app I arranged handling the event but can not get data from client data bag
    Could you help me to find a workaround?
    Thanks and best regards,
    Konstantin.

    Hi,
    The EPCF client data bag API provides methods to store data in a transient data buffer on the client.
    EPCM.storeClientData(nameSpace, name, value)
    This method saves data in value under a key. The key is generated by combining the parameters nameSpace and name. If the key already exists, the stored data will be overwritten.
    For further ref check on to this link.This should help u better.
    http://help.sap.com/saphelp_erp2005/helpdata/en/68/322a9261c54e51b7965f86aac3dae2/frameset.htm
    Hope this helps u,
    Regards,
    Nagarajan.

  • Sharepoint 2013: How can I use custom filter in XsltListViewWebPart if client site rendering ?

    I wish text box on SitePage where I can input filter value  and XsltListViewWebPart will show items corresponding of my input filter.
    If server rendering I have Filter button in SPD and create parameter that bind my TextBox to Filter.
    But how to must I doing if client side rendering (CSR) ? I haven't Filter button in SPD...    

    So, I resolved it :)
    1) SPD2013 will show "Parameters" and "Filter" buttons for web part, if you click web part properties, change something and save it in SPD2013. After this dumb operation SPD2013 will show additional context menu for web part that include
    "Parameters" and "Filter" buttons. Don't ask me why  :)
    2) All filter work for list - server side, same as in SharePoint 2010. You may add parameter to web part and link filter with this parameter.
    3) Client side rendering will work with ready filtered data only. If you need update filter ->  __doPostBack (POST request)  and server side will back new filtered scope.    AJAX properties may be used to avoid
    all page redrawing.
    4) Yes, you may have additional filter on client side by override onPreRender and simply delete some records from ListData.Row but:
    - it will not affected by header XSLTListView filters
    - data page portions will be working incorrect
    - grout data will be incorrect too
    5) The worst thing it is, even I wish use client side filter in onPreRender I haven't found way how to re-render list without postback request to server. It is mean I can't apply new filter without new request to server :( Even I keep all list data
    as JSON on page. Of cause I can realize it with my own custom gridview but it will need  more effort and will be not so powerfull as use XSLTListWebPart...  

  • How can I use fonts in my universal type client?

    Fonts in my universal type client do not show up in any adobe CC applications. I have recently purchased a new MAC with OSX. First the type client ( Universal Type Client version 4.1)  was installed and then I activated adobe CC. Any advice would be much appreciated!

    If you have an iPhone5 and an IMac,
    - you should have your photos in phototstream (last 1000)
    - your iphone should have your icloud account linked
    - your imac should have your icloud account linked
    more info http://support.apple.com/kb/HT4486

  • How can I use any website on the internet with my apple tv?

    How Can I use internet or the web on my apple tv?

    Welcome to the Apple Community.
    You can't unless you mirror it from your iPhone or iPad.

  • How to retrieve the HttpSession from Axis Web Service

    hello,
    How can I get the HttpSession in Web Service ???
    Eric

    Hi,
    I have generated the java classes from a WSDL using WSDL2Java using the following command line options.
    java -classpath .;%AXISCLASSPATH%;%CLASSPATH% org.apache.axis.wsdl.WSDL2Java -s -S true -d Session -Nhttp://localhost:
    7001/axis=samples.grapha -a samples\grapha\grapha.wsdl
    I need to retrieve HTTPSession in the generated GraphASOAPBindingImpl class. Can you help me?
    Thanks,
    vc

  • Error "Deserialisation failed" when trying to use BAPI via a web service

    I created a web service in BW with the help from the wizard WS_WZD_START. The web service contains
    (among others) the RFC BAPI_ODSO_READ_DATA_UC.
    The web service runs OK & can be used from the SAP Web Services Navigator.
    Now when i try to use the web service from Delphi i get
    an error: "Deserialisation failed" (SimpleTransformationFault) "ODSOBJECT erwartet".
    The ODSOBJECT parameter is there to be sure.
    I saw the same error before in this forum but found no real solution there. I am using BW 6.40 & SP 12.
    XML sent:
    <?xml version="1.0" encoding="UTF-8" ?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Header>
    <sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap/features/session/">
    <enableSession>true</enableSession></sapsess:Session></SOAP-ENV:Header>
    <SOAP-ENV:Body><ns1:BAPI_ODSO_READ_DATA_UC xmlns:ns1='urn:sap-com:document:sap:rfc:functions'>
    <DATALAYOUT></DATALAYOUT><INFOOBJECTLIST><item>
    <INFOOBJECT>/CIVGM/NUM</INFOOBJECT></item></INFOOBJECTLIST>
    <MAXROWS>2</MAXROWS><ODSOBJECT>/CIVGM/BPLO001</ODSOBJECT><ORDERBY></ORDERBY>
    <RESULTDATA></RESULTDATA><SELECTIONCRITERIA></SELECTIONCRITERIA><UNICODE>N</UNICODE>
    </ns1:BAPI_ODSO_READ_DATA_UC></SOAP-ENV:Body></SOAP-ENV:Envelope>
    Answer:
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Body><soap-env:Fault><faultcode>soap-env:Client</faultcode>
    <faultstring xml:lang="en">Deserialisation failed</faultstring>
    <detail><n0:SimpleTransformationFault xmlns:n0="http://www.sap.com/transformation-templates">
    <MainName>/1BCDWB/WSS0050825153239449000</MainName>
    <ProgName>/1BCDWB/WSS0050825153239449000</ProgName>
    <Line>73 </Line>
    <Valid>X</Valid>
    <MatchFault>
    <DescriptionText>Element 'ODSOBJECT' erwartet</DescriptionText>
    <TokenType>S</TokenType>
    <TokenName>CODEPAGE</TokenName>
    <TokenNameSpace>urn:sap-com:document:sap:rfc:functions</TokenNameSpace>
    <TokenValue></TokenValue>
    </MatchFault><Caller>
    <Class>CL_SRG_RFC_PROXY_CONTEXT</Class>
    <Method>IF_SXML_PART~DECODE</Method>
    <Positions>1 </Positions>
    </Caller></n0:SimpleTransformationFault>
    </detail></soap-env:Fault>
    </soap-env:Body></soap-env:Envelope>
    The same error occurs when I take the exact XML that was sent from Web Services Navigator (the XML that worked) and send that from Delphi.
    What could be wrong?

    Hi Simon,
       Other thing you can do is compare the HTTP requests (including header) from both Delphi and XMLSPY. I suspect if the SOAP message is same in both case the difference might be in the header. But one thing is certain, WAS can not respond differently for same request, don't you think so ?
    Cheers,
    Sanjeev

Maybe you are looking for

  • How do I set up a 2nd nook with an adobe account

    how do I set up a 2nd nook on my computer?  do I need to install a 2nd adobe digital software program?

  • Regarding CAPTCHAS  in JSP..

    I want to embed CAPTCHAS verification code in my registration page.. please tell me some use full links for that..

  • How to list the rac databases on unix terminal

    Hi guys, I am trying to find out how to list all the rac databases on the unix terminal. the following command gives the list of all the databases running on a server *'ps -ef |grep smon | awk '{print $8}' | awk -F"_" '{print $3}''* of those database

  • What does it mean "error -43"?

    when i try to delete some folders from my external hd, appar this message: you can't..... code error -43. anybody know what does it mean? please!!!! how can I fix it?

  • TMG ports need for sophos 8192

    how to add a new rule for Sophos ? just for ports 8192 and 8194 not sure where to add under the tmg console under server protocols or common protocols. Forefront Threat Management Gateway Version: 7.0.9193.575 thanks