Problem with Oracle Web Service Proxies reusing classes and exceptions

We have an application that have many web services and we're having a really hard time working with Oracle Web Service Proxy. We have many web services that share the same classes for parameters and exceptions. When we generate de proxy classes, it generates a lot of _LiteralSerializer classes. Because I'm reusing the same classes and exceptions it generates the same _LiteralSerializer classes for this classes and they get replaced. For Example
I have classes A and B and Web Services X and Y that use this classes. When I generate the 2 proxies it generates A_LiteralSerializer and B_LiteralSerializer on the 2 proxies and they get replaced and I get "No serlalizers for A class or B class". This problems repeats a lot of times and this problem is a huge risk for our project. We're using JDeveloper 10.1.3.4.
Is there a way to avoid this with Oracle Web Service Proxies?
Regards,
Néstor

Resolved when I create a deployement profile explicitly.
The Webservice.deploy that gets created automatically when I create a web service was giving this issue.
Thanks
Saikrishna

Similar Messages

  • Problem with RESTful web service

    I am running into a problem with Flex Web Services (REST) in trying to get the proper format returned. I can see that the HTTP header is set to
    Accept: */*;
    rather than
    Accept: application/xml
    when sending the request. The web service was generated via the web services HTTP data services wizard. I edited it to set the resultFormat to xml
        // Constructor
        public function _Super_UsersService()
            // initialize service control
            _serviceControl = new mx.rpc.http.HTTPMultiService();
             var operations:Array = new Array();
             var operation:mx.rpc.http.Operation;
             var argsArray:Array;
             operation = new mx.rpc.http.Operation(null, "getUsers");
             operation.url = "http://localhost:8888/users";
             operation.contentType = "";
             operation.method = "GET";
             operation.resultFormat = "xml";
             //operation.serializationFilter = serializer0;
             operation.properties = new Object();
             operation.properties["xPath"] = "/";
             operation.resultType = valueObjects.Users;
             operations.push(operation);
             _serviceControl.operationList = operations; 
             model_internal::initialize();
    How does one configure the accept header?

    Hi,
    I have posted a simple application with the RESTful reference:
    http://apex.oracle.com/pls/apex/f?p=13758
    I can give you full privileges on this so you can look at the WEB service reference. Shall I send to you separately for login user?
    It is using the RESTful service: http://apex.oracle.com/pls/apex/nd_pat_miller/demo/employee/{deptno}
    This RESTful service tests fine when I test from within the RESTful web service module of the Workspace.
    I based this on the Video demo tutorial for RESTful web service that Oracle published for 4.2 release. The video seemed to exclude the {deptno} in the URL but when I try that, it doesn't work either.
    This is the error I am getting when I run this on my Apex environment: (it, of course, will not run the web service in the apex.oracle.com environment)
    class="statusMessage">Bad Request</span>                                         
    </h3>                                         
    </div>                                         
    </div>                                         
    <div id="xWhiteContentContainer" class="xContentWide">                                         
    <div class="xWhiteContent">                                         
    <div class="errorPage">                                         
    <p>                                         
    <ul class="reasons"><li class="badRequestReason"><span class="target" style="display:none;">uri</span><span class="reason">Request path contains unbound parameters: deptno</span></li>                                    
    </ul>Thanks,
    Pat
    Edited by: patfmnd on May 8, 2013 3:33 AM

  • Problem with Google Web-Service Example

    Hi guys,
    i have a problem with the Google Web-Service Example.
    I am running EP6.0 SP9 and NWDVST 2.0.9
    I did everything according to the tutorial. Got my google license key too.
    When i test the web-service i get the following exception:
    +
    #1#com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
    Component : pcd:portal_content/com.studie.webdynpro1/com.Allgemein.Allgemein/com.Allgemein.iViews/com.Allgemein.Google
    Component class : com.tutorial.wsdl2service.MyGooglePage
    User : Administrator
    at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:343)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
    at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: com.sapportals.portal.prt.component.PortalComponentException: Exception during PageProcessorComponent.doContent()
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:139)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    ... 29 more
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:172)
    at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:115)
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
    ... 32 more
    Caused by: com.sapportals.portal.prt.service.ServiceException: Service not found: MyGoogleService
    at com.sapportals.portal.prt.core.service.ServiceManager.getPortalServiceItem(ServiceManager.java:384)
    at com.sapportals.portal.prt.core.service.ServiceManager.get(ServiceManager.java:184)
    at com.sapportals.portal.prt.runtime.Portal$RuntimeResources.getService(Portal.java:132)
    at com.tutorial.wsdl2service.MyGooglePage$GoogleDynPage.onSearchButtonClicked(MyGooglePage.java:98)
    ... 39 more+
    My XML File has the following content:
    ++
    The MyGooglePage.java includes the following line:
    IMyGoogleService googleService = (IMyGoogleService) PortalRuntime.getRuntimeResources().getService("MyGoogleService");
    any ideas what the problem is? I read all of the existing forum threads about this topic but could not solve the problem.
    Message was edited by: Dirk Jäckel

    no ideas so far?

  • Problem with CFMX web service function return

    I made a post yesterday about a web service function I was
    writing, as it turns out my post was extremly incorrect for my
    problem. With this web service function I can return an array just
    fine, I can return one instance of an object just fine, however,
    when I try to return an array of the object I keep getting the
    error:
    Could not perform web service invocation "SelectGames"
    because AxisFault faultCode: {
    http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
    faultSubcode: faultString: [org.apache.axis.AxisFault : ; nested
    exception is: coldfusion.xml.rpc.CFCInvocationException:
    [java.lang.IncompatibleClassChangeError : Dependent CFC type(s)
    have been modified. Please refresh your web service client.]];
    nested exception is: coldfusion.xml.rpc.CFCInvocationException:
    [org.apache.axis.AxisFault : ; nested exception is:
    coldfusion.xml.rpc.CFCInvocationException:
    [java.lang.IncompatibleClassChangeError : Dependent CFC type(s)
    have been modified. Please refresh your web service client.]]
    faultActor: faultNode: faultDetail: {
    http://xml.apache.org/axis/}stackTrace:
    AxisFault faultCode: {
    http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
    faultSubcode: faultString: [org.apache.axis.AxisFault : ; nested
    exception is: coldfusion.xml.rpc.CFCInvocationException:
    [java.lang.IncompatibleClassChangeError : Dependent CFC type(s)
    have been modifie..
    which basically means that the CF server needs restarted.
    However if I restart the CF server, no matter how many times I am
    still getting this error. If I change up my web service function to
    return just a normal array of integers or strings, or I change it
    to return one instance of the arbritrary complex type it all works
    just fine. I am still a little new on this subject and any
    enlightenment would be great. If anyone has found a way around this
    please let me know.
    Here is my complex type:
    <cfcomponent>
    <cfproperty name="Game_id" type="numeric">
    <cfproperty name="gameDate" type="date">
    <cfproperty name="Starttime" type="string">
    <cfproperty name="Place" type="string">
    <cfproperty name="Level" type="string">
    <cfproperty name="Sport" type="string">
    <cfproperty name="Gender" type="string">
    <cfproperty name="Opponent" type="string">
    <cfproperty name="Type" type="string">
    <cfproperty name="Link" type="string">
    </cfcomponent>
    I loop trhough a query and set a cfobject of the types above,
    then I append that object to an array and try t o return the array.
    Here is the basics of the loop:
    <cfset theArray = arrayNew(1)>
    <cfobject component = "games" name = "test>
    <cfloop query ...>
    <!--- set values to test ---->
    <cfset arrayApend(theArray, test)>
    </cfquery>
    <cfreturn theArray>
    my return type is array, I think the problem is I need to
    specify the return type to be an array of arbritray complex types
    which is impossible to do in CF. Anyone find a way to get around
    this?? Any feed back at all would be greatly appreciated.

    Yes, I have tried it and return type any does not work in
    this situation since this function is being consumed by a web
    service. It needs to be in the form of an array of arbritrary type
    that is defined in a cfc file. Since this is WSDL the returntype
    has to be specified to every last bit.

  • Problem with XI web service,

    Create webDynpro DC try to connect web service in XI side, I have created Adaptive web service, set up username and password in Visual Administrator, point url to a uddi wsdl, but when i try to run the application , I got error says "InvocationException occurred invoking method" when i try to new the model class.
    the other thing is that the some wsdl files with location field like "http://server:port/sap/xi/engine?type=entry&version=3.0&Sender.Service=BS_ESALES_PORTAL&"
    and other wsdl files with location field like ""http://server:port/XISOAPAdapter/MessageServlet?Version=3.0&Channel=:"
    which wsdl format is the correct way in order to let webDynpro application to call it. Please help me if you have an idea, thanks a lot!

    Hao fan,
    If you are using SOAP as your sender adapter then your second one is good. Also please check this document on how to post it to XI using SOAP:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40611dd6-e66e-2910-f383-e80fb44f9cd4
    The first one we will use when you post directly to integration engine instead of uisng SOAP adapter. Check this weblog by stefan on this:
    /people/stefan.grube/blog/2006/09/21/using-the-soap-inbound-channel-of-the-integration-engine
    So first you make sure how you are sending data to XI. Then create a WSDL according to that and then test your webservice.
    ---Satish

  • What is problem with my web services application?

    Hi Everyone, I have a question for you.
    I created a web service, and tried to call its method within a JSF application (developed by JSC2). Following is what I got:
    1) It works with TravelWS example.
    2) It works if I called my web services' methods from a standalone Java program.
    3) It does NOT work if I call it within my JSF applicationBean1() or JSP pages.
    4) After adding my own web services into my JSF through JSC IDE, I tested my methods provided by web services. Two of them are working. But rest of them do not.
    If it is the problem of my web service, why my standalone Java program works?
    If it is the problem of my JSF application configuration, why TravelWS example works?
    What can the problem be? Can someone give me some suggestions?
    Any help is appreciated.

    Thanks both of you for the response.
    Here is my situation. The web service is developed by another team. And we are trying to call their methods in our JSF application. From the example provided by the web service team, I need to do following in my JSF code:
    myWebServiceLocator locator = new myWebServiceLocator();
    locator.setMyWebServiceSoapEndpointAddress( "http://mywebserviceurl./axis/services/myWebServiceSoap" );
    locator.setMaintainSession( true );
    this.myWebService = locator.getMyWebServiceSoap();
    The problem is that the locator above extends org.apache.axis.client.Service, however, the JSF generated client creates a javax.xml.rpc.Service object. I guess this might cause my problem.
    How to solve this?

  • Generating wsdl:fault with Oracle Web Services

    What conditions are required to have Oracle Web Services throw a defined wsdl:fault over a soap:fault? Is there documentation on how to map these correctly from your java code? I can't seem to find anything in the documenation that discusses this and when using the WebServiceAssembler to generate WSDLs including an exception in a method signature does nothing to generate a wsdl section in the generated portType.
    Any pointers are appreciated.

    Hi,
    If a method throws Exceptions that are not instances / subclasses of java.rmi.RemoteException, then it's not a SOAP Fault, but a wsdl:fault. This is the manner in which JAX-RPC handles the Exceptions.
    Regards,
    Sandeep

  • Problems with Oracle Web Logic 10.3.6, certificates and proxies

    Good morning.
    We are trying to establish a SSL connection using Apache Cxf and WebLogic Server 10.3.6.
    For that, we are passing through a proxy. Using Apache Tomcat, the test is ok, we can connect to the endpoint correctly. But in WebLogic 10.3.6, we have problems with the certificates.
    In our code, we are loading the certificates programatically.
    The web-services-config.xml is the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans
         xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd"
         xmlns:http="http://cxf.apache.org/transports/http/configuration"
         xmlns:sec="http://cxf.apache.org/configuration/security" xmlns:jaxws="http://cxf.apache.org/jaxws"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans">
         <jaxws:client address="@SNE.SNE_WS_URL@"
              serviceClass="com.bankia.sne.ws.clientes.buzonAPESNE.APESNEBuzonWSTipoPuerto"
              id="puertoAPESNEBuzonWS" />
         <http:conduit name="@SNE.SNE_WS_URL@">
              <http:client Connection="Keep-Alive" AutoRedirect="true"
                   ProxyServerType="HTTP" ProxyServerPort="@SNE.PROXY_PORT@"
                   ProxyServer="@SNE.PROXY_HOST@" />
              <http:proxyAuthorization>+
                   <sec:UserName>@SNE.PROXY_USER@</sec:UserName>
                   <sec:Password>@SNE.PROXY_PASSWORD@</sec:Password>
              </http:proxyAuthorization>
              <http:tlsClientParameters>
                   <sec:cipherSuitesFilter>
                        <!-- these filters ensure that a ciphersuite with export-suitable or
                             null encryption is used, but exclude anonymous Diffie-Hellman key change
                             as this is vulnerable to man-in-the-middle attacks -->
                        <sec:include>.*EXPORT.*</sec:include>
                        <sec:include>.*EXPORT1024.*</sec:include>
                        <sec:include>.*WITHDES_.*</sec:include>
                        <sec:include>.*WITHNULL_.*</sec:include>
                        <sec:exclude>.*DHanon_.*</sec:exclude>
                   </sec:cipherSuitesFilter>
              </http:tlsClientParameters>
         </http:conduit>
    </beans>
    That's the code used for establish the CXF connection:
    private void configuraConexion(Buzon buzon){
              try {
                   LOGGER.debug("Configurando conexión con el sevicio Web para el buzón con id " + buzon.getId() + " ...");
                   Client client = ClientProxy.getClient(puertoAPESNEBuzonWS);
                   HTTPConduit httpConduit = (HTTPConduit) client.getConduit();
                   TLSClientParameters tlsParams = httpConduit.getTlsClientParameters();
                   Certificado certificado = buzon.getCertificado();
                   byte[] bytes = certificado.bytesCertificado();
                   CertificadoSerializable certSerializado = (CertificadoSerializable)Serializador.desserializar(bytes);
                   //Cargamos el truststore de disco
                   TrustManagerFactory trustFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
                   KeyStore truststore = KeyStore.getInstance(Propiedades.getProperty(KEY_SERVICIO_WEB_ALMACEN_TRUSTSTORE));
                   String contrasenia = Propiedades.getProperty(KEY_SERVICIO_WEB_TRUSTORE_PASSWORD);
                   // -- provide your truststore
                   File ficheroTruststore = null;
                   String rutaTrustore = Propiedades.getProperty(KEY_SERVICIO_WEB_TRUSTORE_RUTA) Propiedades.getProperty(KEY_SERVICIO_WEB_NOMBRE_TRUSTSTORE);
                   LOGGER.debug("rutaTrustore --> " + rutaTrustore);
                   if (rutaTrustore!=null){+
                        ficheroTruststore = new File(rutaTrustore);
              URL url = null;
                   if(ficheroTruststore == null || !ficheroTruststore.exists()){
                        url = Localizador.getResource(Propiedades.getProperty(KEY_SERVICIO_WEB_NOMBRE_TRUSTSTORE));
                        ficheroTruststore = new File(url.getPath());
                        truststore.load(url.openStream(), contrasenia.toCharArray());
                   }else{
                        truststore.load(new FileInputStream(ficheroTruststore), contrasenia.toCharArray());                    
                   LOGGER.info("[ServicioWSBuzonAPESNEImpl.configuraConexion] Fichero truststore.pks recuperado de "+ficheroTruststore.getPath());
                   trustFactory.init(truststore);
                   TrustManager[] tm = trustFactory.getTrustManagers();
                   tlsParams.setTrustManagers(tm);
                   //Cargamos el Keystore de base de datos
                   KeyStore keyStore = KeyStore.getInstance(Propiedades.getProperty(KEY_SERVICIO_WEB_TIPO_ALMACEN_KEYSTORE));
                   keyStore.load(null, certificado.getContrasenia().toCharArray());
                   keyStore.setKeyEntry(certificado.getAlias(), certSerializado.getClavePrivada(), certificado.getContrasenia().toCharArray(), certSerializado.getCadena());
                   // set our key store+
                   // (used to authenticate the local SSLSocket to its peer)
                   KeyManagerFactory keyFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
                   keyFactory.init(keyStore, certificado.getContrasenia().toCharArray());
                   KeyManager[] km = keyFactory.getKeyManagers();
                   tlsParams.setKeyManagers(km);
                   httpConduit.setTlsClientParameters(tlsParams);
                   LOGGER.debug("Conexión configurada satisfactoriamente");
              }catch (Exception e) {
                   LOGGER.error("Error al configurar la conexión del servicio Web", e);
                   throw new WSBuzonException("Error al configurar la conexión del servicio Web: " + e.getMessage());
    We don't know how to solve this issue? Please, could you help us?
    Thanks in advance,
    Jaime.
    Edited by: j2eedevelopment on 10-jul-2012 10:05

    Hi Zack, thanks for the answer.
    I've cleaned the code below.
    Our problem is the following: we wan't to use many keystores, in function the user who is connected in the application. For that reason, we wan't to give the keyStore from Java Client, because we've saw that, in WebLogic, you can select one keystore, but only one. For that reason, we wantto change the keystore in run time execution, dinamically.
    The problem we have found are the following:
    1) If we configure WebLogic with the correct keystore and trustore, we are not able to change keysotre and trustore in runtime execution, so we have to us always the same keystore and we don't want this.
    2) Also, I'm trying now to use JaxWS instead Apache Cxf, and I've tried to put the ssl properties of the system with the following code:
    System.setProperty(JAVAXNETSSLTRUST_STORE, trustore);
    System.setProperty(JAVAXNETSSLTRUST_STORE_PASSWORD, trustStorePassword);
    System.setProperty(JAVAXNETSSLKEY_STORE, keyStore);
    System.setProperty(JAVAXNETSSLKEY_STORE_PASSWORD, keyStorePassword);
    System.setProperty(JAVAXNETSSLKEY_STORE_TYPE, keyStoreType);
    Thanks in advance,
    Jaime.

  • Class path problem with POJO web service

    I created a simple web service manually:
    - created java class;
    - generated web-services.xml
    - coplied web-services.xml into my *.war file, WEB-INF directory.
    This works fine as long as the class that implements web service is in the war file in folder /WEB-INF/classes.
    I need the java class to be in one of the jar files in the folder /WEB-INF/lib. This does not work. I am getting class not found error.
    I tried to modify <java-class> element to specify the jar file (the same way as ejb-link element does):
    <java-class class-name="my.jar#my.Service" name="MyService">
    </java-class>
    This did not help either. How can I specify name of POJO class in the *.jar file?
    Thanks,
    Serguei

    PATH and CLASSPATH are different. PATH is an environment variable used by windows to locate programs. CLASSPATH is an environment variable that java uses to find classes.
    You need to create a new environment variable. The easiest way to do it in win2k (and to keep it after you reboot) is to do this: right click on "My Computer" and click "Properties" (or go to "System" in the control panel). Click on the "Advanced" tab. Click the "Enviroment Variables..." button. In that window, add a system variable by clicking "New..." in the bottom half. Variable Name: "CLASSPATH" Variable Value: ".;J:\Skribe\Tools\mysql-connector-java-3.0.0-beta\mysql-connector-java-3.0.0-beta-bin.jar;J:\jakarta-log4j-1.2.6\dist\lib\log4j-1.2.6.jar"
    You have to make sure that ".;" is the first thing on the line. This tells java to look in the current active directory first for classes it doesn't recognize, then in locations you specify. By default, it just looks in the current directory.
    Hope this helps.

  • Problems with building web services - tutorial doesn't work

    I've been going through this tutorial from technet.oracle.com -
    trying to deploy the example stateless session bean service.
    First problem comes when running the deploy command -
    java -jar <j2ee_home>/admin.jar ormi://<host> <uid> <pwd> -deploy -file ejbws.ear -deploymentName ejbws.
    This command fails insisting that it can't find application.xml (even though it is clearly in the .ear file).
    Got around this by manually editing the server.xml file and bouncing OC4J. Then did the bind command. The first steps of compiling and running the client application then worked fine - I could see the .wsdl file and download the proxy jar.
    But when I came to actually run the client I got the error:
    Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsu
    pported response content type "text/html", must be: "text/xml". Response was:
    <HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server Error</H1><PRE>oracle.j2ee.xanadu.JasperGenerationError: no source generated during code generation!: error: I/O error in UrlBridge to: file:E:\ORACLE\j2ee\home\application-deployments\ejbws\ejbws\temp\__session_bean_rpc\Hello.class.<br>binary class definition not found: Hello
    By manually copying the Hello.class file into the __session_bean_rpc directory I was able to get the example to run.
    But how do I get it do deploy correctly in the first place????
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    I ran into the EXACT same problem described by Tracy, and I assembled my .ear file manually.
    According the error message, it would appear that the server is looking for the EJB remote interface in the ../temp/__session_bean_rpc directory when it is trying to generate its session bean wrapper class. As Tracy notes, when the file Hello.class is copied into the directory, the problem goes away. Furthermore, once the wrapper class has been generated, Hello.class is no longer needed and can be deleted from the directory.
    Better still, I found a way to deploy the web services web module and make the error go away. I created the ejbws.war file with a copy of the remote interface Hello.class in the WEB-INF/classes directory. This makes the class available when the wrapper class is generated.
    The WebServicesAssembler tool doesn't copy the EJB remote interfaces into the .war web module, which would appear to be
    necessary.
    Hope this helps.

  • Problem with ABAP Web service

    Hello Experts,
    Some unusual thing is happening.
    Till this time my scenario was HTTP to RFC. So i have imported RFC in XI and its structure was perfact.
    Tables having cardinality as 1...1, and fields were having cardinalities as 0....1.
    Now we have planned to switch to the proxies and ABAP Web services. I have created the ABAP Web service with the same function module and imported it into the External definations.
    When i am trying to use it into the mapping, Table cardinalities are 1....1 and fields are also having cardinalities as 1...1.
    Now because of that i hv to map all the fields with some constants, but m not comfortable with it as there are nearly 1000 fields.
    Do anyone of you have any idea what might be the problem? or how can i solve it.
    Hope the question is clear.
    Please help in this problem.
    Thanks,
    Hetal

    Hello Hetal,
    This is happening because when you genarte the Webservice out of a Function Module, all the fields in your are mendatory in the generated WSDL.
    This can be avoided. The WSDL that you have generated for your webservice, can be manually edited in Stylus studio etc to change the cardinality and make it optional. We also did the same in one of our scenario and it is working fine.
    As you are mapping these fields with constants, so it doen't make a difference if those are optional too.
    Just edit the WSDL/xsd and reimport it.
    Thanks
    -Kulwant

  • Facing Problem with Adaptive Web Service Model

    Hi All,
    I am consuming adaptive web servcie model.  It is created from a lcoal web service i.e deployes on a web service. When i run from WS navigator it works fine.
    When i consume WDJ it is erroring out. The method is written an array of bean methods.
    The error i am getting is -- java.lang.IllegalArgumentException: Target role name 'Response' not defined for model class 'SearchInvoiceByNumberResponse'
    Please help me, have a very tight delivery....
    Thanks
    Supriya

    Hi All,
    I did re-imported my model but no help. There are 5 business methods in my EJB. three methods returns integer value and other two methods are selecting the data which returns bean type. One is bean type and another is of bean array type.....
    I have problem with only these two...........................these two methods errors out when try to consume through adaptive web servcie model....are there any pre-requsisties i should take care offf.....
    Help me out................
    Thanks
    Supriya.

  • Problems with OC4J Web services and Flex SOAPEncoder

    Hello!
    I got a problem trying to execute a web service running in
    Oracle OC4j 10.1.3.3, and a client side with Flex3. I generated the
    scripts for using the web service using Flex builder 3, but it's
    not making a valid call to web service. I debugged the call
    operation to the Flex SOAPEncoder which seems to generate an
    invalid soap message. The SOAPEncoder generates the following
    message;
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns="
    http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
    <tns:getDocuments xmlns:tns="
    http://modultek.atonpdm.document/">
    <tns:getDocuments>
    <tns:String_1>service manual</tns:String_1>
    </tns:getDocuments>
    </tns:getDocuments>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Where the correct working soap message should be;
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns="
    http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
    <tns:getDocuments xmlns:tns="
    http://modultek.atonpdm.document/">
    <tns:String_1>service manaual</tns:String_1>
    </tns:getDocuments>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Problem in the first message is that Flex SOAPEncoder
    generates an extra <tns:getDocuments> child tag, and Oracle
    app server can't handle it.
    Has someone any idea why SOAPEncoder is generating the extra
    operation tag, and is this behaviour configurable somehow or is the
    soapencoder broken?
    The wsdl is included in the following;
    <?xml version="1.0" encoding="UTF-8" ?>
    - <definitions xmlns="
    http://schemas.xmlsoap.org/wsdl/"
    xmlns:soap12="
    http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:soap="
    http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns:mime="
    http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:tns="
    http://modultek.atonpdm.document/"
    name="DocumentOperationsService" targetNamespace="
    http://modultek.atonpdm.document/">
    - <types>
    - <schema xmlns="
    http://www.w3.org/2001/XMLSchema"
    xmlns:wsdl="
    http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soap11-enc="
    http://schemas.xmlsoap.org/soap/encoding/"
    targetNamespace="
    http://modultek.atonpdm.document/"
    elementFormDefault="qualified">
    - <complexType name="SimpleDocumentDM">
    - <sequence>
    <element name="docGroupDesc" type="string"
    nillable="true" />
    <element name="docRev" type="string" nillable="true"
    />
    <element name="docId" type="string" nillable="true" />
    <element name="docGroup" type="string" nillable="true"
    />
    <element name="docDesc1" type="string" nillable="true"
    />
    <element name="docDesc2" type="string" nillable="true"
    />
    <element name="docCode" type="string" nillable="true"
    />
    <element name="docDesc3" type="string" nillable="true"
    />
    <element name="docDesc4" type="string" nillable="true"
    />
    </sequence>
    </complexType>
    <element name="getDocuments" type="tns:getDocuments"
    />
    - <complexType name="getDocuments">
    - <sequence>
    <element name="String_1" type="string" nillable="true"
    />
    </sequence>
    </complexType>
    <element name="getDocumentsResponse"
    type="tns:getDocumentsResponse" />
    - <complexType name="getDocumentsResponse">
    - <sequence>
    <element name="return"
    type="tns:CollectionOfSimpleDocumentDM" nillable="true" />
    </sequence>
    </complexType>
    - <complexType name="CollectionOfSimpleDocumentDM">
    - <sequence>
    <element name="item" type="tns:SimpleDocumentDM"
    minOccurs="0" maxOccurs="unbounded" />
    </sequence>
    </complexType>
    <element name="getSimpleDocumentInformation"
    type="tns:getSimpleDocumentInformation" />
    - <complexType name="getSimpleDocumentInformation">
    - <sequence>
    <element name="String_1" type="string" nillable="true"
    />
    </sequence>
    </complexType>
    <element name="getSimpleDocumentInformationResponse"
    type="tns:getSimpleDocumentInformationResponse" />
    - <complexType
    name="getSimpleDocumentInformationResponse">
    - <sequence>
    <element name="return" type="tns:SimpleDocumentDM"
    nillable="true" />
    </sequence>
    </complexType>
    </schema>
    </types>
    - <message name="DocumentOperations_getDocuments">
    <part name="parameters" element="tns:getDocuments" />
    </message>
    - <message
    name="DocumentOperations_getDocumentsResponse">
    <part name="parameters"
    element="tns:getDocumentsResponse" />
    </message>
    - <message
    name="DocumentOperations_getSimpleDocumentInformation">
    <part name="parameters"
    element="tns:getSimpleDocumentInformation" />
    </message>
    - <message
    name="DocumentOperations_getSimpleDocumentInformationResponse">
    <part name="parameters"
    element="tns:getSimpleDocumentInformationResponse" />
    </message>
    - <portType name="DocumentOperations">
    - <operation name="getDocuments">
    <input message="tns:DocumentOperations_getDocuments"
    />
    <output
    message="tns:DocumentOperations_getDocumentsResponse" />
    </operation>
    - <operation name="getSimpleDocumentInformation">
    <input
    message="tns:DocumentOperations_getSimpleDocumentInformation" />
    <output
    message="tns:DocumentOperations_getSimpleDocumentInformationResponse"
    />
    </operation>
    </portType>
    - <binding name="DocumentOperationsSoapHttp"
    type="tns:DocumentOperations">
    <soap:binding style="document" transport="
    http://schemas.xmlsoap.org/soap/http"
    />
    - <operation name="getDocuments">
    <soap:operation soapAction="" />
    - <input>
    <soap:body use="literal" />
    </input>
    - <output>
    <soap:body use="literal" />
    </output>
    </operation>
    - <operation name="getSimpleDocumentInformation">
    <soap:operation soapAction="" />
    - <input>
    <soap:body use="literal" />
    </input>
    - <output>
    <soap:body use="literal" />
    </output>
    </operation>
    </binding>
    - <service name="DocumentOperationsService">
    - <port name="DocumentOperationsBean"
    binding="tns:DocumentOperationsSoapHttp">
    <soap:address location="
    http://procyon:8888/atonpdm/DocumentOperationsBean"
    />
    </port>
    </service>
    </definitions>
    Best regards, Janne

    I am having the exact same problem. The SOAPEncoder is adding
    an additional tag and the server thinks the envelope is not
    properly formatted and therefore does not know what to do with it.
    Is there any fix for this yet? Or has it even been reported as a
    bug?

  • Problem with RESTful web service with header value

    Hi,
    I am on Apex 4.2.2 and Listener 2.1 and the listener is on WEblogic.
    I succeeded to get a RESTful web service working in an application with no header to obtain a full set of data. The data set is very large, so I am now just trying to set up a web service to get a set of data based on a student ID.
    I followed the examples shown in the RESTful web service module of SQL Workshop and set up a handler of this type:
    https://ourweblogicserver/apex/bnr/ace/students/course_grades/{stid}
    The test for this handler succeeded both for JSON output and CSV output in the Workshop test environment.
    However, when I try it from a Web Service Reference that I created for my application following what looked like the same approach used on the example video, I get NO data back. If I put a 'stid' directly into a URL of a web browser and do the basic authentication I get the data!!
    This is what I have for the Web service reference:
    https://ourweblogicserver/apex/bnr/ace/students/course_grades/{stid}
    Basic auth set to Yes -- and this is working -- I am able to authenticate
    HTTP method Get
    output format Text
    no response Xpath
    no response namespace
    defaults for new record and parameter delimiter
    NO REST input parameters
    Output set for all the fields in the data set queried (same set of data as in my rest service which does not have any http header)
    REST HTTP Header : Name stid
    I there something I am missing. I am not sure how to troubleshoot this further.
    Pat

    Hi,
    I have posted a simple application with the RESTful reference:
    http://apex.oracle.com/pls/apex/f?p=13758
    I can give you full privileges on this so you can look at the WEB service reference. Shall I send to you separately for login user?
    It is using the RESTful service: http://apex.oracle.com/pls/apex/nd_pat_miller/demo/employee/{deptno}
    This RESTful service tests fine when I test from within the RESTful web service module of the Workspace.
    I based this on the Video demo tutorial for RESTful web service that Oracle published for 4.2 release. The video seemed to exclude the {deptno} in the URL but when I try that, it doesn't work either.
    This is the error I am getting when I run this on my Apex environment: (it, of course, will not run the web service in the apex.oracle.com environment)
    class="statusMessage">Bad Request</span>                                         
    </h3>                                         
    </div>                                         
    </div>                                         
    <div id="xWhiteContentContainer" class="xContentWide">                                         
    <div class="xWhiteContent">                                         
    <div class="errorPage">                                         
    <p>                                         
    <ul class="reasons"><li class="badRequestReason"><span class="target" style="display:none;">uri</span><span class="reason">Request path contains unbound parameters: deptno</span></li>                                    
    </ul>Thanks,
    Pat
    Edited by: patfmnd on May 8, 2013 3:33 AM

  • Problem with OBIEE Web Service getHTMLForReport() Method

    Hello, I´m trying to develop an example using the OBIEE Web Services and I have a problem with the method “getHTMLForReport(String pageID,String pageReportID,String sessionID)” (http://download.oracle.com/docs/cd/E12103_01/books/AnyWebServ/AnyWebServ_Methods8.html).
    The problem is the next one: In the pageReportID parameter should contain a character string ID returned by the addReportToPage() method, but the addReportToPageMethod is a void method. (http://download.oracle.com/docs/cd/E12103_01/books/AnyWebServ/AnyWebServ_Methods4.html#wp1008810)
    Which is the value of the pageReportID parameter?
    Thank you.

    Yes, there seems to be a bug in the oracle documentation. Basically, the second parameter of the addReportToPage() method is a free text. You can put "report101" as value of second parameter. Then you have to use the same string in the getHTMLForReport()method.
    For example ..
    addReportToPage(pageId, "report2", reportRef, "Jaggi Di Report", null, null, sessionID);
    getHtmlForReport(pageId, "report2", sessionID);
    Regards
    Jagdeep Singh

Maybe you are looking for

  • Installer does not create directories/files in APPDATA directory

    I have an installer that installs the application into the Program Files directory, and additionally, is supposed to create application files and a directory structure in the Public App Data (%APPDATA%) directory of the Windows installation. In the L

  • Expected actions of svchost.exe - what is interesting, in the context of monitoring what svchost.exe is doing?

    Hi, I have seen numerous articles explaining svchost, and I think I have a reasonable grasp of it (although basic).  My favourite article so far is http://www.bleepingcomputer.com/tutorials/list-services-running-under-svchostexe-process/#advanced, wh

  • MAP  not updating

    dear friends i Have a peculiar problem in my company , only for materials which are one in quantity , if after 601 we are doing sales return 653 then materials which were in one quantity there MAP becomes zero and in 653 movement in mb5b there map is

  • Error on snowflake, no workaround

    Hello all, I have a part of my BM which is in snowflake : MEC date -> vehicle -> invoice both dimensions tables MEC date and vehicle have their own LTS and their own dimension (hierarchy). Each dimension table LTS is set to be the lowest level in the

  • TMS in JAVA Engine

    Hello Gurus,           How to configure TMS in Java we r having EP and XI. So how to configure with 3 system landscape in Java Environment. Is there any specific procedure to follow similar to ABAP TMS? Cheers