Webservice controls using WSDL in weblogic portal10.3.2

Hi All
How to create and use Webservice controls using WSDL in weblogic portal10.3.2 ? Is that possible ? If no, is there any other easy way to implement the same ?
thanx
developer

This document should help.
http://download.oracle.com/docs/cd/E15315_03/help/oracle.eclipse.tools.weblogic.doc/html/webservices/start.html
Brad

Similar Messages

  • How to create and use Webservice controls using WSDL in weblogic portal10.3

    Hi All,
    I have WSDL , How to create webservice controls using the WSDL in weblogic portal 10.3 and use those controls to invoke those webservice methods?
    please give me the documents links for this.
    Thanks
    Venkata Sarvabatla

    As far as I remember, Controls can be called only from Pageflows, BackingFiles, Another Control (Like control calling another control) etc. In pageflow we use annotation @Control and give control classname and a varialbe for that. I am pretty sure this annotation may not work from normal java class and in your case a JAVA JSR Class.
    If you installed the samples, refer the samples from WLS: C:\beawlp103\wlserver_10.3\samples\server\examples\src\examples\webservices. They have lot of fully ready to work samples with instructions. I used clientgen ant task. But you can use standard SUN JDK Command "wsimport" also to generate the java files from the WSDL. Open any command prompt. If java is in classpath, just run wsimport and that should give an idea.
    Goud

  • Not able to generate Service control from WSDL in Weblogic Workshop9.2

    Hi All,
    I am not able to create Service control from my WSDL in Weblogic workshop9.2. It was working fine in Weblogic 8.1.
    I am getting the following error. Please help me out.
    Types analysis failed for both JAX-RPC and XmlBeans.
    BEGIN JAX-RPC CAUSE
    com.bea.control.servicecontrol.internal.validation.BindingsCheckException: Failed to generate the JSService with the endpoint builder
    at com.bea.control.servicecontrol.internal.validation.BindingsClassNameReference.setupJsService(BindingsClassNameReference.java:573)
    at com.bea.control.servicecontrol.internal.validation.BindingsClassNameReference.loadJsService(BindingsClassNameReference.java:321)
    at com.bea.control.servicecontrol.internal.validation.BindingsClassNameReference.getJsService(BindingsClassNameReference.java:362)
    at com.bea.control.servicecontrol.internal.validation.BindingsClassNameReference.loadTypeNamesForService(BindingsClassNameReference.java:398)
    at com.bea.control.servicecontrol.internal.validation.BindingsClassNameReference.getTypeNamesForService(BindingsClassNameReference.java:383)
    at com.bea.control.servicecontrol.internal.validation.BindingsCheckUtility.getComplexTypeNamesForService(BindingsCheckUtility.java:210)
    at com.bea.control.servicecontrol.internal.validation.BindingsCheckUtility.getComplexTypeBindingTypeInfoForService(BindingsCheckUtility.java:131)
    at com.bea.control.servicecontrol.internal.validation.BindingsCheckUtility.getComplexTypeBindingInfoForServiceByBindingsDataSourceType(BindingsCheckUtility.java:104)
    at com.bea.control.servicecontrol.internal.validation.BindingsCheckUtility.initializeTypesForTheService(BindingsCheckUtility.java:273)
    at com.bea.control.servicecontrol.internal.validation.BindingsCheckUtility.findMatchingBindingsDataSources(BindingsCheckUtility.java:434)
    at com.bea.wlw.controls.service.ui.util.BindingsChecker.<init>(BindingsChecker.java:55)
    at com.bea.wlw.controls.service.ui.wizards.SelectSCInfoPage.checkForCompatibleBindings(SelectSCInfoPage.java:304)
    at com.bea.wlw.controls.service.ui.wizards.SelectSCInfoPage.<init>(SelectSCInfoPage.java:98)
    at com.bea.wlw.controls.service.ui.GenerateSCWizard.getPageList(GenerateSCWizard.java:150)
    at com.bea.wlw.controls.service.ui.GenerateSCWizard.addPages(GenerateSCWizard.java:136)
    at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:499)
    at org.eclipse.jface.window.Window.create(Window.java:418)
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:996)
    at org.eclipse.jface.window.Window.open(Window.java:776)
    at com.bea.wlw.controls.service.ui.actions.NewSCGenAction.run(NewSCGenAction.java:101)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)
    Caused by: java.lang.IllegalArgumentException: unable to find java type for t=String@http://www.w3.org/2001/XMLSchema
    at weblogic.wsee.bind.buildtime.internal.TylarBuildtimeBindings.getClassFromXmlType(TylarBuildtimeBindings.java:693)
    at weblogic.wsee.bind.buildtime.internal.TylarBuildtimeBindings.getClassFromSchemaType(TylarBuildtimeBindings.java:182)
    at weblogic.wsee.tools.source.EndpointBuilder.getJavaClassName(EndpointBuilder.java:735)
    at weblogic.wsee.tools.source.EndpointBuilder.addPart(EndpointBuilder.java:664)
    at weblogic.wsee.tools.source.EndpointBuilder.createParams(EndpointBuilder.java:591)
    at weblogic.wsee.tools.source.EndpointBuilder.addMethod(EndpointBuilder.java:521)
    at weblogic.wsee.tools.source.EndpointBuilder.buildEndpoint(EndpointBuilder.java:475)
    at weblogic.wsee.tools.source.EndpointBuilder.buildJsService(EndpointBuilder.java:252)
    at com.bea.control.servicecontrol.internal.validation.BindingsClassNameReference.setupJsService(BindingsClassNameReference.java:549)
    ... 43 more
    END JAX-RPC CAUSE
    BEGIN XMLBEANS CAUSE
    com.bea.control.servicecontrol.internal.validation.BindingsCheckException: Could not create buildtime bindings with ClientGenUtil
    at com.bea.control.servicecontrol.internal.validation.BindingsClassNameReference.loadBuildtimeBindings(BindingsClassNameReference.java:242)
    at com.bea.control.servicecontrol.internal.validation.BindingsClassNameReference.getBindings(BindingsClassNameReference.java:161)
    at com.bea.control.servicecontrol.internal.validation.BindingsClassNameReference.loadJsService(BindingsClassNameReference.java:307)
    at com.bea.control.servicecontrol.internal.validation.BindingsClassNameReference.getJsService(BindingsClassNameReference.java:362)
    at com.bea.control.servicecontrol.internal.validation.BindingsClassNameReference.loadTypeNamesForService(BindingsClassNameReference.java:398)
    at com.bea.control.servicecontrol.internal.validation.BindingsClassNameReference.getTypeNamesForService(BindingsClassNameReference.java:383)
    at com.bea.control.servicecontrol.internal.validation.BindingsCheckUtility.getComplexTypeNamesForService(BindingsCheckUtility.java:210)
    at com.bea.control.servicecontrol.internal.validation.BindingsCheckUtility.getComplexTypeBindingTypeInfoForService(BindingsCheckUtility.java:131)
    at com.bea.control.servicecontrol.internal.validation.BindingsCheckUtility.getComplexTypeBindingInfoForServiceByBindingsDataSourceType(BindingsCheckUtility.java:104)
    at com.bea.control.servicecontrol.internal.validation.BindingsCheckUtility.initializeTypesForTheService(BindingsCheckUtility.java:253)
    at com.bea.control.servicecontrol.internal.validation.BindingsCheckUtility.findMatchingBindingsDataSources(BindingsCheckUtility.java:434)
    at com.bea.wlw.controls.service.ui.util.BindingsChecker.<init>(BindingsChecker.java:55)
    at com.bea.wlw.controls.service.ui.wizards.SelectSCInfoPage.checkForCompatibleBindings(SelectSCInfoPage.java:304)
    at com.bea.wlw.controls.service.ui.wizards.SelectSCInfoPage.<init>(SelectSCInfoPage.java:98)
    at com.bea.wlw.controls.service.ui.GenerateSCWizard.getPageList(GenerateSCWizard.java:150)
    at com.bea.wlw.controls.service.ui.GenerateSCWizard.addPages(GenerateSCWizard.java:136)
    at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:499)
    at org.eclipse.jface.window.Window.create(Window.java:418)
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:996)
    at org.eclipse.jface.window.Window.open(Window.java:776)
    at com.bea.wlw.controls.service.ui.actions.NewSCGenAction.run(NewSCGenAction.java:101)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)
    Caused by: weblogic.wsee.tools.WsBuildException: com.bea.xml.XmlException: Exception while compiling org apache xmlbeans: C:\R4WorkSpace\TestEWS\src\controls\EWSDeal.wsdl:0: error: src-resolve: type 'Array@http://schemas.xmlsoap.org/soap/encoding/' not found.
    at weblogic.wsee.tools.clientgen.ClientGenUtil.createBuildtimeBindings(ClientGenUtil.java:217)
    at weblogic.wsee.tools.clientgen.ClientGenUtil.createBuildtimeBindings(ClientGenUtil.java:174)
    at com.bea.control.servicecontrol.internal.validation.BindingsClassNameReference.loadBuildtimeBindings(BindingsClassNameReference.java:228)
    ... 44 more
    Caused by: com.bea.xml.XmlException: Exception while compiling org apache xmlbeans: C:\R4WorkSpace\TestEWS\src\controls\EWSDeal.wsdl:0: error: src-resolve: type 'Array@http://schemas.xmlsoap.org/soap/encoding/' not found.
    at weblogic.wsee.bind.buildtime.internal.XmlBeansApacheBindingsBuilderImpl.createBuildtimeBindings(XmlBeansApacheBindingsBuilderImpl.java:262)
    at weblogic.wsee.bind.buildtime.internal.XmlBeansBaseBindingsBuilderImpl.createBuildtimeBindings(XmlBeansBaseBindingsBuilderImpl.java:119)
    at weblogic.wsee.tools.source.EndpointBuilder.setupBindingProviderWithServices(EndpointBuilder.java:836)
    at weblogic.wsee.tools.clientgen.ClientGenUtil.createBindingProvider(ClientGenUtil.java:458)
    at weblogic.wsee.tools.clientgen.ClientGenUtil.createBuildtimeBindings(ClientGenUtil.java:211)
    ... 46 more
    Caused by: org.apache.xmlbeans.XmlException: C:\R4WorkSpace\TestEWS\src\controls\EWSDeal.wsdl:0: error: src-resolve: type 'Array@http://schemas.xmlsoap.org/soap/encoding/' not found.
    at weblogic.wsee.bind.buildtime.internal.XmlBeansApacheBindingsBuilderImpl.compileXmlBeans(XmlBeansApacheBindingsBuilderImpl.java:361)
    at weblogic.wsee.bind.buildtime.internal.XmlBeansApacheBindingsBuilderImpl.createBuildtimeBindings(XmlBeansApacheBindingsBuilderImpl.java:257)
    ... 50 more
    END XMLBEANS CAUSE

    Hi
    I have not seen the wsdl yet but your xmlbean types generation looks familiar.
    This is one reason why you could get the error with the xmlbeans type.
    error: src-resolve: type 'Array@http://schemas.xmlsoap.org/soap/encoding/' not found.
    Workaround: To allow the XmlBeans to be built from this type of WSDL correctly, add the schemaLocation attribute. For example, if the original WSDL had an import such as:
    <s:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    It should be changed to the following:
    <s:import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
    After this change you should not see the error.
    Vimala-

  • Is it possible to create data control from wsdl when complextype is used

    Getting DCA-40015 error when trying to create a data control from WSDL file.
    The error clearly says complextype is not supported . just trying to see if there are any workarounds . because creating data control will save time in developing user interface by dragging and dropping the the data control in jsf page. jdeveloper webservice tester is able to create user interface for me based on wsdl when i run it , trying to develop the user interface using jsf pages
    oracle.adf.model.adapter.AdapterException: DCA-40015: Failed to create the structure for schema element "result". The complex type definition of the element is not supported.

    Hi,
    I could reproduce what I did:
    - created WebService from custom Pojo Model
    - Made sure all entities implemented serializable
    - In the WebServices Wizard, I created XML representations for my entities
    - tested with OC4J WebServices tester
    - Built ADF data control from WSDL file of deployed WebService
    - Created dependency t project containing the POJO entities
    - Selected result.xml of each method exposed in the WebService project
    - In the structure window, selected "item" (result-->item)
    - changed Bean class to my entity class name (absolute name)
    This showed my entity in the DC palette
    Frank

  • Using WSDL generated control in a PageFlow

    I just created a Service Control using a WSDL file and then generated a page flow
    from that control. When I run the page flow, everything seems fine, but for the
    results I see
    ServiceControls.testControl$getXXXResult@7d4cb2
    instead of the XML string. I tried adding a "toString()" to where the result variable
    that is being displayed in the index.jsp that shows the value above, but it did
    not help.
    Thoughts?
    Thanks
    Kunal

    Kunal,
    I have tried this and it works fine. I assume in your case what is happening
    is, that you are tying to do a toString() on the complex object var.
    I tried with a sample Web Service which accepts a complex type Customer and
    was able to get the string value for both fname and lname.
    My jcx file
    public interface testComplexControl extends
    com.bea.control.ControlExtension, com.bea.control.ServiceControl
    public static class Name implements java.io.Serializable
    public java.lang.String fname;
    public java.lang.String lname;
    * @jc:protocol form-post="false" form-get="false"
    public Name testMethod (Name nm);
    static final long serialVersionUID = 1L;
    My controller file.
    public Forward testMethod( TestMethodForm aForm )
    throws Exception
    myfolder.testComplexControl.Name var = myControl.testMethod(
    aForm.nm );
    getRequest().setAttribute( "results", var );
    System.out.println("fname value "+var.fname);
    System.out.println("lname value "+var.lname);
    System.out.println("Name value "+var.toString());
    return new Forward( "success" );
    public static class TestMethodForm extends FormData
    private myfolder.testComplexControl.Name nm;
    public void reset( org.apache.struts.action.ActionMapping mapping,
    javax.servlet.http.HttpServletRequest request )
    {this.nm = new Name();}
    public void setNm( myfolder.testComplexControl.Name nm )
    {this.nm = nm;}
    public myfolder.testComplexControl.Name getNm()
    {return nm;}
    Hope this helps.
    Regards,
    Raj Alagumalai
    Backline Workshop Support
    "Kunal Mittal" <[email protected]> wrote in message
    news:3f81cfce$[email protected]..
    >
    I just created a Service Control using a WSDL file and then generated apage flow
    from that control. When I run the page flow, everything seems fine, butfor the
    results I see
    ServiceControls.testControl$getXXXResult@7d4cb2
    instead of the XML string. I tried adding a "toString()" to where theresult variable
    that is being displayed in the index.jsp that shows the value above, butit did
    not help.
    Thoughts?
    Thanks
    Kunal

  • How MS SOAP 3.0 client invokes WL 7.0 Webservice WITHOUT using a WSDL file?

    Hi all,
    I am looking for a sample VBScript using MS SOAP 3.0 client invoking a WL 7.0 Server
    webservice. Could anyone please post a sample VBScript codes invoking a soap service
    on WL 7.0 WITHOUT using a WSDL file, for example at:
    http://localhost:7001/HelloWorld/Hello
    with the service method:
    public org.w3c.dom.Element say(String something);
    Thanks,
    Dovan

    Hi,
    As you might guess, we are not big VB users here :-) but we may have some C# code that
    could be of some value.
    What problem are you trying to solve by not using WSDL?
    Just curious,
    Bruce
    Dovan Nguyen wrote:
    Hi all,
    I am looking for a sample VBScript using MS SOAP 3.0 client invoking a WL 7.0 Server
    webservice. Could anyone please post a sample VBScript codes invoking a soap service
    on WL 7.0 WITHOUT using a WSDL file, for example at:
    http://localhost:7001/HelloWorld/Hello
    with the service method:
    public org.w3c.dom.Element say(String something);
    Thanks,
    Dovan

  • Use WSDL to call Webservice

    Guys, I am on 6.20
    I read through the documentation on some related topics but still don't have a clear idea of how to proceed.
    I have a WSDL provided to me. I need to use this and call the Webservice from my BSP.
    I have seen examples where SOAP message is hardcoded and tried to do similar using information for mWSDL but am getting a HTTP comm. failure?
    Whats the preferable method to use WSDL and call the webservice in 6.20.?
    Do I have to create a XSLT program to parse a WSDL and provide something which  I could then use to make the call?
    Appreciate it..
    Thanks.

    Look at the below thread to consume webservice..
    Re: Consuming WebService, + SOAP HEADER AUTH:
    <i>Do I have to create a XSLT program to parse a WSDL and provide something which I could then use to make the call?</i>
    Yes, to translate from XML to ABAP you can use XSLT.
    To know <b>more about XSLT</b> check the below links:
    reference link:
    http://help.sap.com/saphelp_nw04/helpdata/en/fd/9d7348389211d596a200a0c94260a5/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/bb/576670dca511d4990b00508b6b8b11/content.htm
    Upload XML to internal table and vice versa in SAP 4.6C
    /people/r.eijpe/blog/2005/11/10/xml-dom-processing-in-abap-part-i--convert-an-abap-table-into-xml-file-using-sap-dom-approach
    <i>*Reward each useful answer</i>
    Raja T
    Message was edited by:
            Raja Thangamani

  • Cannot pass parameter to webservice using wsdl

    cannot pass parameter to webservice using wsdl
    I write code the following:
    step 1
    -->
    DECLARE
    SERVLET_NAME VARCHAR2(32) := 'orawsv';
    BEGIN
    DBMS_XDB.deleteServletMapping(SERVLET_NAME);
    DBMS_XDB.deleteServlet(SERVLET_NAME);
    DBMS_XDB.addServlet(NAME => SERVLET_NAME,
    LANGUAGE => 'C',
    DISPNAME => 'Oracle Query Web Service',
    DESCRIPT => 'Servlet for issuing queries as a Web Service',
    SCHEMA => 'XDB');
    DBMS_XDB.addServletSecRole(SERVNAME => SERVLET_NAME,
    ROLENAME => 'XDB_WEBSERVICES',
    ROLELINK => 'XDB_WEBSERVICES');
    DBMS_XDB.addServletMapping(PATTERN => '/orawsv/*',
    NAME => SERVLET_NAME);
    END;
    step 2
    --> CREATE USER test IDENTIFIED BY test QUOTA UNLIMITED ON users;
    step 3
    --> GRANT CONNECT,CREATE TABLE, CREATE PROCEDURE TO test;
    step 4
    --> GRANT XDB_WEBSERVICES TO test
    step 5
    --> GRANT XDB_WEBSERVICES_OVER_HTTP TO test
    step 6
    --> GRANT XDB_WEBSERVICES_WITH_PUBLIC TO test
    step 7
    -->
    SELECT dbms_xdb.getftpport() FROM dual;
    SELECT dbms_xdb.gethttpport() FROM dual;
    exec dbms_xdb.setHttpPort(8080);
    exec dbms_xdb.setFtpPort(2100);
    step 8
    -- Double check
    host lsnrctl STATUS
    SET head off
    -- Valid?
    SELECT * FROM dba_registry WHERE comp_id='XDB';
    SET head ON
    connect test/test;
    CREATE OR REPLACE FUNCTION FACTORIAL_I(N PLS_INTEGER)
    RETURN PLS_INTEGER
    IS
    n_result number;
    BEGIN
    IF N > 1 THEN
    n_result := N * FACTORIAL_I(N - 1);
    RETURN(n_result);
    ELSE
    RETURN(1);
    END IF;
    END;
    WSDL Output:
    http://localhost:8080/orawsv/TEST/FACTORIAL_I?wsdl
    output picture: http://www.picza.net/show.php?id=20120429vlxdlFdvFPdvF134795
    I try pass prameter by http://localhost:8080/orawsv/TEST/FACTORIAL_I?SBINARY_INTEGER-FACTORIAL_IInput=5
    but error <ErrorNumber>ORA-31011</ErrorNumber>
    Edited by: 930927 on 29 เม.ย. 2555, 9:02 น.

    Using something like SoapUI or do it via PL/SQL as shown here: Re: Ora-31011 with a very, very simple native webservice

  • Why should we use WSDL for developing webservices

    I need to develop Webservice Application for our Client .
    I dont know anything about WSDL4J
    Hi from the net i found this
    "The Web Services Description Language for Java Toolkit (WSDL4J) allows the creation, representation, and manipulation of WSDL documents.
    Is the reference implementation for JSR110 'JWSDL' (jcp.org)."
    But anybody please tell me why should we use WSDL for developing webservices ??
    Is there any specific advantage we will get ??
    And Can body please point me a link where to start for working with WSDL4j ?
    Thank you very much

    i seriously doubt you want to use wsdl4j unless you are doing really advanced webservice work. assuming you are developing this webservice from scratch, you basically want to use JAXWS: define an appropriate interface and your value classes, and let JAXWS do the rest. metro is the JAXWS implementation included in the oracle jdk and it has great tutorials and reference documentation online. i'd suggest you start here: http://metro.java.net/getting-started/

  • How to assosciate webservice to a WSDL file

    Hi
    I tried developing webservice(EJB as RPC) in weblogic server and installed and its working fine if i call it from client.
    I am using java2WSDL(axis) tool to create a WSDL file and WSDL2Java to create stubs for client to call.I am struck in linking webservice to use the wsdl file which i have created.
    I manually tried to add my WSDL file to the WAR file of my application and also Updated the web.xml file of the Web application adding a mime-mapping.
    I am able to access the WSDL file in browser as http://bt885094:7001/webservice/user.wsdl
    But my client tries to access the service "http://bt885094:7001/webservice/C2PUserService" which has an associated WSDL file defined as http://bt885094:7001/webservice/C2PUserService?WSDL which needs to be checking for http://bt885094:7001/webservice/user.wsdl
    Could anyone tell me how to assosciate webservice to a WSDL file.
    thanks in advance

    Thank you everyone for your help. As a complete newbie I found this nice walkthrough tutorial in onjava(i dont mean to spam).
    1. View: Take a peek at the existing Fibonacci code.
    2. Java2WSDL: Generate the WSDL file for the given Fibonacci interface.
    3. WSDL2Java: Generate the server side wrapper code, and stubs for easy client access.
    4. FibonacciSoapBindingImpl: Fill in wrapper to call the existing Fibonacci code.
    5. Deploy: Deploy the service to Apache Axis.
    6. Client: Write a client that uses the generated stubs, to easily access the Web service.
    Given the webservice endpoint and the method name, I think I can now consume the web service using steps 3,4, and 6.

  • Trouble invoking webservice created with clientgen in weblogic server 10.0

    Hi Guys,
    I have a webservice's jar file in my classpath(whic i created using weblogic clientgen), I have a simple standalone client(java file) which tries to invoke this webservice. when i try to run my client i get this error:
    Exception in thread "Main Thread" java.lang.NoClassDefFoundError: weblogic/wsee/connection/transport/http/HttpTransportInfo : weblogic/wsee/connection/transport/TransportInfo
         at java.lang.ClassLoader.findBootstrapClass(Native Method)
         at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:891)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at weblogic.wsee.util.dom.DOMParser.getWebLogicDocumentImpl(DOMParser.java:114)
         at weblogic.wsee.util.dom.DOMParser.getDocument(DOMParser.java:58)
         at weblogic.wsee.wsdl.WsdlReader.getDocument(WsdlReader.java:311)
         at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:402)
         at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:388)
         at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:78)
         at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:65)
         at weblogic.wsee.jaxrpc.ServiceImpl.loadWsdlDefinition(ServiceImpl.java:468)
         at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:114)
         at services.GetUserService_Impl.<init>(Unknown Source)
         at services.GetUserService_Impl.<init>(Unknown Source)
         at Client.getUserInfo(Client.java:19)
         at Client.main(Client.java:10)
    I get this error when I try to run the client in the weblogic workshop IDE. I have the webservices.jar, webserviceclient.jar, and weblogic.jar and my webservice's jar in my classpath.
    I tried to debug it, and found that it throws the error when the service_Impl interface gets the Port.
    FYI I m following the steps mentioned in the weblogic 10 documentation for the example given in it
    Any help on this would be appreciated.

    I actually don't have time to dig into it, that's why I pointed you to the sample. The docs also seem pretty clear, have you tried these steps detailed in the docs? According to that, you need your clientgen output plus the following.
    To use the stand-alone WebLogic Web Services client JAR file with your client application, follow these steps:
    +1. Copy the file WL_HOME/server/lib/wseeclient.zip from the computer hosting WebLogic Server to the client computer, where WL_HOME refers to the WebLogic Server installation directory, such as /bea/wlserver_10.0.+
    +2. Unzip the wseeclient.zip file into the appropriate directory. For example, you might unzip the file into a directory that contains other classes used by your client application.+
    +3. Add the wseeclient.jar file (unzipped from the wseeclient.zip file) to your CLASSPATH.+
    Note:      Also be sure that your CLASSPATH includes the JAR file that contains the Ant classes (ant.jar). This JAR file is typically located in the lib directory of the Ant distribution.
    http://edocs.bea.com/wls/docs100/webserv/client.html#standalone_client_jar

  • Query regarding webservice control

    Hi,
    We are using Webservice control in our application. Our application is running on 2 different environments. We have different service urls for different environment. So Each time when we change the urls in the WSDL for different environment, we need to again generate the service control and refer the control in the controller. We also need to delete the previously generated jar files.
    Can you please provide us with some solution for this so that we do not have to regenerate the control and delete the jar files each time when we change the url in WSDL.

    Buy why you are changing URL in wsdl.
    Put URL in properties file and set end points in your code using property file value. So when you move from environment to environment, you don't have to do anything, other than changing prop file.

  • How to use wsdl in dynamic client

    In wls 700, I want to know how to write a dynamic client to invoke a webservice by
    passing wsdl?
    In the example directory, there is an example, but I would like to know how I can
    customize to use my own wsdl? clientgen puts wsdl in client jar file why is that?

    Hi fkeita,
    If you haven't already done so, you should check out the following link in the BEA
    product documentation:
    http://edocs.bea.com/wls/docs70/webServices/client.html#1049007
    Outside of that, you can always stayed tuned to the "dev2dev" page :-)
    Regards,
    Mike Wooten
    "fkeita" <[email protected]> wrote:
    >
    Hi Mike,
    Can you elaborate more how I can find the url of wsdl?
    Do you know any documentation which explains the process of using dynamic
    clinet?
    Thanks.
    "Michael Wooten" <[email protected]> wrote:
    Hi fkeita,
    The client.jar contains a "static" WSDL, because some folks like to avoid
    making
    a network (or internet) call to retrieve the "dynamic" one :-)
    If you try to use "user-defined" types, with a WSDL and a "dynamic" client,
    you will
    experience "difficulties". This is due to the way the JAX-RPC defines the
    createService()
    method on the ServiceFactory class. Normally, this is the method you pass
    the URL
    to the WSDL you want to use. Currently, we call the WSDL parser in this
    method, which
    has a "side-effect" of needing to have the type mappings for your "user-defined"
    types, already registered when it is called. With "stub-style" clients,
    this is not
    a problem (because the plumbing does this for you), but with "dynamic"ones
    it doesn't.
    Right now, the only real workaround is to have your client class extend
    our weblogic.webservice.core.soap.SOAPElementImpl
    class, as in the following code fragment:
    #### START OF EXTRACT #####
    import javax.xml.rpc.Call;
    import javax.xml.rpc.namespace.QName;
    import weblogic.webservice.core.rpc.ServiceImpl;
    public class ServiceClient extends ServiceImpl
         public ServiceClient(String schemeHostPort) throws Exception
    // We pass the URL for the "dynamic" WSDL in the
    // first argument. The second argument is the
    // path to the XML file that the <clientgen> Ant
    // task recorded your typemapping info in. It is
    // in your client.jar, along with the "static"
    // WSDL I mentioned :-)
              super(
                   (schemeHostPort == null ? "http://localhost:7001" : schemeHostPort)
    +
    "/mea/gateway?WSDL",
                   "examples/webservices/jaxrpc/consumer/anamitra/dii/MEAGatewayService"
              //define qnames
              String targetNamespace = "http://www.bea.com/examples/MEAGateway";
              QName serviceName = new QName( targetNamespace, "MEAGatewayService" );
              QName portName = new QName( targetNamespace, "MEAGatewayServicePort");
              //create call
              Call call = super.createCall(
                   portName,
                   new QName(targetNamespace, "processExternalDataBatch")
              ArrayList alist = new ArrayList();
              alist.add(new String("One"));
              alist.add(new String("Two"));
              alist.add(new String("Three"));
              alist.add(new String("Four"));
              alist.add(new String("Five"));
              String result = (String)call.invoke( new Object[]{ alist } );
              System.out.println("result=" + result);
         public static void main( String[] args ) throws Exception
              System.setProperty("javax.xml.soap.MessageFactory", "weblogic.webservice.core.soap.MessageFactoryImpl");
              System.setProperty("javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
              new ServiceClient(args[0]);
    //private:
         private final static boolean debug = false;
    ### END OF EXTRACT ###
    Happy coding :-)
    Regards,
    Mike Wooten
    "fkeita" <[email protected]> wrote:
    In wls 700, I want to know how to write a dynamic client to invoke a webservice
    by
    passing wsdl?
    In the example directory, there is an example, but I would like to know
    how I can
    customize to use my own wsdl? clientgen puts wsdl in client jar file why
    is that?

  • How to retrieve the multiple rows data on PDF form in a web service method using WSDL DataConnection

    How to retrieve the multiple rows data on PDF form in a web service method using WSDL DataConnection.
    I have a multiple rows on PDF form. All rows have 4 textfields. I want to submit the multiple rows data to a method defiened in webservice.
    Unable to retrieve the data in multiple rows within webservice method.

    Hi Paul,
    I'm now able to save the retrieved xml in a hidden text field and create dynamic table, and I'm able to fill this table from the XML, but the problem is that I could not find the correct way to loop on the xml, what I'm trying to say, the table will have number of rows with the data of the first row only, so can you tell me the right way to loop on the xml!
    this is my code
    TextField1.rawValue=xmlData.document.rawValue;
    xfa.datasets.data.loadXML(TextField1.rawValue, true, false);
    for(var i=0; i<count; i++)
    xfa.form.resolveNode("form1.P1.Table1.Row1["+i+"].Num").rawValue = xfa.datasets.data.record.num.value;
    xfa.form.resolveNode("form1.P1.Table1.Row1["+i+"].Name").rawValue = xfa.datasets.data.record.name.value;
    Table1.Row1.instanceManager.addInstance(true);
    Thanks
    Hussam

  • Reinstall grid control agent, db agent, weblogic agent

    Hi,
    I installed oem 11g in testing environment. However, I reinstall the oms due to wrong operation. For agent side, I installed grid control agent, db agent, weblogic agent. Any official document can follow to re-install the agent...or I just re-install it by using "fresh installation". Many thx!
    Gil

    if you want just to reinstall the agent you could delete the $AGENT_HOME directory and cleanup the file "inventory.xml" ($ORACLE_BASE/oraInventory/ContentsXML).
    But you could use the GUI of the installer as well and delete the agent the "official" way...
    If want to reinstall the OMS, GC repository and/or the WLS as well I would suggest that you take a look into the documentation
    under http://download.oracle.com/docs/cd/E11857_01/index.htm
    HTH

Maybe you are looking for