Build script for CXF web service using ant.

Hi, I am trying to build a CXF web service using ant. Does any one have a sample build script for it or steps (such as 1. build wsdl using java2wsdl task, 2. create a war etc.....) to follow to successfully build a web service using Apache CXF and ANT? Your help is greatly appreciated. I am using tomcat server and spring.
Thanks

Hi,
You can find and download sample of project and build scripts from
'Design and implement POJO Web services using Spring and Apache CXF, Part 1: Introduction to Web services creation using CXF and Spring':
http://www.ibm.com/developerworks/library/ws-pojo-springcxf/

Similar Messages

  • CompileException: Error compiling web service (using ant jwsc)

    Hi,
    I try to use the ant task jwsc to create my portable artefacts for a web service.
    Unfortunately I get the following exception:
    BUILD FAILED
    C:\Sun\jwsdp-2.0\apache-ant\bin\build.xml:7: weblogic.wsee.tools.jws.build.CompileException: Error compiling web service: C:\Sun\jwsdp-2.0\apache-ant\bin\src\test\WsTest.java
    I do not know why the ant task can not compile my jws file (shown below) whereas Eclipse can!
    package test;
    import javax.jws.WebService;
    @WebService (name="WsTestName", serviceName="WsTestServiceName")
    public class WsTest {
    * @param name
    * @return Say hello to the person.
    public String sayHello(String name) {
    return "Hello, " + name + "!";
    I hope somebody can help me.
    Thanks
    Franz

    I thought I would post an update since I found a solution. The problem was a ClassCast exception in a part of the SSL stack, that wanted to use the ant BuildException class. This has the effect of hiding the real issue which was that the SSL connection was not successfully occuring. The real problem was that the SSL connection started with a WSDL retrieved via SSL, but the connection for the port was through a username/password. When a username/password is used to create a port, the WL stack falls back to http and causes a ClassCast exception on weblogic.wsee.connection.transport.http.HttpTransportInfo. The solution is to create an https transport object when the service impl is created:
    HttpsTransportInfo transport = new HttpsTransportInfo ();
    transport.setUsername (user.getBytes ());
    transport.setPassword (pass.getBytes ());
    gServiceImpl = new PersistenceManagerService_Impl (url, transport);
    and to create the port without parameters:
    port = getServiceImpl ().getPersistenceManagerServicePort ();
    This allows one-way SSL with username/password for the connection.

  • Web services using Ant, Axis2 and Jdk

    Hi Experts,
    I was able to deploy a web service locally using Ant, Axis2 and Jdk. Then I tried to create a stub using the command "%AXIS2_HOME%\bin\WSDL2Java -uri StockQuoteService.wsdl -d adb –o client" which generated an Stub and a handler. Now I have a pblm in creating the client program. Where shld the client pgm be placed and how to run it. Please help.
    Thanks in Advance,
    Sharmele.

    Anywhere you want. You create a project, since you use ANT you give it its own ANT build file and you put the generated stub classes as part of it like you would your own source files. Then you write the code to actually call the methods of the stub classes.
    Note that if you generate class files, it might be better to generate source files in stead and simply compile them as part of your client application code.

  • Building a custom Flex web services proxy server

    Hi All,
    I'm investigating the possibility of writing a custom proxy
    server for our web services, using ASP.NET. LiveCycle Data Services
    looks very cool and would do the proxying we need, but it's not in
    our budget this year, and I would still like to take advantage of
    proxying. I figured I could probably build something simple, and
    perhaps we may be able to move to LCDS at some point in the future.
    I did some searching and didn't find anything to help me get
    started. My next step would be to fire up Wireshark and start
    looking at traffic going back and forth to try and figure out what
    Flex expects from a web services proxy -- but I thought maybe some
    folks here would be able to point me to some documentation or other
    resources on writing a proxy?
    -Josh

    quote:
    Originally posted by:
    pete
    I think you're confusing two things here - the way in which a
    client communicates with a service, and what that service
    ultimately does for you. When you're using LCDS you're calling into
    a common, somewhat sophisitcated messaging framework that controls
    access to a range of services... one of which is the proxy service.
    This proxy service does ultimately act like an HTTP proxy on your
    client's behalf, but how it is contacted is complex because the
    messaging format is not designed just to do this one task.
    I apologize for oversimplying; I realize LCDS does much more
    than proxying, but that's all I'm worried about at the moment, so
    that's why I keep mentioning it in the same breath as "proxy".
    quote:
    Originally posted by:
    pete
    It will be easier to just build your own little naming
    convention on a URL for proxying your requests to your own .NET
    based proxy. I suggested a mechanism for doing so in my previous
    post - just use the URL to point to a "distinguished" service that
    your proxy knows how to translate.
    It might be simpler, but my goal is to abstract away from the
    Flex app the fact that a proxy is even being used. I was under the
    impression that a proxy service would allow me to do this; however
    as I review the documentation I'm not entirely sure this is the
    case. It looks like I have to define explicit endpoints even if I
    am using a proxy?
    What I had envisioned was that by setting up a proxy, all web
    service requests would be sent to the host I had specified as the
    proxy, regardless of what I had put for the web service WSDL and/or
    endpoint.
    So here's my hypothetical situation (I'm making all this up
    -- it's what I'd like to do, not how things actually work):
    {services-config.xml}
    <service id="proxy-service"
    class="flex.messaging.services.HTTPProxyService"
    messageTypes="flex.messaging.messages.HTTPMessage,flex.messaging.messages.SOAPMessage">
    <properties>
    <external-proxy>
    <server>intranetProxy</server>
    <port>80</port>
    </external-proxy>
    </properties>
    </service>
    Then I could define a bunch of web services in MXML:
    <mx:WebService wsdl="
    http://webservicesHost/myService.asmx?WSDL"/>
    <mx:WebService wsdl="
    http://webservicesHost/anotherService.asmx?WSDL"/>
    <mx:WebService wsdl="
    http://webservicesHost/handyService.asmx?WSDL"/>
    Now, when it attempts to load the WSDL, it will relay the
    request through intranetProxy. When I actually call a web method,
    it relays the request through intranetProxy. No further needs to be
    done, and I don't need to touch the WSDL URLs or the WSDL
    documents.
    If I go with the method of using the WSDL URL to contact my
    ASP.NET proxy directly, there are a few drawbacks:
    -The proxy service is no longer abstracted away from the
    MXML/ActionScript code. If I ever need to move the proxy, I need to
    touch the code everywhere I use a web service.
    -I have to rewrite the web service endpoints (defined in the
    WSDL) on the fly.
    Neither of these are showstoppers. In fact, I'm already using
    this method -- but a proxy that is totally transparent to the Flex
    app seems like a better design goal. Is this possible, though? If I
    have to manually define every Web Service WSDL and/or endpoint that
    I want to proxy, then I'm no better off than using the WSDL URL to
    directly contact my ASP.NET proxy, and rewriting the endpoint
    defined in the WSDL as it passes through the proxy.

  • Using Identity Management for Securing Web Services

    My goal is to associate my services with an Oracle Internet Directory. I made some attempts to set up SAML authentication for the web services, but it didn't have the right outcome.
    (My identity management server and OID is up and running and I have successfully made authentication modules for other web applications)
    Here is what I did:
    1. I wrote a simple java file, used jdeveloper tools to create and deploy it as a web service to OC4J. I associated an identity management server with this service through OC4J web tools as security provider.
    2. I made a data control for the web service and put it in an ADF application . (client)
    3. I deployed the client project(2) to OC4J.
    I could use the web service through the page.
    Then
    I secured the webservice to expect SAML for authentication.
    Surprisingly, the client could still communicate with the webservice, Why? Shouldn't it have rejected the request because of the problem in SAML token? (The proxy and the data control were not secured, and didn't provide any SAML tokens)
    4.
    I added login page to my client project (through ADF security wizard). It used idenity management for authentication successfully. login process completes and web service data control is displayed.
    5. I want the authentication information to be propagated through the page so that the web service receives the data and uses Identity Management.
    I know I should add <property name="oracle.security.wss.propagate.identity" value ="true"/>
    to one of the configuration files, but don't know where exactly.
    Best Regards,
    Farbod

    It doesnt matter whether the service is invoked as part of your larger process or not, if it is performing any business critical operation then it should be secured.
    The idea of SOA / designing services is to have the services available so that it can be orchestrated as part of any other business process.
    Today you may have secured your parent services and tomorrow you could come up with a new service which may use one of the existing lower level services.
    If all the services are in one Application server you can make the configuration/development environment lot easier by securing them using the Gateway.
    Typical probelm with any gateway architecture is that the service is available without any security enforcement when accessed directly.
    You can enforce rules at your network layer to allow access to the App server only from Gateway.
    When you have the liberty to use OWSM or any other WS-Security products, i would stay away from any extensions. Two things to consider
    The next BPEL developer in your project may not be aware of Security extensions
    Centralizing Security enforcement will make your development and security operations as loosely coupled and addresses scalability.
    Thanks
    Ram

  • Pros & Cons for consuming web services in ABAP using ABAP PROXY

    Hi,
    Other then performence  is there any other disadvantages like security,etc for consuming web services in ABAP using ABAP proxy?
    I really appreciate if some one provide the more details(Pros & Cons ) regarding cosuming web services and I also want to know is there any other way to consume web services in ABAP.
    Thanks.

    <i> is there any other way to consume web services in ABAP</i>
    you can use cl_http_client class to make your program to act as http client and post the soap message too webservice. This way you dont need to generate proxy, but you should know the soap message format.
    Regards
    Raja

  • Configuring use of clinet certificates for jax web services  configuring u

    Hello dear people,
    I have a very simple jax web service under glassfish v.2.1 and I want to secure it using mutual authentication. I could configure using server certificates but I have problems with configuring the server to ask client certificates. The problem is that the clients are not asked to provide a valid client certificate to use the service. The clients can easily use the service without having a certificate.
    Can anyone tell me what should I do to have this?
    I got the example code from http://java.net/projects/javaeetutorial/downloads and the sample code that I used is in the folder : javaeetutorial5/examples/jaxws/helloservice-clientcert
    Best regards,
    Arash.

    Did you resolve your issue?
    I´m posting some comments that maybe can help newer administrators facing similar doubts.
    I´m using NW PI 7.1 EHP1 also and some interfaces were developed for using an external site providing web services through SSL (HTTPS) connection.
    As in browser navigation, secure sites protected with SSL has a certificate emited by a international CA. We didn´t perceive the "handshake" in the most of cases because normally the web browser has a group of trusted CAs loaded on its certificate store.
    With SAP PI and its WAS Java a similar procedure occurs with a small difference. The WAS Java didn´t have the trusted CAs loaded on KeyStorage. So, when the adapter tries to establishing a connection with an HTTPS site (it is a background process)  a "handshake" is required to accepting the certificate and produces a error.
    We completes the handshake importing the entire certificate chain (you can upload the site´s certificate to your browser and export it as file) on Keytore under the Trusted CAs view.
    Hope this can help someone. It´s an "easy" part of SSL communication.
    Now I´m trying to configure the inverse: Some third party consuming the PI web services using SSL. I have an additional component on inbound/ incoming connections that is the SAP Web Dispatcher.
    The Help.sap.com is the reference but as always its a little difficult to find the (sequential) path following the links (go ahead, go ahead, go ahead, go back, go back, go ahead)...
    Regards,
    Rodrigo Aoki

  • We are using the Azure server for our web services. Server is generating an error "Unable to connect to the remote server". What is this error means

    We are using the Azure server for our web services. Server is generating an error "Unable to connect to the remote server". What is this error means  

    Hello,
    Did you means that you use the Windows Azure Virtual Machine DNS name as the server name in the Reporting Server Web Services URL?
    For example:
    Report server:http://uebi.cloudapp.net/reportserver
    Report manager:http://uebi.cloudapp.net/reports
    If you want to connect to Report Manager on the virtual machine from a remote computer, you should create a  virtual machine TCP Endpoint and open the port in the virtual machine’s firewall. By default, the report server listens for HTTP requests
    on port 80.
    Reference:http://msdn.microsoft.com/en-us/library/jj992719.aspx#bkmk_ssrs_connect_2_remote_RM
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Problem using WSDL from SAP in IBM's RAD for generating web service client

    When importing a WSDL from the ABAP stack on a SAP 6.40 system into IBM's RAD tool for generating a web service client there are errors with the soap fault classes that get generated.  The WSDL declares the types for the faults with WebServiceName.RfcException and these have elements of name, text, and message.  When the tools see this in the WSDL they generate classes that extend the Java exeception class and this causes an error because the "message" name conflicts with the standard java exception message.  Has anyone else ran into this problem?  It seems like a basic problem many java tools for generating web service client proxies would have because the soap faults get turned into java exceptions.  This name conflict of the java exception with the WSDL fault definition means that code always needs to be adjusted and cannot simply use the classes that are generated from the WSDL.  Anyone run across this or a similar problem in the java environment using the SAP WSDL?
    Aaron

    Hi,
    Hello again .
    Have you tried your service using soapui ?
    You can use your WSDL as input .
    In order to eliminate eclipse problem try this service:(I just did)
    http://www.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL
    Regards.
    package main;
    import java.io.FileInputStream;
    import java.rmi.RemoteException;
    import java.util.Properties;
    import org.oorsprong.www.websamples_countryinfo.CountryInfoServiceSoapType;
    import org.oorsprong.www.websamples_countryinfo.CountryInfoServiceSoapTypeProxy;
    import org.oorsprong.www.websamples_countryinfo.TCountryCodeAndName;
    public class Main {
    public static void main(String[] args) {
      try {
       final Properties properties = new Properties();
       properties.load(new FileInputStream("properties.ini"));
       System.getProperties().putAll(properties);
      } catch (final Exception exception) {
       exception.printStackTrace();
      new Main();
    public Main() {
      try {
       final CountryInfoServiceSoapType infoServiceSoapType = new CountryInfoServiceSoapTypeProxy();
       final TCountryCodeAndName[] tCountryCodeAndNames = infoServiceSoapType.listOfCountryNamesByName();
       for (final TCountryCodeAndName tCountryCodeAndName : tCountryCodeAndNames) {
        System.out.println(tCountryCodeAndName.getSName());
      } catch (final RemoteException exception) {
       exception.printStackTrace();

  • Flex/ActionScript3 support for web services using WS-Security

    Does Flex/ActionScript3 have support for connecting to a web
    service using WS-Security (Policy Creation). I've tried using the
    Flex Data Service "Import WSDL" method and it does not allow me to
    connect. Is there Flex/AS3 package that can handle creating the
    Policy information for a web service that utilizies WS-Security?
    Thanks,
    Tom

    quote:
    Does Flex/ActionScript3 have support for connecting to a web
    service using WS-Security (Policy Creation).
    Yes and no. The "Import WSDL" doesn't create AS3 classes that
    allow header injection of the appropriate WS-Security elements.
    I've managed to work around this using straight mx:webservice tags
    and AS3. There is an open bug at
    https://bugs.adobe.com/jira/browse/SDK-15398
    that I voted on, the more the merrier.
    http://www.jroller.com/wookets/entry/ws_security_in_flex
    Has a useful class for creating the soap header elements for a
    username token,
    In general though, it's been a challenge to get the simplest
    of WS-Security pieces working.
    -Brett

  • Security-role for java web services developed using j-developer 10.1.2.1

    I have developed a java web service using j-developer 10.1.2.1, I have deployed this web service to oracle 10g (10.1.2.1) application server successfully. Now I want to add security-role to my web service deployment descriptor so that only a group of users that belong to a group can access my web service.
    How can I do this? Can any one please let me know.
    Thanks,
    SC.

    Hi.
    I suspect you have a proxy server between your localhost and the
    drive-app1.drivesoftwaresolutions.com
    Probably in Jdev that proxy is setup nicely in Tools->Preferences->Web Browser and Proxy
    But maybe your OC4J container running BPEL on localhost does not have that proxy setup.
    You need to add startup parameters to the JVM. In 10.1.3 you can do this via the "AS Control" administration pages (there is a link on the SOA suite welcome page). Go to JVM, click on the container and switch to the "Administration" tab.
    The properties are proxySet, proxyHost, proxyPort and nonProxyHosts
    When deploying from JDev, the compilation in JDev works fine (uses the proxy). But when the JAR is transferred to the server, it is compiled again. This fails because the proxy is not used on the server side and it cannot read the wsdl.

  • How to create JAX-WS web services using providers?

    I am looking at WebLogic web services, because we are investigating the possibility of migrating our web services from Apache CXF to WegLogic web services. Our web services are implemented using JAX-WS providers. However, I browsed through the Oracle Fusion Middleware document library, but I couldn't find any documents for implementing JAX-WS web services using providers.
    Is there any document, tutorial, or examples of that?
    Thanks in advance!
    Tao

    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??

  • 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

  • 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??

  • Stateful WebLogic Web Services using cookie

    Hi all,
    How do I configure WebLogic Web Services to return cookie in the HTTP header?
    In my weblogic.xml I included the following attributes but no cookie is returned in the HTTP header.
    <session-descriptor>
    <cookie-http-only>false</cookie-http-only>
         <tracking-enabled>true</tracking-enabled>
         <cookies-enabled>true</cookies-enabled>
         <cookie-name>JSESSION_ID</cookie-name >
    </session-descriptor>
    Thanks
    SMT

    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??

Maybe you are looking for

  • How to restore a Mac Book Air to factory

    How to restore a Mac Book Air to factory

  • Issue with saving JPG's

    I have an issue with Photoshop CC that I am hoping is just a setting because at present it is a real PITA. I have photos in Lightroom that I have exported in JPG format. I want to bring them into PS and then apply a simple crop to them. I have the op

  • Average sales Value

    Hi Experts, I have faced a question that, in a query we have sales Value and 0Calday. But we need to calculate the Avg Sales Value Per day where as there will be thousands of records that will be updated daily.. I mean to sat that total sales value w

  • Material ledger prices for material master

    Hi all We have activated Material Ledger. I like to dowload all the three currency prices for the materials. How is it possible? In MBEW only the company code currency is available. Also u cannot use the exchange rate as it gives wrong data. Regards

  • IPod Shuffle 3G won't charge, or do anything.

    My iPod Shuffle 3G won't charge, connect to my Mac or give me any sign that it's working. I used it about two weeks ago and it was working but now it is not responding to any thin I do. When I plug it in to my computer it never shows up on my iTunes