Object store for web service call?

Hi all,
If I can't do synchronous web service calls I remember
reading something about an object that you can send with the call
containing attribute you set and it will be included in the
callback. I can use this to store some info I need for the call
back on the client side.
I cant find info about this object now despite searching high
and low. If this object exists what is it called (callbackStore?)
thanks
Mark

Hi Mike,
Good news!!! I figured out what's happening.
The codes that I posted were related to the Process. They are process status codes.
What you are looking for is related to the Job. So here are the job status codes.
JOB_STATUS_UNKNOWN = 0 (default)
JOB_STATUS_QUEUED = 1
JOB_STATUS_RUNNING=2
JOB_STATUS_COMPLETED=3
JOB_STATUS_FAILED=4
JOB_STATUS_TERMINATED=5
JOB_STATUS_SUSPENDED=6
JOB_STATUS_COMPLETE_REQUESTED=7
JOB_STATUS_TERMINATE_REQUESTED=8
JOB_STATUS_SUSPEND_REQUESTED=9
JOB_STATUS_RESUME_REQUESTED=10
cheers,
Parth

Similar Messages

  • Communication Warnings for Web Service Calls

    The Flex 3 documentation states:
    "SWF files that are assigned to the local-with-networking
    sandbox forfeit their local file access. In return, the SWF files
    are allowed to access data from the network. However, a
    local-with-networking SWF file is still not allowed to read any
    network-derived data unless permissions are present for that
    action, through a cross-domain policy file or a call to the
    Security.allowDomain() method."
    However, when we embed an SWF with a sandbox type of
    local-with-network in a PDF file, when that PDF file is read off
    disk we get a large volume of warning dialogues -- one for each web
    service call that the Flash makes. Since the SWF is
    local-with-networking, we assumed that these communications were
    allowed but the prompts create a very poor user experience. We have
    an appropriate crossdomain file set up. What else do we need to do
    to avoid these prompts?
    Terry. ([email protected])

    Folks, any thoughts?
    I appreciate your help.
    praveen

  • Problem in passing/returning objects over dynamic web service call

    Hi Friends,
    I am beginner in java web service.
    Here is the problem I am facing when I pass/return user defined objects to remote web service method using dynamic we service call.
    The client can call the remote web service method in 2 ways.
    1. By generating client stubs using WSDL file
    - In this case, I am able to pass/return the user defined objects to remote method without any issue only when the server side web services are deployed in any server(jboss)
    - But in java 1.6 & above, the web services can be deployed without server using endpoint. In this case, I am not able to pass/return objects over web service calls.
    2. Without generating client stubs (dynamic web service call)
    - This will establish a connection at run time using the given WSDL file (I have attached the document). I have to form an XML(This will contain API name, arguments) string as input at run time
    - In this case, it allows only string as argument while passing & returning.
    Please let me know if you can help me on this.
    Regards,
    pani

    I'm not sure about your question, but this might help:
    [http://forum.java.sun.com/thread.jspa?threadID=5251188|http://forum.java.sun.com/thread.jspa?threadID=5251188]
    You might also want to read on JAXB.

  • System processes needed for web service call

    Hi experts,
    one theoretical question: how about the system processes needed for a web service call? If have created a test service that does nothing except to wait for 10 seconds. When I call it from outside, no extra process is busy (as seen in trx SM50). Is it possible that one web service call (from outside -> SAP machine) does not need a DIA or BTC process on SAP machine?
    Thanks in advance for your help!
    Kind regards, Matthias

    Hi,
    Of course a web service needs a dialog workprocess to run.
    But if you used the "wait" abap instruction, it may be that this instruction frees the work process ?
    Regards,
    Olivier

  • StatusCode values for web service call?

    I am trying to check the status of a long-lived service using a web service call from a .NET application. I therefore don't have access to the java libraries where the StatusCode constants (enumerations?) are defined. Can someone either tell me a .NET library I can reference in order to use the constant values, or at least tell me what the integer values are, and I can make my own constants.
    In case it wasn't cIear, I am using webservice_invokeStatus( jobId ).
    Thanks,
    Mike Gates

    Hi Mike,
    Good news!!! I figured out what's happening.
    The codes that I posted were related to the Process. They are process status codes.
    What you are looking for is related to the Job. So here are the job status codes.
    JOB_STATUS_UNKNOWN = 0 (default)
    JOB_STATUS_QUEUED = 1
    JOB_STATUS_RUNNING=2
    JOB_STATUS_COMPLETED=3
    JOB_STATUS_FAILED=4
    JOB_STATUS_TERMINATED=5
    JOB_STATUS_SUSPENDED=6
    JOB_STATUS_COMPLETE_REQUESTED=7
    JOB_STATUS_TERMINATE_REQUESTED=8
    JOB_STATUS_SUSPEND_REQUESTED=9
    JOB_STATUS_RESUME_REQUESTED=10
    cheers,
    Parth

  • Sample java code for web service calling

    Hello,
    I need to call the web services for adding/updating records on Oracle On Demand Entities.
    In particular i need a sample code in java language that explain how to append the sessionid
    to the SOAP request when calling the web service.
    thanks in advance.

    Hi,
    Each time you perform any SOD Operation after Login, ensure have your JSessionId attached to your actual Web Service URL like in example below
    wsLocation ="https://secure-XXXXX.crmondemand.com/Services/Integration";
    jsessionId="8d928e8330d53c6f954b16194731bad78f5f111c2043.e34PaxyNchuLe34Rax4SchaKchz0n6jAmljGr5XDqQLvpAe";
    String url=wsLocation + ";jsessionid=" + jSessionId;
    Use this url for all your future SOD Operation till you logout.
    Regards
    Deepak H Andeli

  • Unable to Create/Update Sales Party Object via FA Web Service Calls.

    Invoking the updateSalesParty() and createSalesParty() methods of the Web Service proxy doesn't show any errors, but at the same time, it doesn't create or update the Sales party objects on the Fusion instance.
    ( https://rws-fap0267-crm.oracledemos.com/crmCommonSalesParties/SalesPartyService?WSDL )
    I've attached the java code and console output when I run the code for your ready reference.
    Any pointers on what I'm missing will be very helpful.
    Thanks in advance!
    Cheers,
    Sharath

    I tried invoking the WS -via SOAPUI - using the payload specified in WebService Sample Payload for Creating a Sales Account (Doc ID 1362190.1) and I get the follow error response.
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
      <env:Header/>
      <env:Body>
          <env:Fault>
            <faultcode>env:Server</faultcode>
            <faultstring><![CDATA[JBO-27023: Failed to validate all rows in a transaction.JBO-27024: Failed to validate a row with key oracle.jbo.Key[300000077245710 ] in OrganizationDEOJBO-27014: Attribute Type_c in OrganizationDEO is required.JBO-27014: Attribute Type_c in OrganizationDEO is required.JBO-27024: Failed to validate a row with key oracle.jbo.Key[300000077245711 ] in PartySiteEOJBO-HZ:::HZ_NO_LOCATION_FOUND: <MESSAGE><NUMBER>HZ-120085</NUMBER><TEXT>The location 958 is invalid. Use a valid location from the HZ_LOCATIONS table.</TEXT><CAUSE></CAUSE><ACTION></ACTION><DETAILS></DETAILS><INCIDENT></INCIDENT></MESSAGE>JBO-27024: Failed to validate a row with key oracle.jbo.Key[300000077245712 ] in PartySiteUseEO: nullJBO-27024: Failed to validate a row with key oracle.jbo.Key[300000077245714 ] in PartyUsageAssignmentEO: null]]></faultstring>
            <detail>
                <tns:ServiceErrorMessage xmlns:tns="http://xmlns.oracle.com/adf/svc/errors/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                  <tns:code>27023</tns:code>
                  <tns:message>JBO-27023: Failed to validate all rows in a transaction.</tns:message>
                  <tns:severity>SEVERITY_ERROR</tns:severity>
                  <tns:detail xsi:type="tns:ServiceRowValErrorMessage">
                      <tns:code>27024</tns:code>
                      <tns:message>JBO-27024: Failed to validate a row with key oracle.jbo.Key[300000077245710 ] in OrganizationDEO</tns:message>
                      <tns:severity>SEVERITY_ERROR</tns:severity>
                      <tns:detail xsi:type="tns:ServiceAttrValErrorMessage">
                        <tns:code>27014</tns:code>
                        <tns:message>JBO-27014: Attribute Type_c in OrganizationDEO is required.</tns:message>
                        <tns:severity>SEVERITY_ERROR</tns:severity>
                        <tns:exceptionClassName>oracle.jbo.AttrValException</tns:exceptionClassName>
                        <tns:attributeName>Type_c</tns:attributeName>
                        <tns:objectName>OrganizationDEO</tns:objectName>
                      </tns:detail>
                      <tns:detail xsi:type="tns:ServiceAttrValErrorMessage">
                        <tns:code>27014</tns:code>
                        <tns:message>JBO-27014: Attribute Type_c in OrganizationDEO is required.</tns:message>
                        <tns:severity>SEVERITY_ERROR</tns:severity>
                        <tns:exceptionClassName>oracle.jbo.AttrValException</tns:exceptionClassName>
                        <tns:attributeName>Type_c</tns:attributeName>
                        <tns:objectName>OrganizationDEO</tns:objectName>
                      </tns:detail>
                      <tns:exceptionClassName>oracle.jbo.RowValException</tns:exceptionClassName>
                      <tns:objectName>OrganizationDEO</tns:objectName>
                  </tns:detail>
                  <tns:detail xsi:type="tns:ServiceRowValErrorMessage">
                      <tns:code>27024</tns:code>
                      <tns:message>JBO-27024: Failed to validate a row with key oracle.jbo.Key[300000077245711 ] in PartySiteEO</tns:message>
                      <tns:severity>SEVERITY_ERROR</tns:severity>
                      <tns:detail xsi:type="tns:ServiceRowValErrorMessage">
                        <tns:code>HZ:::HZ_NO_LOCATION_FOUND</tns:code>
                        <tns:message><![CDATA[JBO-HZ:::HZ_NO_LOCATION_FOUND: <MESSAGE><NUMBER>HZ-120085</NUMBER><TEXT>The location 958 is invalid. Use a valid location from the HZ_LOCATIONS table.</TEXT><CAUSE></CAUSE><ACTION></ACTION><DETAILS></DETAILS><INCIDENT></INCIDENT></MESSAGE>]]></tns:message>
                        <tns:severity>SEVERITY_RECOVERABLE_ERROR</tns:severity>
                        <tns:exceptionClassName>oracle.jbo.RowValException</tns:exceptionClassName>
                        <tns:objectName>PartySiteEO</tns:objectName>
                      </tns:detail>
                      <tns:exceptionClassName>oracle.jbo.RowValException</tns:exceptionClassName>
                      <tns:objectName>PartySiteEO</tns:objectName>
                  </tns:detail>
                  <tns:detail xsi:type="tns:ServiceRowValErrorMessage">
                      <tns:code>27024</tns:code>
                      <tns:message>JBO-27024: Failed to validate a row with key oracle.jbo.Key[300000077245712 ] in PartySiteUseEO</tns:message>
                      <tns:severity>SEVERITY_ERROR</tns:severity>
                      <tns:detail xsi:type="tns:ServiceErrorMessage">
                        <tns:severity>SEVERITY_ERROR</tns:severity>
                        <tns:exceptionClassName>java.lang.NullPointerException</tns:exceptionClassName>
                      </tns:detail>
                      <tns:exceptionClassName>oracle.jbo.RowValException</tns:exceptionClassName>
                      <tns:objectName>PartySiteUseEO</tns:objectName>
                  </tns:detail>
                  <tns:detail xsi:type="tns:ServiceRowValErrorMessage">
                      <tns:code>27024</tns:code>
                      <tns:message>JBO-27024: Failed to validate a row with key oracle.jbo.Key[300000077245714 ] in PartyUsageAssignmentEO</tns:message>
                      <tns:severity>SEVERITY_ERROR</tns:severity>
                      <tns:detail xsi:type="tns:ServiceErrorMessage">
                        <tns:severity>SEVERITY_ERROR</tns:severity>
                        <tns:exceptionClassName>java.lang.NullPointerException</tns:exceptionClassName>
                      </tns:detail>
                      <tns:exceptionClassName>oracle.jbo.RowValException</tns:exceptionClassName>
                      <tns:objectName>PartyUsageAssignmentEO</tns:objectName>
                  </tns:detail>
                  <tns:exceptionClassName>oracle.jbo.TxnValException</tns:exceptionClassName>
                </tns:ServiceErrorMessage>
            </detail>
          </env:Fault>
      </env:Body>
    </env:Envelope>
    Is there a way to see this error response when invoking the WS via a Java client-proxy?

  • Best practice for web service call

    I can add a web service using the standard data connection wizard - works fine. I also can do it all in Javascript which give me a bit more flexibility. Is there some guideline or wisdom for which is best?

    It all depends on your requirement..
    For example, if you know your webservice address at design time itself, then it would be better to put in the data connection tab.
    But if your webservice address changes at run time based on the environment your application is deployed in, then you can use the java script code to change the webservice address dynamically.
    Thanks
    Srini

  • Newscale Custom Code - AJAX Libraries - Web Service calls during ordering moment

    Authentication issues calling webservice that requires credentials to be passed. NTLM authentication. Web service we are calling works from Service Link with HTTPIWA2 adapter.This is on Windows environment. When in the ordering moment, i am being presented with a popup box asking for credentials.
    We are implementing a custom Newscale solution for Web Service calls during the ordering moment. I've installed and got the basic example working on our Windows based system. However, I'm trying to implement a more complex web service call that includes supplying credentials- domain userid password encrypted in the xdsproperties file. The web service we are calling has been successfully called by the service link HTTPIWA2 adapter, and independently using SOAP Sonar, so i don't feel the problem is with the web service.
    We are on a windows based server and the web service we are calling is on windows as well. In the ordering moment the web service is being called, but I'm being presented with popups asking for credentials for the server that Request Center is on.
    Has anyone successfully used this AJAX solution calling a web service using NTLM authentication?  I'd like to compare configurations to see what is missing. You can email me directly at [email protected]  Newscale PSG is on the case, but i was hoping to touch base with any other customers currently using this.
    thanks!

    A newer version of the Configuration Manager Client is installed. Cannot continue installing this version of the management point.
    Action ended 20:50:23: SmsDetectColocationDowngrade. Return value 3.
    Action ended 20:50:23: INSTALL. Return value 3.
    The installer certainly thinks that you still have a previous ConfigMgr client installed. Perhaps you haven't completely removed it. Use ccmclean.exe from the SMS 2003 tool kit.
    If that fails, why not just rebuild the server - you've said that this is a fresh install. I don't like too much messing at the beginning. This can be difficult enough - you need to start with a clean installation of the product.
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

  • Invalid Content Type Error for Web Service

    Hi Experts,
    We have a XI / PI Web Service, and have created an Adaptive Web Service Model for the same. For using this web service model, we have created a HTTP destination of type WSDL.
    This configuration works great in our development and consolidation server.
    While working with our production server, with all the settings same as consolidation server, the following error is generated for Web Service call. using the AWS model
    java.io.IOException: Invalid content type while requesting http://<host>:<port>/webdynpro/resources/<application_package>/guicall.wsdl. Expected Content-type: text/xml, received Content-type: content/unknown, used user to connect: null
    The HTTP destination address is the one specified in bold above.
    Also, in later part of the stack trace we are bale to see this error:
    com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WS metadata destination
    Please guide us on this issue.
    Best Regards,
    Alka.

    Hi Alka,
    How did you configure the Webservice Destinations in Visual Admin for a webservice explosed by XI system.
    I mean what was the URL specified, did you specify XI SYSTEM userid password ???
    How was the webservice published to inspection.wsil in XI system ??
    Thanks,
    Regards,
    Aditya Metukul

  • How can I use web service call for edit a report with SSRS in Java Struts2 web application

    Hello im new in SSRS technologie and I would like make web service call at my SSRS server. Is sombody can help me ?
    - What API should I import in my project ? I use Maven can I found this API on Maven repository ?
    - I would like have an sample of code which initialize the ReportingService, do the call and process result.
    We use the SQL Server ReportingService 2008 R2 and currently we made HTTP call like this : http://<ssr_server>/ReportServer/Pages/ReportViewer.aspx?%2fSSRS_OMB%2fMyReport&rs:Command=Render&MyParam=<value>
    Regards

    Hi ombinte,
    SQL Server Reporting Services provides access to the full functionality of the report server through the Report Server Web service. Because the Report Server Web service is an XML Web service which uses Simple Object Access Protocol (SOAP) over Hypertext Transfer
    Protocol (HTTP), any SOAP-aware application or development tool can communicate with the SSRS web service.
    There are three primary ways to develop Reporting Services applications based on the Web service, please see:
    Develop applications using Microsoft Visual Studio and the Microsoft .NET Framework SDK.
    Develop applications using the rs utility (RS.exe), the Reporting Services script environment.
    Develop applications using any SOAP-enabled set of development tools.
    For more information about Report Server Web Service, you can refer to the following document:
    http://technet.microsoft.com/en-us/library/ms152787.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • LCDS web service call throwing error for valid XSD URL

    Hi,
    I am trying to call a web service which is deployed on a J2EE application[ Project name : WebServiceApplication ] through a different LCDS application [ Project name : lcdsTestWebService] But while loading of mxml following error comming into console.
    Can any one explain that why Flex application is looking for DocTypeTestService_schema1.xsd  into lcdsTestWebService application when this xsd is
    present in WebServiceApplication project.
    One intresting point which i found that if i place this xsd into root of lcdsTestWebService application so that it is accessable through
    url = "http://localhost:9080/lcdsTestWebService/DocTypeTestService_schema1.xsd" than there is no issue and web service call sucessfully
    happen.
    [2/14/11 16:23:18:208 IST] 0000002c SystemOut     O [LCDS]Deserializing AMFX/HTTP request
    Version: 3
      (Message #0 targetURI=null, responseURI=null)
        (Typed Object #0 'flex.messaging.messages.HTTPMessage')
    (Object #1)
            body =       clientId = "A568DF0F-A60A-1473-CDAB-707E4A185812"
          contentType = "application/x-www-form-urlencoded"
          destination = "testWebservice"
    (Object #2)
            DSEndpoint = "my-http"
            DSId = "A568DE2A-2809-A1FE-0934-D3ECBC19337C"
            headers =       httpHeaders = null
          messageId = "9F6F7661-8FA1-30CA-3F04-23CD91C1AF90"
          method = "GET"
          recordHeaders = true
          timestamp = 0
          timeToLive = 0
          url = "http://localhost:9080/lcdsTestWebService/DocTypeTestService_schema1.xsd"
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- GET : http://localhost:9080/lcdsTestWebService/DocTypeTestService_schema1.xsd
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Cookie in request: domain = 'localhost', path = '/', client name = 'JSESSIONID', endpoint name = 'JSESSIONID', value = '0000Ii8aRUEKjvhE38Bd_dyW3jw:-1
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Accept : */*
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Accept-Language : en-US
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Referer : http://localhost:9080/lcdsTestWebService/SampleWebService.swf/[[DYNAMIC]]/6
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: x-flash-version : 10,1,102,64
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Content-Type : application/xml
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: User-Agent : Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 1.1.4322; MS-RTC LM 8; SLCC1; MS-RTC S; USPortal)
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Cache-Control : no-cache
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Begin GET request --
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- End GET request --
    [2/14/11 16:23:20:191 IST] 0000002d FfdcProvider  I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\IBM\WebSphere\Appserver\profiles\AppSrv04\logs\ffdc\server1_1aaf1aaf_11.02.14_16.23.19 .98114899428566798599.txt com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest 573
    [2/14/11 16:23:20:391 IST] 0000002c SystemOut     O [LCDS]Serializing AMFX/HTTP response
    Version: 3
      (Message #0 targetURI=/onStatus, responseURI=)
        (Typed Object #0 'flex.messaging.messages.ErrorMessage')
          body = null
          messageId = "A568F5E1-EF0D-DCBC-6AB1-912C2FEAACB2"
          extendedData = null
          clientId = "A568DF0F-A60A-1473-CDAB-707E4A185812"
          headers = (Object #1)
            DSStatusCode = 404
          rootCause = null
          destination = "testWebservice"
          faultCode = "Server.Proxy.Request.Failed"
          faultString = "HTTP/1.1 404 Not Found"
          faultDetail = "HTTP/1.1 404 Not Found"
          timeToLive = 0.0
          timestamp = 1.297680800351E12
          correlationId = "9F6F7661-8FA1-30CA-3F04-23CD91C1AF90"

    I received a workaround by an internal message.
    The how to guide is :
    -Download the wsdl file (with bindings, not the one from ESR)
    -Correct it in order that the schema corresponds to the answer (remove minOccurs or other things like this)
    -Deploy the wsdl file on you a server (java web project for exemple). you can deploy on your local
    -Create a new logicial destination that point to the wsdl file modified
    -Change the metadata destination in your web dynpro project for the corresponding model and keep the execution desitnation as before.
    Then the received data is check by the metadata logical destination but the data is retrieved from the correct server.

  • Using Web Dynpro authentication for a Web Service call

    Hi all,
    I want to develop a Web Dynpro that calls a Web Service running on the same Web AS (7.0). The Web Dynpro will be integrated in a Portal. The web service that has to be called is automatically generated when we create a guided procedure :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/44c59fd7c72e84e10000000a155369/frameset.htm
    In my Web Dynpro, I imported the WSDL of this WS and created a model.
    The first time I tried to call the WS in my Web Dynpro I got an authentication error :
    Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://<myHostName>:50100/GPRuntimeFacadeWS/GPProcessExposing?style=document&pid=CA544E9B629A11DB91480017A48D672A&pver=0.5"
    So I hard-coded an HTTP authentication :
         model._setUser("myWASuser");
         model._setPassword("myPassword");
    And the Web Service call now works.
    Now the next step is that the WS call is made by the user that runs the Web Dynpro. So I found this documentation :
    http://help.sap.com/saphelp_nw04/helpdata/en/59/e8e95d1eba48dfa86ae91ad8816f5d/frameset.htm
    It would resolve my authentication problem, AND the transport issue : at the moment the Web Service URL is stored in the Logical Port of the WD model, and at transport time, a rebuild of the WD project will be needed.
    So I applied what is said in the doc : from the point of view of the Web Service consumer, I just had to add :
        model._setHTTPDestinationName("STARTGP");
    (where STARTGP is the name of the destination I created in the Visual Administrator with a "Logon Ticket" authentication.)
    before the execute(), and I removed my hardcoded authentication.
    Unfortunately, nothing changes... I still get a 401 authentication error.
    Does anyone have an idea about this ? Or maybe a workaround ?
    Thanks in advance for any suggestion.
    Regards,
    Julien

    Hello Julien,
    I have a scenario similar to yours. A client webdynpro application accessing a EJB methods exposed as web service. Those EJB's methods calls R3 RFC's. The client requirements' was to allow SSO through all the layers (Webdynpro -> EJB WS -> RFC). The Webdynpro and EJB's are deployed on the same WAS.
    Solution:
    1 - Create a RFC Destination on Visual Administration provide the R3 connection parameters and set the Authentication for "Current User (Logon Ticket)". Save your Destination;
    2 - In your EJB Project open your Web Service Configuration, on the Security page, set:
        Authentication Mechanism: HTTP Authentication
        Basic (username/password)
        Use SAP Logon Ticket
    3 - In your EJB, implement the following code to create JCO Client for the RFC invocations:
    Object obj = ctx.lookup(DestinationService.JNDI_KEY);
        DestinationService dstService = (DestinationService) obj;
        RFCDestination dst = (RFCDestination) dstService.getDestination("RFC", "<YOUR_RFC_DESTINATION_NAME>");
        Properties jcoProperties = dst.getJCoProperties();
        JCO.Client jcoClient = JCO.createClient(jcoProperties);
    4 - In your EAR Project, open your "application-j2ee-engine.xml" and add the References:
         "tc/sec/destinations/service" as Service
         "tc/sec/destinations/interface" as Interface.
    5 - Create your EAR File and Deploy;
    6 - Check if the web service now requires Authentication: go to http://<host>:<port>/index.html and click on Web Services Navigator. Test your Web Service. Your Web Service should requiere you to log in before execute the test;
    7 - Go back to your Visual Administrator and create a HTTP Destination. Provide your WS URL (should be something like "http://<host>:<port>/<WS_NAME>/Config1?style=document"). Choose Authentication: Logon Ticket. Save your Destination;
    8 - Go to your webdynpro project, import your WS Model. (If you have already created it, you have to delete it and import it again, refer to this blog on how to reimport WS Models: /people/bertram.ganz/blog/2005/10/10/how-to-reimport-web-service-models-in-web-dynpro-for-java  How To Reimport Web Service Models in Web Dynpro for Java );
    9 - Open your model's Logical Ports node, go to the Security tab, and choose "Use SAP Logon Ticket";
    10 - In your webdynpro code, before you call the ws invocation (should be something like that: <YOUR_NODE_DEFINITION>.modelObject().execute();), include the following line:
    <YOUR_NODE_DEFINITION>.modelObject()._setHTTPDestinationName("<YOUR_HTTP_DESTINATION_NAME>");
    11 - Save All Metadata and deploy your Webdynpro App. Test your results.
    I hope it helps you, as the documentation on how to implement this scenario is scattered through the SDN and all the SAP help portal.
    Best regards,
    Paulo.

  • Could not generate stub objects for web service invocation in ColdFusion

    I was able to call the services on the development box - windows server without any problem at all, everything was working fine but the moment i uploaded to a linux box production server I get this error. "Could not generate stub objects for web service invocation in ColdFusion"
    What could be the cause of this problem, i have googled a lot but no solution yet any ideas.

    Let me make it simple:
    1. Server A is our development server.- hosted inhouse with coldfusion installed.
    2. Server B is our production server - a linux server with coldfusion installed hosted on the internet
    3. Server C is a third party server containing the webservice - this is a windows server with .net
    coldfusion is installed on Server A, the code works here and can connect to server C without any problem. It gets the required respone
    but when the code was uploaded to server c it gives the error when we run it.
    now i tried just a simple code which works fine on server A below:
    <cfinvoke webservice="http://www.webservicex.net/CurrencyConvertor.asmx?WSDL" method="ConversionRate" returnvariable="ConversionRateResult">
        <cfinvokeargument name="FromCurrency" value="EUR" />
        <cfinvokeargument name="ToCurrency" value="USD" />
    </cfinvoke>
    <cfdump var="#ConversionRateResult#" />
    But when i uploaded it to server C: it returns the error
    Cannot generate stub objects for web service invocation.
    Name: http://www.webservicex.net/CurrencyConvertor.asmx?WSDL. WSDL: http://www.webservicex.net/CurrencyConvertor.asmx?WSDL. java.io.FileNotFoundException: /opt/coldfusion8/stubs/WS728929035/NET/webserviceX/www/Currency.java (No such file or directory) It is recommended that you use a web browser to retrieve and examine the requested WSDL document to ensure it is correct. If the requested WSDL document cannot be retrieved or is dynamically generated, it is likely that the target web service has programming errors.
    The error occurred in /home/works/public_html/currency.cfm: line 7
    5 :     <cfinvokeargument name="FromCurrency" value="EUR" />
    6 :
    7 :     <cfinvokeargument name="ToCurrency" value="USD" />
    8 :
    9 : </cfinvoke>
    Now if you try the preceeding code on a windows environment  it works fine but the moment you put in the in the linux environment it generates this error
    I feel that the error may actually be :
    java.io.FileNotFoundException: /opt/coldfusion8/stubs/WS728929035/NET/webserviceX/www/Currency.java (No such file or directory)
    but i am clueless as to what to do next
    Ok so I tried the wget command on the linux
    this is what i got
    -bash-3.2# wget http://www.webservicesx.net/CurrencyConvertor.asmx?WDSL
    --2011-07-02 23:23:42--  http://www.webservicesx.net/CurrencyConvertor.asmx?WDSL
    Resolving www.webservicesx.net... 216.8.179.25
    Connecting to www.webservicesx.net|216.8.179.25|:80... connected.
    HTTP request sent, awaiting response... 403 Forbidden
    2011-07-02 23:23:43 ERROR 403: Forbidden.

  • Multiple web service calls - Split message,1 WS call for each message

    Friends,
    We have designed a BPM which will pick the files, make web service call and merge these message structures and map them to the target.
    We have to modify this design as follows,
    We have to split the message based on purchase order number, meaning one message for each order number and then we need to make a web service call for each of them,after we get all the responses we will merge the files using transformation. (merging files and transformation is already taken care, its the web service part which iam looking for)
    Thanks in advance for all your help/ideas.

    Friends,
    Can you please help me out with this logic? Thanks!

Maybe you are looking for

  • Error while printing.

    Error while printing.

  • CC and Photoshop CC just do not want to properly work.

    Okay so this is starting to become a major problem which I am getting stressed out about and it is taking a huge chunk out of my ability to work. OS: Win 7 (x86) Last Thursday I purchased CC and downloaded Photoshop CC, everything installed fine asid

  • Minor problem with 7.0

    when you first launch itunes it asks a few questions; such as do you want this to be the default player and such, then goes to the actual program, if i quit itunes and then relaunch these questions keep coming up and any changes i've made to my prefe

  • Char Encoding Problem

    Hi every one. I looked over the forums to check if this problem was discussed before or not, and didn't find any thing I am running a JSP application accessing mySQL database, reading and displaying arabic records. This is the code:                St

  • After recent updates neither of my mac computers will play certain videos

    I have a mac pro running 10.6.8 and a mac book pro running 10.7.5 and recently I downloaded security upgrades from apple. Now neither of these computers will play videos from the Canadian Business program BNN. I checked that flash was up to date and