WebServices madness

Is there one coherent, complete example in existence that demonstrates how to call a simple Web Service ?
I have a web service all set up .. it's a simple thing .. just returns a string ... hello world stuff ....
Over in Flex 3 .... I use the import Web Services wizard... and it generates a ton of code for me...
ok great...
now I need to know how to use that code via Actionscript (not MXML) ...
I have found various snippets but not one complete example that actually works... even the adobe livedocs don't make any sense when you actually sit down and try to build-run them...!
this shouldn't be so hard.... it's a hello world service returning a string ... and i'm 2 days into theis nonsense already ....
help!

thanks Greg but this isn't what i'm looking for ...
what I want to see is a complete 'hello world' example of using the actionscript classes that get generated by the WSDL importer. My understanding of this is that there are two basic ways you can go about this.... (1) in a static 'compile-time' way using the wsdl importer-code generator... and (2) in a dynamic 'run-time' way by using the generic WebService class and having that thing load the wsdl at runtime... and all of those links refer to scenario (2) ...
so for example, I have a web service called 'MyWebService' and it has a method on it 'getTime()' that returns a string...
running the wsdl importer, I would get a bunch of actionscript classes generated, including 'MyWebService.as' and 'BaseMyWebSevice.as'
In my application code I would then expect to use an instance of MyWebService ... and call the generated methods on that....
So for example :
private var ws:MyWebService;
public function doIt():void{
     ws = new MyWebService();
     ws.addGetTimeEventListener(resultHandler);                       // process the result in this handler
     ws.addMyWebServiceFaultEventListener(faultHandler);       // process faults here...
     ws.getTime_send();     // not sure this is correct....
public function faultHandler(event:FaultEvent):void{
     trace("FAULT: "+event.fault.faultString);
public function resultHandler(....){      // not sure how to declare this....
and so on ....   but I am screwing something up .. in this example, tracing into ws.getTime_send() ... it blows up for some reason I can't quite figure out...
basically I just need to see a proper example of these GENERATED classes in action......
there are some cryptic (to me anyway) comments in the generated code :
* Actionscript sample code:
  * Step 1: create an instance of the service; pass it the LCDS destination string if any
  * var myService:MyWebService= new MyWebService();
  * Step 2: for the desired operation add a result handler (a function that you have already defined previously) 
  * myService.addgetTimeEventListener(myResultHandlingFunction);
  * Step 3: Call the operation as a method on the service. Pass the right values as arguments:
  * myService.getTime(mygetTime);
so I think i'm sort of on the right track .. but I don't get what 'mygetTime' would correspond to ...
UPDATE:
making this up as I go along ... got a bit further with this:
                   ws = new MyWebService();
                   var gt:GetTime = new GetTime();     // always wondered why this class got generated... 
                    ws.addgetTimeEventListener(handle_result);
                    ws.getTime(gt);
now getting arg count mismatch in my declaration for the result handler... so now need to figure out what that might look like,,,
gosh this is intuative...  
UPDATE:
ok ... answering my own question here... but hey .. i'm sure there are plenty of folks out there similarly confused...
declaring the result handler like so :
     public function handle_result(event:GetTimeResultEvent):void{
              trace("Response from service received.");
got rid of the runtime error ... so I guess now I just need to figure out how to unpack the string...
UPDATE ... drum roll please...
public function handle_result(event:GetTimeResultEvent):void{
              trace(ws.getTime_lastResult._return);
(maybe I have been googling in the wrong places... but in 3 days of hair pulling I never saw a complete example of somebody actually using these generated classes....  everyone seemed to be using 'WebService'.....)

Similar Messages

  • How to convert a webservice made out of BAPI to java?

    Hi All,
    There is typical requirement in our project where in we have to convert all the webservices that we made out of the BAPI's into java webservice.
    I understand that the wsdl file released is an XML file. But I don't understand like how to convert the existing wsdl file into a java webservice.
    Let me know how can I acheive the result.Loking forward.
    Regards
    Dipendra

    Hello Dipendra,
    I am not very sure, what is your exact requirement. Correct me if i am wrong, you want to convert .wsdl(service) to java service.
    Web Services are
    - Reusable application components
    - Connect existing software , in other terms it doesn't care about platform and service developed language
    - Web services help solve the interoperability problem by giving different applications a way to link their data.
    - Using Web services you can exchange data between different applications and different platforms out of System Firewall.
    If your want define the Same ABAP Function Module Service to EJB/ JAVA Service you need to write all the business logic in JAVA. It creates same .wsdl for the service and you use the same in your Web Dynpro. Accessing in Web Dynpro is same for any kind of service.
    If you want to access BAPI Service in JAVA instead of Web Dynpro, you need to create a Proxy (Deplyable / Standalone) and call this service in EJB. This is useful if you want to move your service accessing logic from Web Dynpro to some middle ware (EJB), this is useful.
    Hope i might have explained clearly. Write me back, if you are not clear.
    Regards,
    Sridhar

  • Webservice generation

    Updating webservices from source gives me a lot of trouble ...
    When adding new methods to my source java code nothing happens when using regenerate from source.
    When adding new methods in source and manually extending the generated java interface, regeneration only removes methods from the interface file.
    To succeed doing regenerate from source I have to add methods manually in the source class, in the interface and as stubs in the generated wsdl file.

    We are only trying to help. We certainly don't think you are idiots, and all we are doing is asking questions to find out why this issue is occurring for you.
    My area is mainly that of source control, I saw you were using cvs, so I created a simple webservice, made a small change to it, and regenerated it, to see what problems I could find with the CVS integration. On my first pass I found nothing, however I noticed after trying to perform a cvs update that the oracle-webservices.xml file is not being closed correctly after a regeneration from source. I've logged bug 5092195 for this. I don't know if this is the root cause of your issues but it can't help.
    If you can provide a set of steps to reproduce the problem you are having adding new methods to the java code, we can try to log more bugs on this and move forward constructively.
    Geoff.

  • Calling a ESB Webservice from Peoplesoft

    I am making the Consume WebService Wizard in PeopleSoft to consume a webservice made in ESB, but when I put in the WSDL URL Option the "Concrete WSDL URL" of the service in ESB there is an error:
    "Failed to parse WSDL document. Port Type not found in WSDL"
    I test it this WSDL calling from a BPEL process like a Partner Link and works ok.
    Did someone resolve this error in the past?
    Thank you.

    Thanks to Chintan!
    http://chintanblog.blogspot.com/2007/12/insertextract-soap-headers-in-bpel-it.html

  • Transporting webservices

    Hi Experts,
    We have to transport our webservices made through functional modules to our testing server. We are not using any middleware. How can we transport our webservices to the testing service.
    We are using using the normal transport mechanism but the binding number gets changed and giving error in quality server.
    And is there any transport mechanism through J2ee server in SOA applications also
    Regards,
    Edited by: Saras Jain on Feb 20, 2009 8:30 AM

    Hi Saras,
    As U said Your Webservices are created using F.M.
    Transporting TRs' from one Server into another should not give error,if your entire code is working properly on your Development System.
    One of the Crude method you can do is Copy  the .dat and .co files(pertaining your TR) from ur Development server and paste at respective location onto ur Testing Server.
    " binding number gets changed and giving error in quality server"
    Can you elaborate on this.

  • Webservice Entity service interface

    I can consume a webservice made in JPA with BC entity based of a service interface

    Alex,
    My read of [url http://docs.oracle.com/cd/E26098_01/web.1112/e16182/bcextservices.htm#CHDJCEHG]the documentation is that you can base EO's on the service data objects exposed by Application Modules, not necessarily on a generic web service.
    John

  • Package org.apache.soap does not exist

    Hi,
    I'm trying to deploy a webservice made out of stateless session bean.
    When i run the service by invoking its method through browser then I get an exception as
    Servlet error: Cannot generate Class:
    package org.apache.soap does not exist
    import org.apache.soap.Header;
    -- It seems that the oc4j is not loading soap.jar under soap/lib
    But when I add soap.jar to WEB-INF/lib then I get an exception as
    java.lang.LinkageError: Class org/apache/soap/rpc/SOAPContext violates loader constraints
    Which means soap.jar is loaded previosuly
    The required classes are present in soap.jar
    Can you please help me on this
    Regards
    ~Anil

    Yippee... problem solved... classpath setting problem

  • Got a ALC-DSC-127-000

    Hi there,
    I want to invoke a process from a submit-button in a rendered PDF-File.
    I build an xdp with a submit-button that has the control type submit and entered in Submit to URL the URL of a servlet I wrote. In Submit As: I set XML Data(XML).
    I rendered the PDF by calling the renderPDFForm method of the WS FormsService and get an PDF that can be opened in with acroread.
    By pushing the button I get a request in my servlet with the XML in the Input-Stream.
    Now I want to invoke the simple process called UniDortmund I designed in the Workbensh Process Designer. For that with jaxws I consumed the wsdl located at http://localhost:8080/soap/services/UniDortmund?WSDL .
    Now I implemented the following code:
    if(request.getHeader("content-type").startsWith("application/xml")){
    System.out.println("Got an XML-Stream:");
    final String result=convertStreamToString(request.getInputStream());
    System.out.println(result);
    final UniDortmundService tudoService=new UniDortmundService();
    final UniDortmund uniDo=tudoService.getUniDortmund();
    SetAuthentication((BindingProvider)uniDo);
    // prepare the input arguments
    XFARepositoryFormInstance antragProzess=new XFARepositoryFormInstance();
    antragProzess.setData(result.getBytes());
    antragProzess.setDescription("Coming from my little servlet.");
    antragProzess.setName("Antrag");
    System.out.println("Invoke Async");
    String responseStr=uniDo.invokeAsync(antragProzess);
    By invoking the process I got the following exception:
    16:53:08,933 ERROR [[Antrag]] Servlet.service() for servlet Antrag threw exception
    javax.xml.ws.soap.SOAPFaultException: ALC-DSC-127-000: com.adobe.idp.dsc.LongLivedInvocationException: The Long Lived Service UniDortmund can not be invoked synchronously.
    at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.j ava:70)
    at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS .java:109)
    at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:567)
    at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:365)
    at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:230)
    at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
    at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
    at $Proxy81.invokeAsync(Unknown Source)
    at edu.tudo.antrag.presentation.ProxyServlet.doGet(ProxyServlet.java:46)
    What am I doing wrong?
    Is there a simple example for invoking a webservice made with the process designer?
    Is it the wrong way to invoke the process from the submitbutton when I just want to use Acrobat?
    Is there a generic servlet in Lifecycle ES that does the job?
    Yours
    Arne

    Hi Michael,
    thanks for your answer.
    >The problem (as stated in the error) looks like the proxy classes that call the UniDortmund service (uniDo.invokeAsync) is actually making the call synchronously. 
    >Since the service is long lived that wont work.
    This is a detail of the implementation of the generated method uniDo.invokeAsync. It calls the server synchron because it needs the return-value (Process-ID) from LC.
    Is there a small example or HowTo for calling this WebService?
    Yours
    Arne

  • WEB SERVICE + REQUEST RESPONSE TRACK

    Hello Friends,
    I have a issue, I have to consume the webservice made in .NET environment. The web service uses oasis security. so I have to set the SOAP HEADER with user name and passwrod. Unfortunately its not working. My question is , is there any way that one can track the request response... Can I see, how my request packet looks like when it reaches to server ?
    Any help will be gr8.
    Regards,

    Hi Raja,
    Okey, now I will first paste the request formate which web service is expecting, and then I will paste my code, might be you have hint for me.....
    POST /alertservice.asmx HTTP/1.1
            Host: desktopalert
            Content-Type: text/xml; charset=utf-8
            Content-Length: length
            SOAPAction: "http://service.desktopalert.net/AlertService.asmx/CreateAlert"
            <?xml version="1.0" encoding="utf-8"?>
            <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
              <soapenv:Header>
                <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
                  <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-386451">
                    <wsse:Username>someuser</wsse:Username>
                    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">ILReFb7Uz57eNwgJXjj9S086aAw=</wsse:Password>
                    <wsse:Nonce>jHgxoLOr9RzHpALQRark7Q==</wsse:Nonce>
                    <wsu:Created>2007-02-11T23:34:23.027Z</wsu:Created>
                  </wsse:UsernameToken>
                  <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-24470798">
                    <wsu:Created>2007-02-11T23:34:22.996Z</wsu:Created>
                    <wsu:Expires>2007-02-11T23:39:22.996Z</wsu:Expires>
                  </wsu:Timestamp>
                </wsse:Security>
              </soapenv:Header>
              <soap:Body>
                <CreateAlert xmlns="http://service.desktopalert.net/AlertService.asmx">
                  <content>string</content>
                  <title>string</title>
                  <height>int</height>
                  <width>int</width>
                  <PublishDate>dateTime</PublishDate>
                  <ExpireDate>dateTime</ExpireDate>
                  <groupids>
                    <int>int</int>
                    <int>int</int>
                  </groupids>
                </CreateAlert>
              </soap:Body>
            </soap:Envelope>
            HTTP/1.1 200 OK
            Content-Type: text/xml; charset=utf-8
            Content-Length: length
    My code ( SOAP HEADER AND SOAP BODY ):
    CONCATENATE
    '<?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:Header>'
    '    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">'
    '      <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-11072909">'
    '        <wsse:Username>admin</wsse:Username>'
    '        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">ISMvKXpXpadDiUoOSoAfww==</wsse:Password>'
    '        <wsse:Nonce>WL4S/89uFlsVZ+Ys73fTNQ==</wsse:Nonce>'
    '        <wsu:Created>2007-03-27T14:34:23.199Z</wsu:Created>'
    '      </wsse:UsernameToken>'
    '      <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-12203633">'
    '        <wsu:Created>2007-03-27T14:34:23.184Z</wsu:Created>'
    '        <wsu:Expires>2007-03-27T14:39:23.184Z</wsu:Expires>'
    '      </wsu:Timestamp>'
    '    </wsse:Security>'
    '  </soapenv:Header>'
    '<soap:Body>'
    '   <CreateAlert xmlns="http://service.desktopalert.net/AlertService.asmx" /> '
    '    <content>teststring</content>'
    '    <title>teststring</title>'
    '    <height>300</height>'
    '    <width>300</width>'
    '    <PublishDate> 27.03.2007 16:08:18</PublishDate>'
    '    <ExpireDate>30.03.2007 10:00:18</ExpireDate>'
    '    <groupids>'
    '      <int>1</int>'
    '      <int>1</int>'
    '    </groupids>'
    '    </CreateAlert>'
    '    </soap:Body>'
    '</soapenv:Envelope>'
    INTO WF_STRING.
    And if any one of the parameter is wrong, still I am expecting that, my data reached till database, or if I am doing something wrong, then some exception, error, has to come ? right...
    Regards,

  • WSDP w/ Apache SOAP-RPC

    Hi,
    Has anyone tried to develop/deploy a web service under WSDP and invoke it from a client app written under Apache SOAP-RPC? Can this be done w/ or w/o 'axis'
    from Apache-SOAP?
    Thanks,
    Marcia

    yes, this can be done ...and even vice versa.
    This is just a soap call and it dees not matter from where it is called.
    Generate the webservice and deploy it. Use the WSDL generated to create the client with Apache Soap. Point to the end point URL for the webservice made with JAX-RPC.
    I tried by creating a webservice with Apache Soap-RPC and accessing through the client made with Jax-RPC.
    regards

  • WARNING: Complex type 'any' cannot be supported

    Not sure what to make of this warning ... any suggestions?
    oracle.adfinternal.model.adapter.webservice.MessagePart checkComplexPrototype
    WARNING: Complex type 'any' cannot be supported

    I actuall have the same problem but I can give you some more context.
    I have a Webservice made with JAX-WS in JDeveloper it uses Complex types with inheritance such as:
    abstract class Mammal{
    public Mammal get(){ return this; }
    @WebService
    public class Human extends Mammal {
    @WebMethod
    public Mammal get(){ return this; }
    Exposing the WSDL to i.e. C# works perfectly the Polymorphism works like a charm, however when i follow the JSF tutorial from the JDeveloper page and want to add my method get i get the following error:
    Sep 2, 2009 3:32:29 PM oracle.adf.adapterDC.webservice
    WARNING: Complex type '{http://local/}mammal' cannot be supported
    Is this due to that Mammal is Not exposed correctly or what could possible cause this?
    A popup also shows that an error occured telling me the following:
    "DCA-29000: Unexpected exception caught:
    java.lang.NullPointerException, msg=null"
    Thanks,
    Filip

  • Change contenttype

    Hi,
    I need to call a webservice made in Windows Communication Foundation (WCF).
    When i call it i get the error:
    HTTP 415 Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'
    I have tried to call the webservice from xmlspy, but get the same error.
    I have tried to change the content type to application/soap+xml using the module AF_Modules/MessageTransformBean/Transform.ContentType in my reciever soap channel. Still the same error
    Does anyone know what the problem is ?
    Thanks
        Jens

    hi jens
    check below help  link
    Response Code 415 When Requesting a Web Service
    http://help.sap.com/saphelp_nw04s/helpdata/en/8f/2f2c4142aef623e10000000a155106/frameset.htm
    regards
    kummari

  • Call service error

    I built webservice in workshop and It works. I try to move it to another weblogic,
    I chanegd startWebLogic.cmd (according to the instruction) and I set JMS in weblogic
    console, I built ear using jwsCompile, I deployed it without problems, and next
    I try to call it:
    http://localhost:6688/service/systemAPI.jws
    and I get error
    An unexpected exception occurred while attempting to locate the run-time information
    for this Web Service.
    Error: null
    How to resolve it ? Where I can find logs for it ? How deply webservice made by
    workshop on another weblogic server ?
    greg

    Hi,
    I have seen several times the same error, and it was always due to a non-productionmode
    startup. I'd suggest you to ensure that server is started in production mode,
    without debug.
    You can try starting the server with this command line:
    startWebLogic.cmd production nodebug
    Regards.
    David.
    "Grzegorz" <[email protected]> wrote:
    >
    I built webservice in workshop and It works. I try to move it to another
    weblogic,
    I chanegd startWebLogic.cmd (according to the instruction) and I set
    JMS in weblogic
    console, I built ear using jwsCompile, I deployed it without problems,
    and next
    I try to call it:
    http://localhost:6688/service/systemAPI.jws
    and I get error
    An unexpected exception occurred while attempting to locate the run-time
    information
    for this Web Service.
    Error: null
    How to resolve it ? Where I can find logs for it ? How deply webservice
    made by
    workshop on another weblogic server ?
    greg

  • Error while creating a webservice model

    Hi All,
        I am doing the EMail WebService exercise. While creating the webservice model I select the UDDI or URL Radio button and in the wsdl field I paste the following url : http://www.abysal.com/soap/AbysalEmail.wsdl .
    When I click next in the proxy definition screen, I get the message Invalid WSDL or WSDL not found and the Finish button is not highlighted.
    I checked the webservice mentioned above it is fine and working. I cannot understand why this is not accepted in NWDS
    Pls Reply ASAP

    Hi,
    I am using the Proxy to connect to the internet so i used the proxy connection to send the mail.
    For me the web service is just working fine.
    I do not know where the problem is occuring for you.
    There is already ready-made tutorial for this application...
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/business_packages/a1-8-4/6tutwd_emailwebservice.zip">Ready Made Application</a>
    you download it and give the proxy parameters and try to execute the application. Now this should work fine for you.
    Hope it helps.
    Regards,
    Maheswaran.B

  • Oracle 10gR2 WebService Call-In & Call-Out via PL/SQL (Step-by-Step Guide)

    Hi Everyone,
    This guide is for those of you who tried to Call-In and Call-Out WebService via Oracle 10gR2 using PL/SQL but failed a couple of times, re-installed a couple of times and retry, got it to work but don't know what made it work scenarios.
    Hope this helps ;-)
    Thanks,
    Henry Wu
    Instructions on how to use Oracle10gR2 Webservice Call-Out feature (Oracle JAX-RPC DII - Dynamic Invocation (DII) APIs)
    PREREQUISITE
    =================================================================
    1. Download Oracle Database 10g Release 2 (10.2.0.1.0) (ZIP, ~655MB)
    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201winsoft.html
    http://download.oracle.com/otn/nt/oracle10g/10201/10201_database_win32.zip
    1.1 Choose Enterprise Edition
    2. Download 10.1.3.1 Callout Utility for 10g (R1 +R2) RDBMS (ZIP, ~13MB)
    http://download.oracle.com/technology/sample_code/tech/java/jsp/dbws-callout-utility-10131.zip
    2.1 Extract to C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131
    3. Download OC4J Standalone - Oracle Containers for J2EE (OC4J) 10g Release 3 (10.1.3.3) (ZIP, ~93MB; Pure Java—runs on all certified platforms)
    http://www.oracle.com/technology/software/products/ias/index.html (Download Site)
    http://download.oracle.com/otn/java/oc4j/101330/oc4j_extended_101330.zip
    3.1 Extract to C:\oracle\product\10.2.0\db_1\oc4j_extended_101330
    STEP-BY-STEP PROCEDURES
    =================================================================
    1. Prepare the database
    1.1 Connect to SYS account (or any account that can connect as SYSDBA)
    1.2 alter system set shared_pool_size=96M scope=both
    1.3 alter system set java_pool_size=80M scope=both
    1.4 ALTER USER SCOTT ACCOUNT UNLOCK;
    1.5 ALTER USER SCOTT IDENTIFIED BY "tiger";
    1.6 ALTER USER SCOTT QUOTA UNLIMITED ON USERS;
    1.7 GRANT PUBLIC TO SCOTT;
    1.8 GRANT Create Public Synonym TO SCOTT;
    2. Load Oracle SOAP client to SCOTT (for Oracle 10g Release 2 Database)
    2.1 Commands
    2.1.1 Open command prompt (cmd.exe)
    2.1.2 loadjava -u scott/tiger -r -v -f -genmissing -s -grant public C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\webservices\lib\soap.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\lib\dms.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\jlib\javax-ssl-1_1.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\servlet.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\mail.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\activation.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\http_client.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\ejb.jar
    2.1.3 It will take around 3 minutes and you will see "something" like the following when it completes (count may not be exact) :
    Classes Loaded: 909
    Resources Loaded: 75
    Sources Loaded: 0
    Published Interfaces: 0
    Classes generated: 0
    Classes skipped: 0
    Synonyms Created: 984
    Errors: 0
    2.1.3 Close this command prompt
    3. Load Oracle JAX-RPC client to SYS (for Oracle 10g Release 2 Database)
    3.1 Commands
    3.1.1 Open command prompt (cmd.exe)
    3.1.2 loadjava -u sys/oracle -r -v -f -genmissing -s -grant public C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131\sqlj\lib\dbwsclientws.jar C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131\sqlj\lib\dbwsclientdb102.jar
    3.1.2.1 It will take around 15 minutes and you will see "something" like following when it completes (count may not be exact) :
    Classes Loaded: 4027
    Resources Loaded: 81
    Sources Loaded: 0
    Published Interfaces: 0
    Classes generated: 61
    Classes skipped: 0
    Synonyms Created: 4108
    Errors: 0
    3.1.3 Close this command prompt
    4. Execute UTL_DBWS packages to SYS (for Oracle 10g Release 2 Database)
    4.1 Commands
    4.1.1 Connect to SYS account only
    4.1.2 Execute the following (in TOAD you should execute them as Script, press the "thunder" button)
    4.2.1 @"C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131\sqlj\lib\utl_dbws_decl.sql"
    4.2.2 @"C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131\sqlj\lib\utl_dbws_body.sql"
    4.2.3 CREATE PUBLIC SYNONYM utl_dbws FOR sys.utl_dbws;
    5. Call-out a free Web Service using SCOTT
    5.1 Commands
    5.1.1 Connect to user SCOTT with password of TIGER
    5.1.2 Copy and Paste the following "Anonymous Block" (sample #1) and execute it :
    5.1.2.1 It sould return "PL/SQL DII client return ===> Redwood City"
    declare
    service_ utl_dbws.SERVICE;
    call_ utl_dbws.CALL;
    service_qname utl_dbws.QNAME;
    port_qname utl_dbws.QNAME;
    operation_qname utl_dbws.QNAME;
    string_type_qname utl_dbws.QNAME;
    retx ANYDATA;
    retx_string VARCHAR2(1000);
    retx_double number;
    retx_len number;
    params utl_dbws.ANYDATA_LIST;
    l_input_params utl_dbws.anydata_list;
    l_result ANYDATA;
    l_namespace VARCHAR2(1000);
    begin
    -- open internet explorer and navigate to http://webservices.imacination.com/distance/Distance.jws?wsdl
    -- search for 'targetNamespace' in the wsdl
    l_namespace := 'http://webservices.imacination.com/distance/Distance.jws';
    -- search for 'service name' in the wsdl
    service_qname := utl_dbws.to_qname(l_namespace, 'DistanceService');
    -- this is just the actual wsdl url
    service_ := utl_dbws.create_service(HTTPURITYPE('http://webservices.imacination.com/distance/Distance.jws?wsdl'), service_qname);
    -- search for 'portType name' in the wsdl
    port_qname := utl_dbws.to_qname(l_namespace, 'Distance');
    -- search for 'operation name' in the wsdl
    -- there will be a lot, we will choose 'getCity'
    operation_qname := utl_dbws.to_qname(l_namespace, 'getCity');
    -- bind things together
    call_ := utl_dbws.create_call(service_, port_qname, operation_qname);
    -- default is 'FALSE', so we make it 'TRUE'
    utl_dbws.set_property(call_, 'SOAPACTION_USE', 'TRUE');
    -- search for 'operation soapAction' under <wsdl:operation name="getCity">
    -- it is blank, so we make it ''
    utl_dbws.set_property(call_, 'SOAPACTION_URI', '');
    -- search for 'encodingstyle' under <wsdl:operation name="getCity">
    utl_dbws.set_property(call_, 'ENCODINGSTYLE_URI', 'http://schemas.xmlsoap.org/soap/encoding/');
    -- search for 'binding style'
    utl_dbws.set_property(call_, 'OPERATION_STYLE', 'rpc');
    -- search for 'xmlns:xs' to know the value of the first parameter
    -- under <wsdl:message name="getCityResponse"> you will see the line <wsdl:part name="getCityReturn" type="xsd:string" />
    -- thus the return type is 'string", removing 'xsd:'
    string_type_qname := utl_dbws.to_qname('http://www.w3.org/2001/XMLSchema', 'string');
    -- in the line <wsdl:operation name="getCity" parameterOrder="zip">
    -- the parameterOrder is 'zip', thus we put in 'zip'
    -- the 'ParameterMode.IN' is used to specify that we will be passing an "In Parameter" to the web service
    -- the 'ParameterMode.IN' is a constant variable in the sys.utl_dbws package
    utl_dbws.add_parameter(call_, 'zip', string_type_qname, 'ParameterMode.IN');
    utl_dbws.set_return_type(call_, string_type_qname);
    -- supply the In Parameter for the web service
    params(0) := ANYDATA.convertvarchar('94065');
    -- invoke the web service
    retx := utl_dbws.invoke(call_, params);
    -- access the returned value and output it to the screen
    retx_string := retx.accessvarchar2;
    dbms_output.put_line('PL/SQL DII client return ===> ' || retx_string);
    -- release the web service call
    utl_dbws.release_service(service_);
    end;
    5.1.3 Copy and Paste the following "Anonymous Block" (sample #2) and execute it :
    5.1.3.1 It should return "PL/SQL DII client return ===> twelve thousand three hundred and forty five"
    declare
    service_ utl_dbws.SERVICE;
    call_ utl_dbws.CALL;
    service_qname utl_dbws.QNAME;
    port_qname utl_dbws.QNAME;
    operation_qname utl_dbws.QNAME;
    string_type_qname utl_dbws.QNAME;
    retx ANYDATA;
    retx_string VARCHAR2(1000);
    retx_double number;
    retx_len number;
    params utl_dbws.ANYDATA_LIST;
    l_input_params utl_dbws.anydata_list;
    l_result ANYDATA;
    l_namespace VARCHAR2(1000);
    begin
    -- open internet explorer and navigate to http://www.dataaccess.com/webservicesserver/numberconversion.wso?WSDL
    -- search for 'targetNamespace' in the wsdl
    l_namespace := 'http://www.dataaccess.com/webservicesserver/';
    -- search for 'service name' in the wsdl
    service_qname := utl_dbws.to_qname(l_namespace, 'NumberConversion');
    -- this is just the actual wsdl url
    service_ := utl_dbws.create_service(HTTPURITYPE('http://www.dataaccess.com/webservicesserver/numberconversion.wso?WSDL'), service_qname);
    -- search for 'portType name' in the wsdl
    port_qname := utl_dbws.to_qname(l_namespace, 'NumberConversionSoap');
    -- search for 'operation name' in the wsdl
    -- there will be a lot, we will choose 'NumberToWords'
    operation_qname := utl_dbws.to_qname(l_namespace, 'NumberToWords');
    -- bind things together
    call_ := utl_dbws.create_call(service_, port_qname, operation_qname);
    -- default is 'FALSE', so we make it 'TRUE'
    utl_dbws.set_property(call_, 'SOAPACTION_USE', 'TRUE');
    -- search for 'operation soapAction' under <operation name="NumberToWords">
    -- it is blank, so we make it ''
    utl_dbws.set_property(call_, 'SOAPACTION_URI', '');
    -- search for 'encodingstyle'
    -- cannot find xml tag 'encodingstyle', so we just use the following as the generic encoding style
    utl_dbws.set_property(call_, 'ENCODINGSTYLE_URI', 'http://schemas.xmlsoap.org/soap/encoding/');
    -- search for 'binding style'
    -- although 'document' was used, it produced an error, thus we will use 'rpc'
    -- this value is generally only 'document' or 'rpc'
    utl_dbws.set_property(call_, 'OPERATION_STYLE', 'rpc');
    -- search for 'xmlns:xs' to know the value of the first parameter
    -- under <xs:element name="NumberToWords"> you will see the line <xs:element name="ubiNum" type="xs:unsignedLong" />
    -- thus the return type is 'unsignedlong', removing 'xs:'
    -- however, upon testing, using 'unsignedlong' produced an error, while 'string' did not, so we will use 'string'
    string_type_qname := utl_dbws.to_qname('http://www.w3.org/2001/XMLSchema', 'string');
    -- under <xs:element name="NumberToWords"> you will see the line <xs:element name="ubiNum" type="xs:unsignedLong" />
    -- the element name is 'ubiNum', thus we put in 'ubiNum'
    -- the 'ParameterMode.IN' is used to specify that we will be passing an "In Parameter" to the web service
    -- the 'ParameterMode.IN' is a constant variable in the utl_dbws package
    utl_dbws.add_parameter(call_, 'ubiNum', string_type_qname, 'ParameterMode.IN');
    utl_dbws.set_return_type(call_, string_type_qname);
    -- supply the In Parameter for the web service
    params(0) := ANYDATA.convertvarchar('12345');
    -- invoke the web service
    retx := utl_dbws.invoke(call_, params);
    -- access the returned value and output it to the screen
    retx_string := retx.accessvarchar2;
    dbms_output.put_line('PL/SQL DII client return ===> ' || retx_string);
    -- release the web service call
    utl_dbws.release_service(service_);
    end;
    NOTES AND REFERENCES
    =================================================================
    This detailed step-by-step guide was produced with the following guide http://www.oracle.com/technology/sample_code/tech/java/jsp/callout_users_guide.htm
    I could still not load Oracle JAX-RPC client to SCOTT (step 4) as it produces an error. See the following for more details :
    http://forums.oracle.com/forums/thread.jspa?threadID=633219&tstart=0
    Also, I could not consume some of the other free Web Services out there for reasons I don't know, hope someone can help clarify. See the following for more details :
    http://forums.oracle.com/forums/thread.jspa?threadID=630733&tstart=0
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Instructions on how to use Oracle10gR2 Webservice Call-In feature
    PREREQUISITE
    =================================================================
    1. Download Oracle Database 10g Release 2 (10.2.0.1.0) (ZIP, ~655MB)
    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201winsoft.html
    http://download.oracle.com/otn/nt/oracle10g/10201/10201_database_win32.zip
    1.1 Choose Enterprise Edition
    2. Download OC4J Standalone - Oracle Containers for J2EE (OC4J) 10g Release 3 (10.1.3.3) (ZIP, ~93MB; Pure Java—runs on all certified platforms)
    http://www.oracle.com/technology/software/products/ias/index.html (Download Site)
    http://download.oracle.com/otn/java/oc4j/101330/oc4j_extended_101330.zip
    2.1 Extract to C:\oracle\product\10.2.0\db_1\oc4j_extended_101330
    STEP-BY-STEP PROCEDURES
    =================================================================
    1. Connect to SYS account and create user STORE
    CREATE USER store IDENTIFIED BY store;
    GRANT connect, resource TO store;
    2. Connect to Oracle using the user STORE and password STORE
    CONNECT store/store;
    3. Execute the following objects for this excercise
    CREATE SEQUENCE order_sq;
    CREATE TABLE product_types (
    product_type_id INTEGER
    CONSTRAINT product_types_pk PRIMARY KEY,
    name VARCHAR2(10) NOT NULL
    CREATE TABLE products (
    product_id INTEGER
    CONSTRAINT products_pk PRIMARY KEY,
    product_type_id INTEGER
    CONSTRAINT products_fk_product_types
    REFERENCES product_types(product_type_id),
    name VARCHAR2(30) NOT NULL,
    description VARCHAR2(50),
    price NUMBER(5, 2)
    CREATE TABLE customers (
    customer_id INTEGER
    CONSTRAINT customers_pk PRIMARY KEY,
    first_name VARCHAR2(10) NOT NULL,
    last_name VARCHAR2(10) NOT NULL,
    dob DATE,
    phone VARCHAR2(12)
    CREATE TABLE orders (
    order_id INTEGER
    CONSTRAINT orders_pk PRIMARY KEY,
    product_id INTEGER
    CONSTRAINT purchases_fk_products
    REFERENCES products(product_id),
    customer_id INTEGER
    CONSTRAINT purchases_fk_customers
    REFERENCES customers(customer_id),
    quantity INTEGER NOT NULL
    INSERT INTO customers (
    customer_id, first_name, last_name, dob, phone
    ) VALUES (
    1, 'John', 'Brown', '01-JAN-1965', '800-555-1211'
    INSERT INTO product_types (
    product_type_id, name
    ) VALUES (
    1, 'Book'
    INSERT INTO products (
    product_id, product_type_id, name, description, price
    ) VALUES (
    1, 1, 'Modern Science', 'A description of modern science', 19.95
    COMMIT;
    CREATE OR REPLACE PACKAGE dbfunc AS
    FUNCTION place_order (
    p_product_id INTEGER,
    p_customer_id INTEGER,
    p_quantity INTEGER
    RETURN VARCHAR2;
    END dbfunc;
    CREATE OR REPLACE PACKAGE BODY dbfunc AS
    FUNCTION place_order (
    p_product_id INTEGER,
    p_customer_id INTEGER,
    p_quantity INTEGER
    RETURN VARCHAR2 IS
    v_customer_count INTEGER;
    v_product_count INTEGER;
    v_order_id INTEGER;
    BEGIN
    -- count the number of products with the
    -- supplied p_product_id (should be 1 if the product exists)
    SELECT COUNT(*)
    INTO v_product_count
    FROM products
    WHERE product_id = p_product_id;
    IF v_product_count = 0 THEN
    RETURN 'No such product';
    END IF;
    -- count the number of customers with the
    -- supplied p_customer_id (should be 1)
    SELECT COUNT(*)
    INTO v_customer_count
    FROM customers
    WHERE customer_id = p_customer_id;
    IF v_customer_count = 0 THEN
    RETURN 'No such customer';
    END IF;
    -- get the next value from orders_sq
    SELECT order_sq.nextval
    INTO v_order_id
    FROM dual;
    -- place the order
    INSERT INTO orders (
    order_id, product_id, customer_id, quantity
    ) VALUES (
    v_order_id, p_product_id, p_customer_id, p_quantity
    COMMIT;
    RETURN 'Order placed with id of ' || v_order_id;
    EXCEPTION
    WHEN OTHERS THEN
    ROLLBACK;
    RETURN 'Order not placed';
    END place_order;
    END dbfunc;
    4. Install and Configure OC4J
    4.1 Change Directory
    4.1.1 Open command prompt (cmd.exe)
    4.1.2 CD C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\bin
    4.2 Configure Environment variables (type in command prompt)
    4.2.1 set JAVA_HOME=C:\oracle\product\10.2.0\db_1\jdk
    4.2.2 set ORACLE_HOME=C:\oracle\product\10.2.0\db_1\oc4j_extended_101330
    4.3 Starting OC4J for the first time
    4.3.1 oc4j -start
    4.3.2 If this is not your first time to "start" oc4j, go to step 4.3.4
    4.3.3 Set oc4jadmin password (use the password "oracle" w/o the quotation marks)
    08/03/21 17:13:54 Set OC4J administrator's password (password text will not be displayed as it is entered)
    Enter password:
    Confirm password:
    Confirm password: The password for OC4J administrator "oc4jadmin" has been set.
    08/03/21 17:14:01 The OC4J administrator "oc4jadmin" account is activated.
    4.3.4 OC4J has started if you see the message :
    08/03/21 17:14:16 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized
    4.3.5 Leave this command prompt open
    4.4 Configure Data Source
    4.4.1 Open a new command prompt via the cmd.exe command
    4.4.2 type "hostname" and then press enter
    4.4.3 Keep this command prompt open for later use
    4.4.4 Open Windows Explorer and navigate to the folder C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\config
    4.4.5 Open the file data-sources.xml
    4.4.6 Modify and Save the file so that it will look something like the following :
    4.4.6.1 Note that "hpv2710us" is my hostname found in step 4.4.2
    4.4.6.2 Note that "ORCLDEV" is the name of my Oracle Instance. (Default installation uses ORCL only)
    <connection-pool name="Example Connection Pool">
    <connection-factory factory-class="oracle.jdbc.pool.OracleDataSource"
    user="store"
    password="store"
    url="jdbc:oracle:thin:@//hpv2710us:1521/ORCLDEV">
    </connection-factory>
    </connection-pool>
    4.4.7 Close the text editor
    4.4.8 Close the Windows Explorer
    4.4.9 Close this command prompt (type exit)
    5. Publishing a PL/SQL Package as a Database Web Service
    5.1 Create the config.xml file
    5.1.1 Open Notepad.exe
    5.1.2 Copy and Paste the following :
    5.1.2.1 Note that "hpv2710us" is my hostname found in step 4.4.2
    5.1.2.2 Note that "ORCLDEV" is the name of my Oracle Instance. (Default installation uses ORCL only)
    <web-service>
    <display-name>PLSQL Web Service</display-name>
    <description>PLSQL Sample</description>
    <destination-path>./dbfunc.ear</destination-path>
    <temporary-directory>/tmp</temporary-directory>
    <context>/plsqlsample</context>
    <stateless-stored-procedure-java-service>
    <jar-generation>
    <schema>store/store</schema>
    <db-url>jdbc:oracle:thin:@hpv2710us:1521:ORCLDEV</db-url>
    <prefix>db.func.place.order</prefix>
    <db-pkg-name>dbfunc</db-pkg-name>
    </jar-generation>
    <uri>/dbfunc</uri>
    <database-JNDI-name>jdbc/OracleDS</database-JNDI-name>
    </stateless-stored-procedure-java-service>
    <wsdl-gen>
    <wsdl-dir>wsdl</wsdl-dir>
    <option name="force">true</option>
    <option name="httpServerURL">http://localhost:8888</option>
    </wsdl-gen>
    <proxy-gen>
    <proxy-dir>proxy</proxy-dir>
    <option name="include-source">true</option>
    </proxy-gen>
    </web-service>
    5.1.3 Save file as config.xml in the directory C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\config
    5.1.3.1 Note it should be config.xml and not config.txt
    5.1.4 Close the text editor
    5.2 Publish dbfunc Oracle Package as a Web Service
    5.2.1 Open a new command prompt via the cmd.exe command
    5.2.2 CD C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home
    5.2.3 mkdir ear
    5.2.4 CD ear
    5.2.5 set ORACLE_HOME=C:\oracle\product\10.2.0\db_1\oc4j_extended_101330
    5.2.6 set CLASSPATH=.;%ORACLE_HOME%\webservices\lib\wsdl.jar;%ORACLE_HOME%\lib\xmlparserv2.jar;%ORACLE_HOME%\soap\lib\soap.jar
    5.2.7 java -jar %ORACLE_HOME%\webservices\lib\WebServicesAssembler.jar -config C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\config\config.xml
    Please wait ...
    STORE.DBFUNC
    5.2.8 java -jar %ORACLE_HOME%\j2ee\home\admin_client.jar deployer:oc4j:localhost:23791 oc4jadmin oracle -deploy -file C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\ear\dbfunc.ear -deploymentName dbfunc
    08/03/21 17:46:23 Notification ==>Application Deployer for dbfunc COMPLETES. Operation time: 296 msecs
    5.2.9 java -jar %ORACLE_HOME%\j2ee\home\admin_client.jar deployer:oc4j:localhost:23791 oc4jadmin oracle -bindWebApp -appname dbfunc -webModuleName dbfunc_web
    5.2.10 java -jar %ORACLE_HOME%\j2ee\home\admin_client.jar deployer:oc4j:localhost:23791 oc4jadmin oracle -bindAllWebApps -appname dbfunc
    5.2.11 Close this command prompt (type exit)
    6. Test dbfunc Web Service
    6.1 Restart OC4J
    6.1.1 Open the command prompt you used to start OC4J in step 4.1.1/4.3.1
    6.1.2 In the keyboard, hit Ctrl+C
    6.1.2.1 Type "Y" and then hit Enter
    08/03/21 18:02:51 Shutting down OC4J...
    Terminate batch job (Y/N)? Y
    6.1.2.2 Note that the command prompt should still be open
    6.1.2.2.1 If you accidentally closed the command prompt just do the following
    6.1.2.2.1.1 Do 4.1.1 to 4.2.2 and then proceed to 6.1.3
    6.1.3 oc4j -start
    Starting OC4J from C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home...
    08/03/21 18:07:57 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized
    6.1.4 Leave this command prompt open
    6.2 Use the Web Service to "Order an Item"
    6.2.1 Connect to Oracle using the user STORE and password STORE
    6.2.2 select * from orders
    6.2.2.1 Zero row should return
    6.2.3 Open Internet Explorer
    6.2.4 Navigate to http://localhost:8888/plsqlsample/dbfunc
    6.2.5 Input the following :
    6.2.5.1 param0 value: 1
    6.2.5.2 param1 value: 1
    6.2.5.3 param2 value: 10
    6.2.6 Click the Invoke button
    6.2.7 A pop-up window will appear having the following contents :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <SOAP-ENV:Body>
    - <ns1:placeOrderResponse xmlns:ns1="http://db.func.place.order/dbfunc.wsdl" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <return xsi:type="xsd:string">Order placed with id of 1</return>
    </ns1:placeOrderResponse>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    6.2.8 Go back to SQLPLUS or Toad and execute "select * from orders" again
    6.2.8.1 There should be one row
    ORDER_ID, PRODUCT_ID, CUSTOMER_ID, QUANTITY
    1, 1, 1, 10
    NOTES AND REFERENCES
    =================================================================
    This detailed step-by-step guide was produced with the following article by Jason Price http://www.oracle.com/technology/pub/articles/price_10gws.html

    Success!!!
    I had to grant this permissions:
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.lang.RuntimePermission', 'getClassLoader', '' );
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.lang.RuntimePermission', 'accessClassInPackage.sun.util.calendar', '' );
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.lang.RuntimePermission', 'setFactory', '' )
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.util.PropertyPermission', 'HTTPClient.socket.idleTimeout', 'write' );
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.net.SocketPermission', 'localhost', 'resolve' );
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.net.SocketPermission', '127.0.0.1:8084', 'connect,resolve' );
    As I wrote earlier, WS_TEST is my user into which I load JAX-RPC client. Note that, if you load JAX-RPC client into user another than SYS, you have NOT to use -s -grant public option (wassam wrote about this too). Another thing is that I (finally) didn't load OC4J. To consume WebService I use utl_dbws.invoke(call_Handle CALL, request SYS.XMLTYPE) function.
    voytec001

Maybe you are looking for

  • Problem using captivate file in a flash file

    Hi, I am using a captivate file inside a flashfile. I am experiencing the following problem. I have a button in a layer above the captivate file. But when I click that button the button and the captivate file react. How is this possible, and how can

  • Blank CD/DVDs not showing up in finder

    Hi, When I insert a brand new blank cd or dvd, it does not show up in finder or the desktop, which is how i used to make data dvds and such. however it does write in itunes or idvd, it will write to it and recognize it. any ideas?

  • Poor, jerky preview playback on dual monitors

    Hi, I have an ongoing issue with video preview in Premiere CS4. I have a dual screen setup, but when I have the video on the 2nd monitor, the playback is poor quality and jerky (about 5 fps). It works fine on a one monitor setup....? Any ideas.help m

  • 620 slower after cyan update

    Hello everybody... I noticed that after the cyan update, my Lumia 620 is much slower than before. I don't want to downgrade to black... Is there any setting I have to do or something like that to speed up my phone again? Phones history: 5110, 6110, 3

  • Call LabVIEW VIs from MATLAB

    Does anybody know of a simple way to call LabVIEW VIs from within a MATLAB m-file?  I would like to be able to write VIs in LabVIEW and then script them (for stochastic analysis, etc.), and think MATLAB would be an awfully convenient way to do this (