Web Services Controls

I have created a Web Service control and am trying to set header fields in the
SOAP message. But there is no way of doing it that I can see. I can only call
the one method Workshop generates via the Test harness.
I have attached the WSDL file.
[inslave.wsdl]

There is a article on sopa headers going up in the next day or so.
But the main point is that you need to construct org.w3c.dom.Element that
contains the full header, and then pass it as the only element in an
Element[].
here is an example of doing it using XML Beans.
import org.xmlsoap.schemas.soap.envelope.HeaderDocument;
import com.bea.xml.XmlException;
import org.w3c.dom.Element;
HeaderDocument hd = null;
try
hd = HeaderDocument.Factory.parse
("<SOAP-ENV:Header
xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"> <my:content
xmlns:my=\"http://my.com/uri/\">Content Text</Content>
</SOAP-ENV:Header>");
catch (XmlException xe)
//should do something here.
Element header = (Element) hd.newDomNode().getFirstChild();
myServiceControl.setOutputHeaders(new Element[] { header });

Similar Messages

  • Application Web Service Control Manager detected AWEBSVC is not responding to HTTP requests

    Hi,
    We are using SCCM 2012 sp1 cu5 with one primary in the datacenter and a number of local DP's which are presently servicing 200 users, but will rise to 12,000. The Application Catalogue is installed on the primary server.
    Once a day we get the above error and the message id is 8101, and sometimes a user will have to click on install twice, with the first one failing (the ones that fail are normally with dependencies which are quite large in size around 250MB)
    I'm just wondering if this is something I should be concerned about, especially since we will be ramping up user numbers in the next few weeks, and if it could be down to volume of traffic, although the apps are downloaded to the users local DP.
    Also, does this design look suitable to service this amount of users, or should I have local application catalogues? The WAN bandwith between the datacenter and the user sites has recently been upgraded and is pretty fast.
    Thanks
    Jaz

    Hi Torsten,
    Message ID is in the SMS_AWEBSVC_CONTROL_MANAGER status log and equates to "Application Web Service Manager detected AWEBSVC is not responding to HTTP requests. The http error is 12002.
    Then, about 1 hr later in the same monitoring log I get Message ID 8102 "Application Web Service Control Manger detected AWEBSVC is responding to HTTP requests.
    At the moment it isn't doing this very often, just once a day at different times normally, but it has also logged this a couple of times as well. I guess it may correspond to multiple users accessing the web portal at multiple times, but wondered if
    anyone else has seen this behaviour and how it was fixed.
    Thanks
    Jaz

  • Application Web Service Control Manager detected AWEBSVC is not responding to HTTP requests. The http status code and text is 400, Bad Request.

    Hi All,
    I am seeing the following error for SMS_AWEBSVC_CONTROL_MANAGER component with Message ID: 8100
    Application Web Service Control Manager detected AWEBSVC is not responding to HTTP requests.  The http status code and text is 400, Bad Request.
    awebsctl.log file has below errors:
    Call to HttpSendRequestSync failed for port 80 with status code 400, text: Bad Request
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    AWEBSVCs http check returned hr=0, bFailed=1
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    AWEBSVC's previous status was 1 (0 = Online, 1 = Failed, 4 = Undefined)
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    Health check request failed, status code is 400, 'Bad Request'.
    SMS_AWEBSVC_CONTROL_MANAGER 12/22/2014 3:37:55 PM
    13920 (0x3660)
    Management point and Application Catalog Website Point are installed on the same Server where I am seeing the error for Application Catalog Web Service Point role. Management Point and Application Catalog Website Point are functioning properly. Application
    Catalog Website is working.
    Thanks & Regards, Kedar

    Hi Jason,
    Application Catalog Web Service Point and Application Catalog Website Point; both are installed as per below configuration on same Server:
    IIS Website: Default Web Site
    Port Number: 80
    with default value for Web Application Name configured.
    For SMS_AWEBSVC_CONTROL_MANAGER component, I am getting below error in Component Status:
    Application Web Service Control Manager detected AWEBSVC is not responding to HTTP requests.  The http status code and text is 400, Bad Request.
    Possible cause: Internet Information Services (IIS) isn't configured to listen on the ports over which AWEBSVC is configured to communicate. 
    Solution: Verify that the designated Web Site is configured to use the same ports which AWEBSVC is configured to use.
    Possible cause: The designated Web Site is disabled in IIS. 
    Solution: Verify that the designated Web Site is enabled, and functioning properly.
    For more information, refer to Microsoft Knowledge Base.
    And awebsctl.log has the below error lines:
    Call to HttpSendRequestSync failed for port 80 with status code 400, text: Bad Request
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    AWEBSVCs http check returned hr=0, bFailed=1
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    AWEBSVC's previous status was 1 (0 = Online, 1 = Failed, 4 = Undefined)
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    Health check request failed, status code is 400, 'Bad Request'.
    SMS_AWEBSVC_CONTROL_MANAGER
    12/23/2014 11:04:36 AM 16388 (0x4004)
    STATMSG: ID=8100
    What should I check from IIS side?
    Application Catalog Website is functioning properly.
    Thanks & regards,
    Kedar
    Thanks & Regards, Kedar

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

  • Web service control - Getting '500: Internal Server Error'

    Hi ,
    I am using a web service control to invoke a web service from a process.
    The web service is deployed on remote host. I get followinf exception -
    Submitted at Mon Aug 09 16:54:03 GMT+05:30 2004
    External Service Failure: Response: '500: Internal Server Error' for
    url:
    'http://abc.test.com:8106/SecurityService/webservice/SecurityService.jws'
    However, the service is deployed and running at "abc.test.com:8106".
    when i invoke it thr' normal java client, it works.
    Then why does the web service control dows not work?
    Can anybody help???????

    Hi,
    I have gone through the docs. , not use full. Please find the inline comments for the same.
    E-Business Suite Users Experience Intermittent HTTP-500 Errors and Database Connection Errors [ID 1314433.1] -- No solution
    R12: Http Server Crashing Frequently With Segmentation Fault (NAS or SAN filesystem) [ID 732857.1] -- Already it is under local file system only.
    How to resolve Broken Pipe errors in E-Business Suite R12 ? [ID 1480156.1] -- No solution
    Autoconfig is completed wihtout any errors.
    I have not chedked the database log file. I will check and update you soon.
    Cheers,
    Jagadeesha

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

  • Problem with building web service control

    Hi i am using a web service control for invoking a web service. the application builds correctly from workshop and i am able to talk to web service. However, when i exported the ant build file from workshop and tried to build the application from prompt using ant, it gives me follwoing wrror -
    [wlwBuild] [Build] Errors found in D:\crmwork\weboss\esb\ESBPrj\com\covad\esb\controls\BillingServiceSBControl.jcx:
    [wlwBuild] [Build] Error at line 9 column 18:
    [wlwBuild] [Build] Description: 'com.bea.wlw.runtime.jws.compiler.ServiceCtrlChecker$JcxValidateControl' could not be created.
    [wlwBuild] [Build] Prescription: The class could not be created. Verify that it has a no-argument constructor.
    [wlwBuild] [Build] Error at line 9 column 18:
    Has anybody encountered this error? What could be the problem cause the workshop build works fine.

    I solved the problem :-)
    it happened due to JAVA_HOME env var. It has to point to jdk that comes along with wl812. mine was pointing to sun jdk 1.4.2. However, this is a bug, because, for wlwlbuild task , i was setting the proper bea java home, still it was failing due to system java_home var. And i did not face this problem with WL813. After facing lot of issues with 812, now i feel, 812 is not a stable production version.
    Anyways, now the prob;em is solved.

  • 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

  • Web service control manager

    Hi,
    I have created a Gateway in WebService Control manager. I have registered a service with the gateway. Now when I am testing with test page..it is throwing error "Failed to read WSDL from http://192.168.44.85:8888/TestGateway/services/SID0003002?wsdl:WSDL not found"
    Could someone please help me out.its urgent.
    thanks in advance

    <xsl:for-each select="/tns:BSNLOMITUpdates/BSNLOMITUpdateValue/OrderEntry-Orders/ListOfOrderItemAttributes/OrderItemAttributes">
    <xsl:choose>
    <xsl:when test='xp20:matches(Name,"TT_FAULT_CLEARANCE_CODE")'>
    <ns0:ClearanceCode>
    <xsl:value-of select="Value"/>
    </ns0:ClearanceCode>
    </xsl:when>
    </xsl:choose>
    </xsl:for-each>
    i will be getting different clearance codes from the name .Each time i have to check the value and send to the appropriate target.So i have to use number of for loops.
    Is there any solution fo this.
    Thanks in advance.

  • How to control transactions (WS-AT) between two web services in OSB?

    Could someone tell me if the OSB can have 2 diferents web services controlled by an unique transaction?
    For instance: in the OSB there are two wsdl, each one with its own Business Service and ProxyService respectively. In my vb.net aplication I started a transaction, called the first web service succefully and from the second web service I got an exception. I expected the first web service undo its work because the vb.net aplication excute a rollback command. Is this possible? How can I do? Any sample or tip will be helpfull.
    If I was developing without OSB, I would rely on WS-AT as shown in http://www.codeproject.com/Articles/38793/6-Steps-to-Enable-Transactions-in-WCF for two web services dot net, or for one web service dot net and other java, http://www.ibm.com/developerworks/websphere/library/techarticles/0707_lo/0707_lo.html.
    My question is basically: Is still possible to keep a single transaction between multiple web services when they are mediated by OSB? If so, is there a example showing how?

    Hi,
    When you create the proxy server, you have to check "Transaction required" box on Message Handling page...
    http://docs.oracle.com/cd/E17904_01/doc.1111/e15867/proxy_services.htm#i1316487
    Cheers,
    Vlad

  • Using a control in a web service

    Hi,
    I've got a problem where I using a WebServiceControl in a web service is giving me errors when I build.
    The error is:
    Error with publish task 'WebServicesProjectBuildTask'.
    Web services in payment have errors
    Web services with errors cannot be compiled.
    Error(s) occured during publish assembly. No modules will be published.
    I have a web service I've created called PaymentWebService. This web service uses a web service control to call another web service. It seemed to be working fine until I try and use the web service control inside the PaymentWebService. If I comment out the web service control it deploys fine.
    The error above is all it gives me, and I've checked through the code quite a few times and there are no build errors or anything like that.
    Does anyone have any idea about this? It's driving me nuts.
    Thanks,
    Daniel

    Hi,
    Do you have errors in the weblogic log file?
    Best regards,
    Stéphanie

  • 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

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

  • Could not invoke a web service in an integration process from a portal

    Hello,
    I am a WebLogic user. I am using WebLogic 8.1. I created a process project which integration a few web services. The last service in the process is named "Alert Service". I also create a WebLogic portal to invoke the the Alert service in the process. After I run the process in WebLogic workshop, I run the portal. I met the issue like:
    <i><b>An error has occurred:
    An exception occurred in the action showAlert
    EJB Exception: ; nested exception is:
    com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:java.io.FileNotFoundException
    String:Response: '503: Service Unavailable' for url: 'http://dbaldridge3000:7001/JC2Collab/JC2/collab/alert/Alert.jws'
    Detail:
    END SERVICE FAULT
    caused by: : com.bea.control.ServiceControlException: SERVICE FAULT:
    Code:java.io.FileNotFoundException
    String:Response: '503: Service Unavailable' for url: 'http://dbaldridge3000:7001/JC2Collab/JC2/collab/alert/Alert.jws'
    Detail:
    END SERVICE FAULT</b></i>
    I created a portal domain and extended the workshop and integration domain to the portal domain server. both the process and the portal are running on this server. If I don't run the workflow process, but run the Alert service only and then run the portal, there is no exception.
    The portal was created using the Alert service's control.
    Why did the integration process hide its service so that the portal could not find it ? Should I run the integration process and the portal in separate domains (servers) ? Should I start two WebLogic platforms ?
    Thanks in advance.
    Di

    I reproduced this error in another way by using portal only. I created a portal with a portlet which can invoke a meeting service. I posted two methods in the meeting service to the portlet - listMeetings and getMeeting. The portlet was generated automically from the meeting web service control. I invoked the listMeeting from the portal at first. The meeting info was displayed on the portal page. Then I invoked the getMeeting by entering a meeting key got from the first step. For the second call, the same exception was thrown.

  • 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

Maybe you are looking for

  • Payment Advice by Email

    Hi FI Guys, With regard to remittance advice to vendors which currently is generated from SAP in my Co, once a payment proposal has been posted, i would prefer these payment advices be send automatically by email, by using the email id in the vendor

  • Terms of payment are incorrect

    Hi, The payment terms in vendor master are set so that the cecks are cut on xx/xx/xx date - net 15 days. when I tried to test in FB60 the payment terms for 15 days are getting populated in FB60. however, when I enter lets say 30 days in the cash disc

  • Service BBPPU99 could not be started in ITS

    In EBP ITS system, we try to shop via service BBPPU99 (shop). Web site shows: Flow Execution Failed The module provide returned following error message: No Template Also, diagnose log files report as: XGatHandleResponse: No template defined. Please a

  • Need to rename files parsing date formats in the filename [SOLVED]

    Godaddy changed the naming scheme of their server logs again.  I need some perl or something magic that will convert format A to format B.  Doing this is bash is going to be painful so I'm hoping some of your perl or python ninjas out there could hel

  • FCPX export: Mutliple video tracks in MP4!?

    Hello I noticed something strange today. FCPX sometimes integrates two video tracks in MP4-Files when exporting. Can anybody explain why this happens? I exported a bunch of MP4s with different lengths out of FCPX using "Share for Apple Devices 720p".