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.

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>

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

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

  • 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

  • JCAPS 5.12 - modifying SOAP header for webservice Invocation

    I am trying to call an external web service from JCAPS 5.1.2 and need to set a token in the SOAP header. I am able to do this in other client implementations, however, the methods to modify the header don't seem to be exposed within JCAPS 5.1.2 or I do not know how to find the methods.
    Has anyone tried this before?

    Hi Experts,
    I'm trying to protect a web service deployed in jcaps 5.1.1, using SAML assertions against an Access Manager 7/7.1, the web services clients are both, web and standalone applications, I also have read netbeans tutorials, that expose how to implement identity webservices using AppServer 9.1 + AccessManager 7.1 using the SAML Holder of key and other security mechanisms, but this implementation requiere modifications to the server.policy file to add support to SOAP message security providers and HttpServlet message security providers, the addition of a library called amwebservicesprovider.jar to the classpath suffix (this library implements the jsr-196 java Authentication Service Provider Interface for Containers) and aditional configuration required in the AM side that is not detailed in the tutorials.
    Could someone guide me on how to protect the acces to a web services deployed in the jcaps logicalhost based on AM roles assigned to users?
    Any help is aprecciated
    Juan

  • Proxy Settings for WebService invocation

    Hi,
    I have a bean which is exposed as a WebService on WebAS on a machine A. Within this bean, I call another WebService, which is NOT running on WebAS but on Axis on another machine B.
    For the call to the WebService I have NOT generated a proxy in Netweaver Developer Studio, but have created the Stub with Axis WSDL2Java tool. (When I tried to generate the proxies in Developer Studio it would say there was a problem during generation, without giving any details).
    When I call the Axis WebService from a browser on machine A, everything works fine, provided that I've set the right proxy settings.
    I can also use the generated Stubs to call the service. However, when I call it from within the beans running in WebAs, I get a timeout, obviously due to inadequate proxy settings in WebAS.
    Now, I've searched through the administration guide and tried to do the configuration as described in
    http://help.sap.com/saphelp_nw04/helpdata/en/7c/f257422d095542e10000000a1550b0/content.htm
    But this showed no effect. I also restarted the server to ensure that the configuration is updated properly.
    (As a test I also tried to change the WS Clients Socket timeout, but for some reason this timeout did not change when I had restarted the server and tried the Web Service again (from Web Service Navigator). So I don't even know if I am configuring the right settings..)
    Does anybody have an idea what I'm doing wrong or which other configuration I might have to set?
    Thanks alot for any help..
    Katrin.

    Hello Katrin,
    did you solve your problem mentioned above?
    If yes, could you please describe me, what kind of settings you have made in the visual admin to test the webservice without connection time out?
    Thank you in advance for your help.
    Kind regards, Patrick.

  • Webservice invocation - Custom class

    Hi,
    I am new to Jdeveloper and iam trying to invoke a webservice which does insert operation. I am invoking webservice using webservice data control mechanism.
    In my data control pallette i have a method called conInsert(Object,String) where it takes two parameters
    1) first parameter is of type java.lang.Object ( some custom class) - SiebelMessage_ListOfContactInterface_Contact
    2) second parameter is of type java.lang.String - statusObject
    WSDL entry for the conInsert operation:
    <message
    name="ConInsert_Input"
    <partname="SiebelMessage"
    type="xsdLocal0:ListOfContactInterfaceTopElmt"
    </part
    <partname="StatusObject"
    type="xsd:string"
    </part
    </message
    <messagename="ConInsert_Output"
    <partname="SiebelMessage"
    type="xsdLocal0:ListOfContactInterfaceTopElmt"
    >
    Now i need to create a form which accepts above specified fields and submit the form using conInsert (webservice operation). How can i create form accepting first and second parameter ?
    Should i drag conInsert(Object;,String) method from Data control pallette to my jspx page ?
    Can anyone help me with the solution.
    Regards,
    Ahmed.

    Shay,
    I have tried the blog post url by Susan Duncan and i was able to map the fields through backing bean and through creating web service proxy. But while hitting the submit buttion i was encounted with below error.
    JBO-29000: Unexpected exception caught: java.rmi.RemoteException, msg=Error parsing envelope: (1, 1) Start of root element expected.; nested exception is: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.*
    Error parsing envelope: (1, 1) Start of root element expected.; nested exception is: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.*
    I am not sure about why iam getting this error ?
    btw, i have analyzed the sending and receiving packets from http analyzer
    here is the request:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://siebel.com.fmw1" xmlns:ns1="http://www.siebel.com/xml/Contact%20Interface">
    <env:Body>
    <ns0:ConInsert>
    <SiebelMessage>
    <ns1:ListOfContactInterface>
    <ns1:Contact>
    <ns1:Id>332</ns1:Id>
    <ns1:FirstName>asdf</ns1:FirstName>
    <ns1:LastName>asdf</ns1:LastName>
    </ns1:Contact>
    </ns1:ListOfContactInterface>
    </SiebelMessage>
    <StatusObject>asdf</StatusObject>
    </ns0:ConInsert>
    </env:Body>
    </env:Envelope>
    Here is the response:
    HTTP/1.1 200 OK
    Date: Tue, 04 Aug 2009 14:12:04 GMT
    Server: IBM_HTTP_Server
    siebel-error-symbol-1: Unknown Error Symbol
    siebel-error-message-1: Invalid external service source 'WebService'. Check the server configuration or the request.(SBL-UIF-00243)
    Content-Length: 0
    Content-Type: text/xml; charset=UTF-8
    Could you please tell me is anything wrong with my config ? looks like iam not able to reach server???
    Regards,
    Ahmed.

Maybe you are looking for

  • How can I get album artwork from itunes to ipod with manual music managemen

    I have chosen to manage music manually since there are four ipods that use the same computer in my home. I recently upgaded to itunes 7 and got my album art updated but can't figure out how to get it to the ipod without syncing the whole thing. Thank

  • Using a variable for a query? Advice needed

    Hello everyone, I am new to JDBC and have a small problem with my application: I want the user to enter a word and depending on the word he enters, the program will run a query searching for that word. For example the user input is stored in a variab

  • Keeping a JWindow on top

    I know this has been asked before but none of the answers I have tried have been suitable as they either don't work or keep the focus. I have a JWindow that I am using as an indicator panel to show various states. This window needs to be on top of al

  • Screen unpredictably shutting down during phone calls.

    Anyone understand the logic behind when the screen shuts off during a phone call. I'm using the keypad a fair bit and sometimes the screen will shut down during a call, hiding the keypad. I can shake it and it will come on again but then sometimes it

  • No version shown on my WRT54GS router label...

    ...should I assume version 1.0? Also, when I go to download new firmware (or anything else assuming version 1.0), I get a new window with nothing in it, and it says "Done" in the lower left. Please help. Thanks, Scott Message Edited by ScottieS on 09