Webservice invocation question ?

hi,
i had never create nor call a webservice... here the work i have to do :
my environnement is : weblogic 8.1, J2EE 1.3, eclipse.
i am developping a web application, this web applciation has a login form to enable user to connect to the application.
A web service already exits in another weblogicserver (i have the ip, port number, methode name....), this webservice and more specialy its methode checkAuthorization takes two parameters (username,password) and send back 3 result parameteers (res1, res2, res3).
what i have to do, is to create a helper class, let's say "webserviceClient" which invoke thsi webservice and depending on the result, authorize or not the connection.
i began to read the sun tutorial, i understand that there is two ways to do this job, using JAX-RPC or SOAP!!!!
my question is : are this componenet applicationserver dependent, in another way, does weblogic server 8.1 conatins the necessary package to do that ?
my second question is, what is the more easiest way to that ?
i have not a lot of time for doing that :-))),
thanks for your help

Hi Abhi,
Are your Web Service and Enterprise Application which call the web service both are running on the same server?
I think you should check web service processing time of the web service at server side(inside your web service/method) not at the client side. This way you will get better idea about how much time client takes to connect to web service and getting response back.
get elapsed time as Chicon specified at client side, and put similar at server side to get web method processing time like:
// This is you web method
public String webMethod() {
    long webServiceStart = System.currentTimeMillis();
    // Web Service Implementation
    // Web Service Implementation
    long webServiceEnd = System.currentTimeMillis();
    System.out.println("Web Service processing time : " + (webServiceEnd-webServiceStart) + " milliseconds");
}You should get above time almost same in both the case.
Because standalone application needs to connect to server explicitly where as an enterprise application running on same server as your web service is will get it invoked fast compared to standalone application.
Thanks,
Tejas

Similar Messages

  • ODI-Webservice Invocation- Namespace missing in BPEL

    Hi,
    I have installed ODI (10.1.3.4).While trying to invoke a webservice(simple BPEL process) by giving the wsdl url, and giving the inputs and executing it, the request to the webservice(BPEL process) reaches without the namespace spacified but for the root element. Could anyone suggest a solution to this missing namespace during webservice invocation in ODI
    Thanks in advance.
    Regards,
    Praveen

    Were you able to find any fix for this issue. We are having a major show stopper because of this. Your help will be appreciated. Thank you.

  • Dynamic WebService Invocation

    Hi All,
    i am facing a small issue regarding dynamic invocation of webservice from another webservice....
    the probelm is when i tried to invoke a simple webmethod with string return type its working as expected.. and the same method is returning an array of string it started saying cant be able to deserialze the data....
    i dont understand the meaning of this exception... can any body aware of this?
    Regs,
    Veeru

    Hello,
    When you have this error it is often because the JAX-RPC client does not know how to deserialize a specific XML type. In this case you have probably to use a custom mapping type.
    It is quite hard to help you without any "real" information, could you please post the WSDL, the SOAP Response and the error. Also define how you exactly call the WS? JAX-RPC DII?
    In the same time, you may know that we have on OTN a forum dedicated to Web Services
    Regards
    Tugdual Grall

  • Workbench WebService Invocation: Returning response as CDATA

    Hello,<br /><br />I am trying to invoke a webservice from LiveCycle Workbench. I was able to invoke the service successfully. The service returns an XML-string, so the response is coming as CDATA content. <br /><br />I am unable to extract the CDATA content from the web-service response: Here is my service response:<br /><p><br /><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><br />     <soap:Body><br />          <ns1:getXMLExtractForAClaimResponse xmlns:ns1="http://service.integration.document.eams.edic.com"><br />               <ns1:out><br /><?xml version="1.0" encoding="UTF-8"?><EamsClaim><br />...................<br /></EamsClaim></ns1:out><br />          </ns1:getXMLExtractForAClaimResponse><br />     </soap:Body><br /></soap:Envelope><br /></p><br />I am struck over here. Please help me in resolving this. I created a variable "cdataList" of type List containing objects of type "document", and then I tried to get the webservice response as that list. After invocation of my service, the cdataList element is empty. <br /><br />Thanks in advance<br />Sivajee.

    Here is the msg... Somehow its not getting the entire data which I posted... Even though I am putting the code, the CDATA element after <ns1:out> is not getting displayed<br /><code><br />soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><br />     <soap:Body><br />          <ns1:getXMLExtractForAClaimResponse xmlns:ns1="http://service.integration.document.eams.edic.com"><br />               <ns1:out> XML STRING<br /><br /></ns1:out><br />          </ns1:getXMLExtractForAClaimResponse><br />     </soap:Body><br /></soap:Envelope><br /></code>

  • Webservice invocation

    Need help in invoking these webservices..
    There are two webservices that I am trying to invoke one
    after the other:-
    1) first web service "setupwebsession" sets a session. Here I
    have setup the session.webuserUI to a component.
    2) second service tries to get a profile but displays an
    error
    Here is the webservice consuming:-
    <cfinvoke webservice="
    http://localhost:8050/WebServices.cfc?wsdl"
    method="setUpWebUserSession"
    returnVariable="soo">
    <cfinvokeargument name="userName"
    value="[email protected]">
    <cfinvokeargument name="applicationToLogIn"
    value="atccWeb">
    </cfinvoke>
    <cfoutput> #soo# </cfoutput>
    <cfdump var="#Session.SessionID#">
    <cfinvoke webservice="
    http://localhost:8050/WebServices.cfc?wsdl"
    method="getProfileHTML" returnvariable="profilehtml">
    </cfinvoke>
    <cfoutput>#getProfileHTML#</cfoutput>
    I am trying to consume both these webservices but it displays
    a following error.
    Cannot perform web service invocation getProfileHTML.
    The fault returned when invoking the web service operation
    is:
    AxisFault
    faultCode: {
    http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString:
    [line 1, column 8] [--Catch Data--]
    type: Application
    tagname: CFOUTPUT
    template:
    C:/jboss-eap-4.3/jboss-as/server/atcc/tmp/deploy/tmp48291CTiWebServicesAPI.ear-contents/C TiWebServicesAPI-exp.war/CTiWebServicesAPI.cfc
    Line: 75; Column: 3
    ErrorCode:
    message: session.WebUserUI.getWebProfileHTML() doesn't exist.
    detail: Error at line 1, column 8
    faultActor:
    faultNode:
    faultDetail:
    http://xml.apache.org/axis/}hostname:124426-SECOM1
    The error occurred in
    C:\ColdFusion8\wwwroot\selfprojects\webservices1.cfm: line 10
    8 : <cfdump var="#Session.SessionID#">
    9 : <cfinvoke webservice="
    http://localhost:8050/webervices.cfc?wsdl"
    10 : method="getProfileHTML" returnvariable="profilehtml">
    11 : </cfinvoke>
    12 : <cfoutput>#getProfileHTML#</cfoutput>
    Resources:
    Check the ColdFusion documentation to verify that you are
    using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
    .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET
    CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Remote Address 127.0.0.1
    Referrer
    http://localhost:8500/selfprojects/
    Date/Time 19-Mar-09 04:27 PM
    Stack Trace (click to expand)
    at
    cfwebservices12ecfm1268558828.runPage(C:\ColdFusion8\wwwroot\selfprojects\webservices1.cf m:10)
    coldfusion.xml.rpc.ServiceProxy$ServiceInvocationException:
    Cannot perform web service invocation getProfileHTML.
    at
    coldfusion.xml.rpc.ServiceProxy.invokeImpl(ServiceProxy.java:230)
    at
    coldfusion.xml.rpc.ServiceProxy.invoke(ServiceProxy.java:143)
    at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2222)
    at
    coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:417)
    at
    cfwebservices12ecfm1268558828.runPage(C:\ColdFusion8\wwwroot\selfprojects\webservices1.cf m:10)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
    at
    coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
    at
    coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
    at
    coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
    at
    coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    at
    coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.CfmServlet.service(CfmServlet.java:175)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at
    coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )
    at
    coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.service(FilterChain.java:101)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
    at
    jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    quote:
    Originally posted by:
    shafiur
    Need help in invoking these webservices..
    There are two webservices that I am trying to invoke one
    after the other:-
    1) first web service "setupwebsession" sets a session. Here I
    have setup the session.webuserUI to a component.
    2) second service tries to get a profile but displays an
    error
    Here is the webservice consuming:-
    <cfinvoke webservice="
    http://localhost:8050/WebServices.cfc?wsdl"
    method="setUpWebUserSession"
    returnVariable="soo">
    <cfinvokeargument name="userName"
    value="[email protected]">
    <cfinvokeargument name="applicationToLogIn"
    value="atccWeb">
    </cfinvoke>
    <cfoutput> #soo# </cfoutput>
    <cfdump var="#Session.SessionID#">
    <cfinvoke webservice="
    http://localhost:8050/WebServices.cfc?wsdl"
    method="getProfileHTML" returnvariable="profilehtml">
    </cfinvoke>
    <cfoutput>#getProfileHTML#</cfoutput>
    You are trying to output the function name instead of the
    returnvariable.

  • RESTful webservices invocation from OSB.

    Can some one please explain the best way to develop the OSB service to invoke the Restful services.
    1. Only proxy service is enough to handle the request, no need of business service?
    2. when moving the code from one env to other, we use a business service to update endpoint url which is the common approach we generally follow, to make the osb service loosely coupled. how to use the business service when invoking the restservice? does we have the base uri value in the transport url and will get appended with the relative-uri value which we frame as part of the request in the outbound variable in the proxy settings?
    3. when invoking the rest service do we need to append all the request message to the url itself or the request can be passed separately as request body and the main rest uri will have only the key fields as part of the relative-uri?
    4. If we receive huge request message does the URL support the entire request?
    5. how the response/error will be returned when calling the Restful webservice?
    I am assuming this appraoch. Can some one please confirm does this approach works with RESTful service invocation from OSB.
    Request processing:
    Source System request-> Proxy Service -> Transformation to end system specific -> Business service (with base-uri -> http://mainappl.com/web/cmr/{relative-uri from outbound transport}) -> endsystem
    Response processing:
    endsystem Response/Error -> Business Service -> Proxy Service -> transformation to source system specific -> source system.
    Please advice which is the best approach to follow while invoking the RESTful webservices from OSB.
    Thanks..
    Edited by: user12679330 on May 5, 2010 4:33 AM
    Edited by: user12679330 on May 5, 2010 5:00 AM

    Hi,
    Thanks for the update. Can you please explain the above mentioned approach works or how it should be?
    I have one requirement, can some one explain the implementation for this:
    I have one element which is of type unbound. I need to map this element to a single enelement value by separating each element value with a ;, before that I need to check wheteher this element(s) are present in the request then need to appened all these element values to a single element and the end of this element need to append default values.
    Scenario:
    <student>
    <name>asd</name>
    <address>
    <street>street1</street>
    <street>street2</street>
    <street>street3</street>
    ||
    ||
    </address>
    to be mapped it to:
    <student>
    <field name="NAME">asd</field>
    <field name="ADDRESS">street1;street2;street3;default1;default2;default3</field>
    </student>
    Here need to check if street names are present in the request xml, if yes ned to assign it to ADDRESS as mentioned above if street names present or not need to append the default values at the end to the ADDRESS field.
    Thanks in advance.

  • JDeveloper Webservice Creation Question

    While Creating webservices through JDev 11g from WSDL, we are presented with two option :-
    1) Java EE 1.5, with support for JAX-WS annotations
    2) Java EE 1.5, with support for JAX-WS RI
    Could you please let me know which one is the most efficient option.
    I see that in the second option the webservices are configured thru another file(sun-jaxws.xml) and all the requests are directed or handled by a common servlet whereas in the first option we usually configure the endpoint implementation directly in web.xml.
    Another question that i have related to webservices creation - Does webservices wizard internally call wsimport to generate classes from WSDL. When i use wsimport to generate classes using WSDL and specify a jaxb global binding file to convert datatypes, this works correctly but using JDeveloper doesn't creates the Adapter classes to convert the datatypes.
    Answers to the above would be helpful in reaching a decision on which approach to follow. Thanks.

    Hi,
    yes. Please see the how-to document we provide on otn.oracle.com/products/jdev
    Frank

  • Difference between HTTP and WebService Invocation in OracleCRM OnDemand

    Hi All
    Apart from the session-id returned by the method method of invocation , are there any concrete differences in performing a operation on OracleCRM by using HTTP ( say browser UI of Oracle ) and WebServices provided by them .

    Hi Jay,
    Thanks for your valuable inputs
    Tried the same thing which you mentioned and restarted the services.
    But no luck..
    Is there anything to be done on the back-end to display 1st link in microsoft word format.
    Right now it's opening in html format. I tried copying *.rtf* to *.doc*
    but still its opening in html format only
    1) https://ucrmskr.apac.nsroot.net:10301/forms/html/001103__KR.rtf
    Here when I try the 2nd link it's opening propely in microsoft word format
    2) http://scrmskr.apac.nsroot.net:7801/forms/html/001103__KR.rtf
    I tried local machine level settings but it's not working
    Kindly help to let me know what needs to be done for the same.
    Thanks & Regards,
    Harish

  • GSOAP invocation question

    Hi,
    We have created a custom service by merging two OOTB services GeneratePDF service and ApplyPolicy services.
    Invoking this custom service via gSOAP web service fails with the following error.
    SOAP 1.1 fault: SOAP-ENV:Server.userException [no subcode]
    "ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error."
    ALC-PDG-011-020-The source file you submitted is not supported by this version of PDF Generator.
    Anyone has any examples of using gSOAP to invoke GeneratePDF service?
    Can post a code snippet if required.
    Thanks
    Praveen Ramamurthy

    looks like you did not specify the fileName parameter for the createPDFG operation, for example if you are converting a Word doc, specify the filename as abc.doc,if converting ppt filename would be abc.ppt(can be anyname as long as there is a the correct extension such as .doc extension)
    If it still does not works after you provide the filename
    mail me the process [email protected]

  • File - XI -WebService Scenario Question

    XI is using Receiver SOAP Adapter to trigger webservice. This scenario is executed every 15 mins. Webservice admin saying that there are 10 to 15 Xi user Ids at any given point time in the receiving server. Why does the User Id stays active even after successfully completing the call ?. How can we control in XI to logoff after each call from the receiving server?. Appreciate any help or direction to this problem.

    Hi,
    Can you pleae tell us whether you are using asynchronous or synchronous? If synchronous then you have to change it asynch because it File adapter doesnot support synchrnous messages?
    ---Satish

  • Transaction timeout in BPEL for webservice invocation

    [ERROR] [] [oracle.soa.bpel.engine.dispatch] [tid: orabpel.invoke.pool-4.thread-3] [userId: <anonymous>] [ecid: e8538d226bae7c2a:1914e8c0:148c67a5f26:-8000-00000000000031a2,1:27459] [APP: soa-infra] failed to handle message[[
    weblogic.transaction.internal.TimedOutException: Transaction timed out after 299 seconds
    BEA1-166C02569896A59BE380
                    at weblogic.transaction.internal.ServerTransactionImpl.wakeUp(ServerTransactionImpl.java:1788)
                    at weblogic.transaction.internal.ServerTransactionManagerImpl.processTimedOutTransactions(ServerTransactionManagerImpl.java:1676)
                    at weblogic.transaction.internal.TransactionManagerImpl.wakeUp(TransactionManagerImpl.java:1988)
                    at weblogic.transaction.internal.ServerTransactionManagerImpl.wakeUp(ServerTransactionManagerImpl.java:1586)
                    at weblogic.transaction.internal.WLSTimer.timerExpired(WLSTimer.java:35)
                    at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
                    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
                    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
                    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Message handle error.
    error while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the reported exception is: Transaction Rolledback.: weblogic.transaction.internal.TimedOutException: Transaction timed out after 299 seconds
    BEA1-166C02569896A59BE380
    This is happening when invoking a webservices from BPEL and if it takes more than 5 minutes we are getting above Error
    we have tried out SyncMaxWaitTime Property in BPEL configurations through SOA administration menu of EM. Also tried by increasing JTA timeout seconds in Service--JTA @ weblogic console.
    Any suggestion or pointers..

    Hi,
    Could help set the following...
    The timeouts should be configured based on the below condition
    SyncMaxWaitTime < BPEL EJB's transaction timeout < Global Transaction Timeout
    The values could be: SyncMaxWaitTime (3600) ; BPEL EJB's transaction timeout (3600); Global Transaction Timeout JTA (7200)
    Setting the SyncMaxWaitTime :
    This is the maximum time a synchronous BPEL process waits before it times out to get the response from another BPEL or a web service
    Login to EM console
    Expand SOA and right click on "soa-infra"
    From context menu, select SOA Administration –> BPEL properties
    Click on "More BPEL Configuration properties"
    Enter the appropriate value for the SyncMaxWaitTime
    Setting the global transaction timeout at Weblogic Domain Level:
    This property controls the transaction timeout seconds for active transactions. If the transaction is still in the "active" state after this time, it is automatically rolled back. 
    Log into Oracle Weblogic Administration Console.
    Click Services -> JTA.
    Change the value of Timeout Seconds to the required value (the default is 30)
    Click Save.
    Restart Oracle Weblogic Server.
    Overriding the transaction timeout setting for BPEL EJB's:
    The timeout properties for the EJB's control the particular timeout setting for the SOA application, overriding the global setting specified by the JTA timeout 
    Log into Oracle Weblogic Administration Console.
    Click Deployments.
    Expand soa-infra -> EJBs.
    Click on the configuration tab for the timeout setting for each of EJB’s listed below and the change the time out values as required.
    Following EJBs need to be updated:
    BPELActivityManagerBean  
    BPELDeliveryBean
    BPELDispatcherBean
    BPELEngineBean
    BPELFinderBean
    BPELInstanceManagerBean
    BPELProcessManagerBean
    BPELSensorValuesBean
    BPELServerManagerBean
    Click Save.
    Restart Oracle Weblogic Server.
    I hope you find it useful!
    hugs!

  • REST Webservice invocation from Java

    Hi Guys,
    I am developing an application that needs to invoke a REST webservice and submit XML data to it. The server will then process the request XML data, and return a result, etc.
    I have never worked with REST and have spent hours researching it on the NET. I have done SOAP calls in the past, but this seems to be eluding me some what.
    Does anyone know of any useful links that explains REST implementation, frameworks / jars needed, or possibly even an example or two that shows me how to submit data via REST to a URL (would be first prize :) ).
    Any help would be greatly appreciated.
    Many thanks
    Mark

    http://java.sun.com/developer/technicalArticles/WebServices/restful/

  • WebService invocation - variable @namespace errro

    Hi,
    I am getting the below error. (Variable @namespace is not
    defined)
    I do not know webservices, I am just trying to access a WSDL
    file from
    flex. Can you please let me know why Flex shows this error?
    On which
    element is it expecting a namespace. The WSDL file I am using
    already
    has a targetNamespace.
    Even if I do not call any methods from the webservice, I get
    this error.
    Even if I do only following it give me error. i.e it is
    probably
    tyring to invoke the webservice and check it.
    <mx:WebService id="webService" wsdl="
    http://someurl?wsdl">
    <mx:operation name="getData"
    result="resultHandler(event);"
    fault="mx.controls.Alert.show(event.fault.faultString);"
    />
    </mx:WebService>
    Thanks in advance.
    Regards,
    Neha
    ReferenceError: Error #1065: Variable @namespace is not
    defined.
    at
    mx.rpc.xml::SchemaLoader/schemaImports()[E:\dev\3.0.x\frameworks\projects\rpc\sr\
    c\mx\rpc\xml\SchemaLoader.as:102]
    at
    mx.rpc.wsdl::WSDLLoader/schemaImports()[E:\dev\3.0.x\frameworks\projects\rpc\src\
    \mx\rpc\wsdl\WSDLLoader.as:253]
    at
    mx.rpc.wsdl::WSDLLoader/resultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\
    \mx\rpc\wsdl\WSDLLoader.as:162]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::dispatchRpcE\
    vent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:168]
    at
    mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::resultHandle\
    r()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:191]
    at
    mx.rpc::Responder/result()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Respo\
    nder.as:41]
    at
    mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\r\
    pc\AsyncRequest.as:74]
    at
    DirectHTTPMessageResponder/completeHandler()[E:\dev\3.0.x\frameworks\projects\rp\
    c\src\mx\messaging\channels\DirectHTTPChannel.as:381]

    I got the same error. How did you solve your problem?  By the way, on your post:
    var operation:Operation = request.getOperation("getData") as Operation;
    What's the definition of request?  Thanks.

  • Webservice invocation problem

    Hi All,
    I am trying to call a webservice deployed on Sunone app server 8.2. I have created the client stubs using wscompile tool. I am not getting any response when calling the webservice, the request is not sent to server at all. Following is the client code:-
    XdmOperationsPortTypeService_Impl objImpl = new XdmOperationsPortTypeService_Impl();
                   XdmOperationsPortType_Stub stub = (XdmOperationsPortType_Stub)objImpl.getXdmOperations();
                   javax.xml.soap.SOAPElement strXDMQuery=null;
    strXDMQuery.setTextContent("queryRequestForXDM");
    javax.xml.soap.SOAPElement strXDMQueryResponse = stub.query(strXDMQuery);
    where query is the webservice function i am tryng to call. XdmOperationsPortType_Stub and XdmOperationsPortTypeService_Impl are auto generated files.
    in the query function of XdmOperationsPortType_Stub class, the program flow is stopping at the following line
    StreamingSenderState state = start(_handlerChain);
    Would appreciate any pointers on this.

    What does your code look like?
    By the error it appears you are trying to access a field called "FAULT_CODE_IOEXCEPTION" which doesn't exist.

  • Jdev 11g: Webservice invocation using DII fails

    Hi,
    I am trying to invoke a webservice using DII mechanism.
    Here is the simple java code in a main() method..Just copy paste , build and run.
    package oracle.apps.atk.utils;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.xml.rpc.Call;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.JAXRPCException;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.ParameterMode;
    public class DynamicProxyClient {
        public DynamicProxyClient() {
        public static void main(String args[]) {
            try
                *  URL of the web service
                String wsdlURL = "http://www.webservicex.net/stockquote.asmx?WSDL";
                String address = "http://www.webservicex.net/stockquote.asmx";
                String namespaceURI = "http://www.webserviceX.NET";
                String serviceName = "StockQuote";
                String portName = "StockQuoteSoap";
                ServiceFactory factory = ServiceFactory.newInstance();
                * Create an instance of the Service with the given service QName
                Service service = factory.createService(new  QName(serviceName));
                Call call = service.createCall(new QName(portName));
                call.setTargetEndpointAddress(address);
                QName intQName = new QName("http://www.w3.org/2001/XMLSchema", "int");
                 * Set operation name to invoke.
                call.setOperationName(new QName(namespaceURI,"GetQuote"));
                 * Add parameters definitions in the call object.
                call.addParameter("GetQuote", intQName, ParameterMode.IN);
                 * Set definition of the return type.
                call.setReturnType(intQName);
                Object[] inParams = new Object[1];
                inParams[0] = new String("ORACLE");
                //String ipAddress= ((String)call.invoke(inParams));
                call.invoke(inParams);
                //System.out.println("ipAddress = "+ipAddress);
            catch (Exception e)
                e.printStackTrace();
    }The exception thrown is
    javax.xml.rpc.soap.SOAPFaultException: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: .
       at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
       at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
       at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
         at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:572)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:414)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:121)
         at oracle.j2ee.ws.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:99)
         at oracle.j2ee.ws.client.dii.BasicCall.invoke(BasicCall.java:803)
         at oracle.apps.atk.utils.DynamicProxyClient.main(DynamicProxyClient.java:67)

    Hallo Shay,
    Thx for your answer. I have given this a try in JDev 11, but in the "Oracle PL/SQL Java EE Web Service Wizard" there are currently only this two options:
    - J2EE 1.4 with support for JSR181 JAX-RPC (deploy to OC4J 10.1.3 with Java annotations)
    - J2EE 1.4 with support for JSR181MR2 JAX-RPC (deploy to OC4J 11 with Java annotations)
    Only if I choose the WebService Assistent for some POJO it offers "Java EE 1.5, with support for JAX-WS Annotations".
    Is it planned in the final realease of JDev 11 to have JAX-WS also for PL/SQL WebServices?
    Thx a lot for helping

Maybe you are looking for

  • G62-225DX. HDMI audio not working.

    Computer recognizes HDMI port and video is working to TV. Trying to change to default in sound settings but won't change. When I test sound error message "failed to play test tone"

  • Line Item Sorting in Payment Proposal in F110 (Automatic Payment Program)

    Hi all SAP Gurus... I really need a help here... In FBZP, I set up 'note to payee lines on the form' restricted to 17 rows. And the sorting for line items, I use 'document date'. For example, I have 68 open items. When I run F110, in the payment prop

  • ZEN MICRO....Wireless headphones PLease write B

    Hi Does anybody know of wireless headphones for the zen micro? ThanksMessage Edited by Yankeesrock325 on 0-28-2006 0:50 PM

  • Set preferences to open a jpeg

    Hi My images open to "Preview" by fault.  I'd prefer to use an application called "Image Browser"  as my default to open jpegs. How do I change this setting? Thanks AS

  • This iPhone4s battery is draining the life out of ME! Help?

    I just made the jump to my first smartphone because of the iPhone 4s. So many wonderful applications and functions. Mostly Siri. I'm so dissapointed. I have only had it 3 days. The battery drains so fast, I have to charge it 2x or 3x a day. My old LG