Web service problem serializing objects?

JDeveloper Studio Edition Version 10.1.3.2.0.4066
I deployed a web service developed with JDeveloper to OAS 10.1.3.1.0
I generated a web service client proxy in JDeveloper to call the web service.
I get an exception (below). I tried regenerating the proxy code. Same exception when I try running it. I tried regenerating the web service and redeploying. Same exception.
It seems like the WSDL is correct, but the XML produced by the web service drops some letters from the schema types?
Has anyone else seen this? Here is the exception I'm getting:
unexpected element type: expected={http://edu.apollogrp.selfservice/ISelfService.xsd}edu_apollogrp_selfservice_SelfServiceResults, actual={http://edu.apollogrp.selfservice/ISelfService.xsd}edu_apollog_SelfServiceResults
at oracle.j2ee.ws.common.encoding.SerializerBase.verifyType(SerializerBase.java:168)
at oracle.j2ee.ws.common.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:170)
at oracle.j2ee.ws.common.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:147)
at customerservice.proxy.runtime.SelfServiceBinding_Main_RespS__SOAPSerializer.doDeserialize(SelfServiceBinding_Main_RespS__SOAPSerializer.java:44)
at oracle.j2ee.ws.common.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:180)
at customerservice.proxy.runtime.SelfServiceBinding_Stub._deserialize_Main(SelfServiceBinding_Stub.java:193)
at customerservice.proxy.runtime.SelfServiceBinding_Stub._readFirstBodyElement(SelfServiceBinding_Stub.java:176)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:333)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
at customerservice.proxy.runtime.SelfServiceBinding_Stub.main(SelfServiceBinding_Stub.java:81)
at customerservice.proxy.SelfServicePortClient.mainExt(SelfServicePortClient.java:44)
at customerservice.SelfService.getSSData(SelfService.java:116)
at customerservice.SelfService.Test(SelfService.java:93)
at customerservice.SelfService.main(SelfService.java:109)

Yeah. You need a deserialize class to deserialize (cast) the Complex Data Type (object). But the orignal class is not necessary. Also, it is impossible to use the orignal class if you write a client on J2EE platform to consume a service on .NET platform. Your can use the WSDL file to generate a tub using some tool. The stub can handle the remote calls and de/serialization (cast).
Hope this can help you. Cheers
Shaun

Similar Messages

  • Can't re-add printer after removing from eprint center - 'Web Services Problem'

    I have an HP Photosmart Premium C310 series printer (Model Number CN503B) which I have been using with ePrint for about 18 months. Aside from intermittent issues it has worked, I use a chromebook most of the time so rely on the ePrint option via Google Cloud Print.
    Last week it stopped working, with every job in the list showing as cancelled. Following advice on the forum I removed the email address of the printer from the eprint center. I thought it would then be simple to add the printer back. However, I have been unable to connect the printer to the web service so I cannot create the code I need to add the printer back.
    STEPS TO REPRODUCE:
    1. Factory reset printer settings
    2. Factory reset network settings
    3. Restart printer and Reboot router
    3. Settings -> Network -> Wireless Setup Wizard
    4. Choose correct SSID, enter password for WPA
    5. ‘Connected to Network’
    6. Settings -> Web -> Enable Web Services
    7. ‘Accept terms’ screen -> Accept
    8. ‘Checking for product updates’ screen shows briefly then returns to 'accept terms' screen
    9. Next it makes a ping sound and shows ‘Web Services Problem’ ‘Problem connecting to Web Services Server’, it then pings again a few seconds later (which ties in with what I see in the network logs as a second attempt)
    10. Log on to printer via web interface and set IP address of printer to manual IP outside DHCP range (as advice on other threads in this forum). Check DNS setting valid (same as gateway server which all other devices on network are also using successfully as DNS)
    11. Repeat steps 6 and 7 - still same error message
    I consider myself technically savvy and have followed all advice I can find on this forum including the following:
    1. reverting to printer and network defaults
    2. rebooting router
    3. assigning static IP address to printer outside of DHCP range of router
    4. connecting to printer via web interface and setting DNS to variously: same as gateway, google DNS (8.8.8.8), ISP DNS
    5. adjusting firewall settings on router to explicitly allow and log outbound connection on the HP ports (already had a rule allowing all outbound connections)
    As mentioned, the printer worked fine with ePrint previously so I suspect the ePrint server is rejecting a request from my printer for some reason, maybe because there is old / corrupt  data on the server regarding my specific printer.
    I’m logging outbound traffic from the printer and here are what the router logs show me (printer IP replaced with 192.168.x.x below, even though it is not public )
    Thu, 2013-04-11 09:13:42 - TCP Packet - Source:192.168.x.x, 36475 Destination:15.201.202.81,80 - [HTTP rule match]
    Thu, 2013-04-11 09:13:43 - TCP Packet - Source:192.168.x.x, 51463 Destination:15.201.224.79,443 - [HTTPS rule match]
    Thu, 2013-04-11 09:13:44 - TCP Packet - Source:192.168.x.x, 53044 Destination:15.201.224.79,443 - [HTTPS rule match]
    Thu, 2013-04-11 09:13:44 - TCP Packet - Source:192.168.x.x, 51463 Destination:15.201.224.79,443 - [HTTPS rule match]
    Thu, 2013-04-11 09:13:44 - TCP Packet - Source:192.168.x.x, 53044 Destination:15.201.224.79,443 - [HTTPS rule match]
    Thu, 2013-04-11 09:13:51 - TCP Packet - Source:192.168.x.x, 64270 Destination:15.201.224.79,443 - [HTTPS rule match]
    Looks like both are HP sites: first is 'g4t2674.houston.hp.com' and the second secure one is ‘registration-pro-site2eprint.houston.hp.com’ which sound likely to be correct. That suggests the DNS is working but that the registration server doesn’t like the request for some reason.
    I had the printer registered for Google Cloud Print but I have now deleted that also and it doesn’t seem to have made any difference (assume it just formats and forwards to the HP ePrint email anyway).
    One hack that sheds some further light is to switch off wifi on the printer and then switch on ePrint. Eprint gives an error but stays set as 'on'. When I then switch wifi back on I can then at least check for product updates (it tells me I have the latest product updates). However, web services are still a 'no go'. Network traffic for that product update exchange looks like this:
    Thu, 2013-04-11 10:14:51 - TCP Packet - Source:192.168.x.x,63960 Destination:2.16.226.12,443 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:00 - TCP Packet - Source:192.168.x.x,63938 Destination:15.240.238.56,80 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:00 - TCP Packet - Source:192.168.x.x,63960 Destination:2.16.226.12,443 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:00 - TCP Packet - Source:192.168.x.x,39054 Destination:2.16.226.12,443 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:00 - TCP Packet - Source:192.168.x.x,63938 Destination:15.240.238.56,80 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:00 - TCP Packet - Source:192.168.x.x,39054 Destination:2.16.226.12,443 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:01 - TCP Packet - Source:192.168.x.x,63960 Destination:2.16.226.12,443 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:01 - TCP Packet - Source:192.168.x.x,63938 Destination:15.240.238.56,80 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:01 - TCP Packet - Source:192.168.x.x,39054 Destination:2.16.226.12,443 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:01 - TCP Packet - Source:192.168.x.x,63938 Destination:15.240.238.56,80 - [Any(ALL) rule match]
    Thu, 2013-04-11 10:15:01 - TCP Packet - Source:192.168.x.x ,39054 Destination:2.16.226.12,443 - [Any(ALL) rule match]
    So clearly the printer can communicate to those servers well enough to find it has the latest firmware. 
    I realise this is a lot of information but hopefully some of it is helpful for troubleshooting.
    Thank you in advance for any help!

    The issue disappeared this weekend. I didn't change anything so it must have been something server side. I notice others with the same issue have also seen it resolved.
    Thanks to all those who contributed and tried to help out. Although disappointed I went for a long time without ePrint I'm glad that action was apparently taken to resolve in the end.

  • Exposing Web Services as Callable Objects

    Hello!
    I have SAP NetWeaver 04s SP7. How can I expose Web Services as Callable Objects?
    According to "Exposing Web Services as Callable Objects" (http://help.sap.com/saphelp_nw2004s/helpdata/en/44/4758351fcb1193e10000000a155369/frameset.htm), I should start with choosing type of CO "Service -> Web Service".
    Actually, I haven't this entry in CO type list!
    According to integrate Web Services with GP, this type appeared in SP8. What are the alternatives in SP7?
    "Background execution" and "External service" seem to be the best candidates...
    What is the best solution?
    Thanx in advance!

    Hello, Jan!
    I have SAP NWDS 7.0.07, and I cannot find there an option to create a CAF project. I can create Web service, EJB, Web DynPro, and something else - but not a CAF project. In documentation I did not find the connection points between NWDS and External Services, except some plug-ins.
    Maybe I've misunderstood you, sorry - I'm a newbie in SAP
    Actually, I've made a simple EJB, created a Web service from it, and deployed the WS to portal. Maybe, EJB instead of Web service can be somehow used in CAF?
    I've tried to create a CO of type Composite Application Service, but there was necessary to configure endpoint aliases. I've read the manual "Configuring Endpoint Aliases", but didn't succeed to make one for EJB remote call... I've defined the name, URL (http://<host_of_portal>:<portal_port>), user and pwd - but I've got an exception when tried to use the created alias:
    com.sap.caf.core.gp.servicelocator.exception.MetaModelBrowserException: Exception while trying to get InitialContext. at com.sap.caf.core.gp.servicelocator.CAFMetaModelBrowser.getAllApplications(CAFMetaModelBrowser.java:77) at com.sap.caf.core.gp.ui.backgroundco.admin.VSelect.browseCAFCore(VSelect.java:305) at com.sap.caf.core.gp.ui.backgroundco.admin.VSelect.onActionSelectEptAlias(VSelect.java:750) at com.sap.caf.core.gp.ui.backgroundco.admin.wdp.InternalVSelect.wdInvokeEventHandler(InternalVSelect.java:287) at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) at
    Maybe, the easiest way is to upgrade the versions of SAP and NWDS?
    Are there some manuals that could provide me some help about:
    1) creating CAS from the deployed Web service (from its creation in NWDS till its use in CAF, step-by-step)
    2) binding Web Dynpro apps and Web services, using CAF and GP.
    Or maybe I should attend SAP courses?
    I have SAP NetWeaver 04s SP7 and NWDS ver. 7.0.07.
    Sorry for the messy post, I did my best
    Message was edited by:
            Kirill Shepitko

  • Urgent web service problem. can not find url of WSDL

    Hi all,
    I met a web service problem recently.
    1 I have set up a web service and reside it on Java System Application server9.0. But there's a bug of this web server, which will stop after the user log off the server. I have installed the Application server as a windows service. It suppose to run all the time. I don't know why the server stop after I log off.
    2 For that reason, I tried to migrant my web service from the java application server to Tomcat5.5. I deployed my web service to folder webApps. But I don't know the WSDL url of the web service, which is the web reference for my frent-end c#.net application.
    Anybody can give me some idea?
    Many thanks

    Nobody knows?
    Please help me

  • Binding xml from web service to java objects

    I would appreciate if someone can tell me where can i get information regarding
    binding of xml from web service to java objects in weblogic 6.1 .
    Thanks,
    ag

    Hi Ag,
    To my knowledge, the only information on this topic is whatever you find in the
    documentation. What exactly do you want to know?
    Can you post a set of specific questions?
    Regards,
    Mike Wooten
    "ag" <[email protected]> wrote:
    >
    I would appreciate if someone can tell me where can i get information
    regarding
    binding of xml from web service to java objects in weblogic 6.1 .
    Thanks,
    ag

  • Process Web Services and BPM Objects

    Hi,
    I try to expose a web service for a specific process (not PAPI-WS) for process creation. Works well but only if I use only simple types like String, etc. as input arguments. But when I try to use an BPM object, I get an error like 'Undefined variable 'arg1''.
    So, is it not possible to use such a process web service using BPM objects as arguments?
    Regards
    Matthias

    Yes it's true but Netbeans uses one of the existing SOAP implementations to do it. I'm almost sure that it uses one of the most popular implementations JAX-WS RI or Axis by default.
    Regards,
    S&#322;awomir Wojtasiak

  • Web Service Problem! URLs are basically broken.

    We recently updated our SQL Server 2012 SSRS implimentation from 11.0.3339 (SP1 CU2) to 11.0.3381 (SP1 CU6).   We are on Server 2008 R2 SP1.  I am pretty certain that this is related to the Cumulative update since I have 6 seperate
    and entire clusters doing the same exact thing but I can't find a fix on CU7. 
    Two symptoms started popping up pointing to a problem with the SSRS Web service.
    Symptom 1
    1. Before the change, our emailed SSRS subscriptions were sent out with a valid link, now they error out.
    Reporting Services Error
    An error occurred in the HTTP Runtime object for application domain ReportServer_MSSQLSERVER_0-96-130358835578081507. Most likely, the HTTP request contains an unsupported verb or invalid syntax. (rsHttpRuntimeError) Get Online Help
    Unable to validate data.
    SQL Server Reporting Services
    2. Before the change you could drill down our SSRS URL through the web service. 
    http://servername/reportserver/folder/report and then when you click on a report name, it would display the report, like you'd expect for the web service.  Now you get this error:
    Reporting Services Error
    An error occurred in the HTTP Runtime object for application domain ReportServer_MSSQLSERVER_0-27-130358853340658138. Most likely, the HTTP request contains an unsupported verb or invalid syntax. (rsHttpRuntimeError) Get Online Help
    Unable to validate data.
    SQL Server Reporting Services
    Can anyone else reproduce it or better yet do you know of a fix?
    Thanks,
    Keith

    Hi Keith,
    The issue may be due to Federal Information Processing Standard (FIPS) was enabled on SSRS server. Please refer to the following steps to fix the issue:
    Use Notepad to open the web.config file of Report Server and Report Manager. In SSRS 2012, the default location is: C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer
    (Note: Please backup the file before modify it.)
    Add the following <machineKey> section in the <system.web> section:
    <machineKey validationKey="AutoGenerate,IsolateApps" decryptionKey="AutoGenerate,IsolateApps" validation="3DES" decryption="3DES"/>
    Reference: http://support.microsoft.com/kb/911722/en-us
    Hope this helps.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

  • External web service problem

    I am using CAPS 5.1.2 and I want to use an external webservice.
    Importing the external web service from URL or file goes fine.
    I decided to do this in a JCD and added the webservice as an OTD.
    Building and deployment of my project goes fine, but the server.log gives me the following SEVERE log message:
    [#|2007-04-12T12:04:39.418+0200|SEVERE|IS5.1.2|com.stc.wsclient.runtime.ejb.impl.WSClientService|_ThreadID=27; ThreadName=Worker: 13;|environment entries for operation classes are not found in ejb-jar.xmlNo object bound to name java:comp/env/WS_OPERATIONS|#]
    and also more info messages like:
    [#|2007-04-12T12:04:39.418+0200|INFO|IS5.1.2|javax.enterprise.system.container.ejb|_ThreadID=27; ThreadName=Worker: 13;stacktrace-id=21;|EJB5070: Exception creating stateless session bean : [{stacktrace-id=21}]
    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:585)
         at com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(StatelessSessionContainer.java:410)
    I can not find any solution to this problem. I also tried to use a Business process instead of a JCD, but I still get the exact same error message.
    I have validated the external web service with the "Web Service Definition Editor" and it validates OK.
    I am a little bit lost here and do not know where to start debugging this problem. Please help.

    Could you please paste your WSDL?

  • Web services problem on SUN ONE Studio4

    Dear All
    I am developing web services using sun ONE studio4 IDE. I am using examples from sun ONE studio documentation. "StockDemo Stock Service" if you know?
    Service is deployed successfully and when i execute the client first page is displayed when i put value in it and press "Invoke".
    An exception is thrown of Tomcat console.
    "Could Not connect with /StockService/StockService"
    My soap RPC URL is as follow
    "http://localhost:8000/StockServiceContext/StockService"
    web service is deployed on j2sdk1.3.1 (port:8000) instace R1 and client is accessing from tomcat web server(port:8081).
    Same case when i make my own stateless session bean and deploy its function with web service.
    I think there is error in soap RPC URL.
    Help me out
    Nadeem

    I'm also having problems with this example.
    MonitorFilter::IOException
    MonitorFilter::A web application object caused an exception
    MonitorFilter::java.rmi.RemoteException: HTTP transport error: java.net.ConnectException: Connection refused: connect; nested exception is:
    HTTP transport error: java.net.ConnectException: Connection refused: connect
    at StockWebServicePack.StockServiceClientGenClient.StockServiceServantInterface_Stub.findCompany(StockServiceServantInterface_Stub.java:79)
    at ......
    Did you find the solution for your problem? , if yes please post the solution.

  • Web Service : problem calling it from PDF.

    Hi everyone,
    I want to make a call to a web service created by SAP/ABAP.
    I have the wsdl file and I created a new data connection in the Adbobe designer.
    I draged and droped the data connection to the editor : so it created
    2 text fields and a button.
    The web service waits from the user to enter an input string and it gives back as an answer a string as output...simple, isn't it ?
    I also added a button in the designer that points to the connection I created. The button is in mode "execute".
    Finally, I saved all this in a PDF file.
    When I double click the PDF file, I enter a string as input and press the button....Then I go an error message saying that I should specify username and password. So I changed the mode of the button from "Execute" to "Submit". I added to the URL my username and password because the web service points to a backend which is SAP.
    Now I do get another error message which is : Cannot handle content type:text/xml; charset=utf-8.
    I read in the doc that maybe I should use XDP ?
    Can someone please explane me how to solve the problem.
    Thanks in advance for the precious help.
    Thanks in advance.
    Regards.

    The problem is caused by the fact that your web service is returning a content-type header of text/html. The reader product can only handle PDF responses from a web server. In any case, your form data is received OK by the web service; it is just the response back that Acrobat cannot handle.
    To get around this, I created a little "thank you for your response" PDF file and put it on my web server. I then set my perl CGI backend script to send a simple redirect to the PDF when it gets a response. (Obviously, you would want to harvest the form values from your user before redirecting). This solved the problem for me.
    My little perl script is shown below:
    #! /usr/bin/perl
    use CGI;
    $query = CGI::new(); # invoke a new CGI object for the input
    @params = $query->param();
    # do something with the values....
    print $query->redirect(-uri => 'http://mycompany.com/myapp/cgi-bin/thankyou.pdf');

  • Multiple List Builder and Query As A Web Service Problems

    Hi All,
    I quickly became aware that trying to pass multiple parameters to "Query As A Web Service" from a "List Builder" object in Xcelsius was not a simple task to acheive after reading this post here :-
    Query as a Web Service and In List
    I followed the advice that David Brunner suggested towards the end of the thread about creating a "BI Service" by publishing a block from a Webi Rich Client report.
    I then referenced the newly created "BI Service" by using it's WDSL URL through the Xcelsius Data Manager - Query As A Web Service connection.
    Everything appeared to work fine (e.g. Did my selections from the last builder and got refreshed/changed figures in my Spreadsheet Table object in the Dashboard) until I realised figures in my dashboard were not reconcilling and appeared much lower than expected.
    After monitoring what was happening traffic wise with "Fiddler 2" I discovered that Xcelsius was only passing the first entry in each of the selected values for the list builder even though a range of cells (e.g Month_Year!$a$2:$a$13) was specified to be passed as an input parameter to the BI Service (confirmed through viewing the Input/Output XML being sent).
    I even tried specifying the multiple values in the different suggested ways that David Brunner advised such as a semi colon delimited list (e.g. Miami;Boston;Chicago) but this didn't appear to be working either.
    Can anyone suggest what I may be doing wrong here? Why is only the first value being passed?
    I am using Xcelsius Enterprise 2008 SP3.
    Many Thanks,
    Gary
    Edited by: Gary Scott on Dec 1, 2010 3:49 PM

    Hi Gary,
    I have the same problem. Have you found any solution?
    Thanks.
    EZ

  • XDB Native Web Services - Collection of object types

    Hello,
    my DB 11g (11.1.0.6.0) is enabled to use XDB Native Web Services, everything works as it should. I already use it successfully to publish a web service with object types as OUT parameter. They are created as complex types in the XML response as described here: [http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28369/xdb_web_services.htm#CHDGBFID]
    But what I need is a collection of these object types, e.g.
    I have a type FLIGHT with some information elements (departure, arrival, date, time, price) and I have a web service function GET_AVAILABILITY with parameters departure, arrival and date. What I want is to return a collection of FLIGHT objects, it could be none, one or many flights for a request.
    For the moment I create another object type which contains a fix number of FLIGHT objects to work around the collection issue:
    create flight_tab_typ as object (
    fl1 flight_typ
    ,fl2 flight_typ
    ,fl3 flight_typ
    I tried to build a PL/SQL table of object type and also a VARRAY of object type but for both the WSDL of the web service cannot be build up correctly in the web browser. For me it seems that this is not supported by the Native Web Services.
    I know I can build up my own XMLTYPE with XML structure as OUT parameter but to use object types is much easier and it builds up the XML structure automatically.
    Does anybody know how to use collections (VARRAY or PL/SQL Tables) with the Native XML DB Web Services?
    Thanks,
    Andreas

    Hi flea,
    I use complex types with XDB native webservices. Here is an example. Using people/groups objects. I haven't compiled this so there may be some typos etc, but it should give you the idea.
    Beware!I have had problems with the created WSDL file in that it doesn't always include the namespace from all types. In many client packages ( JDevloper , SOAPUI etc) this causes a wsdl import failure.
    You can add the missing namespace by hand a load the WSDL file locally and then it should work. I haven't raised an SR with Oracle about this yet.
    Assume you create the following under SCoTT schema on machine host.com on port 8080.
    The webservice[WSDL] will be available from
    http://host.com:8080/orawsv/SCOTT/WEBSERVCIES/GET_GROUP[?wsdl]
    For other peoples sanity it took me a little while to realise the WSDL url is case specific. E.g. the schema, package and functions have to be UPPER case.
    create table people_groups_tab (group_name varchar2(40 char),first_name varchar2(40 char),last_name varchar2(40 char))
    insert into people_groups_tab values ('FINANCE','Joe','Bloggs')
    insert into people_groups_tab values ('FINANCE','Bob','Jones')
    insert into people_groups_tab values ('IT','Alan','Andrews')
    create or replace type person_obj
    as object
         first_name people_groups_tab.first_name%type
         ,last_name people_groups_tab.last_name%type
    create or replace type people_obj
    as table of person_obj
    create or replace type people_groups_obj
    as object
    group_name varchar2(40 char)
    people people_obj
    create or replace package webservices
    as
              function get_group
         p_group_name varchar2
              ) return people_groups_obj;
    end;
    create or replace package body webservices
    as
              function get_group
         p_group_name varchar2
              ) return people_groups_obj
    as
    l_group people_groups_obj;
              l_people people_obj;
    begin
              select person_obj
                        first_name
                        ,last_name
              bulk collect into l_people
              from people_groups_tab
              where group_name p_group_name;
              l_group := people_groups_obj(p_group_name,l_people);
              return l_group;
    end;
    end;
    /

  • JDeveloper & web services problems

    I've recently installed jdeveloper onto winXP pro from the jdev9i_902.zip download and installed to D:\jdeveloper. Following the instructions I also installed JDK1.3 to D:\jdk1.3.1_04. I ran the setup for oc4j.
    The problem I have is that when I followed the "Publish a stateless Java class as a Web service" tutorial, everything goes well until I run it. The errors produces are (taken from the tcptunnel output):
    ===========
    HTTP/1.1 100 Continue
    Server: Oracle9iAS (9.0.2.0.0) Containers for J2EE
    Date: Sat, 20 Jul 2002 18:35:21 GMT
    HTTP/1.1 500 Internal Server Error
    Date: Sat, 20 Jul 2002 18:35:22 GMT
    Server: Oracle9iAS (9.0.2.0.0) Containers for J2EE
    Content-Length: 853
    Set-Cookie: JSESSIONID=72fa269c5c2f46889c1fe8e2b69b981d; Path=/
    Cache-Control: private
    Connection: Close
    Content-Type: text/html
    <HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server Error</H1><PRE>Servlet error: Cannot generate Class: error: Invalid class file format in E:\Program Files\Java\j2re1.4.0\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
    D:\jdeveloper\j2ee\home\application-deployments\WorkspaceStatelessJava-ProjectStatelessJava-WS\WebServices\temp\__java_stateless_rpc\__HelloImplStatelessWrapper.java:0: Class java.lang.Object not found in class oracle.j2ee.ws.InvocationWrapper.
    ^
    D:\jdeveloper\j2ee\home\application-deployments\WorkspaceStatelessJava-ProjectStatelessJava-WS\WebServices\temp\__java_stateless_rpc\__HelloImplStatelessWrapper.java:8: Class java.lang.Object not found in import.
    import java.lang.Object;
    ^
    3 errors
    </PRE></BODY></HTML>
    =======
    The main section that concerns me is "Invalid class file format in E:\Program Files\Java\j2re1.4.0\lib\rt.jar(java/lang/Object.class). ", why is it using this?
    Any feedback on this is appreciated.
    Dave

    Hi Dave and Xuemei
    I'd like to try and help you on this question. Can you confirm the following for me:
    Did you download jdev9i_902.zip - the complete install or jdev9i_902_base.zip - the base install?
    Dave, in you mail you say you have downloaded the complete install. If this is the case, then you did not need to install JDK1.3 and change the SetJavaHome variable. If you now comment out that variable then JDeveloper should use its shipped JDK1.3
    The error message seems to indicate that a JDK1.4 version is being picked up by your system at runtime. Can you check if your classpath is set to this E:\ProgramFiles... directory. If so, can you try removing it (save it first!)
    JDeveloper is certified against JDK1.3.1_02
    Rgds
    Susan Duncan
    JDeveloper PM

  • Canu0092t use web service as Callable Object

    Hi,
    I’ve tried to use a web service as an callable object. After I provided the WSDL URL I’ve got the following error message : “Interface is empty; select Web service interface“. Can anybody tell me what that could be?
    Thanks in advance
    Robert Herbert

    Hi David,
    Thank you very much, you solved my problem.
    Curious usability issue!!
    Best regards,
    Robert

  • How can I invoke web service in BPM Object's method?

    In ALBPM 5.7,AJaX can code by Call BPM Object's method.So I want to invoke web service via AJaX by BPM method.
    My sample code is:
    1: HelloWorldWebService ws = HelloWorldWebService();
    2: String param = "John";
    3: String retresult = "";
    4: ws.sayHello(name : parame; out result : retresult);
    and,I have import HelloWorldWebService by wsdl into catalog.
    In fact,at line 1 there is a error(fuego.connector.ConnectorRuntimeException: session is not started). Web service's instance is not created.
    Anybody can help me? thanks.

    Hi,
    I tried calling a simple webservice deployed in weblogic 8.1(see code) and it was working fine for me.
    Code for WS
    package service;
    import com.bea.control.JwsContext;
    import com.bea.jws.Protocol;
    import org.xmlsoap.schemas.soap.envelope.HeaderDocument;
    import com.bea.xml.XmlException;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    public class CheckCredit implements com.bea.jws.WebService
    * @common:context
    JwsContext context;
    static final long serialVersionUID = 1L;
    * @common:operation
    * @jws:protocol form-get="false" form-post="false"
    public boolean getCreditRating(String cardNumber)
    System.out.println("Card number is: " + cardNumber );
    boolean result = ((int)(Math.random() *100)) % 2 == 0?true:false;
    return result;
    Code from ALBPM Object method
    creditRatingResult as Bool
    getCreditRating CheckCreditService
    using cardNumber = "1234-5567-4667-4566"
    returning creditRatingResult = creditRatingResult
    logMessage "Result is: " + creditRatingResult
    What I suggest for you problem is:
    1. Check the server on which you have deployed the WS. Does it require any sort of authentication prior to connecting to the WS
    2. It seems you are using Java style in ALBPM. Try switching to PBL. I don't know how it makes a difference, but sometimes it helps
    Thanks and Regards
    Vivek Nandey
    BEA Certified Developer for Integration Solutions
    [email protected]

Maybe you are looking for