Xletview , java tv,  webservices and jaxm.properties..

Hi.
I am running C:\jwsdp-1.2 and C:\j2sdk1.4.2_05 .. I am doing a test
on JavaTv using XletView. It failed when I run it in the XletView emulator. Where can i obtain the jaxm.properties..
xjava.io.File - C:\j2sdk1.4.2_05\jre\lib\jaxm.properties
java.lang.NullPointerException
at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMes
sageContext.java:114)
at com.sun.xml.rpc.client.StreamingSenderState.<init>(StreamingSenderSta
te.java:32)
at com.sun.xml.rpc.client.StreamingSender._start(StreamingSender.java:48
at com.francetelecom.rd.orion.webservice.OrionWebServicePortType_Stub.ge
tArrayOfMembers(OrionWebServicePortType_Stub.java:1620)
at com.francetelecom.rd.orion.webservice.OrionWebServicePortTypeClient.g
etArrayOfMembers(OrionWebServicePortTypeClient.java:72)
at com.francetelecom.rd.orion.controller.Welcome.setUp(Welcome.java:79)
at com.francetelecom.rd.orion.xlet.OrionXlet.initXlet(OrionXlet.java:58)
at net.beiker.xletview.xlet.XletManager.initXlet(Unknown Source)
at net.beiker.xletview.xlet.XletManager.run(Unknown Source)
at java.lang.Thread.run(Thread.java:534)

My question is where is this file .. I can't see it anywhere.. I am using C:\jwsdp-1.2

Similar Messages

  • How to convert Java code to Webservice and deploy in to JBOSS via JDEV11g

    Hi All,
    Greetings. I am trying to develop Java Web service from JDeveloper 11g which has 2 basic methods. I can able to develop the WS out of the Java through Jdev and can able to test the webservice with the help of "Test Web Service" menu option under .JPR.
    But when I am trying to deploy the WS.War file in to JBOSS app server (which is our project default server) from JDEV I couldn't able to get the option thought I have created the JBOSS server connection in Jdev. I can see only weblogic server connection under DEPLOY menu. Even if I edit the SOAP URL in WSDL to point JBOSS host and port and manually deploy the WAR in to JOBSS, it is not working, getting deployment error.
    Anyone please guide me how to edit the WDSL which should point my JBOSS server (http://localhost:8080) and how to deploy the WAR and access the webservice from my Browser. Step by step help will be really appreciated since I am new to WS. Make this WS work is very important and urgent task in our project. But no luck so far.
    Thanks in advance for each of you. Waiting for the position help.
    klogube

    Hi Shay,
    Thanks for providing the blog URL which helped me to solve my first project. Now I have changed my WebServices deployment server from JDEV Default Apps server (Weblogic) to JBOSS. Now I can directly deploy Ws.WAR from JDEV to JBOSS. But I am getting the error in the JBOSS log as soon as I deploy the WAR.
    2009-02-02 17:21:29,985 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/opt/jboss-4.2.3.GA/server/default/deploy/Testing-SampleWebServices-context-root.war
    java.lang.IllegalStateException: Endpoint already registered: jboss.ws:context=Testing-SampleWebServices-context-root,endpoint=DateTestingWSSoapHttpPort
         at org.jboss.wsf.framework.management.DefaultEndpointRegistry.register(DefaultEndpointRegistry.java:89)
         at org.jboss.wsf.framework.management.ManagedEndpointRegistry.register(ManagedEndpointRegistry.java:59)
         at org.jboss.wsf.framework.deployment.EndpointRegistryDeploymentAspect.create(EndpointRegistryDeploymentAspect.java:49)
    .................etc
    2009-02-02 17:21:29,987 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@a99914c8{ url=file:/opt/jboss-4.2.3.GA/server/default/deploy/Testing-SampleWebServices-context-root.war, deployedLastModified=0 }
    org.jboss.deployment.DeploymentException: Could not create deployment: file:/opt/jboss-4.2.3.GA/server/default/deploy/Testing-SampleWebServices-context-root.war; - nested throwable: (java.lang.IllegalStateException: Endpoint already registered: jboss.ws:context=Testing-SampleWebServices-context-root,endpoint=DateTestingWSSoapHttpPort)
         at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
         at org.jboss.deployment.MainDeployer.create(MainDeployer.java:991)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
         at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    .....etc
    Please help me, how to overcome this error and invoke my WS from http://localhost:8080...... (JBOSS path). I am trying to create client application too for invoke my WS and I failed to create the same while I am mapping the WSDL path in to the client application. Getting error, WSDL path is not available under localhost. (Note: I can able to see the list of WS's deployed in to JBOSS under: http://localhost:8080/jbossws/services which display the Endpoint name and address. But cant able to access the URL)
    Thanks
    klogube

  • Can we wrap a RFC as webservice  and use from external java application ?

    Hi Friends ,
                         Our scenario is  call a webservice ( wrapped form of RFC)  from a external  java application  which will pass the input to that webservice and get back the result  .
                          How XI will play a role here ?
                          Can we wrap a rfc as web service  ?
                           Any blogs for that ?
                          Can you please give a brief details about this ?
                          Expecting yoour asap
    Best Regards .,
    V.Rangarajan

    Hi
    Can we wrap a rfc as web service ?
    Yes.
    <i>To use the SAP Web AS 6.40 you need to build a wrapper in the 6.40 system. This is a remote function call (RFC) enabled function module with the same interface or a similar interface that internally calls the required RFC-enabled function module in the old 4.6x system via RFC. The wrapper then can be exposed to the outside world as a Web service. Another option is to use the Integration Broker capabilities for calling Web services in an older system.</i>
    How XI will play a role here ?
    XI will pass the input to the external java application and get back the result to the webservice
    regards
    krishna

  • Error with WebServices and object hierarchy

    Hello,
    I'm using Web Services (deployed on Axis Server) with SJC. SJC don't understood the object hierarchy. It's seem to be the same problem than in post http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=50290 and
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=52967.
    I have 3 classes.
    GrandSon
    Son with an array of GrandSon
    Father with an array of Son
    The class :
    Father :
    package test;
    public class Father {
         private Son[] theSons;
         public Father()
              theSons = new Son[2];
              theSons[0] = new Son();
              theSons[1] = new Son();
         public Son[] getSons()
              return theSons;
    Son :
    package test;
    public class Son {
         private String name = "Son";
         private GrandSon[] grandSons;
         public Son()
              grandSons = new GrandSon[2];
              grandSons[0] = new GrandSon();
              grandSons[1] = new GrandSon();
         public String getName()
              return name;
         public GrandSon[] getGrandSons()
              return grandSons;
    GrandSon
    package test;
    public class GrandSon {
         String name;
         public String getName()
              return "I'm a Grandson";
    I'm creating the webService from Father JavaBean. Here is the WSDL file generated by wtp plugin for Eclipse :
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://test" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://test" xmlns:intf="http://test" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <!--WSDL created by Apache Axis version: 1.3
    Built on Oct 05, 2005 (05:23:37 EDT)-->
    <wsdl:types>
    <schema elementFormDefault="qualified" targetNamespace="http://test" xmlns="http://www.w3.org/2001/XMLSchema">
    <element name="getSons">
    <complexType/>
    </element>
    <element name="getSonsResponse">
    <complexType>
    <sequence>
    <element maxOccurs="unbounded" name="getSonsReturn" type="impl:Son"/>
    </sequence>
    </complexType>
    </element>
    <complexType name="GrandSon">
    <sequence>
    <element name="name" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    <complexType name="ArrayOfGrandSon">
    <sequence>
    <element maxOccurs="unbounded" minOccurs="0" name="item" type="impl:GrandSon"/>
    </sequence>
    </complexType>
    <complexType name="Son">
    <sequence>
    <element name="grandSons" nillable="true" type="impl:ArrayOfGrandSon"/>
    <element name="name" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </schema>
    </wsdl:types>
    <wsdl:message name="getSonsRequest">
    <wsdl:part element="impl:getSons" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="getSonsResponse">
    <wsdl:part element="impl:getSonsResponse" name="parameters"/>
    </wsdl:message>
    <wsdl:portType name="Father">
    <wsdl:operation name="getSons">
    <wsdl:input message="impl:getSonsRequest" name="getSonsRequest"/>
    <wsdl:output message="impl:getSonsResponse" name="getSonsResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="FatherSoapBinding" type="impl:Father">
    <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getSons">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="getSonsRequest">
    <wsdlsoap:body use="literal"/>
    </wsdl:input>
    <wsdl:output name="getSonsResponse">
    <wsdlsoap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="FatherService">
    <wsdl:port binding="impl:FatherSoapBinding" name="Father">
    <wsdlsoap:address location="http://localhost:8080/webServiceSimple/services/Father"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    When I try to call my Web Service in Sun Java Creator, I have this error message :
    InvocationTargetException com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:459)
    com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031)
    java.lang.Thread.run(Thread.java:595)
    null sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585) com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450)
    com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031)
    java.lang.Thread.run(Thread.java:595)
    deserialization error: unexpected XML reader state. expected: END but found: START
    Runtime exception; nested exception is: deserialization error: unexpected XML reader state. expected: END but found: START: {http://test}grandSons
    com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(StreamingSender.java:318)
    com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:300)
    webservice.Father_Stub.getSons(Father_Stub.java:68)
    webservice.fatherservice.FatherServiceClient.getSons(FatherServiceClient.java:29)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585)
    com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031)
    java.lang.Thread.run(Thread.java:595)
    deserialization error: unexpected XML reader state. expected: END but found: START: {http://test}grandSons
    com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:128) webservice.Son_LiteralSerializer.doDeserialize(Son_LiteralSerializer.java:54)
    com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:216)
    com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:124)
    webservice.GetSonsResponse_LiteralSerializer.doDeserialize(GetSonsResponse_LiteralSerializer.java:53)
    com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:216)
    com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:124)
    webservice.Father_Stub._deserialize_getSons(Father_Stub.java:115)
    webservice.Father_Stub._readFirstBodyElement(Father_Stub.java:102)
    com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:215)
    webservice.Father_Stub.getSons(Father_Stub.java:68)
    webservice.fatherservice.FatherServiceClient.getSons(FatherServiceClient.java:29)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585)
    com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450)
    com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031)
    java.lang.Thread.run(Thread.java:595)
    The SOAP communication seems to be correct. I'm sniffing the communication channel:
    Request from SJC:
    POST /webServiceSimple/services/Father HTTP/1.1
    Content-Type: text/xml; charset=utf-8
    Content-Length: 335
    SOAPAction: ""
    Cache-Control: no-cache
    Pragma: no-cache
    User-Agent: Java/1.5.0_06
    Host: 127.0.0.1:8081
    Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Connection: keep-alive
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://test"><env:Body><ns0:getSons/></env:Body></env:Envelope>
    Response from AXIS ( I have corrected text indentation) :
    HTTP/1.1 200 OK
    Content-Type: text/xml;charset=utf-8
    Transfer-Encoding: chunked
    Date: Thu, 24 Aug 2006 12:44:27 GMT
    Server: Apache-Coyote/1.1
    292
    <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body><getSonsResponse xmlns="http://test">
    <getSonsReturn>
    <grandSons>
    <grandSons>
    <name>I'm a Grandson</name>
    </grandSons>
    <grandSons>
    <name>I'm a Grandson</name>
    </grandSons>
    </grandSons>
    <name>Fils</name>
    </getSonsReturn>
    <getSonsReturn>
    <grandSons>
    <grandSons>
    <name>I'm a Grandson</name>
    </grandSons>
    <grandSons>
    <name>I'm a Grandson</name>
    </grandSons>
    </grandSons>
    <name>Fils</name>
    </getSonsReturn>
    </getSonsResponse>
    </soapenv:Body></soapenv:Envelope>
    0
    I suppose that the version of SOAP used in AXIS and in SJSC may be different. Array's definition have been changed in version SOAP 1.2.
    Here an array is described like this :
    <grandSons> <- ARRAY
    <grandSons> <-OBJECT : ARRAY[0]
    </grandSons>
    <grandSons><-OBJECT : ARRAY[1]
    </grandSons>
    </grandSons>
    Probably explains this message :
    deserialization error: unexpected XML reader state. expected: END but found: START: item
    Somebody have an idea ?
    Thanks.

    Hi Frank,
    I've checked further, and for testing, I have made a change to the sample Reference Cursor package code (NVL'd the parameter), but I still get the same error:
    CREATE OR REPLACE PACKAGE BODY RefCursorExample IS
      FUNCTION get_requests_for_tech(p_email VARCHAR2) RETURN ref_cursor IS
        the_cursor ref_cursor;
      BEGIN
        OPEN the_cursor FOR
          SELECT sr.svr_id, sr.status, sr.problem_description
            FROM service_requests sr, users u
         WHERE sr.assigned_to = u.user_id
           AND u.email = NVL(p_email,u.email);
        RETURN the_cursor;
      END get_requests_for_tech;
      FUNCTION count_requests_for_tech(p_email VARCHAR2) RETURN NUMBER IS
        the_count NUMBER;
      BEGIN
        SELECT COUNT(*)
          INTO the_count
          FROM service_requests sr, users u
         WHERE sr.assigned_to = u.user_id
           AND u.email = NVL(p_email,u.email);
        RETURN the_count;
      END count_requests_for_tech;
    END RefCursorExample;My issue is that it works with NULL for the parameter in the Business Component Browser (BCB), but when I get to the JSF ExecuteWithParams the application looks like it expects NOT NULL when NULL should work. Is there a way to trace where this is happening? Since the BCB works, can I assume it is the JSF side that is causing this? I have already turned on my logging to FINE in logging.properties, and I can't seem to find why this is being triggered...
    java.util.logging.ConsoleHandler.level = FINE
    com.sun.faces.level=FINE
    Thanks!
    Kenton

  • How to deploy WebService and BPEL to Application Server in EBS R12?

    hi all,
    I have R12 EBS on linux machine.
    Can i deploy WebService/BPEL to Application Server of EBS?
    or i must install new application server to deploy WebService and BPEL ?
    Thanks
    Benny

    Hi,
    You can find many articles on oracle site for this subject.
    However in brief following are the steps
    1) Create a directory source,executables,images,reports and logfiles.
    2) Copy all your forms, menus and pll's in source directory
    3) All your images in your image directory
    4) All your reports in reports directory
    5) All yuor fmx,mmx and plx in executables directory
    6) Any log files in logfiles directory
    7) Add path of images and executables directory in FORMS_PATH in default.env
    8) Configure your formsweb.cfg as your need.
    9) Configure report.conf and rwservlet.properties according to your applications.
    10) Make jar of icons say myicons.jar.
    11) copy myicons.jar in forms/java directory
    12) Check yuor form services if they are running or not.
    13) Invoke the URL in internet explorer
    http://<ip_address>:<port_no>/forms/frmservlet?form=testform.fmx
    I think that's enough from my side.. For more info you can go through the documentation.
    Regards
    Anuj

  • How to set buildID.xml and custom.properties in SDK

    Hello,
    I just completed a new build deployment of SAP ME5.2, because after I deployed the new version, I don't think I have set a
    correct version number.Can you someone give me a sample how to set the buildID.xml and custom.properties? I am a new on the SAP ME5.2
    The Base version is ME_Base_5.2.5.16.5_netweaver-71_Update.zip and
    MEClient_Base_5.2.5.16.5_netweaver-71_Update.zip. the HB customzation
    version is ME_xxxxxx_2.0.0.0.x_netweaver-71.
    Within the sap note 1484551, you mentioned we need change the
    SDKInstallDir/build/buildID.xml file, here is the context of the file:
    buildID.xml -
    <?xml version="1.0" encoding="UTF-8"?>
    <buildID xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <customer>XXXXXX</customer>
    <revision>1.0.0.0</revision>
    <build>1</build>
    </buildID>
    buildID.xml -
    1. how can we change the revision and build?
    There is another file BuildToolDir/build/script/custom.properties, here
    is the file context:
    custom.properties----
    This file contains build properties used to configure the build
    system.
    The name of the software vendor implementing the customizations.
    vendor.name=xxxxxxxxx
    Vendor build identifier. This value is used to uniquely identify
    customizations built by a particular vendor for a particular customer
    and base
    application version.
    This is also used in path locations and in naming certain build
    artifacts, like the custom EJB module and the utility classes archive.
    vendor.id=xxxxxxxxx
    The installation of the J2EE engine installed in the development
    environment.
    ex. C:/usr/sap/CE1\J00
    j2ee.instance.dir=J2EEInstanceDir
    The web context path used to access the main web application. This
    is used by the build to set the
    context-root value in application.xml after an update has been
    imported.
    web.context.path=
    The web context path used to access the production XML interface web
    application. This is used by the build to set the
    context-root value in application.xml after an update has been
    imported.
    xml.context.path=
    The web context path to access resources from the web extension
    application, like images and work instruction HTML files.
    web-ext.context.path=web-ext
    The target database vendor. Valid values are 'oracle' or 'sqlserver'.db.vendor=ORACLE
    The JDBC driver configured for the application server.
    db.drivername=VMJDBC
    JDBC connection propertes for the WIP (Work In Process) database.
    This is the primary application database.
    db.wip.driverclassname=
    db.wip.driver.url=
    db.wip.host=
    db.wip.port=
    db.wip.sid=
    db.wip.user=
    db.wip.password=
    JDBC connection propertes for the ODS (Open Data Store) database.
    This is the offline reporting and archiving database.
    db.ods.driverclassname=
    db.ods.driver.url=
    db.ods.host=
    db.ods.port=
    db.ods.sid=
    db.ods.user=
    db.ods.password=
    Flag indicating whether to add DPMO NC codes to NC idat files when a
    new update is imported. This value is initially
    set by the installer according the the user selection.
    dpmo.nc.codes=
    The default locale used by the production system. The default locale
    is the locale used to display locale
    specific text and messages when the requested locale is not
    available. This property does not need to
    be set if the default locale is english.
    default.locale=en
    Used when running the build from Eclipse to locate the java compiler
    used by the WebLogic EJB compiler.
    jdk.home=C:/Program Files/Java/jdk1.5.0_20
    Compiler debug mode. If set to 'true', debug symbols will be
    compiled into the byte code.
    compile.debug=true
    Keystore alias
    security.alias=xxxxx
    Keystore password
    security.storepass=ChangeIt
    Key password
    security.keypass=ChangeIt
    Keystore type (jks=default,jceks,pkcs12)
    security.storetype=jks
    Optional source control build identifier that is to be displayed with
    standard version information.
    scs.build.ID=
    Optional extended version information to be displayed with standard
    version information.
    ext.info=
    custom.properties----
    2. How can we change this here?
    Regards,
    Leon Lu
    Edited by: Leon Lu on Aug 4, 2011 11:14 AM
    Edited by: Leon Lu on Aug 4, 2011 11:21 AM

    Hi,
    I created one request with logo in the header an page in the footer etc. and called StyleSheet. After you can import this formats by each request.
    You can do this in compound layout.
    Regards,
    Stefan

  • Consuming a webservice and attributes

    I'm trying to noodle my way thru consuming a webservice and
    it is not making sense when I'm trying to get attributes from a
    webservice. Can someone point me in the right direction. I've
    included what the xml output looks like and my cfinvoke and a
    cfdump of the invoke return variable. I just don't know how to
    bring back that array of course ids??
    The service returns course ids
    <?xml version="1.0" encoding="utf-8" ?>
    - <Courses>
    <Course CourseID="1167" CourseName="Human Performance
    Tools - Self Checking" />
    <Course CourseID="1168" CourseName="Human Perfomance
    Tools - 3 Way Communication" />
    <Course CourseID="1169" CourseName="Human Performance
    Tools - Phonetic Alphabet" />
    <Course CourseID="1170" CourseName="Human Performance
    Tools - Pre-Job Briefing" />
    <Course CourseID="1171" CourseName="Initial Plant Access
    Training" PadsCode="PAT034" />
    <Course CourseID="1172" CourseName="Initial Radiation
    Worker Training" PadsCode="RWT" />
    <Course CourseID="1224" CourseName="Plant Access Requal
    Training" PadsCode="PAT034" />
    <Course CourseID="1225" CourseName="RWT Requal Training"
    PadsCode="RWQ" />
    <Course CourseID="1226" CourseName="Proctoring
    Responsibilities" />
    <Course CourseID="1235" CourseName="Generic Confined
    Space" />
    <Course CourseID="1236" CourseName="Generic Fall
    Protection" />
    </Courses>
    object of
    org.tempuri.LMSWebSvc.LMS_Interface.GetCoursesResponseGetCoursesResult
    Methods hashCode (returns int)
    equals (returns boolean)
    getSerializer (returns interface
    org.apache.axis.encoding.Serializer)
    getDeserializer (returns interface
    org.apache.axis.encoding.Deserializer)
    getTypeDesc (returns org.apache.axis.description.TypeDesc)
    get_any (returns [Lorg.apache.axis.message.MessageElement;)
    set_any (returns void)
    getClass (returns java.lang.Class)
    wait (returns void)
    wait (returns void)
    wait (returns void)
    notify (returns void)
    notifyAll (returns void)
    toString (returns java.lang.String)

    I found a way to get the soap request into an xml document.
    It was not intuitive to me but works.
    Basically rereading this post:
    http://www.houseoffusion.com/cf_lists/messages.cfm/forumid:4/threadid:44797#233359
    gave me more insight. The tostring function appears to allow me to
    get the raw xml that CF is struggling to noodle out.

  • Possible to extend java Concurrent Program and replace standard??

    Hi All!
    i have following developing need. There is a java concurrent program POXPOPDF (PO Output for Communication). The customer needs this program to do actually something complete different than printing the PO in PDF. The executable for this CP is java class PoGenerateDocumentCP in oracle.apps.po.communicate package.
    We thought that we may be able to extend that class and then in some way made OA to use the extended java class instead of the standard. This is possbile and simple for OA Framework pages unsing classes as controllers, but I don't know how it could be done for CP (if there's a way to do it without violent intervention in standard system).. Is it possbile, can anyone help me with this.
    The thing is that instead of reformatting the XML returned from PO_COMMUNICATION_PVT.POXMLGEN (function POXMLGEN in database package PO_COMMUNICATION_PVT) into PDF we want to reformat into another XML and then send it in other way to a webservice. Once I have the XML from POXMLGEN I have no problem to reformat it into another XML (I think, I have done it iwith other issues/processes). The webservice and the call to it is no problem and is already use with other purposes in other processes, but here (replaceing this stadard java class for an extension/new one) I am a little lost.
    Appreciate very much your help.
    Regards,
    Patricia

    Never mind, I see now that FND_REQUEST.SUBMIT_REQUEST() really does work, I tried with a different standard java concurrent program and it worked fine, and then I figured out that my parameters into fnd_request.submit_request for concurrent program APXVVCF4 were not correct (application short name was invalid for concurrent program).
    Thanks for the Info!

  • XML not well formed - Java Mapping, Webservice to RFC Scenario

    Hello All Experts,
    I have facing a strange type of error. I have written a Java Mapping which implements a DOM parser to take a request from a Webservice and validate it on the basis of some prerequisites. i.e. If data in the incoming request is valid, it creates a message of the same structure type as the input. If the incoming data is incorrect or incomplete; It generates an Error response structure.
    When I run and test the same mapping program using Editplus Java editor for the error scenario; it executes perfectly and creates the correct error XML structure. (I checked it by importing the structure in the XI Message mapping test tab). But when I create jar of my java mapping program and test it in my interface mapping, it gives me "XML not well formed error" (Problem while building the tree).
    Any idea as to why is it behaving in such a way? There are 2 reasons which come to my mind as of now:
    1. The initilization of my input and output streams in the public static void main:
                InputStream in = new FileInputStream(new File("Input.xml"));
               OutputStream out = new FileOutputStream(new File("Output.xml"));
               validateXML myMapping = new ValidateXML();
                myMapping.execute(in, out);
    The Output.xml has the xml structure for the correct case, do I have to initialize my outputstream for the error file? say error.xml
    2. My Webservice interface is a sychronous interface (Request / Response) and output of the Java mapping program are two asynchronous interface. (I'll use a synch-asynch bridge when this works) - Is that causing a problem?
    Please help.
    Best regards,
    Varun

    Hello Varun,
    it gives me "XML not well formed error" (Problem while building the tree).
    I have come across the same error message while testing in interface mapping. My problem was when an exception occured in java mapping, the execution terminates with the messages XML not well formed error". In order to solve this issue what i did was catch the exception type TransformerException and in that catch block throw StreamTransformationException exception in main methos of mapping program i.e execute().
    eg:-                                                                               
    catch (TransformerException e) {
                   throw new StreamTransformationException("Can not write XML.", e);
    By doing this you will see the exception raised , because some times when you execute your mapping with mail() method, though it create the file, when you try to open it will give error if any exceptions occured in mapping. By using the above notation you can handle those in java mapping.
    Hope you have gone through this blog.
    [Handling and Tracing Exceptions in java mapping|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417700)ID1055371050DB01666765031379427182End?blog=/pub/wlg/15061]
    Regards,
    Prasanna

  • Passing Array of java objects to and from oracle database-Complete Example

    Hi all ,
    I am posting a working example of Passing Array of java objects to and from oracle database . I have struggled a lot to get it working and since finally its working , postinmg it here so that it coudl be helpful to the rest of the folks.
    First thinsg first
    i) Create a Java Value Object which you want to pass .
    create or replace and compile java source named Person as
    import java.sql.*;
    import java.io.*;
    public class Person implements SQLData
    private String sql_type = "PERSON_T";
    public int person_id;
    public String person_name;
    public Person () {}
    public String getSQLTypeName() throws SQLException { return sql_type; }
    public void readSQL(SQLInput stream, String typeName) throws SQLException
    sql_type = typeName;
    person_id = stream.readInt();
    person_name = stream.readString();
    public void writeSQL(SQLOutput stream) throws SQLException
    stream.writeInt (person_id);
    stream.writeString (person_name);
    ii) Once you created a Java class compile this class in sql plus. Just Copy paste and run it in SQL .
    you should see a message called "Java created."
    iii) Now create your object Types
    CREATE TYPE person_t AS OBJECT
    EXTERNAL NAME 'Person' LANGUAGE JAVA
    USING SQLData (
    person_id NUMBER(9) EXTERNAL NAME 'person_id',
    person_name VARCHAR2(30) EXTERNAL NAME 'person_name'
    iv) Now create a table of Objects
    CREATE TYPE person_tab IS TABLE OF person_t;
    v) Now create your procedure . Ensure that you create dummy table called "person_test" for loggiing values.
    create or replace
    procedure give_me_an_array( p_array in person_tab,p_arrayout out person_tab)
    as
    l_person_id Number;
    l_person_name Varchar2(200);
    l_person person_t;
    l_p_arrayout person_tab;
    errm Varchar2(2000);
    begin
         l_p_arrayout := person_tab();
    for i in 1 .. p_array.count
    loop
         l_p_arrayout.extend;
         insert into person_test values(p_array(i).person_id, 'in Record '||p_array(i).person_name);
         l_person_id := p_array(i).person_id;
         l_person_name := p_array(i).person_name;
         l_person := person_t(null,null);
         l_person.person_id := l_person_id + 5;
         l_person.person_name := 'Out Record ' ||l_person_name ;
         l_p_arrayout(i) := l_person;
    end loop;
    p_arrayout := l_p_arrayout;
         l_person_id := p_arrayout.count;
    for i in 1 .. p_arrayout.count
    loop
    insert into person_test values(l_person_id, p_arrayout(i).person_name);
    end loop;
    commit;
    EXCEPTION WHEN OTHERS THEN
         errm := SQLERRM;
         insert into person_test values(-1, errm);
         commit;
    end;
    vi) Now finally create your java class which will invoke the pl/sql procedure and get the updated value array and then display it on your screen>Alternatively you can also check the "person_test" tbale
    import java.util.Date;
    import java.io.*;
    import java.sql.*;
    import oracle.sql.*;
    import oracle.jdbc.driver.*;
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    public class ArrayDemo
    public static void passArray() throws SQLException
    Connection conn = getConnection();
    ArrayDemo a = new ArrayDemo();
    Person pn1 = new Person();
    pn1.person_id = 1;
    pn1.person_name = "SunilKumar";
    Person pn2 = new Person();
    pn2.person_id = 2;
    pn2.person_name = "Superb";
    Person pn3 = new Person();
    pn3.person_id = 31;
    pn3.person_name = "Outstanding";
    Person[] P_arr = {pn1, pn2, pn3};
    Person[] P_arr_out = new Person[3];
    ArrayDescriptor descriptor =
    ArrayDescriptor.createDescriptor( "PERSON_TAB", conn );
    ARRAY array_to_pass =
    new ARRAY( descriptor, conn, P_arr);
    OracleCallableStatement ps =
    (OracleCallableStatement )conn.prepareCall
    ( "begin give_me_an_array(?,?); end;" );
    ps.setARRAY( 1, array_to_pass );
         ps.registerOutParameter( 2, OracleTypes.ARRAY,"PERSON_TAB" );
         ps.execute();
         oracle.sql.ARRAY returnArray = (oracle.sql.ARRAY)ps.getArray(2);
    Object[] personDetails = (Object[]) returnArray.getArray();
    Person person_record = new Person();
    for (int i = 0; i < personDetails.length; i++) {
              person_record = (Person)personDetails;
              System.out.println( "row " + i + " = '" + person_record.person_name +"'" );
                        public static void main (String args[]){
         try
                             ArrayDemo tfc = new ArrayDemo();
                             tfc.passArray();
         catch(Exception e) {
                        e.printStackTrace();
              public static Connection getConnection() {
         try
                             Class.forName ("oracle.jdbc.OracleDriver");
                             return DriverManager.getConnection("jdbc:oracle:thin:@<<HostNanem>>:1523:VIS",
                             "username", "password");
         catch(Exception SQLe) {
                        System.out.println("IN EXCEPTION BLOCK ");
                        return null;
    and thats it. you are done.
    Hope it atleast helps people to get started. Comments are appreciated. I can be reached at ([email protected]) or [email protected]
    Thanks
    Sunil.s

    Hi Sunil,
    I've a similar situation where I'm trying to insert Java objects in db using bulk insert. My issue is with performance for which I've created a new thread.
    http://forum.java.sun.com/thread.jspa?threadID=5270260&tstart=30
    I ran into your code and looked into it. You've used the Person object array and directly passing it to the oracle.sql.ARRAY constructor. Just curios if this works, cos my understanding is that you need to create a oracle.sql.STRUCT out of ur java object collection and pass it to the ARRAY constructor. I tried ur way but got this runtime exception.
    java.sql.SQLException: Fail to convert to internal representation: JavaBulkInsertNew$Option@10bbf9e
                        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
                        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
                        at oracle.jdbc.oracore.OracleTypeADT.toDatum(OracleTypeADT.java:239)
                        at oracle.jdbc.oracore.OracleTypeADT.toDatumArray(OracleTypeADT.java:274)
                        at oracle.jdbc.oracore.OracleTypeUPT.toDatumArray(OracleTypeUPT.java:115)
                        at oracle.sql.ArrayDescriptor.toOracleArray(ArrayDescriptor.java:1314)
                        at oracle.sql.ARRAY.<init>(ARRAY.java:152)
                        at JavaBulkInsertNew.main(JavaBulkInsertNew.java:76)
    Here's a code snippet I used :
    Object optionVal[] =   {optionArr[0]};   // optionArr[0] is an Option object which has three properties
    oracle.sql.ArrayDescriptor empArrayDescriptor = oracle.sql.ArrayDescriptor.createDescriptor("TT_EMP_TEST",conn);
    ARRAY empArray = new ARRAY(empArrayDescriptor,conn,optionVal);If you visit my thread, u'll see that I'm using STRUCT and then pass it to the ARRAY constructor, which works well, except for the performance issue.
    I'll appreciate if you can provide some information.
    Regards,
    Shamik

  • How to use Adaptive WebService Model with CAF WebService and Complex Type

    Hi All,
    I am trying to use the Adaptive Web Service Model and call a WebService generated by the CAF. The return type of the WebService is a Complex Type.. I receive an exception when trying to instantiate the Model Node.
    Does anybody know how to use the Adpative Web Service Model with CAF WebServices and Complex Types as return type?
    Help is appreciated..
    Thanks, Johannes

    Thanks Mukesh.
    It is not possible to apply the Service Controller Template on Enterprise Java Bean Models as described in the Document. When I try to aply the template on the EJB Model, NWDS says: Only Webservice Models and RFC Models are supported...???
    I did not find any information about how to return complex types in AWS.. in this document???
    Is there such information available? Has anybody ever done that? There must be a way to do that.. Is is the standard approach, isn't it...? Please help me out there.. I need to get this running..
    Thanks, Johannes

  • Weblogic webservices and JSP

    Hi Folks,
    I have been stuck with this issue for quite sometime now. I have developed a simple webservice using a java class. It looks something like this..
    public class ReceiveMessageClass{
       public void receiveMessage(String msg){
          logIt(msg);
          //Store 'msg' in a memory variable so that the JSP can ping it every 10 sec and read it..
    }Now, I need a webpage to look at all the messages I recieve at this webservice. Sounds pretty easy? I have done this with Axis. I can create a WAR and my webservice and my JSP can co-exist and share a variable in memory. But with weblogic, a EAR is created and I am not sure how to get my JSP into the EAR. I am not sure how I can store this 'msg' into memory(some static vbl) and then have my JSP read it and display it.
    Any suggestions?

    I do not see any weblogic classes in the stack trace. So could this
    be something to do with tomcat?
    If you are just using the client side of the web services stack, you
    only need the Client.jar and webserviceclient.jar file in your war.
    Regards,
    -manoj.
    http://manojc.com
    "Stephen Zeng" <[email protected]> wrote in message
    news:3ef1d72c$[email protected]..
    >
    I have packed Client.jar, weblogic.jar, webservices.jar and jsp as aseperated
    war to call web sevice and run sucessfully in WLS7.0. But when I ran inTomcat
    4.0.1, I got the following error. I try set javax.xml.rpc.ServiceFactoryas context
    param in web.xml, but no use. <p>
    java.lang.ClassCastException <br>
    atjavax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.
    java:93)<br>
    atorg.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183)<
    br>
    atorg.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa
    che.java:165)<br>
    atorg.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:138)
    atorg.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324)
    at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
    atorg.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
    atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
    va:214)
    atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
    66)
    atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    Stephen

  • Bgm.ser and jaxb.properties not created

    Is there a particular reason to why the bgm.ser and jaxb.properties files are not created when a schema only consists of a simpletype and I run the binding compiler???
    The two files seem to be created when I include a 'dummy' complextype in the schema. Is a complextype needed in order for the files to be created?
    Cheers.
    Anders
    <simpleType name="Values">
        <restriction base="string">
            <enumeration value="ValueOne"/>
            <enumeration value="ValueTwo"/>
            <enumeration value="ValueThree"/>
            <enumeration value="ValueFour"/>
        </restriction>
    </simpleType>

    I've had the same exact problem! I had the property file in my JAR file properly, but the JAXBContext.newInstance( "package.name" ) call was failing - while at the same time I could load the property file via the ClassLoader just fine, by hand.
    I played around with source for the jaxb beta a bit and I think I found the problem. I recompiled the JAR file after changing the "fileSep" variable in the "searchforcontextPath" method from "file.separatorChar" to "/".
    This seemed to fix the problem. Well, the problem of it not finding the properties file that is... now I've got some kinda non-marshalable exception (but I haven't even spent 3 minutes on that problem yet, as opposed to the hours wasted on this bug).
    I'm not sure if this bug only cropped up when running under a Windows env or not (my test was running under JBoss on XP... though I was building/compiling under Linux).
    Anyway... to fix this just change that variable.. it's on line 228 (i think... i might have added some debug lines of my own in the code) of the javax/xml/bind/ContextFinder.java file. Then just re-jar it over the old JAR -- oh yeah, you'll need a few Message.property files from the jaxb-api.jar file for the new jar file to work (so make sure you unjar the old file 1st or back it up or whatnot).

  • Webservices and InvocationTargetException

    Does anyone know how to solve the InvocationtargetException problem with webservices? WSDL URL works fine but get error when clicking test method. I tested webservces using vs.net all are fine. Thanks.
    John

    Thanks for your reply. Here are the error message and the wsdl file:
    InvocationTargetException com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(Unknown Source) com.sun.rave.websvc.ui.TestWebServiceMethodDlg.invokeMethod(Unknown Source) com.sun.rave.websvc.ui.TestWebServiceMethodDlg.access$500(Unknown Source) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$4.run(Unknown Source) java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) java.awt.EventQueue.dispatchEvent(EventQueue.java:454) java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) java.awt.EventDispatchThread.run(EventDispatchThread.java:100) null sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:324) com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(Unknown Source) com.sun.rave.websvc.ui.TestWebServiceMethodDlg.invokeMethod(Unknown Source) com.sun.rave.websvc.ui.TestWebServiceMethodDlg.access$500(Unknown Source) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$4.run(Unknown Source) java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) java.awt.EventQueue.dispatchEvent(EventQueue.java:454) java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) java.awt.EventDispatchThread.run(EventDispatchThread.java:100) Runtime exception; nested exception is: unexpected encoding style: expected=http://schemas.xmlsoap.org/soap/encoding/, actual= com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(StreamingSender.java:248) com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:230) webservice.IServ1_Stub.echoDouble(IServ1_Stub.java:119) webservice.IServ1ServiceClient.iserv1portEchoDouble(IServ1ServiceClient.java:31) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:324) com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(Unknown Source) com.sun.rave.websvc.ui.TestWebServiceMethodDlg.invokeMethod(Unknown Source) com.sun.rave.websvc.ui.TestWebServiceMethodDlg.access$500(Unknown Source) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$4.run(Unknown Source) java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) java.awt.EventQueue.dispatchEvent(EventQueue.java:454) java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) java.awt.EventDispatchThread.run(EventDispatchThread.java:100) unexpected encoding style: expected=http://schemas.xmlsoap.org/soap/encoding/, actual= com.sun.xml.rpc.encoding.SOAPDeserializationContext.verifyEncodingStyle(SOAPDeserializationContext.java:159) com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:150) com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:134) webservice.IServ1_Stub._deserialize_echoDouble(IServ1_Stub.java:291) webservice.IServ1_Stub._readFirstBodyElement(IServ1_Stub.java:259) com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:158) webservice.IServ1_Stub.echoDouble(IServ1_Stub.java:119) webservice.IServ1ServiceClient.iserv1portEchoDouble(IServ1ServiceClient.java:31) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:324) com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(Unknown Source) com.sun.rave.websvc.ui.TestWebServiceMethodDlg.invokeMethod(Unknown Source) com.sun.rave.websvc.ui.TestWebServiceMethodDlg.access$500(Unknown Source) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$4.run(Unknown Source) java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) java.awt.EventQueue.dispatchEvent(EventQueue.java:454) java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    <?xml version="1.0" encoding="utf-8"?>
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="IServ1service" targetNamespace="http://tempuri.org/" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="urn:Serv1Intf">
    <types>
    <xs:schema targetNamespace="urn:Serv1Intf" xmlns="urn:Serv1Intf">
    <xs:simpleType name="TEnumTest">
    <xs:restriction base="xs:string">
    <xs:enumeration value="etNone"/>
    <xs:enumeration value="etAFew"/>
    <xs:enumeration value="etSome"/>
    <xs:enumeration value="etAlot"/>
    </xs:restriction>
    </xs:simpleType>
    <xs:complexType name="TDoubleArray">
    <xs:complexContent>
    <xs:restriction base="soapenc:Array">
    <xs:sequence/>
    <xs:attribute ref="soapenc:arrayType" n1:arrayType="xs:double[]" xmlns:n1="http://schemas.xmlsoap.org/wsdl/"/>
    </xs:restriction>
    </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="TMyEmployee">
    <xs:sequence>
    <xs:element name="LastName" type="xs:string"/>
    <xs:element name="FirstName" type="xs:string"/>
    <xs:element name="Salary" type="xs:double"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    </types>
    <message name="echoEnum0Request">
    <part name="Value" type="ns1:TEnumTest"/>
    </message>
    <message name="echoEnum0Response">
    <part name="return" type="ns1:TEnumTest"/>
    </message>
    <message name="echoDoubleArray1Request">
    <part name="Value" type="ns1:TDoubleArray"/>
    </message>
    <message name="echoDoubleArray1Response">
    <part name="return" type="ns1:TDoubleArray"/>
    </message>
    <message name="echoMyEmployee2Request">
    <part name="Value" type="ns1:TMyEmployee"/>
    </message>
    <message name="echoMyEmployee2Response">
    <part name="return" type="ns1:TMyEmployee"/>
    </message>
    <message name="echoDouble3Request">
    <part name="Value" type="xs:double"/>
    </message>
    <message name="echoDouble3Response">
    <part name="return" type="xs:string"/>
    </message>
    <portType name="IServ1">
    <operation name="echoEnum">
    <input message="tns:echoEnum0Request"/>
    <output message="tns:echoEnum0Response"/>
    </operation>
    <operation name="echoDoubleArray">
    <input message="tns:echoDoubleArray1Request"/>
    <output message="tns:echoDoubleArray1Response"/>
    </operation>
    <operation name="echoMyEmployee">
    <input message="tns:echoMyEmployee2Request"/>
    <output message="tns:echoMyEmployee2Response"/>
    </operation>
    <operation name="echoDouble">
    <input message="tns:echoDouble3Request"/>
    <output message="tns:echoDouble3Response"/>
    </operation>
    </portType>
    <binding name="IServ1binding" type="tns:IServ1">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="echoEnum">
    <soap:operation soapAction="urn:Serv1Intf-IServ1#echoEnum" style="rpc"/>
    <input message="tns:echoEnum0Request">
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Serv1Intf-IServ1"/>
    </input>
    <output message="tns:echoEnum0Response">
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Serv1Intf-IServ1"/>
    </output>
    </operation>
    <operation name="echoDoubleArray">
    <soap:operation soapAction="urn:Serv1Intf-IServ1#echoDoubleArray" style="rpc"/>
    <input message="tns:echoDoubleArray1Request">
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Serv1Intf-IServ1"/>
    </input>
    <output message="tns:echoDoubleArray1Response">
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Serv1Intf-IServ1"/>
    </output>
    </operation>
    <operation name="echoMyEmployee">
    <soap:operation soapAction="urn:Serv1Intf-IServ1#echoMyEmployee" style="rpc"/>
    <input message="tns:echoMyEmployee2Request">
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Serv1Intf-IServ1"/>
    </input>
    <output message="tns:echoMyEmployee2Response">
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Serv1Intf-IServ1"/>
    </output>
    </operation>
    <operation name="echoDouble">
    <soap:operation soapAction="urn:Serv1Intf-IServ1#echoDouble" style="rpc"/>
    <input message="tns:echoDouble3Request">
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Serv1Intf-IServ1"/>
    </input>
    <output message="tns:echoDouble3Response">
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Serv1Intf-IServ1"/>
    </output>
    </operation>
    </binding>
    <service name="IServ1service">
    <port name="IServ1Port" binding="tns:IServ1binding">
    <soap:address location="http://localhost:90/cgi-bin/Project2.exe/soap/IServ1"/>
    </port>
    </service>
    </definitions>
    John

  • Webservices and XSQL

    Hi!
    I have a question: I would like to use Oracle's XSQL servlet. I have a .xsql file
    which calls a function and returns a data in XML format. Now how can I use this
    in weblogic using webservices?
    Anybody has an idea?
    Thanks in advance
    ..Madhuri

    Currently, WebLogic Web Services only use Stateless Session EJBs (for RPC-style)
    and JMS destinations (for Message-style). You can, of course, deploy other Web
    Service Platforms (i.e. Apache SOAP, GLUE, WASP, etc.) on WLS 6.1 and use them
    ;-) They usually support using POJOs (Plain Old Java Objects) as Web service implementations.
    Is there some reason why you just aren't using the XSQL stuff by itself? It seems
    to be designed specifically for making SQL queries over HTTP, using XML ;-) Why
    do you need to create a Web service to "front-end" this capability? Seems like
    extra overhead (i.e. SOAP message processing, etc.) with no real "value-added",
    if you know what I mean ;-) Is it because you want (or need) to introduce a "layer"
    or facade pattern for XSQL, or something?
    Regards,
    Mike Wooten
    "Madhuri" <[email protected]> wrote:
    >
    Hi Mike!
    Thanks for the help. Is there any other way, I mean without using EJBs
    can I achieve
    the task?
    ...Madhuri
    "Michael Wooten" <[email protected]> wrote:
    Hi Madhuri,
    Unfortunately, it sounds like you will need more help than I can offer
    at this
    time. From your original post, I was under the impression that you knew
    about
    EJBs, Java XML parsers/XSLT processors, etc. I scoped out XSQL a bit
    more, and
    it looks like fairly powerful technology, but it requires knowledgeof
    XML/XSLT.
    Personally, I think you might need some "training" help to create aXSQLService
    with a WebLogic Web Service ;-) If you don't have time for that, perhaps
    you can
    search the Web for example code, and start from there.
    Regards,
    Mike Wooten
    "Madhuri" <[email protected]> wrote:
    Hi Mike !
    Do you have any sample code for the EJB where the method that accepts
    an org.w3c.dom.Element
    (or org.w3c.dom.Document) as a parameter, and returned the same, asI
    am new for
    the EJB or direct me the link where I can get info.. I really appresite
    your help.
    Thanks
    ..Madhuri
    "Michael Wooten" <[email protected]> wrote:
    Yeah, that's what I thought ;-)
    If you want the party that submitted to wait while the XSQL file isbeing
    processed,
    you'll want to build a RPC-style WebLogic Web Service, using the Literal
    XML encoding
    style. For this, you would have the Stateless Session EJB that actsas
    the entry-point
    into your Web service "implementation", have a method that accepts
    an
    org.w3c.dom.Element
    (or org.w3c.dom.Document) as a parameter, and returned the same. The
    remote interface
    for this SS would look something like this:
    public interface XSQLService extends javax.ejb.EJBObject
         public org.w3c.dom.Element process(org.w3c.dom.Element xsqlParameters)
    throws
    java.rmi.RemoteException, org.xml.sax.SAXException;
    From the information posted on Oracle's OTN site, the .xsql file(s)will
    live
    on the "server side", so all you need the Web service client to send
    is the parameters
    for the .xsql, right? That's why I called the input argument "xsqlParameters"
    in the method signature above ;-) Okay, so now we need a way for the
    client to
    tell us which .xsql file to use, right? If the client knows this,
    it's
    probably
    simpler if they put that in the parameter file too! So using the flighFinder
    example
    on OTN, that leaves us with a parameter file that looks kind of like
    this:
    <query uri="fly.xsql" stylesheet="none">
    <parameters>
         <FROM>LAX</FROM>
         <TO>SFO</TO>
    </parameters>
    </query>
    The implementation for the process(org.w3c.dom.Element xsqlQuery)method,
    is where
    you want to create the java.net.URL and java.net.URLConnection toconnect
    to the
    actual XSQL Servlet, I think. You could them use the getOutputStream()
    method
    on URLConnection, to get the XML returned by the XSQL Servlet, andmake
    it the
    return value. Knowing Oracle, they have defined a MIME-type extension
    for xsql,
    which is how they can "automagically" route http://localhost:7070/fly.xsql
    to
    the XSQL Servlet. Anyway, I haven't worked with XSQL Servlet before,
    but I would
    hope it is just a J2EE Web Application (.war file) that can be deployed
    into WLS.
    If so, it should be relatively simple to do what you want to do.
    Regards,
    Mike Wooten
    "Madhuri" <[email protected]> wrote:
    Hi Mike, Thanks for your prompt reply. I would like to send the XSQL
    file to a
    Web Service, and have it send it to the Oracle XSQL Servlet for processing.
    As
    XSQL Servlet processes SQL queries and outputs the result set as
    XML,and
    servlet
    takes an XML file containing embedded SQL queries (XSQL file), asits
    input. It
    returns the data in XML format and that's what exactly I would liketo
    do.
    Thanks ..Madhuri
    "Michael Wooten" <[email protected]> wrote:
    Hi Madhuri,
    What kind of WebLogic Web Service do you want to use? Document-oriented
    (i.e.
    where you pass in an XML document/well-formed fragment), or RPC-style
    (i.e. where
    you pass in function arguments)? What does the client pass to the
    Web
    Service?
    What, if anything, does it get back?
    From what I know, the Oracle XSQL Servlet processes SQL queries
    and
    outputs
    the
    result set as XML. This servlet takes an XML file containing embedded
    SQL queries
    (XSQL file), as its input. Do you want to send the XSQL file to
    a
    Web
    Service,
    and have it send it to the Oracle XSQL Servlet for processing? Doyou
    want the
    Web Service to create the XSQL file, from arguments passed in theSOAP
    Body element?
    Sorry to ask so many questions, but the answers will help me answeryour
    "original"
    question ;-)
    Regards,
    Mike Wooten
    "Madhuri" <[email protected]> wrote:
    Hi!
    I have a question: I would like to use Oracle's XSQL servlet. I
    have
    a .xsql file
    which calls a function and returns a data in XML format. Now howcan
    I use this
    in weblogic using webservices?
    Anybody has an idea?
    Thanks in advance
    ...Madhuri

Maybe you are looking for

  • X1 Carbon Gen3 (2015) Chassis constantly clicks in and out of position

    It's been 1 week since I received my first Lenovo Laptop - X1 Carbon Gen3 and I'm very pleased with it so far. Since the beginning I noticed a 'clicking' sound produced when resting my palms on the keyboard to type, but couldn't figured out what it w

  • Remote Database connection error on local database while running a procedur

    Dear Gurus, I am trying to run a procedure to grant Select Access to all objects of a schema to all schema but getting below error messages: Error report: ORA-02019: connection description for remote database not found This is on local database and a

  • Can B1 2005 and 2007 be run at the same time?

    I want to install B1 2007 on my server to make sure that everything runs over smoothly, then when I'm satisfied with the results, I'll just upgrade my workstations and hopefully have a seamless transition.  Are there any errors that will pop up if I

  • Server does not support remote front panels

    hello I'm about to command the front of my labview program remotely. I followed all the steps that I found on the NI website. when I do the test on my Intenet Explorer browser it gives me the following mesage: "Server does not support remote front pa

  • Business Partner ID in Org structure Not generated

    Hi, when i am creating a New Department(Org.unit) in My Org Structure ,system is not generating a Bussiness partner ID number. If system is not generating the number will there be any problem if i move ahead. do let me know why system is not generati