What about "write once, run everywhere" with web services ?

Hi all,
I'm very new to web services in Java (but not new at all in Java and not really new in web services).
I'm amazed of not finding a specification API for web services. It doesn't seem that I can write a web service (or a web service client) and run it under several "web services containers" (like we can do for servlets, JDO and pretty all java technologies). It seems - according to the tutorials I found yet - that if I want to make a web service that runs under Apache Axis, I must use org.apache.axis.* classes, and so on with WebLogic and other web services container...
It doesn't look like java style and I'm kind of confused...
could someone give me details ? am I wrong or something ?
TIA

I think is not that bad.
You have two APIs in the jwsdp tool just for web services (JAXRPC and JAXM) and you can construct your web services and your clientes wit that. Once you compile with the tool and you get the WSDL and the model I think that you can deploy it in any container (I think)
hope it hepls

Similar Messages

  • Problems running Application with Web Service Client

    Im having some problems maybe related to some classpath details?
    I am running a Web Service another computer which works fine. I have also made an application using Sun ONE Studio 1 consisting of a Web Service Client etc. and GUI which uses the Client to get data from the Web Service. This works fine as long as I use Sun ONE Studio to execute the application, but now I have packaged the application to a .jar file and have encountered problems:
    When running the application from the .jar file I get the exception:
    java.lang.NoClassDefFoundError: com/sun/xml/rpc/client/BasicService
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at util.servicelocator.ServiceLocator.getServant(ServiceLocator.java:68)
    at lagerApp.eHandelLager.jRegisterBrukerListeActionPerformed(eHandelLager.java:784)
    at lagerApp.eHandelLager.access$400(eHandelLager.java:20)
    at lagerApp.eHandelLager$5.actionPerformed(eHandelLager.java:277)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
    at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    I have searched the forum and found simular topics which are resolved by adding some lines to the classpath.
    How do I set the classpath? Do i have to use the classpath parameter from command window? How can I know which classpaths to include (libraries)..
    Any help would be nice.. : )

    Thank you for the reply..
    But im still geting the same error. I have tried to include all the libraries in JWSDP pack but still.. I have managed to narrow down the place where the error occures.. It actually happens when I try to get the WebService Client Servant which is located in the package LSC:
    ---> LSC.LWServiceGenClient.LWS_Impl service = new LSC.LWServiceGenClient.LWS_Impl();
    LSC.LWServiceGenClient.LWSServantInterface lagerServiceServant = LSC.LWServiceGenClient.LWSServantInterface_Stub)service.getLWSServantInterfacePort();
    return lagerServiceServant;
    Could something be wrong with the way I package the Jar? I'm using Sun One Studio and have tried including the 5 packages the application consists of; I have tried including just the files; moving the main class to <root>.. Still same problem..
    Or could there be some different fundemental thingy I have forgotten ??
    thanks
    Aqoi

  • XML Anywhere TO Write Once , Run Everywhere

    I proposed this 4 years ago to cho haha reply.
    All codebase languages , legacy codebase , legacy code , etc . . . standardized into am XML file.
    MVC no. XVC yes. Xml View Controller yes.
    Xml Namespace yes. Xml Redirection_One Namespace yes.
    Xml Redirection_Two Namespace yes.
    No one says the word XHTML let alone XDHTML. Or SGML.
    At Intel Forum-- [http://communities.intel.com/people/ajaytemp?view=profile] -------
    The World Wide Web Consortium (W3C) is the main international standards organization for the World Wide Web (abbreviated WWW or W3).
    Founded and headed by Tim Berners-Lee,[2] the consortium is made up of member organizations which maintain full-time staff for the purpose of working together in the development of standards for the World Wide Web. As of 10 July 2011, the World Wide Web Consortium (W3C) has 317 members.[1]
    W3C also engages in education and outreach, develops software and serves as an open forum for discussion about the Web.
    Is HTML3,4,5 in conformance to XML or XHTML ? Or X-HTML ? Why is ther HTML and then XHTML. I didn't see SGML consortium.
    This fissure or crack which seems to have caused a bumpy road for Web Browser producers is really annoying.
    It won't cause problems is really dumb.
    XML has been around for a decade or so . . .
    So if I write XHTML code. Will older browsers show it ?
    I felt like there is HTML and then there is XHTML.
    HTML requires a DTD tag at top which is really weird if you ask a layman what that is. Some standard from really old days.
    THen there is HTML transition standard, a 2nd , a 3rd... If it's a standard and everyone could write HTML code and be a public publisher or FREE speech.
    Then certain keywords are deprecated in one version, another version it's good to show. Makes no sense what is going on with browsers and their best attempts to get close to a W3C standard.
    Shame.
    They have strict, frameset, and then transitional versions of HTML, DHTML, or XHTML, XDHTML. What's the need for four or five more Standards. Not a standard even a Protocol now.
    It would of been easier to write Mandarin (chinese) code in ISO C or ANSI C then put up a simple egnlish home page i write in word pad or note pad.
    They Javascript Event Handling Methods are deprecated. A new one is added.
    It's really all unncessary. And this is making students life difficult is understatement.
    UGGGGGGGGLY.
    See Berkshire Hathaway home site for QUALITY HOME PAGE. Always see GOOGLE.COM home site. Quality matters.

    Large corps can't cooperative with college grads with COOP. Fine. It doesn't matter with .xml Lingua Franca .
    Older systems have compatibility now with the 3 letter extension !
    corperative dot_xml

  • Programming on SIM??? write once, run anywhere???

    Dear all,
    I am a java developer for 2 years, everytime i read any java book, it stated there "write once, run anywhere", but does it really perform that? especially when we develope in J2ME, MIDP, CLDC is a main consideration for different phone. Different phones requires different CLDC n MIDP, developer have to develope different program for that. But, if we can develope program into Java SIM card, is that make sense of the phase "write once, run anywhere"?
    Due to the limited space, limited processor power, limited RAM on a little SIM card... how about we have a brainstorming session here to discuss about what kind of program that mobile phone user really want in their SIM? SIM card program is interoperability with every phone, and i think user will prefer to store more personalized things to SIM.......
    So, do u guys have any ideas on SIM?
    Best regards,
    Ric

    What does the fact that Java6 doesn't exist onOS/X
    have to do with anything? Java6 didn't make
    enough
    changes to swing that it matters.
    The tray icon capability is a new feature in Java6.
    and Mac OS doesn't have a system tray like Windows
    does so there's nowhere to display the icon...http://www.ubuntu.com/
    It's for the best, really.

  • JNI Not write once run anywhere But...

    I have written a program that I put into C++ for speed reasons. I now want to use the JNI to
    a) Get familiar with the JNI
    b) To merge a Java GUI and speedy code together.
    I've read that if you use the JNI then you cannot run your program everywhere. But I thought about programs written in C/C++ that do run everywhere, with respect to say the OS.
    So isn't it possible to still have that via the JNI?

    I have written a program that I put into C++ for
    speed reasons. So, you measured the speed of a Java prototype and a C++ prototype and found the Java version to be significantly slower?
    Or you just assumed it would be?
    I've read that if you use the JNI then you cannot run
    your program everywhere. But I thought about programs
    written in C/C++ that do run everywhere, with respect
    to say the OS.You may be able to use the same C/C++ source code, depending on what it's doing, but you'll at least have to recompile the native code. A Windows DLL can't be used on a Linux box.

  • Write once, run anywhere philosophy

    Here is the text from JAVA2COMPLETE Reference about Character Streams.
    While the byte stream classes provide sufficient functionality to handle any type of I/O operation, they cannot work directly with Unicode characters. Since one of the mainpurposes of Java is to support the�write once, run anywhere� philosophy, it was necessary to include direct I/O support for characters. My doubt is that Why is that WRITE ONCE RUN ANYWHERE philosophy not applicable for Byte Streams.

    Here is the text from JAVA2COMPLETE Reference about Character Streams.
    While the byte stream classes provide sufficient functionality to handle any type of I/O operation, they cannot work directly with Unicode characters. Since one of the mainpurposes of Java is to support the�write once, run anywhere� philosophy, it was necessary to include direct I/O support for characters.
    My doubt is that Why is WRITE ONCE RUN ANYWHERE philosophy not applicable for Byte Streams.

  • "Write once, run anywhere" - Error on MacOS X running TrayIconDemo - JNI?

    I can not get the TrayIconDemo running on MacOS X... "Write once, run anywhere" broken? How can I use pure Java when I have to write MacOS X specific trayicons to get around the fact that MacOSX does not support lastest Java, and no official say when Java will be avalibale.
    http://java.sun.com/docs/books/tutorial/uiswing/examples/misc/TrayIconDemoProject/src/misc/TrayIconDemo.java

    What does the fact that Java6 doesn't exist onOS/X
    have to do with anything? Java6 didn't make
    enough
    changes to swing that it matters.
    The tray icon capability is a new feature in Java6.
    and Mac OS doesn't have a system tray like Windows
    does so there's nowhere to display the icon...http://www.ubuntu.com/
    It's for the best, really.

  • Does "Write Once, Run Anywhere" (WORA) really exist?

    Does "Write Once, Run Anywhere" (WORA) really exist?

    Absolutely. You can write applications that will run on any
    J2EE-compatible application server. Although a few cases are very
    difficult, in many cases more can be done than you may realize. Java
    BluePrints (http://java.sun.com/blueprints) is the proof point here.
    Each year, we run the Deployathon
    (http://java.sun.com/developer/technicalArticles/J2EE/deployathon4/)
    which demonstrates a significant J2EE application running on multiple
    J2EE-compatible application servers.

  • What blueray writer can I use with my MacBook pro

    What blueray writer can I use with my MacBook Pro

    Apple Compatible Mac Webcams
    iChatUSBCam.  The manufacturer’s website also has a *free* demo of its product & a complete list of USB webcams compatible w/macs & its product.
    For more suggestions, check out EZJim’s website which can be found HERE. <--Clicky click

  • "Writer" Module not working in web service mode

    Hi,
    I designed a experiment to do a prediction work and automatically write the result to AzureSqlServer.
    I published  a web service from the experiment to trigger the prediction procedure, it worked very well until February. But from then on, the database had never received any data from the module triggered by web service though the web service always
    run successfully.However, when I directly run the experiment, the writer works again.
    I noticed the experiment dashboard has a new function that can switch between experiment view and web service view. In web service view, all the modules that the “web service output” module not depend on turn grey, including the "writer".  
    Is that the reason?

    When you called the web service from the test dialogue, did it work? If you get any error, please paste it here.
    Also, please take a look at the example in
    this doc which also uses a writer. Note that if you have a writer writing the results to a destination, you typically don't need a web service output. See the below images, 1 with Web service output, another with a Writer. The writer needs to
    be configured.

  • Security with Web Service calling some EJBs

    Hi everybody,
    I have implemented some web services residing in a war file deployed on my Tomcat. The web services module is a client to some EJBs deployed on my JBoss. I need to log the user in my realm on each WS request and log the user out before the WS response.
    I have implemented security on web applications with JBoss and used JAAS realms succesfully but what do I do in this case with Web Services? I mean the requests are stateless. If I use the org.jboss.security.ClientLoginModule
    won't this override the credentials of another user who is already logged in the realm?
    I have also implemented a standalone application which spawns a thread for each user request and I am wondering about the same thing. This application is a service listening for some kind of messages; on a message the application should log the user in the realm before calling an EJB and log the user after the request is completed. So it's more or less the same situation as above.
    Is this possible? I mean logging many users in the same realm in one non-web application?
    Any ideas?
    Thank you in advance!!!
    thoism

    requests are stateless, just as are requests to webapps.
    Which is hardly surprising as a web services stack is typically implemented as a web application.
    If you could log in only a single user at the same time to an EJB application, it would be rather pointless to have the application as a distributed multiuser system :)
    What you might check is whether you're allowed to log in the same user several times, if I remember correctly this can be limited in the EJB module deployment descriptors.

  • Please help with web services (JSR 172)

    Hello!
    I'm in need of some help. I've only worked with web services some few weeks. I have two web services that I want to access from J2ME.
    Both works nice in regular Java (J2SE). I use axis so with the help of WSDL2Java I got a working client.
    One of them has four operations
        public boolean tryToLoginUser( String username, String password ) {}   
        public boolean tryToLogOffUser( String username, String password ){}
        public boolean createUserAccount( String username, String password ){ }
        public boolean removeUserAccount( String username, String password ){ } The problem is when I want to use Sun's Wireless Toolkit 2.2 and create stubs that way with the Stub Generator. It complains with this
    warning: Operation tryToLoginUser is of the wrong encoding SOAP style/use (rpc/encoded).  Document/literal only.  Skipping generation of operation.
    warning: Operation tryToLogOffUser is of the wrong encoding SOAP style/use (rpc/encoded).  Document/literal only.  Skipping generation of operation.
    warning: Operation createUserAccount is of the wrong encoding SOAP style/use (rpc/encoded).  Document/literal only.  Skipping generation of operation.
    warning: Operation removeUserAccount is of the wrong encoding SOAP style/use (rpc/encoded).  Document/literal only.  Skipping generation of operation.What I can tell is I need to put this in my axis deployment descriptor
    <service name="UserWebService" provider="java:RPC" style="document" use="literal">instead of this:
    <service name="UserWebService" provider="java:RPC">This wont work. It don't work with HTTP GET I get this error
      <?xml version="1.0" encoding="UTF-8" ?>
    - <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <soapenv:Body>
    - <soapenv:Fault>
      <faultcode>soapenv:Server.userException</faultcode>
      <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.</faultstring>
    - <detail>
      <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">slukare</ns1:hostname>
      </detail>
      </soapenv:Fault>
      </soapenv:Body>
      </soapenv:Envelope>I doesn�t work with WSDL2Java and when I run Sun's Wireless Toolkit 2.2 to generate stub it complains with
    warning: ignoring operation "tryToLoginUser": more than one part in input message
    warning: ignoring operation "tryToLogOffUser": more than one part in input message
    warning: ignoring operation "createUserAccount": more than one part in input message
    warning: ignoring operation "removeUserAccount": more than one part in input message
    warning: Port "UserWebService" does not contain any usable operationsDoes this mean I can only use one parameter for input in an operation when I use style="document" use="literal" ??
    I understood it that way, so I created a new web service that takes username and password in one String.
    The new web service has four operations
        public boolean tryToLoginUser( String usernameAndPassword ) {}   
        public boolean tryToLogOffUser( String usernameAndPassword ){}
        public boolean createUserAccount( String usernameAndPassword ){ }
        public boolean removeUserAccount( String usernameAndPassword ){ }The problem is that I get this error when running HTTP GET.
      <?xml version="1.0" encoding="UTF-8" ?>
    - <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <soapenv:Body>
    - <soapenv:Fault>
      <faultcode>soapenv:Server.userException</faultcode>
      <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.</faultstring>
    - <detail>
      <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">slukare</ns1:hostname>
      </detail>
      </soapenv:Fault>
      </soapenv:Body>
      </soapenv:Envelope>If I get a WSDL2Java client it works (!) if I manually changes the parameter names. I have four operations which all takes
    String usernameAndPassword
    in one String since I can only use one parameter with style="document" use="literal"
    The WSDL2Java automatically set the parameter names to
    usernameAndPassword
    usernameAndPassword1
    usernameAndPassword2
    usernameAndPassword3
    for the different operations. If I manually changes them to all have the name
    usernameAndPassword
    it works. Why doesn�t it work without manual changes? I haven�t tested the code from Sun�s Wireless Toolkit 2.2 Stub Generator yet, but that at least doesn�t give any errors .
    My other web service doesn�t work either if I set style="document" use="literal".
    This web service returns my own classes I have written. It works as I said previously in J2SE with WSDL2Java, but not with style="document" use="literal�. When I set this my byte[] which is returned is null when using the client from WSDL2Java, this wasn�t the case without style="document" use="literal�.
    I also get an error in Sun�s Wireless Toolkit 2.2 that byte[] is not recoigniced. This wasn�t the case with axis WSDL2Java.
    If I put this inside the axis deployment descriptor
    <deployment xmlns="http://xml.apache.org/axis/wsdd/"
             xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
           <service xmlns:j2melab2="urn:businessobject.j2melab2"
                     name="RecipeWebService" provider="java:RPC" style="document" use="literal">
              <parameter name="scope" value="session"/>
              <parameter name="className" value="j2melab2.webservices.RecipeWebService"/>
              <parameter name="allowedMethods" value="*"/>
                    <typeMapping qname="j2melab2:ArrayOfString"
                                 type="java:java.lang.String[]"
                                 serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
                                 deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
                                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>
                    <beanMapping qname="j2melab2:Recipe" languageSpecificType="java:j2melab2.businessobject.Recipe"/>         
                    <beanMapping qname="j2melab2:Ingredient" languageSpecificType="java:j2melab2.businessobject.Ingredient"/>         
                    <typeMapping qname="j2melab2:ArrayofIngredient"
                                 type="java:j2melab2.businessobject.Ingredient[]"
                                 serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
                                 deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
                                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>
                    <typeMapping qname="j2melab2:ArrayOfByte"
                                 type="byte[]"
                                 serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
                                 deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
                                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>                            
         </service>
    </deployment>instead of this
    <deployment xmlns="http://xml.apache.org/axis/wsdd/"
             xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
           <service xmlns:j2melab2="urn:businessobject.j2melab2"
                     name="RecipeWebService" provider="java:RPC">
              <parameter name="scope" value="session"/>
              <parameter name="className" value="j2melab2.webservices.RecipeWebService"/>
              <parameter name="allowedMethods" value="*"/>
                    <typeMapping qname="j2melab2:ArrayOfString"
                                 type="java:java.lang.String[]"
                                 serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
                                 deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
                                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>
                    <beanMapping qname="j2melab2:Recipe" languageSpecificType="java:j2melab2.businessobject.Recipe"/>         
                    <beanMapping qname="j2melab2:Ingredient" languageSpecificType="java:j2melab2.businessobject.Ingredient"/>         
                    <typeMapping qname="j2melab2:ArrayofIngredient"
                                 type="java:j2melab2.businessobject.Ingredient[]"
                                 serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
                                 deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
                                 encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>
         </service>
    </deployment>axis WSDL2Java won�t work anymore. And Sun�s Wireless Toolkit doesn�t work either with this. How can I get this to work with Sun�s Wireless Toolkit 2.2?
    So my questions are:
    Do I really need style=�document� use=�literal� for J2ME?
    Can I only have one parameter as input when I use style=�document� use=�literal� ?
    Why do I need to manally change the parameter names?
    How can I make Sun�s Wireless Toolkit 2.2 understand byte[] ?
    Many thanks for help :) (I have to present a solution in 1 � week to my J2ME teacher L).

    hi,
    i was wandering if you manage to successfully generate the stubs through the wireless toolkit at the end? i am currently having similar problem (i.e., trying to generate stub files based on wsdl from axis)? it seems that the WTK can only handle document/literal format, and so i change the wsdl to that. however, now it complains that it can't handle more than one input part in the message, (which is similar to the problem you had). so did you manage to find a solution to that, or J2ME simply does not support more than one arguement as the input?
    thanks in advance,
    lee

  • Sun Java Application Server Performance with Web Services

    We are running a web service on SJAS (Standard Edition). Load testing under 1 or 2 users works alright, but with 5 users making concurrent web service calls it immediately crashes the domain. Has anyone else run into performance issues when using SJAS with Web Services? Are there any configuration parameters we need to setup to handle more than 1 connection?
    I'm sure that the application server can handle many concurrent connections, just not sure how to configure and where to look for more information. If anyone is aware of actual numbers for load testing, that would be great information.
    Thanks,
    Dawson

    Hi Dawson,
    SJSAS can definetly handle more users. Can you please tell us, what version of SJSAS and web services (jax-rpc 1.1 or jax-ws 2.0?) implementation you are using? When you say it crashes the domain, do you see any error messages in the server.log?

  • Licensing question of OAS 10g with web services

    Does it cost anything extra to run/manage/secure web services built with jdeveloper 10g running on OAS 10.1.3?
    thanks,
    wes

    Hi Shay,
    I have followed exactly what the tutorial
    http://www.oracle.com/technology/obe/obe1013jdev/ws/wsandascontrol.htm
    explains. But at the end of the wizard , I cant select the methods for the web service to expose. When i click whynot ? button it says the the validity of the methods is not correct and there may be compilation errors. My JDeveloper is uptodate . When I selected Oracle service in the Web Service type selection of the wizard , it did everything and exposed methods, generated wsdl .. etc..
    Can you please tell where the problem is ?

  • Share adf content with web service

    Dear All.
    For my purpose I have to share adf context with web service. Let's have an example:
    I have managed bean class "Main.java":
    public class Main{
        public Main(){
        public String AnyResult() {            
            BindingContext bindingContext = BindingContext.getCurrent();
            DCBindingContainer dcb = bindingContext.findBindingContainer("view_page1PageDef");
            DCDataControl dc  = dcb.findDataControl("AppModuleDataControl1");
            AppModuleImpl appM = (AppModuleImpl)dc.getDataProvider();
            ViewObjectImpl vo = appM.getVO1();
            vo.executeQuery(); 
            Row row = vo.next();
            System.out.println(row.getAttribute("data1").toString());
    and web service class:
    @WebService
    public class Job {
        private WebServiceContext context;
    private Main cm;
        @WebMethod
        @Oneway
        public void run() {     
            cm = new Main();
        System.out.println(cm.AnyResult());
    Result: BindingContext bindingContext = BindingContext.getCurrent() :: returns NULL
    How to share ADF context with web service to be able to access ADF model.
    Regards.

    +1 on Shay's comment. Your architecture makes no sense.
    Try code like the below to access the AM from a method in the WS
    private final String amDef = " oracle.demo.model.viewer.soap.services.AmName";
    private final String config = "AmNameConfigurationLocal";
    //call in WS method to get AM reference
    private ApplicationModule getApplicationModule(String _amDef, String _config){
    return Configuration.createRootApplicationModule(_amDef,_config);
    //call at end of AM use to release AM
    private void releaseAm(ApplicationModule _am){  
    //release AM so it can be found in pool on subsequent calls
    Configuration.releaseRootApplicationModule(_am, false);  
    ... or, why don't you expose the AM as a Web Service ... See: http://docs.oracle.com/cd/E35521_01/web.111230/e16182/bcextservices.htm#CJAJGIEB   (works for all JDeveloper versions starting 11g+). If you Google for this then you find recordings Shay did about how to expose ADF BC AM as a service. Another piece of collateral is here: http://www.oracle.com/technetwork/issue-archive/2012/12-sep/o52adf-1735897.html
    Frank

Maybe you are looking for

  • Bapi_salesorder_createfromdat2, zero price in conditions

    Hi, I create salesorder with bapi_salesorder_createfromdat2 and give price for material in ORDER_CONDITION_IN table. When price is >0 it works OK. But I need in some cases to create orderline with 0 (zero) price. When entering 0 in COND_VALUE field i

  • Is there a way to ROTATE a flashpaper swf

    Is there a way to rotate a flashpaper swf on a web page? My client is converting brochures to flashpaper and has no way to rotate the image from her application. She prints to flashpaper and the result is a portrait mode that really needs to be on th

  • OS X Lion Screen Sharing Slow on MBP 13" (Early 2011)

    Hello All, I've been cruising forums and various posts, but have not seen anything directly relating to the issue I'm having. I just upgraded all my Macs to Lion and when I screen share(SS) from my lion macs at work to my lion macs at home there has

  • Soundtrckr Geo social internet Radio for N8

    Just launched at Beta labs and only for Symbian^3 Phones, may be worth a try http://betalabs.nokia.com/apps/soundtrckr If I have helped at all, a click on the White Star is always appreciated : you can also help others by marking 'accept as solution'

  • Macbook Pro - Bootcamp Issue

    I have a macbook pro from late 2010 with the latest Leopard and would like to partition my harddrive for windows.  I had done this once before and it worked fine.  However, since I erased the original partition, I am unable to create a new one.