Problem in WebServices

Hi,
I created an ejb webservice. I imported the webservice using adaptive webservice model. I have done model binded to the component controllers context. Now i have mapped it to the view. Now after deployment i found the input field ui element in disabled state. For this i have changed all the possibilities of cardinality for the model node. But still i am facing the same problem.
Kindly help me to solve this out.
Thanks,
Chaitanya.

hi,
   for using the web servies ur Application we have to instantiate the model classes.
for eg :
try{
            FindAllEmployees model = new FindAllEmployees();
            Request_FindEmployeeById req = new Request_FindEmployeeById(model);
            FindEmployeeByIdReqMsg employee = new FindEmployeeByIdReqMsg(model);
            req.setFindEmployeeByIdReqMsg(employee);
            wdContext.nodeRequest_FindEmployeeById().bind(req);
            wdContext.currentRequest_FindEmployeeByIdElement().modelObject().execute();
            wdContext.nodeResponse().invalidate();
            wdContext.nodeFindEmployeeByIdResMsg().invalidate();
            wdContext.nodeEmployeeDetailsById().invalidate();
       }catch(Exception e){
            wdComponentAPI.getMessageManager().reportException(e);
After Instantiating the model class we have to invalidate the response node.
use messagemanager to verify whether the model is getting executed .as wdComponentApI.getMessageMnager().reportSuccess("initializing the model node");
i think this will help u to see where u r making mistake
Hope this will solve ur problem
thanks and regards
Fistae

Similar Messages

  • Problem creating webservice from existing code in sjse8

    I have a java class with three methods in an enterprise app (no ejbs) that I want to expose with webservice. In sudio5 I had no problem with webservice creation but in studio8 when I chose "From scratch, Use existing code", it gives me the opting to go to my class and select those methods. When I click finish, it generates an Implementation class that has declaration for my java class repeated 3 times which is obviously wrong and under it says:
    // Enter web service operations here. (Popup menu: Web Service->Add Operation)
    The class is empty.
    I choose "rpcliteral", "strict", "useonewayoperations" and "donotoverride" under web module property / webservice.
    And as you can guess it generates a wsdl file with no webservice methods info.
    I have and am checking all forums and searching different sites but haven't fond anything yet.
    I appreciate any help resolving this issue.

    Seems this feature doesn't work properly in jse and completely removed from latest nb55 enterprise pack (only session enterprise bean case remain)

  • Problems with WEBSERVICES

    Hello,
    i have some Problems with WebServices.
    When I call my function how makes the request (get_frob), it goes back to the main program and make a print! After that my request starts!
    I want that the request finished first and then make a print!
    I need threats for this???and how does it work?
    My englisch is not so good I´m sorry for that!
    Please help me
    Thanks
    Chris
    def Button_Autorisieren:SwingButton=SwingButton{
        text:"Autorisieren"
        width:100
        translateY:150
        action:function()
            var Authentication:HTTP_Authentication=new HTTP_Authentication();
            Authentication.get_frob();
            java.lang.System.out.println(Authentication.abfrage);
    public class HTTP_Authentication {
        var api_key:String="***********";
        var secret_key:String="***********";
        var stat:String;
        var sig:String;
        var frob:String;
        var method:String;
        var md5_String:String;
        var perms:String;
        var api_sig:String;
        public var abfrage:Boolean;
        public var link:String;
        def md5:MD5=new MD5();
        var parser = PullParser{
            documentType: PullParser.XML;
            onEvent: function(event: Event) {
                    if (event.type == PullParser.START_ELEMENT ) {
                        if(event.qname.name == "rsp" and event.level==0)
                           stat=event.getAttributeValue(QName{name:"stat"});
                        if (stat=="ok")
                         if(event.type==PullParser.END_ELEMENT)
                              if(event.qname.name == "frob")
                                  frob=event.text;
                                  java.lang.System.out.println("Frob: {frob}");
                                   abfrage=true;
        public function get_frob ()
            method="flickr.auth.getFrob";
            md5_String="{secret_key}api_key{api_key}method{method}";
            java.lang.System.out.println(md5_String);
            sig=md5.makeMD5(md5_String);
            java.lang.System.out.println(sig);
            var request = HttpRequest {
                    location: "http://api.flickr.com/services/rest/?method={method}&api_key={api_key}&api_sig={sig}"
                    method: HttpRequest.GET
                    onInput: function(input: java.io.InputStream)
                                    parser.input=input;
                                    parser.parse();
                                    input.close();
                        }.enqueue();
        }

    Hello,
    thank you for your answer. It was my mistake, I discribe the problem very bad.
    When i call the function get_frob(). Netbeans goes in the function and run through the end but nothing happened
    onMouseClicked: function( e: MouseEvent ):Void {
                         test=Authentikation_Frob.get_frob();and in my if clausel there will be a wrong output! After the output my programm go back to the function get_frob() and then make the request and go back to the if clausel. Now everything ist correct. But why does my programm need 2 runs ????thats not correct!!
    Thank you!!
    if (test==true)
                             var Authentikation_Link:HTTP_Authentication_Link=new HTTP_Authentication_Link();
                            link=Authentikation_Link.get_link();
                            var uri = new java.net.URI("{link}");
                             var desktopClazz = java.lang.Class.forName("java.awt.Desktop");
                             var getDesktopMethod = desktopClazz.getMethod("getDesktop");
                             var desktop = getDesktopMethod.invoke(null);
                             var browseMethod = desktopClazz.getMethod("browse", [uri.getClass()] as java.lang.Class[]);
                              browseMethod.invoke(desktop, uri);
                         else
                             fehler_ausgabe.visible=true;
                             fehler_ausgabe.content="Fehler {Authentikation_Frob.frob_fehler} {Authentikation_Frob.frob_hilfe}";
                         }Edited by: Esco24 on Aug 10, 2009 1:02 AM

  • Problem accessing Webservices from Flex

    Hi All,
    I have created a Webservice in Abap and configured it using
    SOAMANAGER transaction. I am able to succesfully test the Web serivice which I have created in 'Soamanager ' transaction.
    But when I am calling this Webservice from Flex application I am getting an error as " FAULT : faultCode:WSDLError faultString:'Runtime exception Error #1009' faultDetail:'null' "
    We tried calling the Webservice  outside SAP from the FLex application, it is working fine.
    Please let me know how to rectify this error . It's an urgent requirement.
    Thanks and regards,
    Uma.

    hi
      when you create your destinations for your webservices in the SOAMANAGER-> Destination Template
      you would be providing wsdl url and destination , and in the below you can
      find the username and pwd that need to set , you need to select the radio buttons with logon tickets ,
    username , password , there , re-check the username and pwd by selecting the radio button with selecting the
    radio button username password ,  and even check the webservice in the WSNAVIGATOR , whether its working
    fine , and other thing is  there is situation where your webservice may work fine inthe wsnavigator  even then there would
    be some problem inthe webservice , even check this scenario.
    Thanks

  • Problem with Webservice after upgrading to cf8

    I have a webservice created in ColdFusion 6.1 that worked just fine when being called from MS Access. I upgraded coldfusion to v8, and now the webservice isn't working. Nothing else was changed. The strange thing is I can call the webservice from a flex program, I have used SoapUI, and that worked, I can type the webservice name into IE and get the correct return, but not from MSAccess or Excel.
    Anybody know why this would be? Is there some setting that I forgot to check in the upgrade that would cause this sort of problem.
    One thing I noticed when looking at the packets that were sent back and forth is that when connecting to the webservice from MSAccess, it looks like ColdFusion is trying to log into the web service definition. By that I mean, in the packet that is returned, I can see the HTML of the page in ColdFusion where you log in to view the webservice definition.
    Matt

    We are running windows 2000 server (I know, I know, old as mold, but we're a government agency, what do you expect?) 32 bit. Antoher piece of the pie...
    After looking at the response closer, it looks like and extra line is being placed in there. For example, here is the response I am getting currently:
    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
      <ns1:GetProp8Response soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://xxxx.xxxx.xxx">
       <GetProp8Return xsi:type="xsd:string">22923</GetProp8Return>
      </ns1:GetProp8Response>
    </soapenv:Body>
    </soapenv:Envelope>
    previously, it was similar to this:
    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
      <ns1:GetProp8Response soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://xxxxxx.xxxxx.xxx">22923</ns1:GetProp8Response>
    </soapenv:Body>
    </soapenv:Envelope>
    Thanks for taking a look...
    Matt

  • Problem in Webservice-XI-JDBC scenario

    Hi Experts,
    I am working on webservice - XI - JDBC Synchronous scenario. I have done with SLD, IR, ID, WSDL file creation.
    When I tried to test the scenario thro' Webservice Studio, I am getting the following error. This error comes, once I give the request value.
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    Exception Text **************
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Client found response content type of 'text/html', but expected 'text/xml'.
    The request failed with the error message:
    td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;}
    A:link
    A:visited
    A:active
    401   Unauthorized
    If you come across this type of issues, then please help me to solve it.
    Regards
    Sara
    Message was edited by:
            Sara D

    Hi Bhavesh,
    As per the blog, I have done the username & pwd setup..but still getting the "401 Unauthorized".  Could you please tell me, what could be the problem?
    Here is the full error trace.
    Exception Text **************
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Client found response content type of 'text/html', but expected 'text/xml'.
    The request failed with the error message:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>Error Report</title>
    <style>
    td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;}
    A:link
    A:visited
    A:active
    </style>
    </head>
    <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0">
    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">
    <tr bgcolor="#FFFFFF">
        <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>  401 &nbsp Unauthorized</b></font></td>
    </tr>
    <tr bgcolor="#3F73A3">
        <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td>
        <td height="23"><img width=1 height=1 border=0 alt=""></td>
        <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/7.00 </b></font></td>
    </tr>
    <tr bgcolor="#9DCDFD">
        <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td>
    </tr>
    </table>
    <br><br><br><br><br><br>
    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">
    <tr bgcolor="#FFFFFF">
        <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>  No login module succeeded.</b></font></td>
    </tr>
    <tr bgcolor="#FFFFFF">
        <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><b>  Details:</b></font></td>
        <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><pre>  No details available</pre></font></td>
    </tr>
    </body>
    </html>
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at MI_OutboundService.MI_Outbound(DT_REQUEST MT_REQUEST)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at WebServiceStudio.MainForm.InvokeWebMethod()
       at WebServiceStudio.MainForm.buttonInvoke_Click(Object sender, EventArgs e)
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Regards
    Sara
    Message was edited by:
            Sara D

  • Problem releasing webservice for runtime in non-modifiable client

    Hi
       I created a webservice definition ( virtual interface & all dependent objects )  in a development client ( client- A ) of a ECC5.0 instance.
    Now, we have another client ( client-B ) in the same server that we want to release the webservice for SOAP runtime. ( reason is that the webservice is not available at runtime in this client-B client )
    This client-B has status - non-modifiable and hence cannot use WSCONFIG --> create option to release it for runtime.
    How do we release this webservice definition to client - B . I tried a SCC1 transaction on client-B pointing to the transport that contains the WS definition in client-A. I got dictionary errors indicating that the WS definition objects are all client independent.
    Is there something I am missing ? Any thoughts/similar experiences shared is appreciated.

    Good to hear it worked out for you. But like I already said, I haven't experienced anything like this, but for similar problems this is exactly what we did to solve it. But you're probably right, that this is no long term solution. There should be another way of doing this, but no experience in that field expertise.

  • Could not find the main class - Problem with Webservice-Access

    Hello Everybody,
    I'm having serious Problems with accessing a WebService (Tomcat-Axis) per executable jar-File.
    I constructed a simple GUI with 3 Textboxes 1 Button and 1 Resultbox.
    I use eclipse so it was no Problem to simple generate the Backgroundclient by Processing the .wsdl-File of the WS.
    Now I do this:
    Head_tServiceLocator serviceLocator = new Head_tServiceLocator();
    Head_t service = serviceLocator.getRPCCall();
    RPCCallSoapBindingStub Head_t = (RPCCallSoapBindingStub) service;and use the Webservice like an Object.
    All this works very well.
    Now the Problem:
    Head_t service = serviceLocator.getRPCCall();this Line has to throw a ServiceException.
    If i add a try-catch Block to Process the Message JAVA tells me after i exported to JAR (with Manifest-stuff and so on) and double Click on the JAR the following :
    Could not find the main Class - Program will exit.
    And if i add a throws Declaration to the Methodheader it tells me:
    Fatal Exception Occured - Program will exit
    But if i Comment out that Line at least the GUI is being displayed (so it DOES find the main-Class). But then of course the Webservice won't be accessed.
    All the JARs needed (axis.jar, commons-discovery.jar and so on) are in the same Directory as the Webservice-Client.jar
    Please Help me.
    Greets,
    Zap

    I am not done any typing mistake while creating the jar file i already followed the suggestion that you have mentioned but still the same error .
    This is my MANIFEST.MF file created under META-INF folder
    Manifest-Version: 1.0
    Class-Path: qtjambi-4.4.3_01.jar qtjambi-win32-msvc2005-4.4.3_01.jar
    Created-By: 1.5.0 (Sun Microsystems Inc.)
    Main-Class: Ui_MainWindow
    When i extracted the app.jar following this i got
    1. META-INF folder inside that MAINFEST.MF file the contents i have already placed above
    2. qtjambi-4.4.3_01.jar
    3. qtjambi-win32-msvc2005-4.4.3_01.jar
    4. Ui_MainWindow.class
    Please tell me whats wrong in that i can also give you the app.jar file please let me know the email id ..

  • Problem exporting webservice document/literal in Weblogic Workshop 10.3

    While migrating an applications from Weblogic 8.1 to Weblogic 10.3 and facing a problem with one webservice, the others webservices have been migrated without any problems.
    When try to export and deploy the webservice getting the following error:
    Exception in DocumentoCompulsado
    com.bea.control.ServiceControlException: Unable to retrieve ServiceClass for WSDL at path wsdl/CompulsaWSSOAPControl_CompulsaWSWsdl.wsdl, service CompulsaWS for control wsdl.CompulsaWSSOAPControl from cache[com.bea.control.servicecontrol.util.ServiceClassCacheException: Unable to restore ServiceClass from resource wsdl/CompulsaWSSOAPControlServiceClassMemento.ser, service CompulsaWS for control wsdl.CompulsaWSSOAPControl]
    Caused by: com.bea.control.servicecontrol.util.ServiceClassCacheException: Unable to restore ServiceClass from resource wsdl/CompulsaWSSOAPControlServiceClassMemento.ser, service CompulsaWS for control wsdl.CompulsaWSSOAPControl
    ... 50 more
    Caused by: com.bea.control.servicecontrol.util.memento.ServiceClassMementoException: Could not load the following resource file: wsdl/CompulsaWSSOAPControlServiceClassMemento.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.
    Trying to deploy the webservice, Weblogic fails telling that there is not a file named wsdl/CompulsaWSSOAPControlServiceClassMemento.ser and it is true, that file is not in the file we are trying to deploy. So the problem seems to be in Workshop which is not including the file required.
    Looking for differences between this webservice and the others, realized that this webservice has declared, in its WSDL file, the document-literal binding and the others have rpc-literal.
    Found a workaround. The webserice is called by using a ServiceControl. If the Service Control is type rpc, the webservice is exported and deployed without any problems, but if we use xmlbean option the webservice could not be deployed, the .ser file is not generated. I think this is reasonable because .ser files are relationed with xmlbeans.
    Is it a known issue? if yes, could you please tell me the bug/CR number?

    I am getting the same error, but another situation; I have generated an EAR file, it works perfectly in one machine but I am getting this error in another.
    Unable to retrieve ServiceClass for WSDL at path com/nononononon/nono/nono/services/SearchServices.wsdl, service SearchServices for control com.nononononon.nono.nono.services.SearchServicesServiceControl from cache[com.bea.control.servicecontrol.util.ServiceClassCacheException: Unable to restore ServiceClass from resource com/nononononon/nono/nono/services/SearchServicesServiceControlServiceClassMemento.ser, service SearchServices for control com.nononononon.nono.nono.services.SearchServicesServiceControl]
    I have searched the web without finding an resolution, exploding my EAR I see that I have the
    *ClassMemento.ser
    in the same folder as my service control. As I said before it works in one machine but not in another.
    Does anyone have any idea what is going on?
    PS: I have stooped the server where I am getting this error and cleaned tmp and stage folder. No success.
    The full stack trace looks like this
    [2012.01.03 13:07:39] - [286821] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [FATAL] - com.bea.control.ServiceControlException: Unable to retrieve ServiceClass for WSDL at path com/nononono/nono/nono/controls/MarketingOffers.wsdl, service MarketingOffers for control com.nononono.nono.nono.controls.MarketingOffersServiceControl from cache[com.bea.control.servicecontrol.util.ServiceClassCacheException: Unable to restore ServiceClass from resource com/nononono/nono/nono/controls/MarketingOffersServiceControlServiceClassMemento.ser, service MarketingOffers for control com.nononono.nono.nono.controls.MarketingOffersServiceControl]
         at com.bea.control.servicecontrol.impl.ServiceControlImpl.getServiceClass(ServiceControlImpl.java:1734)
         at com.bea.control.servicecontrol.impl.ServiceControlImpl.invoke(ServiceControlImpl.java:524)
         at com.nononono.nono.nono.controls.MarketingOffersServiceControlBean.getQualifiers(MarketingOffersServiceControlBean.java:309)
         at com.nononono.nono.nono.services.MarketOffers.getQualifiers(Unknown Source)
         at com.nononono.nono.nono.services.MarketOffers.GetQualifiers(Unknown Source)
         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:597)
         at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassComponent.java:112)
         at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(ComponentHandler.java:84)
         at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
         at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:114)
         at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
         at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
         at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
         at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:285)
         at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:169)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: com.bea.control.servicecontrol.util.ServiceClassCacheException: Unable to restore ServiceClass from resource com/nononono/nono/nono/controls/MarketingOffersServiceControlServiceClassMemento.ser, service MarketingOffers for control com.nononono.nono.nono.controls.MarketingOffersServiceControl
         at com.bea.control.servicecontrol.util.ServiceClassCache.insertEntry(ServiceClassCache.java:140)
         at com.bea.control.servicecontrol.util.ServiceClassCache.getServiceClass(ServiceClassCache.java:75)
         at com.bea.control.servicecontrol.impl.ServiceControlImpl.getServiceClass(ServiceControlImpl.java:1718)
         ... 30 more
    Caused by: com.bea.control.servicecontrol.util.memento.ServiceClassMementoException: Could not load the ServiceClassMemento from the following resource file: com/nononono/nono/nono/controls/MarketingOffersServiceControlServiceClassMemento.ser. This is probably due to a versioning issue and if the developer was astute when they made the change then this should not be the reason. Another possibility is that this resource has become corrupt. The good news is a rebuild of your app should fix it.
         at com.bea.control.servicecontrol.util.memento.ServiceClassMementoUtil.loadServiceClass(ServiceClassMementoUtil.java:77)
         at com.bea.control.servicecontrol.util.ServiceClassCache.insertEntry(ServiceClassCache.java:96)
         ... 32 more
    Caused by: java.io.InvalidClassException: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = -9120448754896609940, local class serialVersionUID = 4418622981026545151
         at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at java.util.HashMap.readObject(HashMap.java:1159)
         at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at com.bea.control.servicecontrol.util.memento.ServiceClassMementoUtil.loadServiceClass(ServiceClassMementoUtil.java:69)
         ... 33 more
    [2012.01.03 13:07:39] - [286835] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [DEBUG] - e.save()finished
    [2012.01.03 13:07:39] - [286835] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [FATAL] - >>ESB.MarketOffers.GetQualifiers:GetQualifiers Webservice
    [2012.01.03 13:07:39] - [286835] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [DEBUG] - >> Duration 15
    [2012.01.03 13:07:40] - [288220] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [INFO ] - getGlobalAlertList().start
    [2012.01.03 13:07:40] - [288232] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [INFO ] - getGlobalAlerts().start
    [2012.01.03 13:07:40] - [288234] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [INFO ] - getGlobalAlerts().end
    [2012.01.03 13:07:40] - [288234] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [INFO ] - getGlobalAlertList() event logging error.null
    [2012.01.03 13:07:40] - [288234] [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [INFO ] - getGlobalAlertList().end
    [2012.01.03 13:08:04] - [312812] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [DEBUG] - >>>MSC message consuming timed out!
    [2012.01.03 13:08:04] - [312812] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [DEBUG] - Before consume MSC Message!
    Edited by: vkonrad on Jan 3, 2012 10:19 AM

  • Problem with Webservice - XI - JDBC scenario

    Hi Experts,
    When I have tried to test the Webservice -> XI -> JDBC scenario with the mention address, I am getting the below error.
    <b>Address :</b> http://<Host>:50100/XISOAPAdapter/MessageServlet?channel=:WEB_SERVICE:SOAP_CC&version=3.0&Sender.Service=WEB_SERVICE&Interface=http%3A%2F%2Fatl.com%2Ftar%5EMI_Outbound
    <b>Error:</b>
    <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                             <context>XIAdapter</context>
                             <code>RecoverableException</code>
                             <text><![CDATA[
    com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.af.ra.ms.api.DeliveryException: Application:EXCEPTION_DURING_EXECUTE:
         at com.sap.aii.af.mp.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:919)
         at com.sap.aii.af.mp.module.ModuleLocalLocalObjectImpl3.process(ModuleLocalLocalObjectImpl3.java:103)
         at com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:258)
    JDBC Part works fine only problem with the SOAP sender side. Any suggestion please..
    Regards
    Sara
    Message was edited by:
            Sara D

    Hi,
    As per Bhavesh & Krishna's suggestion, I have changed the JDBC Data type. Now I could able to see the SXMB_MONI error too.
    Latest error:
    When I have tried to test the scenario using xmlApy, I am getting the below error.
    <b>RWB error:</b>
    2007-06-21 03:04:24 Success Receiver JDBC adapter: processing started; QoS required: BestEffort
    2007-06-21 03:04:24 Success JDBC adapter receiver channel DB_CC: processing started; party  , service DB_SERVICE
    2007-06-21 03:04:24 Error Unable to execute statement for table or stored procedure. 'Address' (Structure 'STATEMENT') due to java.sql.SQLException: FATAL ERROR document format: structure 'STATEMENT', no key element found
    <b>xmlSpy Error:</b>
                   <context>XIAdapter</context>
                             <code>RecoverableException</code>
                             <text><![CDATA[
    com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'Address' (structure 'STATEMENT'): java.sql.SQLException: FATAL ERROR document format: structure 'STATEMENT', no key element found
         at com.sap.aii.af.mp.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:919)
         at com.sap.aii.af.mp.module.ModuleLocalLocalObjectImpl3.process(ModuleLocalLocalObjectImpl3.java:103)
         at com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:258)
    I have mapped the EmpId in the mapping as well as in the DB the EmpId is Primary Key. Could you please tell me,what I am missing here?
    Regards
    Sara
    Message was edited by:
            Sara D

  • Problem using webservice method consumer proxy with rawdata from abap

    Hello Gurus,
    I am struggling with an error using a proxy consumer service from ABAP. The proxy was generated using the WSDL from the web service provider. For a specific method we need to send a rawstring as seen bellow:
    The file to be sent on this call is a ZIP file XAdES-BES signed and on BASE64. I’ve implemented the proper code to get the original file from local PC, and convert it to BASE64 before moving the content to the webservice structure and call the service proxy. At SOAMANAGER I also configured the webservice and the proper port with the WSDL:
    The communication is working properly but my problem is with the binary content. When calling the webservice the response is that the structure of the file is wrong. I found it very strange since I used a tiny SOAPUI project with the same WSDL and it worked with no problem.
    After debugging I could see that the content moved to the rawdata string before calling the proxy does not match the content that I can see from the call payload on web services util (srt_util)!
    So the sample code for my method:
    * get the file from the specified folder
    call function 'GUI_UPLOAD'
    exporting
    filename                = ld_zipfilename
    filetype                = 'BIN'
    importing
    filelength              = zip_size
    tables
    data_tab                = t_zip_data[]
    exceptions
    file_open_error         = 1
    file_read_error         = 2
    no_batch                = 3
    gui_refuse_filetransfer = 4
    invalid_type            = 5
    no_authority            = 6
    unknown_error           = 7
    bad_data_format         = 8
    header_not_allowed      = 9
    separator_not_allowed   = 10
    header_too_long         = 11
    unknown_dp_error        = 12
    access_denied           = 13
    dp_out_of_memory        = 14
    disk_full               = 15
    dp_timeout              = 16
    others                  = 17.
    * convert to string
    clear buffer_zip.
    call function 'SCMS_BINARY_TO_STRING'
    exporting
    input_length = zip_size
    importing
    text_buffer  = buffer_string
    tables
    binary_tab   = t_zip_data[]
    exceptions
    failed       = 1
    others       = 2.
    * encode base 64
    perform encode_base64 using buffer_string
    buffer_zip. 
    form encode_base64 using in_string type string
    out_string type xstring.
    data: l_sbuff     type string.
    * convert the file to BASE64
    call method cl_http_utility=>encode_base64
    exporting
    unencoded = in_string
    receiving
    encoded   = l_sbuff.
    call function 'SCMS_STRING_TO_XSTRING'
    exporting
    text   = l_sbuff
    importing
    buffer = out_string
    exceptions
    failed = 1
    others = 2.
    endform.                    "encode_base64
    calling the webservice:
    l_input-xxxx-dokument = buffer_zip.
    try.
    call method l_proxy_test->webservice
    exporting
    input  = l_input
    importing
    output = l_output.
    catch cx_ai_soap_fault into lr_exc_soap_fault.
        endtry.
    From my understanding rawstring should be the same as ABAP xstring. If I debug the program and check the content of the  l_input-dokument before calling the proxy I get binary content: “Izw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9InV0Zi04Ij8…” that is in fact correct
    If I check the payload after call I can see that the binary content sent on the XML is not the same, in fact it is totally different: ”SXp3L2VHMXNJSFpsY25OcGIyNDlJakV1TUNJZ1pXNWpiMlJw…” !!
    I’ve tried a lot of different conversions, changed configuration on the communication, port, etc and nothing seems to work. I really can’t figure out why the binary content on the call is not the same as I move to the webservice structure.
    If I use the project from SOAP UI and send the proper binary content, that is “Izw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9InV0Zi04Ij8…” it works perfectly and the response is successfully.
    Anyone has a clue what could be causing this?
    Appreciate any kind of input.
    Regards,
    João Silva Pinto.

    Anyone? Any clue would be appreciated.

  • Problem accessing webservice from abstract portal component

    Hi,
       I have created a webservice from a portal service.  So i have created one more portal application to accessing that web service.  In that, i have done the following:
    -> Portal Service from Wsdl file - Client Side
    -> I have entered the Wsdl file name as, the location of the WebService
    -> I have selected the methods what i want to use in my application
    -> Finally i have given my ServiceName, Alias and Package as well.
    -> I have created one application object (Abstract Portal Component) to access the Web Service.
    -> Inside that AbstractPortalComponent, i have written the coding to access the methods.
    -> I have created one system with System Alias, i used this Alias name in my portalapp.xml
    While running it shows the error as,
                        <b>com.sapportals.portal.prt.service.ServiceException: Service not found: com.sap.portal.prt.soap.Alias</b>
    Help me in this, Thanks in Advance.,
    With Regards,
    Venkatesh.K.

    Hi venkatesh I ahve similar problem please could you share with us how did you sort out this error?
    Sreekanth

  • Problems consuming webservice

    Hi,
    I am trying to follow this example: https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/501668ab-976e-2a10-91b6-c1020e8c54f2 , using CE 7.1 SP3.
    I managed to connect my NWDS to the SR, imported the WSDL-file to my (dynamic web) project and successfully generated a webservice client. But then, in the servlet I developed according to the above example, the code in step 4 produces two errors:
    SalesOrderSelectionByID selectionById = new SalesOrderSelectionByID();
    SalesOrder order = output.getSalesOrder();
    It says, that SalesOrderSelectionByID and SalesOrder cannot be resolved to a type. What is true, no such file exists. It seems, that they were not generated - but should have been. Any ideas? Or am I getting something wrong?
    Thanks,
    Sebastian

    Hi Rupash,
    thanks for your replay. Your idea sounds good, but unfortunately it doesn't solve my problem ...
    My WSDL looks like this:
    <xsd:complexType name="SalesOrderByIDQueryMessage_sync">
            <xsd:sequence>
              <xsd:element name="SalesOrderSelectionByID">
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element name="SalesOrderID" type="SalesOrderID"/>
                  </xsd:sequence>
                </xsd:complexType>
              </xsd:element>
            </xsd:sequence>
          </xsd:complexType>
          <xsd:complexType name="SalesOrderByIDResponseMessage_sync">
            <xsd:sequence>
              <xsd:element minOccurs="0" name="SalesOrder">
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element name="ID" type="SalesOrderID"/>
                    <xsd:element minOccurs="0" name="Date" type="Date"/>
                    <xsd:element minOccurs="0" name="ProcessingTypeCode" type="BusinessTransactionDocumentProcessingTypeCode"/>
                    <xsd:element minOccurs="0" name="BuyerID" type="BusinessTransactionDocumentID"/>
                    <xsd:element minOccurs="0" name="DeliveryBlockingReasonCode" type="BlockingReasonCode"/>
                    <xsd:element minOccurs="0" name="InvoiceBlockingReasonCode" type="BlockingReasonCode"/>
    As you can see, SalesOrderSelectionByID and SalesOrder both exist and are named correctly. According to this, a SalesOrderSelectionByID.java and SalesOrder.java should have been generated within the package com.sap.xi.appl.se.global. Do you have these files?
    Regards,
    Sebastian

  • Problem in webservices SOAP

    Hi All
    iam new to webservices technology, i have downloaded a sample on DocumentStyle webserice and executed it as the per the instructions given the document and could succeed.
    now on the same lines i have written the below service and tried to execute.
    the steps what i followed are
    1 written a service interface
    2 written impl class which is as below
    3 compiled and created ear file using config.xml file
    4 started the oc4j server
    5 deployed the generated ear file into the server
    6 binded the service
    7 Checked if the service is running by the following url
    http://yourhost.com:8888/docws/validate
    it is sucessful
    8 prepared a jsp client
    9 placed it in default-wep-app directory
    10 opened the browser and called the jsp
    it has displayed me with a html form where i have to give some input.
    when clicked on submit
    i did not call the service
    so when i look at the server console
    it says as follows
    java.lang.IllegalArgumentException: Root element of a SOAP message must be: 'http://schemas.xmlsoap.org/soap/envelope/:Envelope'.
    please any one help me how to trouble shoot the above.
    i checked for the soap file in oc4j directory but failed.
    please help me in fixing the above problem
    import org.w3c.dom.*;
    import oracle.xml.parser.v2.*;
    import java.io.*;
    public class ValidateServiceImpl implements ValidateService
    public ValidateServiceImpl(){}
    public Element validate(Element e){
    Element processedEl=null;
    try{
    NodeList list = e.getChildNodes();
    Node node = null;
    String values [] = new String[list.getLength()-1];
    for(int i=0;i<list.getLength();i++){
    node = list.item(i);
    values = node.getNodeValue();
    int age = Integer.parseInt(values[0]);
    int income = Integer.parseInt(values[1]);
    int loanAmount = Integer.parseInt(values[2]);
    String answer=null;
    answer = checkAvailability(age,income,loanAmount);
    processedEl = createElement(answer);
    }catch(Exception ex){
    ex.printStackTrace();
    return null;
    return processedEl;
    private Element createElement(String value){
    Document xmldoc = new XMLDocument();
    Element e1 = xmldoc.createElement("answer");
    xmldoc.appendChild(e1);
    Text t = xmldoc.createTextNode(value);
    e1.appendChild(t);
    return (Element)xmldoc.getFirstChild();
    private String checkAvailability(int age,int income,int loanAmount){
    if((age>=20 && age <= 40) && (income > 2000) && loanAmount >= 10000){
    return "true";
    else{
    return "false";
    }

    Hi Ramadhar,
    If you are accessing the Webservice through the proxy you need to configure the proxy.
    1. Follow the menu Path:
    <b></b>System Administration>System Configuration>Service Configuration>Applications>com.sap.portal.ivs.httpservice>Services>proxy<i></i> and edit the property fields "HTTP-Enable Proxy Setting", "HTTP Proxy Host", and "HTTP Proxy port" and save.
    2.Right click on "com.sap.portal.ivs.httpservice" node and choose "Administrate" and restart the service.
    Hope this helps.
    -Venkat Malempati

  • Timeout problems with Webservices

    Hi,
    I'm facing problems with the timeout parameter("weblogic.webservice.rpc.timeoutsecs"). It seems that the timeout is not working and i got stuck threads in my Weblogic Queue.
    has anyone benn through a similar situation?
    Thanks in Advance
    Erick Akamine

    System.setProperty("weblogic.webservice.UseWebLogicURLStreamHandler","true");
    // create a call instance
    ((weblogic.webservice.core.rpc.CallImpl) myCallInstance).setProperty("weblogic.webservice.rpc.timeoutsecs", "1");
    //check the parameters names
    ((weblogic.webservice.core.rpc.CallImpl) myCallInstance).getParameterNames();

Maybe you are looking for

  • T440s Win 8.1 Remote Desktop two finger scrolling

    Two finger touchpad scrolling in Chrome desktop mode has been pretty bad on my T440s until the recent driver update.  But after the update, I've noticed now that in the tiles version of remote desktop, two finger scrolling no longer works.  It acts a

  • Upgrade macromedia captivate 1 to captivate 5

    hello, I have version macromedia captivate 1 and I want to upgrade to captivate 5. Is it possible? Thank you.

  • Doubt in select options

    Hi frnds, Normally select option allowing only 8 charactor in declaration part, but i want to display with morethan 8 charator. i think some text id formet is there, how to do that. for ex, s_org for vbak-vkorg  . for this i want to give sales organi

  • How to get crinkly lines

    I am currently trying to do a project that involves creating a map of a fictional location and I am looking for a very specific feature: crinkly line creation. I would like to be able to sketch out the general arc of a curve on this map and have the

  • SAP GUI 7.20 installation in Citrix environment

    Dear colleagues, does anybody, if there are some hints using the SAP GUI 7.20 in Citrix? We've different installations of the SAP GUI; one installation szenario is local on the client workstations and one is on a citrix environment. On the local inst