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.

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.

  • ReferenceError: Error #1065: Variable @namespace is not defined.

    I am using FB4 but SDK 3.5.  I created a webservice to call a webservice by .Net.  The related codes are listed below
    <mx:WebService id="ws"   wsdl="{URL_WSDL2}" fault="wsHandleFault(event)"  useProxy="false"  >
      <mx:operation name="GetDistrict"
       resultFormat="object"
       result="GetDistrict(event)" />
      <mx:operation name="GetStates"
       resultFormat="object"
       result="GetStates(event)" />
    </mx:WebService>
    private function LoadData():void {;
      ws.getOperation("GetDistrict").send();
      ws.getOperation("GetStates").send();
      btnLoad.enabled = false;
    However, I got runtime error:
    ReferenceError: Error #1065: Variable @namespace is not defined.
    at mx.rpc.xml::SchemaLoader/schemaImports()
    at mx.rpc.wsdl::WSDLLoader/schemaImports()
    at mx.rpc.wsdl::WSDLLoader/resultHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
    at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
    at mx.rpc::Responder/result()
    at mx.rpc::AsyncRequest/acknowledge()
    at DirectHTTPMessageResponder/completeHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()
    I really don't know how to fix it.  Wish someone can share his/her experience.  Thanks.

    When creating a Web Service in .NET, specifically a WCF based Web Service, the auto generated code tends to have an empty namespace (for you to fill). If you specify a namespace for the service contract and behavior this tends to resolve the Flex issue.
    e.g. in your .NET service or service interface code you can specify them as attributes and would look something like:
    ' VB
    Imports System.ServiceModel
    <ServiceContract(Namespace:="http://somedomain.com")>
    <ServiceBehavior(Namespace:="http://somedomain.com")>
    Public Class MyWebService
    // C#
    using System.ServiceModel;
    [ServiceContract(Namespace:="http://somedomain.com")]
    [ServiceBehavior(Namespace:="http://somedomain.com")]
    public class MyWebService
    Hope that helps someone!
    (I realise this post is a bit old, but shows up high in Google for the error message, so have posted for the benefit of anyone finding it)

  • Variable namespaces in ALSB - creation -

    Hi ,
    Can anyone tell how to create variable namespaces in ALSB . What is the difference between Variable and UserDefined namespaces. I have searched the docs, and they explain only about Variable structures. Any help greatly appreciated. I am using ALSB 3.0 on WLS 10.
    Edited by: kasi.s on 21-Nov-2009 04:47

    Hi Anuj,
    Thanx for answering,
    The variable namespaces apears in the same section(at the left) where the defined and default namespaces are located, and it seems to populate those from what you have difined in your WSDL but when you modify the WSDL this are not refreshed and you can have in there old namespaces not used any where else.
    Kind Regards!!

  • Generating plsql webservices, output different namespaces not consistent

    We've defined some database-packages which we want to publish as webservice. We use the option in jdeveloper to generate the plsql webservice.
    If we look in the generated wsdl generated by user A, the wsdl gives namespaces like :
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://someurl/AlgemeenWS.wsdl/types/"
         elementFormDefault="qualified" xmlns:tns="http://nl/fundeon/fundit/someurl/AlgemeenWS.wsdl/types/"if user B generates the same webservice it gives namespaces lile :
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://someurl/AlgemeenWS.wsdl"
         elementFormDefault="qualified" xmlns:tns="http://nl/fundeon/fundit/someurl/AlgemeenWS.wsdl"Any idea how we can control this generated result?
    update :
    when we generate the classes, etc for the first time after selecting the program units to publish...it generates the correct wsdl.
    when we repeat this step (second time of generation), we get the wrong namespace in the wsdl and the log gives us this warning :
    WARNING: Ignoring target namespace for schema: "http://someurl/relatieWS/RelatieWS.wsdl", WSDL target namespace is used for the value types in the same package as Service Endpoint: "nl.packagename.relatieWS.RelatieWSUser_getadviseur_Out"

    Hi Eric,
    I experience exactly the same problem.
    The first time the namespace contains 'types', regenerating the webservice afterwards omits the 'types' part.
    This has some very awkward effects as the webservice envelop and any proxies are affected by this bug.
    I have tried with both 10.1.3.1 & 10.1.3.2, both have the same problems.
    I am looking into regenerations of the webservice using ant tasks, there might be a bug in JDeveloper itself.. who knows...
    perhaps someone from oracle can comment / test this and open up a ticket for resolving....
    Fred Dullemond

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

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

  • 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

  • WebService - Unsupported Schema Namespace

    Hi,
    I am getting the below error when I try to call the web service. Any suggestions to resolve this problem will be a great help.
    <?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <soap:Fault>
    <faultcode>soap:VersionMismatch</faultcode>
    <faultstring>Unsupported schema namespace: http://schemas.xmlsoap.org/ws/2002/12/secext</faultstring>
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>
    (400)Bad Request
    at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j
    ava:744)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
    y.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at com.openq.crmondemand.ws.integrationevent.IntegrationEventWSStub.getE
    vents(IntegrationEventWSStub.java:771)
    at com.openq.webservices.batch.SiebelEventImporter.importEvents(SiebelEv
    entImporter.java:61)
    at com.openq.webservices.batch.SiebelEventLoaderMain.main(SiebelEventLoa
    derMain.java:26)

    Hello,
    The following namespaces are supported by CRM On Demand:
    ■ Draft Namespaces:
    ■ wsse="http://schemas.xmlsoap.org/ws/2002/04/secext"
    ■ wsse="http://schemas.xmlsoap.org/ws/2002/07/secext"
    ■ Version 1.0 Namespace:
    ■ wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-secext-1.0.xsd"
    Thanks,
    Sean

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

  • 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

  • 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

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

Maybe you are looking for

  • SAP-R/3 reports

    Hi, Where to find Sales and Finance reports in SAP-R/3 and how to use that reports in BW. Thanks Asim Edited by: asim khan on Oct 11, 2009 9:44 AM

  • Eyedropper bug

    hi everyone, it seems Photoshop's eyedropper or CMS has a problem. I have attached a sample .psd file so that everyone can reproduce the error. Just open it and switch Layer1's blending mode from Screen to Linear Dodge. You will notice that as a resu

  • Changes are not reflecting in Quality server

    Dear All, We have recently installed the Portal 7.4 servers. Currently we are having two servers Development and Quality.We have Configured NWDI using CMS and created tracks(Defined run-time systems as Development and Consolidation)  we are able to c

  • Transport appraisal template

    Hi, has anyone used the transport option within phap_catalog for appraisal templates yet? When I try to transport it writes an customizing request but just with entries for Infotypes 1000 1001 and 1002. But the template is not visible within the rece

  • I recently downloaded FCP X and now FCP 7 won't open, any ideas why?

    All my projects are in FCP 7 but I am about to start usiing FCP X. Since I downloaded FCP X I am unable to open 7 from Applications or XML Files, please help.