Confusing Service Control in Workshop Tutorial

When you are adding a Service Control, Workshop Tutorial recommends to drug-and-drop
the control descriptor – the .ctrl file from another project – onto your Service
Component in the Design View. This operation confuses me because it contradicts
the Web Services principles. If the author of this tutorial intended to demonstrate
an ability of the tool to accept pre-built 3-rd party control descriptors, I think,
it would be better to demonstrate this for an Application View Control.
For Web Services, an application/user, who wants to establish communication with
a Web Service, is assumed to obtain ( find in UDDI or on a Web Site or in a Repository
) related WSDL and, then, create/build appropriate helpers to support this communication.
So, for the tutorial purposes, I suggest, the right scenario has to
1)     find the WSDL
2)     create local ( for the current project ) control descriptor, not a control
descriptor packaged into another project as it appears in existing Tutorial implementation
3)     automatically generate helper components for SOAP marshalling/unmarshalling
I have tested this scenario by copying the WSDL - CreditCardReportContract.wsdl
- into my “financialservices” project, performed WSDL-to-CTRL conversion and successfully
run it in the debugger.
I do invite your opinions on this subject!
- Michael Poulin

Since Workshop is recommended by BEA as a Web Services development tool, I think,
this topic may be shared between Web Services and Workshop newsgroups.
Point in my comment is not about ability or disability of Workshop of copying
CTRL files into your project. I tried to explain that this feature is inadequate
to Web Services in general if it substitutes WSDL.
I would certainly agree with and appreciate a feature that allows me, as a developer,
to reuse already existing Control Descriptor available in MY environment. However,
the Tutorial does not teach “to copy the control's CTRL file to a common folder”.
Instead, it follows the statement: “If the control will be used only by a single
web service in your project, you may choose to copy the CTRL file to the same
folder as your web service”. I doubt that the statement represents Best Practices
– it couples projects by a derivative, not by the resource. That is, if WSDL has
been changed, the 3-rd project can re-build CTRL file for itself, you project
gets into troubles ( it is obvious, right ? ).
Using Workshop, I am trying to understand how BEA recommends working with Web
Services. I recognize the power of Connector architecture and common approach
to resources accessibility represented by CTRL files. At the same time, I see
that a repository of CTRL files for Web Services can shield developers from Web
Services in WebLogic environment. If this is an accidental consequence, it has
to be clearly explained, if not fixed; if it is an intention, I would like to
hear the BEA comments on how this relates to known WSDL repositories, other standards,
and reliability of Web Services in the enterprise environment, at least.
Thank you,
- Michael
"Anurag Pareek" <[email protected]> wrote:
Michael,
For questions regarding Workshop, I will suggest you to post to the
'weblogic.developer.interest.workshop' newsgroup.
Regarding this query, the docs do state explicitly the following, which
I
guess addresses your concern:
If the CTRL file for the control you wish to use is not in your project,
you
must copy it to your project. The destination to which you copy the control
depends on your expected usage. If the control will be used only by a
single
web service in your project, you may choose to copy the CTRL file to
the
same folder as your web service. If multiple web services in different
folders in your project may use the control, you may wish to copy the
control's CTRL file to a common folder. Remember that the CTRL file must
be
in your WebLogic Workshop project.
Wherever you decide to place the control's CTRL file, it must be in your
WebLogic Workshop project.
Do let me know if you have further inputs.
Regards,
Anurag
"Michael Poulin" <[email protected]> wrote in message
news:[email protected]...
When you are adding a Service Control, Workshop Tutorial recommendsto
drug-and-drop
the control descriptor - the .ctrl file from another project - ontoyour
Service
Component in the Design View. This operation confuses me because itcontradicts
the Web Services principles. If the author of this tutorial intendedto
demonstrate
an ability of the tool to accept pre-built 3-rd party control descriptors,I think,
it would be better to demonstrate this for an Application View Control.
For Web Services, an application/user, who wants to establishcommunication with
a Web Service, is assumed to obtain ( find in UDDI or on a Web Siteor in
a Repository
) related WSDL and, then, create/build appropriate helpers to supportthis
communication.
So, for the tutorial purposes, I suggest, the right scenario has to
1) find the WSDL
2) create local ( for the current project ) control descriptor, nota
control
descriptor packaged into another project as it appears in existingTutorial implementation
3) automatically generate helper components for SOAPmarshalling/unmarshalling
I have tested this scenario by copying the WSDL -CreditCardReportContract.wsdl
- into my "financialservices" project, performed WSDL-to-CTRL conversionand successfully
run it in the debugger.
I do invite your opinions on this subject!
- Michael Poulin

Similar Messages

  • Error generating Web Service control in Workshop 9.2 from any wsdl

    When trying to generate web service control from service control wizard I get the following error:
    An error was encountered while generating types: null
    The full stack trace is:
    <pre>java.lang.reflect.InvocationTargetException
         at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:327)
         at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:830)
         at com.bea.wlw.controls.service.ui.GenerateSCWizard.performFinish(GenerateSCWizard.java:213)
         at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:676)
         at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:349)
         at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
         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.jface.window.Window.runEventLoop(Window.java:809)
         at org.eclipse.jface.window.Window.open(Window.java:787)
         at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:110)
         at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
         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.NullPointerException
         at com.bea.wlw.controls.service.ui.GenerateSCWizard$Finisher.run(GenerateSCWizard.java:501)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    </pre>
    I have tried different wsdls simple and complex and still getting the same error. What could be the problem? Is it a bug or my misconfiguration? Has anybody succeded to generate service control in workshop 9.0 and above?

    Did you also get a CrashWeb dialog?
    Andrey Adamovich wrote:
    When trying to generate web service control from service control wizard I get the following error:
    An error was encountered while generating types: null
    The full stack trace is:
    <pre>java.lang.reflect.InvocationTargetException
         at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:327)
         at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:830)
         at com.bea.wlw.controls.service.ui.GenerateSCWizard.performFinish(GenerateSCWizard.java:213)
         at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:676)
         at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:349)
         at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
         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.jface.window.Window.runEventLoop(Window.java:809)
         at org.eclipse.jface.window.Window.open(Window.java:787)
         at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:110)
         at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
         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.NullPointerException
         at com.bea.wlw.controls.service.ui.GenerateSCWizard$Finisher.run(GenerateSCWizard.java:501)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    </pre>
    I have tried different wsdls simple and complex and still getting the same error. What could be the problem? Is it a bug or my misconfiguration? Has anybody succeded to generate service control in workshop 9.0 and above?

  • Workshop 10.0.1 - Generating service control from a WSDL file

    Hi!
    I've been familiarising myself with Workshop (version 10.0.1).
    There is a feature that allows the generation of a web service control by right-clicking a WSDL file (Web Services > Generate Service Control).
    This process creates a jar file containing the WSDL's complex type.
    My only problem with this is that the jar uses the namespaces as package names (for example: www.openuri.org will be converted into an org.openuri package).
    I've been searching for a way to customize the package names, but I've been unable to find it. We previously used Axis to generate a web service client, and we ran an Ant task that could map namespaces to packages.
    Would there be a way to achieve this in Workshop?
    Thank you!

    Hi
    This is a known issue and a limitation. Service controls doesn't honor xsdconfig files when generated from wsdl file.
    We have an enhancement request CR307698 pending to address this issue. It looks like it's a big change in code to get this working so it is being looked at in the next release.
    Also, you can call BEA support / create a case in future and request status on this CR anytime.
    Vimala-

  • Database control hangs in Workshop Tutorial !!!

    Hi,
    I am using WLS 7.0.1.0/SP1 ( latest version ) with Workshop included, on Windows
    XP Prof. In Workshop Tutorial, Step 3, the test hangs at the execution of
    Applicant dbApplicant = bankruptciesDB.checkForBankruptcies(taxID);
    I am asking if it is a known problem? There may be several reasons for this and
    it is too expensive to investigate all of them:
    1. Tutorial text misses a fragment describing special configuration for the Database
    control
    2. Tutorial is correct but default ( installation ) configuration of Database
    control has bug(s)
    3. A helper class, implementing BankruptciesDatabaseControl interface, is missed.
    4. Implementation of Database control is buggy. What the magic happens when I
    “SELECT TAXID, FIRSTNAME, LASTNAME, CURRENTLYBANKRUPT FROM BANKRUPTCIES WHERE
    TAXID={taxID}”, i.e. only a sub-set of “Applicant” attributes in the query, and
    how Database control ( using my interface method public Investigate.Applicant
    checkForBankruptcies(String taxID) ) knows which database table field to map to
    which Applicant” attribute ? [I suppose, creation of “Applicant” class is independent
    from the database schema, isn’t it ?]
    Thank you,
    - Michael

    Sure, I will send you the dump. Please, provide me with your e-mail.
    As of column names, don’t you find it error-prone approach where a developer has
    to “find” the names and type them into the code ? Since you are already deal with
    a db adapter/controller, I suggest, the adapter has to read a db schema, gets
    the column names and data types. In other words, I would expect in this case the
    same functionality as provided by, e.g., TogetherSoft’s Control Center. It creates
    Entity Beans out of the db schema and only then allows you to manipulate them.
    Thank you and wait for your e-mail.
    - Michael
    "Anurag Pareek" <[email protected]> wrote:
    Michael,
    The names of the elements in the 'Applicant' class should match one-on-one
    with the database column names in the corresponding table.
    I guess you are using the default Pointbase database. Can you check whether
    you were able to create successful connections to the Pointbase database
    during server startup?
    If the server is hanging at the statement you have mentioned, can you
    take a
    thread dump by using Ctrl->Break and email it to me.
    Thanks,
    Anurag
    "Michael Poulin" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I am using WLS 7.0.1.0/SP1 ( latest version ) with Workshop included,on
    Windows
    XP Prof. In Workshop Tutorial, Step 3, the test hangs at the executionof
    Applicant dbApplicant = bankruptciesDB.checkForBankruptcies(taxID);
    I am asking if it is a known problem? There may be several reasonsfor
    this and
    it is too expensive to investigate all of them:
    1. Tutorial text misses a fragment describing special configurationfor
    the Database
    control
    2. Tutorial is correct but default ( installation ) configuration ofDatabase
    control has bug(s)
    3. A helper class, implementing BankruptciesDatabaseControl interface,is
    missed.
    4. Implementation of Database control is buggy. What the magic happenswhen I
    "SELECT TAXID, FIRSTNAME, LASTNAME, CURRENTLYBANKRUPT FROM BANKRUPTCIESWHERE
    TAXID={taxID}", i.e. only a sub-set of "Applicant" attributes in thequery, and
    how Database control ( using my interface method publicInvestigate.Applicant
    checkForBankruptcies(String taxID) ) knows which database table fieldto
    map to
    which Applicant" attribute ? [I suppose, creation of "Applicant" class
    is>independent>> from the database schema, isn't it ?
    Thank you,
    - Michael

  • Can I generate web service jcs control outside workshop?

    I want to generate a web service control, like I do in workshop, but not
    from the workshop IDE. I noticed workshop looks like it uses ant tasks for a
    good deal. Is there an ant task, or anything, I can use outside workshop to
    generate a web service jcx control?
    thanks

    Hi,
    I cannot confirm whether or not this is a known issue or even a defect. Out of instinct I am building Web Services proxies in their own project because it generates artifacts e.g. for the return types that I don't want to see lying around in my Web Services project. So I assume that it is considered best practices to not put them into the same project to avoid file overrides
    Frank

  • Service Control Not Being Generated Correctly from WSDL

    Hello,
    I am using BEA Workshop for WebLogic Platform 9.2.0 for development. I created a web service in Workshop, which exposes 3 methods... one of the methods, putPlan(), accepts two parameters.
    After generating the WSDL from the web service class, I ran the Web Service Client Wizard. I was able to successfully access and test the web service with the generated client code.
    However, in another project, I generated a service control from the WSDL. Although the service control was created without any errors, the control itself does not appear to be correct: it defines the putPlan() method as accepting only one parameter instead of the expected two.
    The WSDL itself looks good, as it clearly defines two input parameters to the putPlan() method. And, the Web Service Client wizard had no problems generating valid client code from the WSDL. So, I am confused as to why the generated service control is not right.
    Any help with this problem would be greatly appreciated.
    Thanks!

    Hi Debbie,
    When you created the service control did you choose the option to generate xmlbean types for the service or did you generate jax/rpc types ?
    Can you send the service, wsdl and control to me via email at akraj_at_yahoo.com ?
    cheers
    Raj

  • Generic Service Control WSDL

    Okay, so we are running into a little problem on my program. I will do my best to explain how it is all put together without being too confusing.
    We are designing a WebService for WLS 9.2 that will be used to start JPDs on WLI. These JPDs will be modeled after a generic JPD that will have a "start" method. We used this JPD to create a WSDL that was then used to generate a ServiceControl for our WebService. The actual JPDs will be registered with ALSR and will not be necessarily know until runtime.
    Hence, our service will lookup the endpoint for the JPD from the registry using some search criteria. This works!!! The WebService will then set the endpoint for the generic control to the endpoint the was retrieved from the registry. Finally, the WebService will use the control to call the "start" method on the control.
    Okay, so we have gotten this working when deploying to the server from Workshop. And we were able to get it to work when we export the EAR from Workshop and upload the ear. However, dude to some CM requirements and the way we are handling that aspect of deployment, we were using Ant to build the EAR. We figured out that our Ant script was ignoring some steps in creating the files.
    We then tried to use the Workshop exported Ant script, but those don't work for us. There is some classpath problem, and such that makes it not work.
    So to make a long story even longer. Has anyone else tried to develop a generic WSDL to a "class" of services and call those services by setting the endpoint for the service via a control? It appears that this may or may not be supported in WLS 9.2.
    Any thoughts?

    Hi Debbie,
    When you created the service control did you choose the option to generate xmlbean types for the service or did you generate jax/rpc types ?
    Can you send the service, wsdl and control to me via email at akraj_at_yahoo.com ?
    cheers
    Raj

  • Web service client in Workshop 10.1

    Anybody have any advice on the best way to create a Web service CLIENT in Workshop 10.1 ?
    I've been looking around for a couple of days. I understand how to run clientgen from the command line. That works fine.
    I have looked at the tutorial for using 'Web service controls' also. As far as I can tell, though, in Workshop 10.1 I can only generate such a control nside another Web service, as in the tutorial. In other types of classes, the Insert option is not available on the menu I pull up by right-clicking in the source. I hope I am missing something obvious.
    My goal is to call Web services from other applications inside Workshop. The other applications may be Web applications or they may not. Most of the time they will not be other Web services.
    Thanks in advance for any help !!

    Thanks Vimala.
    I am able to create the JAR using clientgen, and I can call the Web service after that from the command line. All of that depends upon various environment variables being set with setDomainEnv.cmd and it works fine.
    I would like to create a Java project in Workshop 10.1 and use that JAR created with clientgen, but that does not work - I get an Exception wqhen I try to run, although it all compiles :
    Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/descriptor/BasicDescriptorManager
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at com.kohls.example.client.SimpleClient.main(SimpleClient.java:29)
    The classes are al lthere, or it would not compile, so I assume I am missing some of the scaffolding around calling the Web service. I just created a normal Java project - maybe that's wrong ?
    Edited by ethan_kohls at 01/18/2008 12:44 PM
    Edited by ethan_kohls at 01/18/2008 12:44 PM

  • Generate Service Control for WSDL: NullPointerException

    Steps to demonstrate the problem: in Platform Workshop (8.1.4) in Integration mode, create a Tutorial Process Application, then for RequestQuote.jpd, Generate WSDL file, then for that WSDL, Generate Service Control.
    <pre>ERROR: requestquote/RequestQuoteContract.wsdl Line 0, Col 0: java.lang.NullPointerException
    </pre>
    The WSDL is valid (Axis WSDL2Java and Eclipse-Webtools are both okay with it, assuming I delete some cw and http namespaces they don't understand).
    The problem is when the XSD is too deeply nested giving XML like /one/two/three, whereas /one/two is okay for WLI. This is valid XSD, but apparently too deep for WLI to understand.
    Any help debugging this more or working around it would be appreciated. Is there a way to run this process from the command line, so I might debug this more on my own? I'd like to give the stackTrace for the NPE, but WLI Workshop doesn't show that.
    Thanks,
    Mike

    Hi guys,
    I had the same problem and what I had to do was import the Schema project that holds all schemas included in the WSDL that I was trying to generate a control from. In my case I had the Schema project because I was the one that developed the WebService too, in your case it's possible that you have to create an Schema project and somehow extract the schemas from de WSDL and create .xsd files to put in the project.
    After doing this you will see the popup window (when you try to generate a service control from the WSDL file) asking if you want to use the XMLBeans generated from the xsd files in your Schema project otherwise it will generate inner classes based in the WSDL's schemas, you must choose YES (use the existing XMLBeans) and that should be it for creating a Service Control based on a WSDL file.
    Hope this helps in most cases.
    Regards,
    Israel Williams
    Software Architect
    JWM Solutions
    [email protected]

  • An error when testing a web service control that takes a complexType argument

    i took some wsdl file and generated a web service control in BEA Workshop 8.1.
    from the jcx file, i generated the jws test file.
    now, the webservice takes in a complex argument as an input. as a result, i added
    specialized code in the jws test file to construct the complex type to pass into
    the web service control. it compiled/built fine. but when i do the actual testing,
    i get the following error:
    java.lang.NullPointerException
    at com.bea.xml.marshal.AtomicValueMPlan.marshal(AtomicValueMPlan.java:90)
    at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:337)
    at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
    at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307)
    at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:349)
    at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
    at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307)
    at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:349)
    at com.bea.xml.marshal.MethodMPlan.marshal(MethodMPlan.java:260)
    at com.bea.wlw.runtime.core.dispatcher.DispMessage.marshalXml(DispMessage.java:386)
    at com.bea.wlw.runtime.jws.call.SoapCall.<init>(SoapCall.java:150)
    at com.bea.wlw.runtime.jws.call.SoapHttpCall.<init>(SoapHttpCall.java:61)
    at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:559)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:359)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393)
    at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:387)
    at $Proxy8.DocLitQueryByExample(Unknown Source)
    at doc_lit_bs.bs_doc_litControlTest.DocLitQueryByExample(bs_doc_litControlTest.jws:31)
    i checked the line of code in the jws file and it looks like this:
    public doc_lit_bs.bs_doc_litControl.ListOfSampleAccount DocLitQueryByExample(java.lang.String
    AccountName)
    doc_lit_bs.bs_doc_litControl.ListOfSampleAccount response;
    doc_lit_bs.bs_doc_litControl.ListOfSampleAccount ListOfSampleAccount =
    new doc_lit_bs.bs_doc_litControl.ListOfSampleAccount();
    doc_lit_bs.bs_doc_litControl.Account account = new doc_lit_bs.bs_doc_litControl.Account
    account.Name = AccountName;
    ListOfSampleAccount.Account = account;
    response = bs_doc_litControl.DocLitQueryByExample (ListOfSampleAccount);
    /* line 31 */
    return (response);
    what could be the problem? and how may i resolve this? any help is greatly appreciated.

    Hello,
    There was an NPE problem reported and resolved (CR117566) concerning
    using "mixed" ComplexType, something like:
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";>
    <xs:complexType name="fooType" mixed="true"/>
    <xs:element name="root" type="fooType"/>
    </xs:schema>
    Generally speaking, an NPE will be a bug. Can you provide an small
    example that generated the NPE to the support team, it would be very
    helpful in resolving this issue.
    Thanks,
    Bruce
    Bolei wrote:
    >
    i took some wsdl file and generated a web service control in BEA Workshop 8.1.
    from the jcx file, i generated the jws test file.
    now, the webservice takes in a complex argument as an input. as a result, i added
    specialized code in the jws test file to construct the complex type to pass into
    the web service control. it compiled/built fine. but when i do the actual testing,
    i get the following error:
    java.lang.NullPointerException
    at com.bea.xml.marshal.AtomicValueMPlan.marshal(AtomicValueMPlan.java:90)
    at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:337)
    at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
    at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307)
    at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:349)
    at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
    at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307)
    at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:349)
    at com.bea.xml.marshal.MethodMPlan.marshal(MethodMPlan.java:260)
    at com.bea.wlw.runtime.core.dispatcher.DispMessage.marshalXml(DispMessage.java:386)
    at com.bea.wlw.runtime.jws.call.SoapCall.<init>(SoapCall.java:150)
    at com.bea.wlw.runtime.jws.call.SoapHttpCall.<init>(SoapHttpCall.java:61)
    at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(ServiceControlImpl.jcs:559)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:359)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393)
    at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:387)
    at $Proxy8.DocLitQueryByExample(Unknown Source)
    at doc_lit_bs.bs_doc_litControlTest.DocLitQueryByExample(bs_doc_litControlTest.jws:31)
    i checked the line of code in the jws file and it looks like this:
    public doc_lit_bs.bs_doc_litControl.ListOfSampleAccount DocLitQueryByExample(java.lang.String
    AccountName)
    doc_lit_bs.bs_doc_litControl.ListOfSampleAccount response;
    doc_lit_bs.bs_doc_litControl.ListOfSampleAccount ListOfSampleAccount =
    new doc_lit_bs.bs_doc_litControl.ListOfSampleAccount();
    doc_lit_bs.bs_doc_litControl.Account account = new doc_lit_bs.bs_doc_litControl.Account
    account.Name = AccountName;
    ListOfSampleAccount.Account = account;
    response = bs_doc_litControl.DocLitQueryByExample (ListOfSampleAccount);
    /* line 31 */
    return (response);
    what could be the problem? and how may i resolve this? any help is greatly appreciated.

  • Using WS-Security with Web Service Controls in WLI 8.1 SP3

    We have a process that calls a web service hosted on a .NET environment. The technique we have used is to generate a service control from the web service WSDL and call that control from a process. The web service is protected using a WS-Security usernameToken policy. The problem is that the .NET environment requires the wsse:Nonce and wsu:Created elements to be provided along with the token and I cannot see how I can specify this using a wsse policy file in WebLogic workshop. Does anyone have any advice for the best way to add this information to the security element in the SOAP header from within a WLI process? I've seen some example code for a java web service client, but that would not really fit with the control-based approach normally adopted in a WLI environment.

    You won't be able to do this using the WSSE file.
    An easy way to get around this is to use an XML Bean built from the WS-Security XML Schema. You'll have to read the WS-Security spec to determine how to create the nonce, but you'll be able to convert this XML Bean into the Element[] that the setOutputHeaders() method, which is on the service control you call the .NET Web Service with.
    Regards,
    Mike Wooten

  • Invoking web service using Weblogic Workshop (JCX)

    Invoking web service using Weblogic Workshop
    Posted: 5 Jan 2005 23:31 PM Reply
    Hi,
    I have WSDL from which I have generated a web service control (.jcx) using Weblogic Workshop.
    I need to write a client which will invoke the web service using the control.
    Can someone help me on how to go about this ?
    BTW .. I also tried the clientgen route and tried to generated the proxy jar from the WSDL but wasn't successful because of a existing clientgen bug.
    Refer bug

    Hi,
    if the consumer of the webservice is a control-aware consumer ( pageflow, control, process ) simply drag the control to this consumer and the control variable is ready for use.
    if the consumer is not control-aware, try to generate a proxy using eg. the axis tool, or handcode your proxy class.
    links :
    how to use webservice control
    http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/controls/conGettingStartedWithJavaControls.html
    axis
    http://ws.apache.org/axis/
    - Anders M.
    - Anders M.

  • URGENT:  Error while deploying ear with weblogic service control

    We have build an ear within workshop and deployed to another server. When accessing the application we are getting the following error:
    'com.bea.control.ServiceControlException: Could not find service ref in jndi: java:comp/env/service/hhs_wc_controls_SearchServiceControl[javax.naming.NameNotFoundException: While trying to look up comp/env/service/hhs_wc_controls_SearchServiceControl in /app/webapp/WCWeb/5120123.; remaining name 'comp/env/service/hhs_wc_controls_SearchServiceControl'] '
    The service control is connecting a WSDL to consume a web service.
    Does the service control create a JNDI entry or some file is not getting built into the ear?
    We are using WLP 10.3
    Your help is much appreciated.
    Thanks,
    - Shankar
    Edited by: user1269940 on Nov 6, 2009 12:39 PM

    Hi Shankar
    When a WebService Control is created based on .wsdl file, it generates a .JAR file with all jaxb generated classes and .java files with service and port classes. This .jar file will be under web-inf/lib folder. Then I guess you are using this WebService control in your Pageflow and invoke webservice operations. So do you have like a portlet for this pageflow and testing from a portal. I have a similar scenario but I did not get any error that you are seeing. I consume SOA BPEL webservices in one of my pageflows using Service Controls.
    To debug, first test if the wsdl is working by directly invoking the wsdl operations using a utility servlet by name "wls_utc" which you can invoke from any of your wls/wlp domain. Start your domain assuming localhost and port is 7001. The url for testing webservices is:
    http://localhost:7001/wls_utc. This works if domain is in Dev Mode only. This page opens a jsp page, where you can type your wsdl url (http://host:port/context/a/b/xyx?wsdl). This page parses that wsdl and shows all operations and for each operation the fields for input parameters. See if this wsdl works fine.
    As for deployment, there is no additional step required. Just ear your application that has .war file and that has web-inf/lib folder with actual webservice control generate .jar file. I did no tconfigure any additional JNDI lookups like that.
    Thanks
    Ravi Jegga

  • Error Invoking JPD from Service Control

    Hi,
    We are upgrading an application which was on weblogic 8.1 workshop domain to weblogic 10.3 and trying to commuicate to wli 10.3 domain from the jpf of presentation layer (run time) we are getting the below exception.
    Please help us on this issue. Let me know if more info is required
    Exception:
    <Apr 15, 2010 8:13:00 AM CDT> <Error> <com.bea.control.servicecontrol.util.memento.ServiceClassMementoUtil> <BEA-000000> <com.bea.control.servicecontrol.util.memento.ServiceClassMementoUtil: Could not load the following resource file: com/bellsouth/customermarkets/sbsxo/psl/controls/GetExternalUserDetailsControlServiceClassMemento.ser. There are two possibilities why this would occur. The first is that you are trying to run a 9.0 version of the service control. In this case everything should still work fine and you can ignore this exception. The other case is that the resource file is not in the proper location of the classpath. It should be in the same directory as the service control interface class. You might have to change your build scripts to make this work out for you. The resource file is generated during control assembly time and needs to be moved to the same directory as the service control interface class.>
    com.bea.control.servicecontrol.util.ServiceAnalyzerException: Cannot find types jar typegen__xmlbeans_apache__com__bellsouth__customermarkets__sbsxo__psl__controls__GetExternalUserDetailsContract.jar in ear file /opt/app/bea/WLS103/INT-DEV/Sbsxo_Admin-lib/applications/SbsxoPslFlows.ear
    at com.bea.control.servicecontrol.util.ServiceAnalyzer.constructTypesJarURI(ServiceAnalyzer.java:681)
    at com.bea.control.servicecontrol.util.ServiceAnalyzer.constructDefaultTypesJarURI(ServiceAnalyzer.java:652)
    at com.bea.control.servicecontrol.util.ServiceAnalyzer.makeServiceClassFromExistingTypes(ServiceAnalyzer.java:164)
    at com.bea.control.servicecontrol.util.ServiceClassCache.insertEntry(ServiceClassCache.java:111)
    at com.bea.control.servicecontrol.util.ServiceClassCache.getServiceClass(ServiceClassCache.java:75)
    at com.bea.control.servicecontrol.impl.ServiceControlImpl.getServiceClass(ServiceControlImpl.java:1718)
    at com.bea.control.servicecontrol.impl.ServiceControlImpl.invoke(ServiceControlImpl.java:524)
    at com.bellsouth.customermarkets.sbsxo.psl.controls.GetExternalUserDetailsControlBean.clientRequest(GetExternalUserDetailsControlBean.java:126)
    at flows.Login.LoginController.getExternalUserInfo(LoginController.java:91)
    at flows.Login.LoginController.begin(LoginController.java:390)
    Thanks,
    B R BALAJI

    In the ESB Control you can view the exception that's being thrown, is the PrivilegActionException the only stack trace you have?
    Maybe you can have a look if the data that's returned from the db-adapter is interpreted correctly by the ESB? You're working with a Request/Reply ESB so you need to make sure that as well the input as the ouput that's returned by the Routing Service is properly defined.

  • Service Control

    Hello,
    We've created a proxy service using AquaLogic Service Bus. Using ALSB's test console we've verified that the proxy service works fine when provided XML that conforms to the WSDL's schema.
    We then created a page flow portlet in workshop that is supposed to call the proxy service using a service control based on the WSDL just mentioned. So we have a form with all the parameters needed to complete the request. When we actually submit the form, ALSB complains that the SOAP request received does not conform to the WSDL. We looked in ALSBs log, and we found that the request coming in looked quite different from the one that is generated when using ALSBs test console.
    Could someone tell me why this is happening and how to solve it? Has anyone successfully called an ALSB proxy service from a portlet using a service control? Are there better ways to achieve this?
    Thanks.
    Edited by yosri2007 at 04/16/2008 7:43 AM

    Hi Oliver,
    What I understood is that earlier you were using the wls8.1 to invoke webservice and it was working but when you upgrade it to 9.2 then it is not working. And since you have to use the wsdl generated by your legacy systems so I guess you might be using Ant tasks. If I'm correct then from the exception it seems the client that is created is not able to de-serialize the complex types. I know u wud be knowin but have you checked the client generated by 8.1 and that generated by 9.2. Have you updated your ClientGenTask class because the 8.1 ClientGenTask is available in wls9.2 but it has been deprecated. So BEA recommends to update the class to 9.2 "weblogic.wsee.tools.anttasks.ClientGenTask"
    Hope this helps...
    http://e-docs.bea.com/wls/docs92/pdf/webserv.pdf
    But hey you are using ServiceControl then i think weblogic wud be generating the client for you right. Well I have never used ServiceControl I've also faced a problem in compatibility. So when I used the ant tasks it worked and that too of wls8.1 task. Can you do one thing if you can create your client using ant task and check whether it wud work out(just curious). And pls use either version of the clientgentask. Hope it may work...
    If using ant task is not a gud practice in wlp then please correct :) I too need to get myself clear...
    Thanks

Maybe you are looking for

  • Crystal Reports 10 error while saving report

    Last week i had a problem while saving my report. I get the following error while saving my report: crw32.exe has encountered a problem and needs to close The only way to get around this was after every change build a preview and close the preview an

  • Screen saver on Intel Mac

    I successfully downloaded a screensaver from http://www.climatecrisis.net/downloads/ After I double clicked on the file called AIT_mac, it installed and I received a a message saying that installation was successful and that the Screen Saver pane in

  • Uploading Large csv file from Local File

    I have a 6GB csv file which I created on my local machine which is named TrainDF.csv.  I can't upload it directly as it exceeds the 1.95GB size limit uncompressed.  However, I tried saving it as an RData file (as well as a zip file of the RData file)

  • I read the help forums and I tried everything, and yet Firefox is still slow is there anything I can do?

    I have had issues with Firefox for about a week and no matter what I do nothing helps fix it. I have tried resetting firefox and it didn't help, I went on several articles and nothing helped. I tried disabling plugins, troubleshotting, and even some

  • MACBOOK WON'T START HELP HELP OMG HELP!!/1/1kghl

    SO! I recently bought a white MacBook and an iPod Nano (gen1 because I wanted them to match). Since then I have had to send in the first iPod, get a second one, and have the exact same problem--neither the MacBook nor the iPod seem to realise at all