Top down Web Services using JMS

Hi,
I am trying to set up a JMS web service. I m attempting to follow "Oracle® Application Server Advanced Web Services Developer's Guide 10g (10.1.3.1.0) Part Number B28975-02" documentation.
IDE: JDeveloper Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
I get the following error when I run the ant script:
genwsjms:
[genInterface] WARNING: Failed to locate wsa.jar file. This may be caused because required "COMMON_COMPONENTS_HOME" environment variable or ant property has not been set.
[genInterface] WARNING: binding "{http://oracle/communications/platform/demo/webservices/rpc/secure/gen}DemoSecRpcPortTypeJMSBinding" is ignored because it has an invalid attribute: transport="http://www.oracle.com/technology/oracleas/wsdl/jms"
[genInterface] WARNING: Service "DemoSecRpcService" does not contain any usable portsAnt script run is:
  <path id="taskdef.path">
    <pathelement path="${patch.classpath}"/>
    <pathelement location="${wls-home}/server/lib/weblogic.jar"/>
    <pathelement location="${wls-home}/server/lib/webservices.jar"/>
    <pathelement location="${wls-home}/server/lib/xbean.jar"/>
    <pathelement location="${wsa.dir}/wsa.jar"/>
  </path>
<taskdef name="genInterface" classname="oracle.j2ee.ws.tools.wsa.cli.ant.GenInterface" classpathref="taskdef.path"/>
  <target name="genwsjms">
    <genInterface wsdl="${wsdl-location}" output="${code-gen-jar}" packagename="${server-pkg-name}" databinding="true" unwrapparameters="false"/>
  </target>build.properties has the wsa jar location defined as:
wsa.dir=../../../../Oracle/Middleware/oracle_common/modules/oracle.webservices_11.1.1
WSDL definition has:
xmlns:jms="http://www.oracle.com/technology/oracleas/wsdl/jms"Binding is defined as:
    <binding name="DemoSecRpcPortTypeJMSBinding" type="tns:DemoSecRpcPortType">
        <soap:binding style="document" transport="http://www.oracle.com/technology/oracleas/wsdl/jms"/>
        <operation name="getPhoneList">
            <soap:operation soapAction="http://oracle/communications/platform/demo/webservices/rpc/secure/gen/getPhoneList"/>
            <input><soap:body use="literal" parts="lastName" namespace="http://oracle/communications/platform/demo/webservices/rpc/secure/gen"/></input>
            <output><soap:body use="literal" parts="phoneListOut" namespace="http://oracle/communications/platform/demo/webservices/rpc/secure/gen"/></output>
        </operation>
        <operation name="createPhoneRecord"><soap:operation soapAction="http://oracle/communications/platform/demo/webservices/rpc/secure/gen/createPhoneRecord"/>
            <input><soap:body use="literal" parts="createPhoneIn" namespace="http://oracle/communications/platform/demo/webservices/rpc/secure/gen"/></input>
            <output><soap:body use="literal" parts="createPhoneOut" namespace="http://oracle/communications/platform/demo/webservices/rpc/secure/gen"/></output>
        </operation>
    </binding>Service defined:
    <service name="DemoSecRpcService">
        <port name="DemoSecRpcJMSPort" binding="tns:DemoSecRpcPortTypeJMSBinding">
            <jms:address jndiConnectionFactoryName="jms/JMSTransportConnectionFactory"jndiDestinationName="jms://localhost:7101/transports/DemoSecRpcServiceJMS?URI=DemoQueueIn">
                <jms:propertyValue name="endpoint-location" type="string" value="DemoSecRpcService"/>
            </jms:address>
        </port>
    </service>Please help me identify the issue with the WSDL defined and/or the build script.
Thanks,
Sajitha

Thank you Shay ....
I was running into the following issue when trying to use wsdlc
<Apr 7, 2010 10:46:23 AM CDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException: [HTTP:101216]Servlet: "DemoSecRpcServiceServletjms" failed to preload on startup in Web application: "AppUIM-ProjUIM-context-root".
java.lang.StringIndexOutOfBoundsException: String index out of range: -9
    at java.lang.String.substring(String.java:1937)
    at weblogic.wsee.server.jms.JmsDeploymentListener.jmsListenerDeploymentHelper(JmsDeploymentListener.java:164)
    at weblogic.wsee.server.jms.JmsDeploymentListener.process(JmsDeploymentListener.java:65)
    at weblogic.wsee.ws.init.WsDeploymentChain.process(WsDeploymentChain.java:42)Here are the steps that I followed.
1. Created a WSDL
2. ran the ant script: genws
3. Edited the Implementation class to add the annotation: @WLJmsTransport(connectionFactory = "jms/JMSTransportConnectionFactory",
contextPath = "DemoSecRpc", portName = "DemoSecRpcJMSPort",
queue = "jms/DemoQueueIn", serviceUri = "DemoSecRpcJMSService")
4. Edited the Implementation class to add the logic needed for the web service
5. Removed the wsdlLocation variable(wsdlLocation="/wsdls/RISecRPC.wsdl") from the interface: DemoSecRpcPortType
6. ran the ant script: build-service
6. Defined Queue and Connection Factory through Admin console of the integrated weblogic server.
Ant script
  <target name="genws">
    <wsdlc srcwsdl="${wsdl-location}" destjwsdir="${code-gen-jar}" destimpldir="./src"
           packagename="${server-pkg-name}" type="JAXRPC"></wsdlc>
    <unzip src="${code-gen-jar}/${wsdl_name}_wsdl.jar" dest="./src">
      <patternset><include name="**/*.java"/></patternset>
    </unzip>
  </target>
  <!-- ******************************************* -->
  <!-- Build the service with needed config files  -->
  <!-- ******************************************* -->
  <target name="build-service" description="Compiles the WebService App for HTTP transport">
    <mkdir dir="META-INF.tmp"/>
    <delete dir="${dest.dir}" includes="**/${SERVICE_NAME}*.war" quiet="true" verbose="true"/>
    <jwsc srcdir="${serverclass-dir}" destdir="${ear.dir}"
          applicationxml="META-INF.tmp/application.xml" keepgenerated="true"
          classpathref="taskdef.path" verbose="true">
      <jws name="${SERVICE_NAME}" file="/${PORT_NAME}Impl.java"
           compiledwsdl="${code-gen-jar}/${wsdl_name}_wsdl.jar" type="JAXRPC">
        <WLJMSTransport contextpath="/${SERVICE_NAME}" serviceuri="${JMS_SERVICE_URI}" portname="${JMS_PORT_NAME}" queue="${QUEUE_NAME}"/>
      </jws>
    </jwsc>
<unwar src="${ear.dir}/${SERVICE_NAME}.war" dest="./public_html">
      <patternset>
        <include name="**/*.xml"/>
        <include name="**/*.wsdl"/>
      </patternset>
    </unwar>
    <unwar src="${ear.dir}/${SERVICE_NAME}.war" dest="./src">
      <patternset>
        <include name="**/*ImplPortType.java"/>
      </patternset>
    </unwar>
  </target>wsdl binding and service defined as:
    <binding name="DemoSecRpcPortTypeSOAP11JMSBinding" type="tns:DemoSecRpcPortType">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/jms"/>
        <operation name="getPhoneList">
            <soap:operation style="document"  soapAction="http://oracle/communications/platform/demo/webservices/rpc/secure/gen/getPhoneList"/>
            <input> <soap:body use="literal" parts="lastName"/> </input>
            <output> <soap:body use="literal" parts="phoneListOut"/> </output>
        </operation>
        <operation name="createPhoneRecord">
            <soap:operation style="document" soapAction="http://oracle/communications/platform/demo/webservices/rpc/secure/gen/createPhoneRecord"/>
            <input> <soap:body use="literal" parts="createPhoneIn"/>  </input>
            <output> <soap:body use="literal" parts="createPhoneOut"/>  </output>
        </operation>
    </binding>
    <service name="DemoSecRpcService">
        <port name="DemoSecRpcJMSPort" binding="tns:DemoSecRpcPortTypeSOAP11JMSBinding">
            <soap:address location="jms://localhost:7001/DemoSecRpc/DemoSecRpcJMSService?URI=jms/DemoQueueIn" />
        </port>
    </service>Thanks,
Sajitha

Similar Messages

  • Question about "top-down" web services development

    I tried to follow the Oracle "RPC literal top-down web services how-to" to develop a web service with a top-down approach but I have error when I try to compile with Ant the provided example.
    This howto is located at: http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/rpc-lit/index.html
    The error I have is:
    D:\Franck\WebServices\prototype\projectAS10g\exemple\rpc-lit&gt;ant
    Buildfile: build.xml
    env-check:
    check-oracle-home:
    check-j2ee-home:
    init:
    sub-init:
    gen-service:
    [echo] Generating service artifacts
    env-check:
    check-oracle-home:
    check-j2ee-home:
    init:
    wsa:
    [java] java.util.zip.ZipException: The system cannot find the file specified
    [java] at java.util.zip.ZipFile.open(Native Method)
    [java] at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:112)
    [java] at java.util.jar.JarFile.&lt;init&gt;(JarFile.java:127)
    [java] at java.util.jar.JarFile.&lt;init&gt;(JarFile.java:65)
    [java] Exception in thread "main"
    BUILD FAILED
    D:\Franck\WebServices\prototype\projectAS10g\exemple\rpc-lit\build.xml:21: The following error occurred while executing this line:
    D:\Franck\WebServices\prototype\projectAS10g\exemple\rpc-lit\config\common.xml:63: Java returned: 1
    Total time: 1 second
    When I look at the common.xml file which is used by the build.xml one I have a class like:
    &lt;pathelement location="${ws.lib.dir}/orasaaj.jar"/&gt;
    The problem is that I do not have this jar file on my disk and I can't find it on the net. Maybe it is one of the root cause of my build failed.
    Does anyone experience this howto successfully and if someone can tell me where to find this jar file it would be great.
    Thanks

    I tried to follow the Oracle "RPC literal top-down web services how-to" to develop a web service with a top-down approach but I have error when I try to compile with Ant the provided example.
    This howto is located at: http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/rpc-lit/index.html
    The error I have is:
    D:\Franck\WebServices\prototype\projectAS10g\exemple\rpc-lit&gt;ant
    Buildfile: build.xml
    env-check:
    check-oracle-home:
    check-j2ee-home:
    init:
    sub-init:
    gen-service:
    [echo] Generating service artifacts
    env-check:
    check-oracle-home:
    check-j2ee-home:
    init:
    wsa:
    [java] java.util.zip.ZipException: The system cannot find the file specified
    [java] at java.util.zip.ZipFile.open(Native Method)
    [java] at java.util.zip.ZipFile.&lt;init&gt;(ZipFile.java:112)
    [java] at java.util.jar.JarFile.&lt;init&gt;(JarFile.java:127)
    [java] at java.util.jar.JarFile.&lt;init&gt;(JarFile.java:65)
    [java] Exception in thread "main"
    BUILD FAILED
    D:\Franck\WebServices\prototype\projectAS10g\exemple\rpc-lit\build.xml:21: The following error occurred while executing this line:
    D:\Franck\WebServices\prototype\projectAS10g\exemple\rpc-lit\config\common.xml:63: Java returned: 1
    Total time: 1 second
    When I look at the common.xml file which is used by the build.xml one I have a class like:
    &lt;pathelement location="${ws.lib.dir}/orasaaj.jar"/&gt;
    The problem is that I do not have this jar file on my disk and I can't find it on the net. Maybe it is one of the root cause of my build failed.
    Does anyone experience this howto successfully and if someone can tell me where to find this jar file it would be great.
    Thanks

  • How to Create web service using JMS with PUB/SUB pattern.

    Hi All,
    I need to expose web service using JMS with PUB/SUB pattern.
    if you have any source for this.
    I tried to use @WLJmsTransport annotation but unable to get it done.
    I have configured all JMS server, topic, and connection factory.
    Thanks.

    Hi, I am having web sample web service program which is simple one.
    But I need to Modify this to JMS enable.
    Can any one help me?
    Thanks.

  • Top-down web service approach with 10.1.2

    We are trying to develop a web service using the top-down approach (from WSDL to Java) in Oracle App Server 10.1.2. The how-to´s we have found use wsa.jar, but this jar is not available in 10.1.2 (it comes with 10.1.3)...
    Can the top-down approach be used in 10.1.2 ?
    How ?
    Thanks in advance
    Fer

    Hello,
    The OracleAS Web Service stack in 10.1.2 does not support the Top Down generation of Web services (generation of the WS from a WSDL).
    Can you move to 10.1.3, if not one migration path is the following, you do use Apache Axis in 10.1.2 to create topodown WS and when moving in 10.1.3 you will be migrating your Axis to the OracleAS Web Service 10.1.3 stack.
    Regards
    Tugdual Grall

  • OC4J Shutting Down while Deploying Web Service using JDevloper

    Hi..
    I am developing Web Service using JDevloper. When ever I am deploying Web Services to OC4J server came with JDevloper bundle it automatically shutting down.
    How to solve this ?
    Regards,
    Ajay Sharama

    Hi..
    This problem is solved now. By mistake when I am installing OC4J externally, I created environment variable "JAVA_HOME". As soon as I deleted this, problem is solved.
    Regards,
    Ajay

  • Down-/Upload files via Web Services using a NON-SAP system!?

    Hello,
    is it possible to down-/upload files via web services using a NON-SAP system!?
    Regards,
    Jens

    Hi Jens,
    I am not sure about your requirement here. What i could understand is that you want to check whether service could handle file processing?
    1) Uploading file - You can build a Webservice which has import/export parameters as the file structures and implement the proxy class in such a way that the passed data is written to application server.
    2) Downloading file - Same as uploading file, but the proxy class would have the code to extract data from the application server and pass them as output parameter.
    Functionality of Non SAP system: The system which calls these services should be able to convert the output of proxy data into file in case of downloading the file and it should be able to convert the file data into export parameters in case of uploading file.
    Hope this helps.
    Regards,
    Prasanna

  • Creating Web Services using Java Implementation

    Hi,
    This is quite a general question on how to create a Web Service using Java Implementation that needs to conform to a client XML schema.
    Here are my Version specs,
    I am using Jdeveloper 10.1.3.4.0 and deploying onto OAS 10.1.3.
    I will be creating a J2ee 1.4 (JAX-RPC) Web Service using Document/Wrapped style.
    I have been provided an XML schema from the client which is quite complex.
    Using a top-down approach, I can create my WSDL file and import the XML Schema for my type definitions.
    The Web service aim is to accept some parameters and return some data from the Oracle Database. The
    XML response from the web service must conform to the element, attribute definitions in the provided XML schema.
    From a Java implementation approach, what is the best (simplest or quickest) way to retrieve data from the Oracle
    tables and map each fields/column to the required XML output (defined in the XML schema).
    I'm not too concerned with using Java to retrieve data from the Database, more with how I can map the data returned
    to the required output. Can this mapping task be controlled within the Java program?
    Thanks in advance.

    Hi,
    This is quite a general question on how to create a Web Service using Java Implementation that needs to conform to a client XML schema.
    Here are my Version specs,
    I am using Jdeveloper 10.1.3.4.0 and deploying onto OAS 10.1.3.
    I will be creating a J2ee 1.4 (JAX-RPC) Web Service using Document/Wrapped style.
    I have been provided an XML schema from the client which is quite complex.
    Using a top-down approach, I can create my WSDL file and import the XML Schema for my type definitions.
    The Web service aim is to accept some parameters and return some data from the Oracle Database. The
    XML response from the web service must conform to the element, attribute definitions in the provided XML schema.
    From a Java implementation approach, what is the best (simplest or quickest) way to retrieve data from the Oracle
    tables and map each fields/column to the required XML output (defined in the XML schema).
    I'm not too concerned with using Java to retrieve data from the Database, more with how I can map the data returned
    to the required output. Can this mapping task be controlled within the Java program?
    Thanks in advance.

  • Calling a web-service using JAX-WS client on the browser

    Hi,
    I created a basic web-service using netbeans/glassfish, which can be successfully called from a JavaFX application running stand-alone.
    But when I try to run the same JavaFX application on a browser, the web-service call does not work, and it is hard to get any information on where it is failing.
    I can see the error is a Throwable (not an Exception), but the message is null.
    What are the restrictions on being able to call a webservice using the JAX-WS libraries? Are there security issues? I am not using the javafx HTTP libraries.
    Also, if Java1.6u10 is available on the machine running the browser, do I still need to package all the JAX-WS libraries for the client?
    Any help is appreciated, even if it is just about how to track down the problem.

    Thank you very much for responding.
    There was no error due to WebService. Actually, I was using xmlbeans and I did not put those xmlbeans jar files into appropriate place. That is what caused the problem. I have solved it now and it is working fine.
    I put those xmlbeans jar files into my war file. It is working. Earlier, I had put them in tomcat 5.5's shared/lib directory. It was not working.
    Thank you once again for replying.
    Sasi.

  • Web Services Vs JMS

    Hi All,
    I am in the process of benchmarking web services vs JMS.
    My scenario is as follows:
    I had implemented a delay in both web services as well in JMS. The delay is implemented
    using a for loop. I am facing a problem here. Though the Web Services finishes
    the for loop in one second. The MDB takes 4 seconds to finish the for loop.
    I dont know the reason behind this.
    Can anyone throw some light on the same?
    Many Thanks in Advance,
    C R Baradwaj
    [POC.doc]

    Hello,
    You might want to take a look at the JMS performance guide:
    http://dev2dev.bea.com/resourcelibrary/whitepapers/WL_JMS_Perform_GD.jsp
    Also, your diagram seems to indicate you are using MQ series, so you
    might want to take a look at this whitepaper:
    http://dev2dev.bea.com/resourcelibrary/whitepapers/jmsproviders.jsp
    Generally speaking, SOAP protocol associated with webservices is more
    verbose and will be slower than using JMS as a transport.
    Hope this helps,
    Bruce
    Raghuram Bharadwaj C wrote:
    >
    Hi All,
    I am in the process of benchmarking web services vs JMS.
    My scenario is as follows:
    I had implemented a delay in both web services as well in JMS. The delay is implemented
    using a for loop. I am facing a problem here. Though the Web Services finishes
    the for loop in one second. The MDB takes 4 seconds to finish the for loop.
    I dont know the reason behind this.
    Can anyone throw some light on the same?
    Many Thanks in Advance,
    C R Baradwaj
    Name: POC.doc
    POC.doc Type: WINWORD File (application/msword)
    Encoding: base64

  • Unable to pass xmlbeans object in weblogic web services using OEPE

    Migrating Weblogic web services from Weblogic Workshop 10.3 to Oracle Enterprise for Eclipse...Passing xmlbean generated types in arguments of webservice call
    How to work around the following errors? I do not have this error when in workshop 10.3 only in OEPE eclipse
    "oracle.eclipse.tools.webservices.compiler.CompilationException: Errors: JAX-WS web services must not have xmlBean parameter or return type"
    PLease note that I want DocType to be xmlbeans generated or inherited from org.apache.xmlbeans.XmlObject....
    @WebMethod
         public void upload(String filename, DocType doc) {
    Hi, I have legacy codes from Weblogic workshop 10.1 and 10.3.....
    I am able to compile and run in Weblogic workshop 10.3 by passing the xmlbean generated DocType as arguments in the web services call.... but why am I not able to do this in Oracle Enterprise for Eclipse OEPE......
    If I were to generate the web service from teh wsdl...it will generate it's own DocType.class in the jar files and not use the xmlbean generated class one....
    How to get iOEPE to generate the classes in build\jws\ for
    testWSService-annotation.xml
    weblogic-webservices.xml etc like in workshop
    How can I resolve this??? Am I stuck with Workshop on this?? How to work around??
    Any help or clarifications would be much appreciated.
    Inside testWS.java,
    package ws;
    import java.io.File;
    import javax.jws.*;
    import org.example.doc.DocType;
    @WebService
    public class testWS {
         @WebMethod
         public void upload(String filename, DocType doc) {
              try {
                   doc.save(new File(filename));
              catch(Exception e) {
                   System.out.println(e);
    Inside xmlbeans generated DocType.java.....and DocTypeDocuments.java
    * XML Type: DocType
    * Namespace: http://www.example.org/doc
    * Java type: org.example.doc.DocType
    * Automatically generated - do not modify.
    package org.example.doc;
    * An XML DocType(@http://www.example.org/doc).
    * This is a complex type.
    public interface DocType extends org.apache.xmlbeans.XmlObject
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
    org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(DocType.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.testWSTypeSystem").resolveHandle("doctypec217type");
    * Gets the "element1" element
    java.lang.String getElement1();
    * Gets (as xml) the "element1" element
    org.apache.xmlbeans.XmlString xgetElement1();
    * Sets the "element1" element
    void setElement1(java.lang.String element1);
    * Sets (as xml) the "element1" element
    void xsetElement1(org.apache.xmlbeans.XmlString element1);
    * Gets the "element2" element
    java.lang.String getElement2();
    * Gets (as xml) the "element2" element
    org.apache.xmlbeans.XmlString xgetElement2();
    * Sets the "element2" element
    void setElement2(java.lang.String element2);
    * Sets (as xml) the "element2" element
    void xsetElement2(org.apache.xmlbeans.XmlString element2);
    * A factory class with static methods for creating instances
    * of this type.
    public static final class Factory
    public static org.example.doc.DocType newInstance() {
    return (org.example.doc.DocType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
    public static org.example.doc.DocType newInstance(org.apache.xmlbeans.XmlOptions options) {
    return (org.example.doc.DocType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
    /** @param xmlAsString the string value to parse */
    public static org.example.doc.DocType parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
    return (org.example.doc.DocType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
    public static org.example.doc.DocType parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
    return (org.example.doc.DocType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
    /** @param file the file from which to load an xml document */
    public static org.example.doc.DocType parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
    return (org.example.doc.DocType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
    public static org.example.doc.DocType parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
    return (org.example.doc.DocType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
    public static org.example.doc.DocType parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
    return (org.example.doc.DocType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
    public static org.example.doc.DocType parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
    return (org.example.doc.DocType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
    public static org.example.doc.DocType parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
    return (org.example.doc.DocType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
    public static org.example.doc.DocType parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
    return (org.example.doc.DocType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
    public static org.example.doc.DocType parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
    return (org.example.doc.DocType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
    public static org.example.doc.DocType parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
    return (org.example.doc.DocType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
    public static org.example.doc.DocType parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
    return (org.example.doc.DocType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
    public static org.example.doc.DocType parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
    return (org.example.doc.DocType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
    public static org.example.doc.DocType parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
    return (org.example.doc.DocType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
    public static org.example.doc.DocType parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
    return (org.example.doc.DocType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
    /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
    public static org.example.doc.DocType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
    return (org.example.doc.DocType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
    /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
    public static org.example.doc.DocType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
    return (org.example.doc.DocType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
    /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
    public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
    return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
    /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
    public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
    return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
    private Factory() { } // No instance of this class allowed
    Edited by: user11079482 on Jan 1, 2010 2:09 AM

    Ok just as I expected. So I guess I am left with the following two options
    1) either I switched to using JAXB in my apps instaed of xmlbeans....
    2) or if I still wanna use the old JAX-RPC web services to deploy on the Weblogic 10gR3 server i will have to create my own ant task jwsc directly......as shown below in your docs
    Programming Web Services for WebLogic Server (ant tasks)
    http://download.oracle.com/docs/cd/E13222_01/wls/docs92/webserv/anttasks.html
    Getting Started With WebLogic Web Services Using JAX-RPC
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv_rpc/index.html
    Will OEPE be supporting the old JAX-RPC anytime in the near future release? or have to create own build ant task to call jwsc ant task directly to compile JAX-RPC web services??

  • How can I call a web service using JAVAscript in LCD

    hi guys,
         I know it can call a WSDL in LCD, but I have not any WSDL web service , and I have a REST web service ,how can I call this REST web service in LCD? I checked some documents and found nothing...if it's possible that it can call a REST web service using JAVAScript code, I mean I can program some code to call this web service ?
    thanks,
    Jesse

    Hi Jesse,
    You can do GET, PUT and POST using FormCalc, so you should be able to access a REST web service. 
    There is a example of accessing a RSS feed in this thread, http://forums.adobe.com/message/5695433#5695433
    Regards
    Bruce

  • How to invoke a web service using https

    Hi,
    I have a few security related questions surrounding BPEL process manager.
    1. Does the BPEL engine have the capability to invoke a web service using https (HTTP over SSL)? Does it automatically do that if partner link URI starts with https:// ?
    2. If not, what needs to be done to enable accessing a https based web service?
    3. I need to write a web service that accepts a message and updates certain information in the database. The web service will be deployed in an OC4J instance in Oracle App Server. We want to allow the web service to be accessed from BPEL only by users registered in the database. What is the recommended way to pass username and password to a webservice if service is invoked from BPEL process manager? Note that specifying username/password in bpel.xml is not an option.
    Thanks,
    Pranav

    1. Does the BPEL engine have the capability to invoke a web service using https (HTTP over SSL)? Does it automatically do that if partner link URI starts with https:// ?
    We currently don't have support for HTTP over SSl. We are working on it to include this functionality in near future.
    2. If not, what needs to be done to enable accessing a https based web service?
    I am not sure it is possible with current product offering. I will confirm it after discussing with our concerned development group. There is some work going to integrate with Oblix security mechanism [recently acquired by Oracle].
    3. I need to write a web service that accepts a message and updates certain information in the database. The web service will be deployed in an OC4J instance in Oracle App Server. We want to allow the web service to be accessed from BPEL only by users registered in the database. What is the recommended way to pass username and password to a webservice if service is invoked from BPEL process manager? Note that specifying username/password in bpel.xml is not an option.
    This will be easier to do if we can use Oblix along with BPEL PM. Could you please let us know more about your application so that we can provide you the customized solution till it's part of the product. You can send this query to [email protected] so that our product management team can give you more detailed roadmap regarding this.
    HTH.
    Thanks,
    Rakesh

  • How to call a secure external Web Service using Oracle BPEL and OWSM

    Hi,
    i have to invoke an external secure Web Service using SOA Suite 10.1.3.1, but i don´t know how to do this. Do i use OWSM gateway or Agent? how to configure the gateway or agent to pass the required security to the external secure web service.
    thanks in advance
    Dong

    Are you getting any errors? What type of XAI Class are you using?
    One thing I've noticed is that if you are making changes to the XAI Sender you will have to restart the environment before the changes can take effect.
    Also, if you are using RTHTTPSNDR as XAI Class you may have to include the HTTP Method - Post in the context.
    Hope this helps.
    Regards,
    Philip

  • Unallowed RFC-XML Tag (SOAP_EINVALDOC) - Web Service using ABAP Proxy

    Hi there
    I am trying to consume a Web Service using ABAP Proxies.  I have done the following in the system:
    I configured the HTTP and HTTPS Proxy settings. 
    I created a package with package interfaces SAI_TOOLS and SAPPINT included under the Use Access tab.
    I created the proxy classes by using the WSDL provided by the system I'm trying to interface with. 
    I created my HTTP destination RFC via SM59. 
    I configured a logical port for the proxy. 
    I developed the ABAP code for calling the proxy. 
    In the code the exception CX_AI_SYSTEM_FAULT gets raised with error message <b>"Unallowed RFC-XML Tag (SOAP_EINVALDOC)"</b> when I call the method for passing data to the destination system in the proxy class.
    I had a look at SM21 and the following message was written in the log:
    <b>"SOAP Runtime: SOAP Runtime exception: 111 occurred in method XP_READ_TAG of class CL_SOAP_XP at position 1
    SOAP Runtime: Exception message: Unallowed RFC-XML Tag (SOAP_EINVALDOC)"</b>.  I also looked at SAP Note 919886 which states that it can be dumps in the system, missing configuration or the path prefix of the RFC destination that is incorrect.  I cannot find any ST22 entries.  The trace file looks as follows:
    SAP System ID: DGH
    Client: 009
    User: COLESKG
    System time: 072910
    System date: 20070531
    SAP Release: 700
    Host: hd307c
    Operating system: AIX
    DB System: ORACLE
    Program: ZUK_IPA00003
    Processing State: 0
    Location: Client
    Transport Binding: http://schemas.xmlsoap.org/soap/http
    SOAP Application: urn:sap-com:soap:runtime:application:client
    SOAP Runtime Protocol: http://www.sap.com/webas/630/soap
    /runtime/protocol
    SOAP Protocols: <initial>
    Request Message: <initial>
    Response Message: <initial>
    Fault: <initial>
    Registry: <initial>
    SOAP Roles: <initial>
    Trace Level: 3
    Logging Level: 2
    Monitoring Level: 0
    Security Profile: <initial>
    WS Security Protocol: <initial>
    INFO 07:29:10: SOAP LP Registry CL_SRT_LP_MAINTENANCE->CREATE_CLIENT_APPL() Try to create client application for Proxyclass:
    ZES_CO_PROCESS_EMPLOYEE_BATCH LP name: DEFAULT
    INFO 07:29:10: SOAP LP Registry CL_SRT_LP_MAINTENANCE->CREATE_CLIENT_APPL() Client application created
    INFO 07:29:10: SOAP LP Registry CL_SRT_LP_MAINTENANCE->CREATE_CLIENT_APPL() Try to initialize client application
    INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->IF_SOAP_APPLICATION_CS~INIT() Try to initialize application
    urn:sap-com:soap:runtime:application:client
    INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->INTERNAL_CLIENT_INIT() Create new runtime CL_SOAP_RUNTIME_CLIENT
    INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->REGISTER_APPLICATION() Try to register application
    INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->REGISTER_APPLICATION() Application registered
    INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->INTERNAL_CLIENT_INIT() Read type of transport binding from
    configuration
    INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->INTERNAL_CLIENT_INIT() Create new transport binding type
    http://schemas.xmlsoap.org/soap/http
    INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~INIT() Try to initialize
    http://schemas.xmlsoap.org/soap/http
    INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~INIT() http://schemas.xmlsoap
    .org/soap/http initialized
    INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~REQUEST() Try to create request message
    INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~REQUEST() Request message created
    INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~RESPONSE() Try to create response message
    INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~RESPONSE() Response message
    created
    INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->INIT() Try to initialize
    INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->INIT() Check transport binding
    INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->INIT() Create runtime protocol
    INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->IF_SOAP_PROTOCOL~INIT() Try to initialize SOAP Runtime-intrinsic
    Protocol as SENDER with Priority 5
    INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->INIT_MODULES() Try to create trace header/part
    INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->INIT_MODULES() Trace header/part created
    INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->INIT_MODULES() Try to create logging header/part
    INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->INIT_MODULES() Logging header/part created
    INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->IF_SOAP_PROTOCOL~INIT() Protocol initialized
    INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->INIT()
    Initialized
    INFO 07:29:10: SOAP Protocol CL_SOAP_PROTOCOL_FACTORY->CREATE()
    Try to create instance for http://www.sap.com/webas/630/soap
    /runtime/session/protocol::http://www.sap.com/webas/630/soap
    /runtime/session/protocol/srt640_impl
    INFO 07:29:10: SOAP Protocol CL_SOAP_PROTOCOL_FACTORY->CREATE()
    Instance of CL_SOAP_SESSION_PROTOCOL created for http://www.sap.com/webas/630/soap/runtime/session/protocol::http://www.sap.com/webas/630/soap/runtime/session/protocol/srt640_impl
    INFO 07:29:10: SOAP SESSION Protocol CL_SOAP_SESSION_PROTOCOL->IF_SOAP_PROTOCOL~INIT() Try to initialize SOAP Session Protocol
    as SENDER with Priority 5
    INFO 07:29:10: SOAP SESSION Protocol CL_SOAP_SESSION_PROTOCOL->IF_SOAP_PROTOCOL~INIT() Protocol initialized
    INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT_GEN->CONFIGURE_FEATURES() Try to configure features
    INFO 07:29:10: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->IF_SOAP_HTTP_TRANSPORT_BINDING~SET_CLIENT_BY_DESTINATION() Try to
    create ICF Client for DESTINATION = ALSB
    INFO 07:29:10: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->IF_SOAP_HTTP_TRANSPORT_BINDING~SET_CLIENT_BY_DESTINATION() ICF
    Client created by DESTINATION
    INFO 07:29:10: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->IF_SOAP_HTTP_TRANSPORT_BINDING~SET_DESTINATION_URL_PATH() Set
    DESTINATION PATH = /SapHRSmartIntegrationWeb/processes/ProcessEmployeeBatch.jpd
    INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT_GEN->CONFIGURE_FEATURES() Features configured
    INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->IF_SOAP_APPLICATION_CS~INIT() Application urn:sap-com:soap
    :runtime:application:client initialized
    INFO 07:29:10: SOAP LP Registry CL_SRT_LP_MAINTENANCE->CREATE_CLIENT_APPL() Client application initialized
    Trace file opened at 20070531 073030 GMT SAP-REL 700,0,95
    Error in module XMLParserGetNextElement:773
    Id @(#) $Id: //bas/700_REL/src/krn/rfc/xrfcpars.c#2 $
    Unallowed RFC-XML Tag
    Error in module XMLConverterReadTag:3061
    Id @(#) $Id: //bas/700_REL/src/krn/rfc/xrfccnvrt.c#5 $
    Unallowed RFC-XML Tag(24)
    Error in module ab_soap:4392
    Id @(#) $Id: //bas/700_REL/src/krn/rfc/abxrfccal.c#2 $
    failed with return code 1
    It then must be something in the config.  Has anyone got any idea why this message is encountered?
    Kind Regards
    Gustav Coleske
    Message was edited by:
            Gustav Coleske

    Hi,
    I have the same problem as described.
    Can you give me a little more information about the error you have solved in the proxy.
    Thanks for help
    John

  • Consuming Web Services using UTL_DBWS

    Hi,
    I am trying to call a web service using UTL_DBWS package.
    But I am getting this error:
    ORA-29532: Java call terminated by uncaught Java exception: [failed to localize] No Deserializer found!
    It is failing at this point:
    l_result := sys.UTL_DBWS.invoke (
    call_handle => l_call,
    input_params => l_input_params);
    Is this a problem with database or Web Service? How to resolve this?

    No awnsers???
    I'm having the same problem here....

Maybe you are looking for