Fusion Apps web service call fails with error access denied (oracle.wsm.security.WSFunctionPermission)

Hello Guru,
I am trying to call a supplier service from SOA/OSB.
But while calling the service it is failing with the below error message
access denied (oracle.wsm.security.WSFunctionPermission http://xmlns.oracle.com/apps/prc/poz/suppliers/supplierService/SupplierService#getSupplierVO invoke)
As per OER cookbook i have attached the "oracle/wss_username_token_client_policy" to the Fusion  apps web service.
I am trying to pass security credentials to the service by using all the methods... through composite ..through bpel through wsse header but in all cases i am getting similar error.
Please let me know if some one has called the fusion apps web service to create a supplier of solution to my problem  as mentioned above.

Hi Sai,
    Thanks for the quick and correct response. Yes, after doing the research, I'm also came to same conclusion. But what stops me here is that where exactly I need to check for this permission.
I mean the theory what I built on this Authorization/Permission is that:
   For the resource - WebService (SupplierService), there is an assigned application role for which the Entitlement/Permission is provided.
Pls. help me in the below items:
a. What is the application role(in role hierarchy) assigned to this resource(Webservice). Which page I need to check(navigation) this and the required credentials..
b. What is the Entitlement provided for this application role for this operation (getSupplierVO) invoke.. Which page I need to check(navigation) this and the required credentials..
Thanks in Advance.
Thanks & Regards
Madhu

Similar Messages

  • FusionApps web service call fails with error access denied (oracle.wsm.security.WSFunctionPermission)

    Hi Gurus,
    I started test this webservice from EM (Test Web Service)
    But while calling the service it is failing with the below error message
    access denied (oracle.wsm.security.WSFunctionPermission http://xmlns.oracle.com/apps/prc/poz/suppliers/supplierService/SupplierService#getSupplierVO invoke)
    As per OER cookbook i have attached the "oracle/wss_username_token_client_policy" to the Fusion  apps web service.
    I am trying to pass security credentials to the service by using all the methods... through composite ..through bpel through wsse header but in all cases i am getting similar error.
    Please let me know if some one has called the fusion apps web service to create a supplier of solution to my problem  as mentioned above.
    Is it any policy error or the authorization error ...
    Are there any navigation steps I can check the existed permission on this resource etc..,
    Thanks in Advance

    Hi Sai,
        Thanks for the quick and correct response. Yes, after doing the research, I'm also came to same conclusion. But what stops me here is that where exactly I need to check for this permission.
    I mean the theory what I built on this Authorization/Permission is that:
       For the resource - WebService (SupplierService), there is an assigned application role for which the Entitlement/Permission is provided.
    Pls. help me in the below items:
    a. What is the application role(in role hierarchy) assigned to this resource(Webservice). Which page I need to check(navigation) this and the required credentials..
    b. What is the Entitlement provided for this application role for this operation (getSupplierVO) invoke.. Which page I need to check(navigation) this and the required credentials..
    Thanks in Advance.
    Thanks & Regards
    Madhu

  • SharePoint SiteMialbox failed with 503 error (AutoDiscover.svc web service call failed)

    SharePoint SiteMialbox failed with 503 error (AutoDiscover.svc web service call failed)
    I followed Technet articles to configure SiteMailBoxes in our environment & exchange sever.
    When we created Sitemailbox in a SiteCollection &when we try to open it, it failed with below error.
    Site Mailbox
    We are having trouble connecting to Exchange Server
    The server might be temporarily unavailable. Please check back on this page in a few minutes. If this problem persists, please contact your system administrator.
    Correlation ID: bb0fe99c-6f4e-e084-b191-881fbf0fa977, Error Code 10 
    ULS Log (503 error)
    Autodiscover Diagnostics Response Headers: request-id: 95d12ceb-283e-4495-b28b-256503fd097c  client-request-id: 742fe69c-ef5a-e084-ca05-6098c759c584  X-CalculatedBETarget: devapwxyz01a.devap.mydomain.com  X-FEServer: DEVNAABCD01B
     Content-Length: 0  Cache-Control: private  Date: Tue, 03 Feb 2015 18:53:40 GMT  Set-Cookie: X-BackEndCookie=; expires=Sun, 03-Feb-1985 18:53:40 GMT; path=/autodiscover; secure; HttpOnly  Server: Microsoft-IIS/8.5  X-AspNet-Version:
    4.0.30319  X-Powered-By: ASP.NET    
    742fe69c-ef5a-e084-ca05-6098c759c584
    if I am correct, X-CalculatedBETarget supposed to be DEVNAABCD01B.devna.mydomain.com but it connected to different domain devapwxyz01a.devap.mydomain.com.  Do you guys have any idea on this?  (I verified
    the same using fiddler, it is failing right at autodiscover.svc call.)
    I wrote a powershell script to connect autodiscover service in sharepoint server & this web service call able connect right server X-CalculatedBETarget. It gave the expected response.
    I am not sure why SharePoint webservice call (X-CalculatedBETarget) is going to different server?
    let me know if you guys have any ideas.
    Thanks.

    Thanks for the Response Raj.
    I already followed the same instructions in the Links.
    When SharePoint Autodisover.svc webservice send a request to Exchange server & Exchange server redirecting that request to different server, this is the problem i am facing right now.
    X-CalculatedBETarget
    supposed to be DEVNAABCD01B.devna.mydomain.com but it connected to different domain devapwxyz01a.devap.mydomain.com.
    Let me know if you have any suggestions?

  • What is this? Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE._

    hi    This event is logged in SharePoint 2010 logs often please help trace the issue also it precedes with Project server WCF code execution which alos is quite slow in execution, means PWA site runing slow. why does status read
    provisioning while i am not running anything.
    please help!!!
    10/03/2011 14:39:23.46 w3wp.exe (0x306C)                      
    0x2FC4
    SharePoint Foundation         Topology                      
    e5mc Medium  
    WcfSendRequest: RemoteAddress: 'http://moss:32843/a667a0a96d314e5e9e6c8fe4866c5db4/PSI/PWA.svc' Channel: 'Microsoft.Office.Project.Server.Interfaces.IPWA' Action: 'http://schemas.microsoft.com/office/project/server/webservices/PWA/AdminReadSiteMapTyped'
    MessageId: 'urn:uuid:0751dbdd-76c0-4410-ac73-2f1782e1513b'
    91b87b3b-e9ad-43b9-9e8c-e553ba7e2f6c
    10/03/2011 14:39:23.46 w3wp.exe (0x1B58)                      
    0x1BA0
    SharePoint Foundation         Topology                      
    e5mb Medium  
    WcfReceiveRequest: LocalAddress: 'http://moss.ccl.local:32843/a247f7273c09486999c9f111798cab59/ProfilePropertyService.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://Microsoft.Office.Server.UserProfiles/GetProfileProperties'
    MessageId: 'urn:uuid:772a5c58-c0e4-4b0f-9142-f634fee413a9'
    3cd5bfa5-2e40-458e-9718-788887b44dbe
    10/03/2011 14:39:23.46 w3wp.exe (0x1B58)                      
    0x1BA0
    SharePoint Foundation         Monitoring                    
    nasq Medium  
    Entering monitored scope (ExecuteWcfServerOperation)
    3cd5bfa5-2e40-458e-9718-788887b44dbe
    10/03/2011 14:39:23.64 w3wp.exe (0x1B58)                      
    0x1BA0
    SharePoint Foundation         Monitoring                    
    b4ly Medium  
    Leaving Monitored Scope (ExecuteWcfServerOperation). Execution Time=179.589584709789
    3cd5bfa5-2e40-458e-9718-788887b44dbe
    10/03/2011 14:39:23.64 w3wp.exe (0x306C)                      
    0x3170
    SharePoint Foundation         Monitoring                    
    b4ly High    
    Leaving Monitored Scope (ExecuteWcfOperation:http://Microsoft.Office.Server.UserProfiles/GetProfileProperties). Execution Time=205.109867315539
    10/03/2011 14:39:23.64 w3wp.exe (0x306C)                      
    0x3170
    SharePoint Foundation         Monitoring                    
    b4ly High    
    Leaving Monitored Scope (ExecuteOnChannel:GetProfileProperties). Execution Time=206.500546857212
    10/03/2011 14:39:23.74 Microsoft.Office.Project.Server (0x0DAC)
    0x0FA8 Project Server                
    Provisioning                  
    8zdn Medium  
    [SERVICE] ProjectQueueService14: Getting list of Sites for ServiceApp: a667a0a9-6d31-4e5e-9e6c-8fe4866c5db4
    10/03/2011 14:39:23.74 Microsoft.Office.Project.Server (0x0DAC)
    0x0FA8 Project Server                
    Provisioning                  
    128v Medium  
    [SERVICE] ProjectQueueService14: Adding Site: ef3acaf4-3e7a-4819-80e0-8e7a85ca417b to sitelist for ServiceApp: a667a0a9-6d31-4e5e-9e6c-8fe4866c5db4
    10/03/2011 14:39:23.77 Microsoft.Office.Project.Server (0x0CD4)
    0x0FA4 Project Server                
    Provisioning                  
    8zdn Medium  
    [SERVICE] ProjectEventService14: Getting list of Sites for ServiceApp: a667a0a9-6d31-4e5e-9e6c-8fe4866c5db4
    10/03/2011 14:39:23.77 Microsoft.Office.Project.Server (0x0CD4)
    0x0FA4 Project Server                
    Provisioning                  
    128v Medium  
    [SERVICE] ProjectEventService14: Adding Site: ef3acaf4-3e7a-4819-80e0-8e7a85ca417b to sitelist for ServiceApp: a667a0a9-6d31-4e5e-9e6c-8fe4866c5db4
    10/03/2011 14:39:23.99 SPUCHostService.exe (0x22E0)            
    0x300C SharePoint Foundation        
    General                      
    84yj Medium  
    Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    10/03/2011 14:39:23.99 SPUCHostService.exe (0x22E0)            
    0x300C SharePoint Foundation        
    Sandboxed Code Service        
    ei0p Monitorable
    - Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc)     at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError)     at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32
    retry, Int32 retryInterval)     at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading perf counters for process "SPUCWorkerProcess".
    10/03/2011 14:39:23.99 SPUCHostService.exe (0x22E0)            
    0x300C SharePoint Foundation        
    General                      
    84yj Medium  
    Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    10/03/2011 14:39:23.99 SPUCHostService.exe (0x22E0)            
    0x300C SharePoint Foundation        
    Sandboxed Code Service        
    ei0p Monitorable
    - Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc)     at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError)     at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32
    retry, Int32 retryInterval)     at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading perf counters for process "SPUCWorkerProcess".
    10/03/2011 14:39:23.99 SPUCHostService.exe (0x22E0)            
    0x300C SharePoint Foundation        
    General                      
    84yj Medium  
    Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.

    Hi there,
    A quick search showed the result on fourm thread:
    It's related to SHarePoint foundation error & this issue occurs when the account under which SPUserCodeService is configured to run does not have the necessary permissions to access the performance counters on the server.
    http://social.technet.microsoft.com/Forums/eu/sharepoint2010setup/thread/9fbcf2a3-1b1f-4fd8-a9b4-dc63ed753973
    To read in support article.
    http://support.microsoft.com/kb/983081Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82

  • Javascript web service calls fail after 10.1.5/11.0.01 updates

    * Update #2 - I've confirmed that we are seeing errors because the HTTP request is being made as a POST using 10.1.5/11.0.01 in Chrome/Firefox/Safari.  Accessing the same file in IE, the request is made using a GET.  Using Reader 9.5.0 in Chrome also uses a GET.  Can someone please explain why the HTTP request is being submitted as a POST following the 10.1.5 update?
    * Update - I have found in my web service log that it is failing with a message that the attempted POST method is not allowed. Could the Reader updates be causing this call to be made as a POST when it was previously a GET?
    I am using PDFs with Reader Extensions enabled that make web service calls via javascript.  These calls have been working correctly in multiple environments for months and only began failing with the latest updates.  After the latest Reader updates, these calls fail when using Chrome, Firefox and Safari. 
    Internet Explorer works correctly.  Saving files locally and opening them in Reader also works correctly.  It is only running 10.1.5 or 11.0.01 in these specific browsers where this issue occurs.  10.1.4 and 11.0.0 do not experience this issue in any browsers. 
    I have tried disabling Enhanced Security and updating Trust Manager to allow Internet Access from PDFs.  Neither change corrected the problem.
    Can someone tell me what may have changed in 10.1.5/11.0.01 that would cause these calls to start failing?
    The javascript at issue looks like this:
    var serviceKeyResult.rawValue = Get(serviceKeyUrl)
    The error we get is "Error: Error attempting to read from file: {URL}"

    Thanks for pointing that out.  The javacript was implemented by a third party, so I was not aware that the function wasn't part of the standard APIs.  I'll get more detail on what is happening inside that method.
    For now we have updated our web services to accept both a GET and a POST to avoid this issue.

  • The AcquireConnection method call failed with error code 0xC0202009.

    I've seen the previous threads on this (although maybe not all of them). However, i don't think I'm getting the error for the same reason. The full error I'm getting is:
    - Pre-execute (Error)
    Messages
    Error 0xc0202009: {F1B3B35C-FAE3-48F6-A169-4E4D8D99F9B6}: An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft JET Database Engine"  Hresult: 0x80004005  Description: "Unspecified error".
     (SQL Server Import and Export Wizard)
    Error 0xc020801c: Data Flow Task: The AcquireConnection method call to the connection manager "DestinationConnectionExcel" failed with error code 0xC0202009.
     (SQL Server Import and Export Wizard)
    Error 0xc004701a: Data Flow Task: component "Destination 64 - production_effectivities" (7042) failed the pre-execute phase and returned error code 0xC020801C.
     (SQL Server Import and Export Wizard)
    The entire package is running on one machine. The data source is SQL Server 2005 and the destination (this happens with both of them) is Excel or Access. Either way I cannot get the package which the wizard generated to run at all. This error occurs after the first table is exported. I'm running on WinXP SP2 with 2005 Developer and ALL components installed except analysis services.
    Anyone else have this problem or know the solution?
    Jeff

    I am getting the same error. My Destination and source both are on SQL Server 2005 on the same box.
    I am using SQL- Code for Source and and table as destination. When the package runnes under Transaction- TransactionOption-Supported then the packages excuted fine but it fails when i change the Transaction- TransactionOption to Required.
    It fails with following error code.
    [OLE DB Destination [22]] Error: The AcquireConnection method call to the connection manager "FMFCLSQADB01.DWH_Rakesh" failed with error code 0xC0202009.
    [DTS.Pipeline] Error: component "OLE DB Destination" (22) failed the pre-execute phase and returned error code 0xC020801C.
    [Connection manager "FMFCLSQADB01.DWH_Rakesh"] Error: The SSIS Runtime has failed to enlist the OLE DB connection in a distributed transaction with error 0x8004D00A "Unable to enlist in the transaction.".
    [Connection manager "FMFCLSQADB01.DWH_Rakesh"] Error: An OLE DB error has occurred. Error code: 0x8004D00A.
    When i change the source SQL query to Table or View then it works fine.
    Thanks for any suggestion.
    Regards
    Rakesh
    Now, my issues related to “SSIS Runtime has failed to enlist the OLE DB connection in a distributed transaction with error 0x8004D00A "Unable to enlist in the transaction."…..”. are fixed.
    This is one of the very common errors that comes up in SSIS (SQL Server Integration service) 
    I have faced this issue for at-least two occasions. Both of them have one common setting: “TransactionOption” was set to “Required”.
    In first case, I had multiple dataflow tasks but there were no sequence given. There were no error if I ran the package with TransactionOption=Supported. But when I ran the package in TransactionOption= Required, it got failed.
    To fix the issue I have changed my package and put the entire dataflow task one after another (connected thru Constraint).  
    In another case, where I was doing data transfer from one server to another, I had to configure the MSDTC.

  • DBCA Fails with error accessing inventory - OEL5.3 DB11g SE install

    Hello,
    We're trying to install ODB11g for x86_64 on a OEL5.3 and after having prep'd the environment, kernel, etc... The oracle user runs the runInstaller script, everything passes with flying colors until... the DBCA when in the step of completeing "Database Creation" gives an error which is logged in the: emConfig.log and suggests we re-execute the emca script...
    +"Enterprise manager configuration failed due to the following error - error starting Database Control+
    +Refer to the log file /.../dbca/orcl/emConfig.log for more details.+
    +You can retry configuring thsi database with Enterprise Manager later by manually running+
    +/.../bin/emca"+
    After searching the logs, we find that the oraInst.loc file does not exist or there are no permission, the /etc/oracInst.loc exists but the emConfig.log file says this is the error (or one of them maybe):
    Aug 12, 2009 4:24:56 PM oracle.sysman.emcp.util.OUIInventoryUtil getInstallInventory
    CONFIG: Error accessing inventory.
    oracle.sysman.oii.oiii.OiiiInventoryDoesNotExistException: The inventory pointer location /etc/oraI
    nst.loc is either not readable or does not exist
    ... this is a clean install. Any sugestions?? (we've tried re-running the config steps according to the documentation but maybe we've missed something???)
    Thanks for any help!!
    LMA.
    Edited by: user8678312 on Aug 12, 2009 1:38 PM
    Edited by: user8678312 on Aug 12, 2009 2:59 PM

    No luck with either workaround... the DBCA runs smooth until it gets to the emca where the oraInst.loc keeps on annoying... checked its permissions 644, owner root... ran the emca manually heres the results:
    Aug 12, 2009 8:29:48 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error creating the repository
    Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2009_08_12_20_28_33.log for more details.
    Could not complete the configuration. Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/orcl/emca_2009_08_12_20_28_33.log for more details.
    the log turns out the same error regarding the oraInst.loc.
    any other suggestion perhaps?
    thx!!

  • JPublisher error in web service call out with XMLType parameters

    Hi,
    We need to create a call to a document/literal web service from PL/SQL.
    I've followed Note 555656.1 of Metalink (step by step and several times) to create it with JPublisher and it works for rpc/encoded but not for document/literal. In this case, when using XMLType elements I get the following error:
    "ORA-00932: inconsistent datatypes: expected IN Conversion failed
    ORA-06512: at line 6"
    Oracle DB is 9.2.0.5
    oc4j_extended is 10.1.2
    JPub is 10.1.0.3.0
    dbws-callout-utility 10.1.2
    Can anybody help us?

    Hi,
    I had same error and then implement your solution. But I get invalid xml error (I have header and body tags)
    How can you remove Envelope tag?

  • Web service call failed using WCF

    Hi,
    I generated a proxy with WCF and call web service 2.0. The soap message sent is:
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Header>
    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1">
    <wsse:UsernameToken>
    <wsse:Username>username</wsse:Username>
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wssusername-token-profile-1.0#PasswordText">passwd</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    </s:Header>
    <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <PicklistWS_GetPicklistValues_Input xmlns="urn:crmondemand/ws/picklist/">
    <FieldName>AccountType</FieldName>
    <RecordType>Account</RecordType>
    </PicklistWS_GetPicklistValues_Input>
    </s:Body>
    </s:Envelope>
    It failed with 400 - Bad request.
    Can someone tell me what's wrong here?
    Thanks

    Hello,
    It looks like you have a typo in your the Type value in the Password element:
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-*wssusername*-token-profile-1.0#PasswordText">passwd</wsse:Password>
    should be
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">passwd</wsse:Password>
    The error message returned by CRMOD is:
    <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Client</faultstring><detail><ErrorCode>SBL-ODU-01008</ErrorCode><ErrorMessage>The HTTP request did not contain well-formed XML. An attempt to parse it produced the following error: Unsupported wsse:Password Type. Valid Value: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText</ErrorMessage></detail></soap:Fault></soap:Body></soap:Envelope>
    Hope this helps.
    Thanks,
    Sean

  • Decision Service calls failing with connection refused

    Hi All,
    Breifing of the bpel process - Async bpel process XX_BPEL_ASYNC_002 calls decision services and a sync bpel process XX_BPEL_SYNC_001.
    We have moved to cluster 10.1.3.5.0 from 10.1.3.3.0 and the deployement of the bpel process and the decision service done on two nodes i.e., node51 and node55.
    But the bpel process is able to call the decision service only when the node 51 is UP and running, but if node 51 is down and node 55 is up and running it is failing with connection refused error. It is also working when 55 is DOWN and 051 is UP.
    the exact error is:
    exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Connection refused.
    We are using file based repository.
    It is failing when it tries to call particular url:
    http://loadbalancerurl:7777/orabpel/domain001/XX_BPEL_ASYNC_002/1.0/decisionservices.decs
    Can anyone please help me or advice me for finding some solution.
    Thanks
    Sreejit

    Hi Fatsah,
    It has been a while since we resolved this problem. But these were  the basic steps that we had taken.
    The receiver was configured a File adatpter with FTP:
    Port: 10021
    Connection security : FTPS (FTP using SSL/TLS) for Control and Data Connection
    Command Order: AUTH TLS,USER,PASS,PBSZ,PROT
    Problem: The message was blocked in our firewall.
    FTPS in this case used 10021 as the control port and the firewall allowed to pass the control request.
    Once the connection was accepted at the control level, it generated a random port number  to pass data on the channel.
    This random port number was blocked in the firewall.
    We monitored the data port numbers generated at firewall. Then we configured the firewall to open any port number  between the specific IP addresses of the sender and the receiver. That resolved the problem.
    Hope this helps!
    Please give points if this is helpful.
    Thank you.
    Dharmasiri Amith

  • Web service Call failed

    Hi,
    When I try to post some messages to Web service, Follwing Error displayed is the Receiver SOAP communication channel,
    No description available except the following message
    Requet entering and Call failed. 
    What could be the problem?
    How can test the connectivities between XI server and Web server?
    Edited by: Prabu M on Jul 30, 2008 9:11 AM

    Hi,
    Just check the link. This describes the step by step method for webservice to file. May be it will be helpful for you.
    RFC -> XI -> WebService - A Complete Walkthrough (Part 1) -
    RFC-Webservice Part1
    RFC -> XI -> WebService - A Complete Walkthrough (Part 2) -
    RFC-Webservice Part2
    Regards,
    Nutan

  • Web service call fails - type mismatch

    Hi All
    I hope someone can help, as I have been struggling with this issue for a few days. If I have missed any useful information off of this post, please ask and I will try to supply.
    I am trying to call a web service, but contantly receiving the error:
    "{http://springframework.org/spring-ws}ValidationError:cvc-elt.4.3: Type 'xsd:long' is not validly derived from the type definition, 'idField', of element 'documentId'."
    An example of the call to the webservice is:
    <cfscript>
    getDocumentAsPdfRequest = structNew();
    getDocumentAsPdfRequest.documentId = 12017988;
    getDocumentAsPdfRequest.ignoreUnsupportedConversion = 0;
    ws = createObject("webservice", "#wsdldocumenturl#");
    ws.setUsername("#wsdlusername#");
    ws.setPassword("#wsdlpassword#");
    myresult = ws.getDocumentAsPdf(getDocumentAsPdfRequest);
    </cfscript>
    <cfdump var="#myresult#">
    the webservice definition is:
    getDocumentAsPdfRequest type getDocumentAsPdfRequest 
    Returns the document as a pdf if possible
    documentId type idField - type long with restriction minInclusive(1000) maxInclusive(9223372036854775807) 
    Id of the document to be converted to pdf
    ignoreUnsupportedConversion type boolean 
    Specifying true for this will return the original document without converting - if a conversion is not possible
    the webservice xml is:
    <xs:element name="getDocumentAsPdfRequest"> 
    <xs:annotation> 
    <xs:documentation>Returns the document as a pdf if possible</xs:documentation></xs:annotation>
    <xs:complexType> 
    <xs:sequence> 
    <xs:element name="documentId" type="tns:idField"> 
    <xs:annotation> 
    <xs:documentation>Id of the document to be converted to pdf</xs:documentation></xs:annotation></xs:element>
    <xs:element name="ignoreUnsupportedConversion" type="xs:boolean"> 
    <xs:annotation> 
    <xs:documentation>Specifying true for this will return the original document without converting - if a conversion is not possible</xs:documentation></xs:annotation></xs:element>
    </xs:sequence></xs:complexType></xs:element>
    I have tried using javacast("long", "12017988"), but the same error is shown
    any help or advise gratefully received.
    Thanks,
    Darren

    I forgot to mention that I have verified that this service works from SoapUI, the issue seams to be the way that ColdFusion is handling the documentId element.
    If it is helpful the WSDL code is here (note I have only pasted the parts that are relevant to this method):
    <xs:element name="getDocumentAsPdfRequest" xmlns:xs="http://www.w3.org/2001/XMLSchema"> 
    - <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Returns the document as a pdf if possible</xs:documentation>
    </xs:annotation>
    - <xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
    - <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
    - <xs:element name="documentId" type="tns:idField" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    - <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Id of the document to be converted to pdf</xs:documentation>
    </xs:annotation>
    </xs:element>
    - <xs:element name="ignoreUnsupportedConversion" type="xs:boolean" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    - <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">Specifying true for this will return the original document without converting - if a conversion is not possible</xs:documentation>
    </xs:annotation>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    And the reponse:
    <xs:element name="getDocumentAsPdfResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema"> 
    - <xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema">
    - <xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="content" type="xs:base64Binary" xmlns:xs="http://www.w3.org/2001/XMLSchema" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    and the operation element:
    <wsdl:operation name="getDocumentAsPdf" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> 
    <soap:operation soapAction="" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
    - <wsdl:input name="getDocumentAsPdfRequest" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
    <soap:header message="tns:credentials" part="credentials" use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
    </wsdl:input>
    - <wsdl:output name="getDocumentAsPdfResponse" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
    </wsdl:output>
    </wsdl:operation>
    not sure if that would be helpful, but thought I would post incase.
    Does anyone have any ideas as to why that error would be being generated?
    Thanks,
    Darren

  • Web service call problem with complex types input

    We are trying to call a web service and pass as parameter
    some complex types. When invoking the web service everything works
    well on flex side, but on the server side the input parameters we
    get from flex are not correct - complex type is removed and the
    elements of the complex type are sent. See the example:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:WebService id="ws_id" wsdl="link" useProxy="false"
    fault="wsFault(event)">
    <mx:operation id="op_id" name="op"
    result="wsResult(event)">
    <mx:request>
    <parameters>
    <parameter1>{value1}</parameter1>
    <parameter2>{value2}</parameter2>
    <parameter3>{value3}</parameter3>
    <parameter4>
    <parameter4_1>{value4_1}</parameter4_1>
    <parameter4_2>{value4_2}</parameter4_2>
    <parameter4_3>{value4_3}</parameter4_3>
    </parameter4>
    </parameters>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    </mx:Application>
    on server side we get this:
    <parameters>
    <parameter1>{value1}</parameter1>
    <parameter2>{value2}</parameter2>
    <parameter3>{value3}</parameter3>
    <parameter4_1>{value4_1}</parameter4_1>
    <parameter4_2>{value4_2}</parameter4_2>
    <parameter4_3>{value4_3}</parameter4_3>
    </parameters>
    Instead of :
    <parameters>
    <parameter1>{value1}</parameter1>
    <parameter2>{value2}</parameter2>
    <parameter3>{value3}</parameter3>
    <parameter4>
    <parameter4_1>{value4_1}</parameter4_1>
    <parameter4_2>{value4_2}</parameter4_2>
    <parameter4_3>{value4_3}</parameter4_3>
    </parameter4>
    </parameters>
    Any idea how is it possible to send complex type as web
    service input from flex ?

    Hi,
    I also have similar type of problem where I need to invoke a Web service with Complex input parameters.
    I followed Susan's blog but I stuck at a point where methos getItem is created.
    Can anyone tell me how to get that method for my requirement.
    If possible can you guys share your solutions here.
    Thanks in advance.

  • Web Service Call Fails on First Attempt

    Hi,
    I am calling a .Net web service from Flex and I am getting
    unexpected results on the first call. The function accepts a few
    parameters and returns an integer. I currently have it coded to
    return 1, 2, or 3, but it always returns 0 on the first call. All
    subsequent calls return expected results. Is this a Flex bug, or am
    I missing something?
    Thanks!

    Hello.
    Last month, I've made an reply to the topic just the same to
    yours.
    Please see:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585&threadid=1257326#45 61856
    I'm not sure this problem is a bug or not, but in my
    situation, this problem has been happened since I updated Flex
    Builder....

  • Setup Team Foundation Server - Team Site Collection - SharePoint Web Application Settings failed with error TF205014, TF250025

    Hi
    I have TFS server installed and working with other SharePoint farm.  (TFS installed,  SharePoint extension installed and Granted Access for TFS.
    When Setup TFS - SharePoint Web Application Settings,  It ask for the three values:
    Web Application URL:  
    Central Administration URL:
    Default Location of team project collection sites:
    What notice about the TFS sites that are working is that they are Path Based Site Collection.  Created with SharePoint Web Application managed path (like
    http://spserver/sites/tfs_site1) and so it easy to see it will work.
    Web Application URL:  http://spserver
    CA URL :   http://spserver:portnumber
    Default Location :  Sites or any managed path
    We start using Host Name Site Collection (HNSC) to get the benefit of multiple unique site name without having multiple web application for each.  Work great but when we tried to setup and extend TFS service on the HNSC, we could
    not get them to work and got errors when trying different variation of path URL.
    After doing lot of searching on this, I came up pretty empty and I don't know if that is possible so my question is Have anyone able to setup TFS to work with SharePoint 2013 Host Name Site Collection?  
    If you have, a simple yes will be great but please share or even if anyone think it is possible or not possible, please share too.
    Thanks in advance for any comment / suggestion.
    Swanl

    Hi  Swanl,
    I’m afraid that we cannot setup TFS to work  with SharePoint 2013 Host Name Site Collection.
    Also you can  initial a new thread in Visual Studio Team Foundation Server forums:
    Team Foundation Server – General: http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=tfsgeneral
    More experts for Team Foundation Server will assist you, then you will get more information relation to your issue.
    For integrating SharePoint 2013 with Team Foundation Server 2013 you can have a look at the following blog:
    http://nakedalm.com/integrate-sharepoint-2013-with-team-foundation-server-2013/
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Eric Tao
    TechNet Community Support

Maybe you are looking for

  • Remove null values from string array

    Hi , I have a string array in a jsp page which I save some values inside. After I store the values I want to print only those who are not null. How can I do this? Is there a way to delete the null values?

  • Using a View as the DataSource for a Matrix

    Does anyone know if it is possible to use a view as the datasource for a matrix?  For example, I have created a view named 'VW1' with 4 columns (1 being ItemCode).  Here is the code that tries to set this view as the datasource for a matrix: tableNam

  • HT1414 i update my i phone 4s, After 400 MB Software Update it start all over agian WHY

    What is wrong in update & Restore System, My Phone is not updating . The Total file size is 930MB afetr 400MB it start all over again WHY, Please Confirm

  • Query book

    Hi all I have just finished reading a book called "SAP Query Reporting" while I wish to go further with query building such as deeper understanding of logical database and coding for an infoset. Is there any book that you can suggest or any website t

  • Upgrading to Skype Premium

    Hi, I just paid for the upgrade to "premium" but am not sure how I go about loading the new software, is there a process that I need to follow?  My order details are as follows: Product name: Skype Premium Order reference: [removed for privacy]