Error while calling siebel crm on demand web service

Hi.
Has anyone encounter this problem before while trying to invoke the Siebel crm on demand web services? Please help.
Also, do I have to set up the SSL Trust Key and trust file to include the Siebel crm SSL cert?
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultString: com.ibm.wsspi.channel.framework.exception.ChannelException: com.ibm.wsspi.channel.framework.exception.ChannelException: Invalid trust file name of null
faultActor: null
faultDetail:

Hi, yes I only use jax-ws to generate client artifacts for On Demand. I can imagine for first time user you have really big problems to generate the client code... The reason for this is in most cases the size of the wsdl files.
What you can do is.
1. Think about what you really need of the selected wsdl. eg. if it is account do you need all related objects like PlanAccount etc?
2. If you know what you need start to delete the not needed definitions from the wsdl and try the generation of client afterwards.
Best Regards
SL

Similar Messages

  • Error while invoking a WS-Security secured web service from Oracle BPEL..

    Hi ,
    We are facing some error while invoking a WS-Security secured web service from our BPEL Process on the windows platform(SOA 10.1.3.3.0).
    For the BPEL process we are following the same steps as given in an AMIS blog : - [http://technology.amis.nl/blog/1607/how-to-call-a-ws-security-secured-web-service-from-oracle-bpel]
    but sttill,after deploying it and passing values in it,we are getting the following error on the console :-
    “Header [http://schemas.xmlsoap.org/ws/2004/08/addressing:Action] for ultimate recipient is required but not present in the message”
    Any pointers in this regard will be highly appreciated.
    Thanks,
    Saurabh

    Hi James,
    Thanks for the quick reply.
    We've tried to call that web service from an HTML designed in Visual Studios with the same username and password and its working fine.
    But on the BPEL console, we are getting the error as mentioned.
    Also if you can tell me how to set the user name and password in the header of the parter link.I could not find how to do it.
    Thanks,
    Saurabh

  • "Cipher not initialized" when trying to invoke CRM On Demand web service

    Hi,
    I'm try to invoke CRM On Demand web service for which there is a pre-req to get a session ID by making an https request. I've the below java embedded code which does that. It works fine if I run the below code in my desktop as a java program, but when I deploy it on SOA 11g I get "Caused by: java.lang.IllegalStateException: Cipher not initialized" error (find below the stack trace). Please let me know what's going wrong here?
    String sessionString = "FAIL";
    String wsLocation =
    "https://secure-********.crmondemand.com/Services/Integration";
    String headerName;
    try {
    // create an HTTPS connection to the OnDemand webservices
    java.net.URL wsURL =
    new java.net.URL(wsLocation + "?command=login");
    java.net.HttpURLConnection wsConnection =
    (java.net.HttpURLConnection)wsURL.openConnection();
    // disable caching
    wsConnection.setUseCaches(false);
    // set some http headers to indicate the username and password we are using to logon
    wsConnection.setRequestProperty("UserName",
    wsConnection.setRequestProperty("Password", "***********");
    wsConnection.setRequestMethod("GET");
    // see if we got a successful response
    if (wsConnection.getResponseCode() ==
    java.net.HttpURLConnection.HTTP_OK) {
    // get the session id from the cookie setting
    for (int i = 0; ; i++) {
    headerName = wsConnection.getHeaderFieldKey(i);
    if (headerName != null &&
    headerName.equals("Set-Cookie")) {
    // found the Set-Cookie header (code assumes only one cookie is being set)
    sessionString = wsConnection.getHeaderField(i);
    if (sessionString != null ||
    sessionString.startsWith("JSESSIONID")) {
    break;
    String formattedID =
    sessionString.substring(sessionString.indexOf("=") + 1,
    sessionString.indexOf(";"));
    setVariableData("SessionID", formattedID);
    //System.out.println("Session ID: " + sessionString);
    } catch (Exception e) {
    e.printStackTrace();
    setVariableData("SessionID", e.getMessage());
    System.out.println("Logon Exception generated :: " + e);
    throw new RuntimeException(e);
    Caused by: java.lang.IllegalStateException: Cipher not initialized
    at javax.crypto.Cipher.c(DashoA13*..)
    at javax.crypto.Cipher.update(DashoA13*..)
    at com.certicom.tls.provider.Cipher.update(Unknown Source)
    at com.certicom.tls.record.MessageEncryptor.compressEncryptSend(Unknown Source)
    at com.certicom.tls.record.MessageEncryptor.compressEncryptSend(Unknown Source)
    at com.certicom.tls.record.MessageFragmentor.write(Unknown Source)
    at com.certicom.tls.record.WriteHandler.write(Unknown Source)
    at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireAlertSent(Unknown Source)
    at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown Source)
    at com.certicom.tls.record.handshake.HandshakeHandler.fireAlert(Unknown Source)
    at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessage(Unknown Source)
    at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(Unknown Source)
    at com.certicom.tls.record.MessageInterpreter.interpretContent(Unknown Source)
    at com.certicom.tls.record.MessageInterpreter.decryptMessage(Unknown Source)
    at com.certicom.tls.record.ReadHandler.processRecord(Unknown Source)
    at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
    at com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(Unknown Source)
    at com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(Unknown Source)
    at com.certicom.tls.record.WriteHandler.write(Unknown Source)
    at com.certicom.io.OutputSSLIOStreamWrapper.write(Unknown Source)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
    at java.io.FilterOutputStream.flush(FilterOutputStream.java:123)
    at weblogic.net.http.HttpURLConnection.writeRequests(HttpURLConnection.java:158)
    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:363)
    at weblogic.net.http.SOAPHttpsURLConnection.getInputStream(SOAPHttpsURLConnection.java:37)
    at weblogic.net.http.HttpURLConnection.getResponseCode(HttpURLConnection.java:952)
    at orabpel.productquerybpelprocess.ExecLetBxExe0.execute(ExecLetBxExe0.java:93)
    Thanks!

    Same question...did you ever got this resolved...for me, even the simple java program, when run on JDev 11g is ALSO not working. I am getting this.
    Using JDev 10g on the same machine (or for that matter SOA 10g) works perfectly.
    Have posted this thread too - Getting SSLHandshakeException when trying to login to OCOD using Jdev 11g
    Thanks,
    Amit

  • Need idea : Integration of CRM On Demand web services with Oracle SOA 10g

    Hi Al,
    Can anyone have any idea on integration of CRM on Demand Web service with Oracle SOA 10g specially BPEL 10g.
    If you have any idea please share with us. Or if you know any good link on the same... please let me know.....
    Thanks in advance
    Debarshi

    AFAIK there is no such mapping available, however you may want to take a look at this Support Community thread that discusses the migration and even gives some samples.
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • Error while calling RFC when using BSP Web Interface

    Hi,
    we have a problem with the Authorization when we use an Web Interface for BSP. We have assigned all roles to the user which were mentioned in the SAP standard documentation:
    R_AREA   
    R_METHOD 
    R_PACKAGE
    R_PARAM  
    R_PLEVEL 
    R_PM_NAME
    R_PROFILE
    R_STS_PT 
    R_STS_SUP
    R_WEBITF 
    S_RS_ADMWB
    S_RS_AUTH
    S_RS_COMP
    S_RS_COMP1
    S_RS_DAS 
    S_RS_ICUBE
    but we still get the error message: "Error while calling RFC".
    When using a user with SAP_ALL, it works.
    What can we do?
    Thx for your time.
    Joerg

    Actually that's surprising - because BSP (Business Server Pages) and RFC (Remote Function Call) are not related; they use totally different transport protocols (http vs. RFC). Even if an BSP application is calling a function module remotely (acting as RFC client) no authorizations for S_RFC are required - in the calling system (but in the called system, i.e. the RFC server).
    Since assigning SAP_ALL seems to "cure" the problem, it seems to be an authorization issue, indeed. In that case it makes sense to use the authorization trace (ST01 - notice: that's specific to one single ABAP application server; you might have to activate the trace on multiple instances) to find out which authorizations are checked / demanded.

  • CRM On Demand Web Services Release 18 from JDeveloper 10g (10.1.3.5)

    Hello,
    I have tried to do a query over an account with QueryPage method in JDeveloper 10.1.3.5 but i have the following error:
    javax.xml.rpc.soap.SOAPFaultException: Server
    * at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:566)*
    * at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:401)*
    * at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:114)*
    * at crm.outlook.proxy.runtime.Account_Stub.accountQueryPage(Account_Stub.java:76)*
    * at crm.outlook.proxy.AccountClient.accountQueryPage(AccountClient.java:108)*
    * at crm.outlook.proxy.AccountClient.main(AccountClient.java:73)*
    And the URL format to connect is:
    https://secure-ausomx[ENV].crmondemand.com/Services/Integration;jsessionid=4d60be775d680584e919a0b2fd6bb4260a4be9df6c10ab607eef3e1f167be64b.e3iRbxmMax50bxaNchyRa3yMe0
    The principal part of my source code is the following:
    input.setViewMode("Broadest");
    input.setLOVLanguageMode("LIC");
    listQuery.setPagesize(BigInteger.valueOf(100));
    listQuery.setStartrownum(BigInteger.valueOf(0));
    listQuery.setRecordcountneeded(true);
    id.set_value("AHKA-1ME4Z2");
    name.set_value("");
    externalID.set_value("");
    integrationID.set_value("");
    //I have changed the value of the query. With different possibilities, i.e.:
    //id.set_value("= 'AHKA-1ME4Z2' ");
    //and I have tried with the following too:
    //id.set_value(""); //to query all accounts
    accountQuery.setId(id);
    accountQuery.setAccountName(name);
    accountQuery.setExternalSystemId(externalID);
    accountQuery.setIntegrationId(integrationID);
    listQuery.setAccount(accountQuery);
    input.setListOfAccount(listQuery);
    myPort.accountQueryPage(input);
    I have tried with insert operation too, but the issue is the same.
    NOTES:
    - I haven't proxy.
    - I have activated "Integration Web Services" privileges.
    - I have activated "Web Services R16 Compatibility" in company profile. And I have tried unchecked it and the problem doesn't resolve.
    The login is correct over CRM OD (in uses WS CRM OD page I can see them), but the WS doesn't do the operation (query an account). It seems can't send the message.
    I have validate my environment [ENV] and it is correct.
    "Oracle Web Services On Demand Guide (Release 18)" differences with WS Release 16 to do a QueryPage Operation:
    - Obligatories fields --> ListOfEntity (in my case, ListOfAccount), ViewMode (I have specified, Broadest).
    - QueryPage Syntax Release 18: [XML Tag] {Operator} {Value} (Page 86), with Release 16: QueryPage Syntax: {Operator} {Value}
    - Release 18: it's necessary specify the searchspec option over AccountQuery Type.
    So, I have the following:
    accountQuery.searchspec ("[AccountName] = 'Gran Empresa, S.A.'");
    // I have tried too: accountQuery.searchspec("= [AccountName] = 'Gran Empresa, S.A.'");
    // accountQuery.searchspec("= '[AccountName]' = 'Gran Empresa, S.A.'"); listQuery.setAccount(accountQuery); input.setListOfAccount(listQuery);
    output = myPort.accountQueryPage(input);
    But it isn't solve the issue...
    Any idea what I'm doing wrong?
    thanks in advance and regards.

    Hello Frank,
    Thank you for your suggestion. I tried that and I got the same error. Looked more careful at it:
    Exception java.io.IOException: /my/home/data/opt/jdeveloper/jdev/bin/ojc: cannot execute
    I tried to execute it manually:
    $ l /my/home/data/opt/jdeveloper/jdev/bin/ojc
    -rw-rw-r-- 1 marius marius 1.9k Dec 2 19:20 /my/home/data/opt/jdeveloper/jdev/bin/ojc
    $ /my/home/data/opt/jdeveloper/jdev/bin/ojc
    bash: /my/home/data/opt/jdeveloper/jdev/bin/ojc: Permission denied
    Did
    $ chmod a+x /my/home/data/opt/jdeveloper/jdev/bin/ojc
    which solved the execution. Now Hello word works.
    I got jdeveloper as a .zip archive, which doesn't keep unix permissions. The Linux distribution should be in .tgz archive, it would have avoided this problem.
    Thanks!

  • OutofMemory Error while sending file to database using Web services

    I have a file of 30MB to be written to the MySQL database. I am doing this in Axis web services and it gives me the following error:
    (I am using Tomcat as the application server and Apache as the web server, Axis 1.3 and MySQL standard 5.0.21 version. I have set the minimum and maximum heap size and it works well without using the web service (just uploading and downloading from the database using a simple java program). Another thing to notice is that I can send a file of almost 10MB size to the database using web service without any problem. But it doesn't work with the 30 MB .)
    java.lang.OutOfMemoryError: Java heap space; nested exception is:
         java.lang.OutOfMemoryError: Java heap space
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
    faultSubcode:
    faultString: java.lang.OutOfMemoryError: Java heap space; nested exception is:
         java.lang.OutOfMemoryError: Java heap space
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}hostname:dbr221d.dbr.louisville.edu
    java.lang.OutOfMemoryError: Java heap space; nested exception is:
         java.lang.OutOfMemoryError: Java heap space
         at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
         at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
         at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:2443)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
         at edu.louisville.bcc_ma.ws.lab.LabServiceSoapBindingStub.storeGZIPFile(LabServiceSoapBindingStub.java:472)
         at edu.louisville.bcc_ma.lims.labclient.container.SendGZIPFile.sendFile(SendGZIPFile.java:69)
         at edu.louisville.bcc_ma.lims.labclient.container.LoginContainer.login(LoginContainer.java:58)
         at edu.louisville.bcc_ma.lims.labclient.container.LoginContainer.main(LoginContainer.java:44)

    Sorry for the delayed response here, forget to add it to my watchlist. I didn't catch if you were using Java 1.5 or not. Prior to 1.5 the default maximum heap space was 64MB which with the overhead of the appserver might be your problem.
    Take a look at http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html and the java -Xmx <size> command line option to change the default (I believe the size argument is in bytes, but don't hold me to that). I think you can pass that as a command line option to the startup script, but you should check the doco to see if it needs to be wrapped in some other arg etc.,
    I seem to recall running into this same problem a few years back when I had a servlet doing some intense graphics processing on the fly and setting this option fixed the problem.

  • Unknown error while trying to build and test web service

    Hi,
    I get this error while building my web service.It says "An unexpected exception
    occurred while attempting to process the classes and annotations for this Web Service.
    Error: Unknown KNEX string: description.null"
    Pasted below is the output on the IDE and the server.
    Please help!!
    Workshop output
    Charges.jws     0     An unexpected exception occurred while attempting to process the classes
    and annotations for this Web Service. Error: Unknown KNEX string: description.null
    Server output
    java.lang.NullPointerException
    at java.lang.Class.isAssignableFrom(Native Method)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.getElemRef(WsdlTypeBagImpl.java:928)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.crackClass(WsdlTypeBagImpl.java:386)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.addType(WsdlTypeBagImpl.java:522)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.filter(WsdlTypeBagImpl.java:606)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.getElemRef(WsdlTypeBagImpl.java:940)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.addParamHolder(WsdlTypeBagImpl.java:121)
    at weblogic.knex.wsdlgen.Schemas.addPartHolder(Schemas.java:45)
    at weblogic.knex.wsdlgen.TypeXlatorImpl.createMessage(TypeXlatorImpl.java:221)
    at weblogic.knex.wsdlgen.TypeXlatorImpl.fromJavaOp(TypeXlatorImpl.java:721)
    at weblogic.knex.wsdlgen.TypeXlatorImpl.fromJavaService(TypeXlatorImpl.java:831)
    at weblogic.knex.dispatcher.TypeUtils.makeWsdlService(TypeUtils.java:1388)
    at weblogic.knex.dispatcher.TypeUtils.makeWsdl(TypeUtils.java:1459)
    at weblogic.knex.dispatcher.DispFile.makeDispClass(DispFile.java:2528)
    at weblogic.knex.dispatcher.DispFile.makeDispFile(DispFile.java:611)
    at weblogic.knex.dispatcher.DispUnit.makeDispUnit(DispUnit.java:50)
    at weblogic.knex.dispatcher.DispCache.ensureDispUnit(DispCache.java:584)
    at weblogic.knex.dispatcher.HttpServer.doGet(HttpServer.java:297)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5352)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:718)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet
    (WebAppServletContext.java:3032)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    Thanks and Regards,
    SSN

    Hello,
    You might try asking your question to the WebLogic Workshop news group: weblogic.developer.interest.70beta.workshop
    Thanks,
    Bruce
    SSNarayan wrote:
    Hi,
    I get this error while building my web service.It says "An unexpected exception
    occurred while attempting to process the classes and annotations for this Web Service.
    Error: Unknown KNEX string: description.null"
    Pasted below is the output on the IDE and the server.
    Please help!!
    Workshop output
    Charges.jws 0 An unexpected exception occurred while attempting to process the classes
    and annotations for this Web Service. Error: Unknown KNEX string: description.null
    Server output
    java.lang.NullPointerException
    at java.lang.Class.isAssignableFrom(Native Method)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.getElemRef(WsdlTypeBagImpl.java:928)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.crackClass(WsdlTypeBagImpl.java:386)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.addType(WsdlTypeBagImpl.java:522)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.filter(WsdlTypeBagImpl.java:606)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.getElemRef(WsdlTypeBagImpl.java:940)
    at weblogic.knex.wsdlgen.WsdlTypeBagImpl.addParamHolder(WsdlTypeBagImpl.java:121)
    at weblogic.knex.wsdlgen.Schemas.addPartHolder(Schemas.java:45)
    at weblogic.knex.wsdlgen.TypeXlatorImpl.createMessage(TypeXlatorImpl.java:221)
    at weblogic.knex.wsdlgen.TypeXlatorImpl.fromJavaOp(TypeXlatorImpl.java:721)
    at weblogic.knex.wsdlgen.TypeXlatorImpl.fromJavaService(TypeXlatorImpl.java:831)
    at weblogic.knex.dispatcher.TypeUtils.makeWsdlService(TypeUtils.java:1388)
    at weblogic.knex.dispatcher.TypeUtils.makeWsdl(TypeUtils.java:1459)
    at weblogic.knex.dispatcher.DispFile.makeDispClass(DispFile.java:2528)
    at weblogic.knex.dispatcher.DispFile.makeDispFile(DispFile.java:611)
    at weblogic.knex.dispatcher.DispUnit.makeDispUnit(DispUnit.java:50)
    at weblogic.knex.dispatcher.DispCache.ensureDispUnit(DispCache.java:584)
    at weblogic.knex.dispatcher.HttpServer.doGet(HttpServer.java:297)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5352)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:718)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet
    (WebAppServletContext.java:3032)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    Thanks and Regards,
    SSN

  • Issue while Calling Rights Management LifeCycle Server web service to apply policies to a pdf

    Hi,
    I am trying to apply a policy to a pdf using MTOM LifeCycle server web service API. Currently the server is using the https protocol. I followed the below links for this.
    Adobe LiveCycle * Applying Policies to PDF Documents
    Adobe LiveCycle * Quick Start (MTOM): Applying a policy to a PDF document using the web service API
    I changed the IP address in the URL while adding the reference and creating the endpoint. But I am receiving the below error message.
    The provided URI scheme 'https' is invalid; expected 'http'. Parameter name: via.
    can someone please help.
    Thanks,
    Nikhil

    Below is the c# code and config files.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.ServiceModel;
    using System.IO;
    using System.Net;
    using System.Net.Security;
    using System.Security.Cryptography.X509Certificates;
    using ConsoleApplication1.ServiceReference1;
    namespace ConsoleApplication1
        class Program
            static void Main(string[] args)
                try
                    //Create a RightsManagementServiceClient object
                    RightsManagementServiceClient rmClient = new RightsManagementServiceClient();
                    rmClient.Endpoint.Address = new System.ServiceModel.EndpointAddress("https://IPAddressofSite/soap/services/RightsManagementService?blob=mtom");
                   //Enable BASIC HTTP authentication
                    BasicHttpBinding b = (BasicHttpBinding)rmClient.Endpoint.Binding;
                    b.MessageEncoding = WSMessageEncoding.Mtom;
                    rmClient.ClientCredentials.UserName.UserName = "********";
                    rmClient.ClientCredentials.UserName.Password = "*********";
                    b.Security.Transport.ClientCredentialType = HttpClientCredentialType.Basic;
                    //b.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly;
                   b.Security.Mode = BasicHttpSecurityMode.Transport;
                    //Create a BLOB that represents the PDF document
                    //to which a policy is applied
                    BLOB inDoc = new BLOB();
                    //Reference the PDF document to which a policy is applied
                    string inputFileName = @"P:\PDF\TextToPDf.pdf";
                    FileStream fs = new FileStream(inputFileName, FileMode.Open);
                    //Get the length of the file stream
                    int len = (int)fs.Length;
                    byte[] ByteArray = new byte[len];
                    //Populate the byte array with the contents of the FileStream object
                    fs.Read(ByteArray, 0, len);
                    inDoc.MTOM = ByteArray;
                    //Prepare output parameters
                    string PolicyID;
                    string DocumentID;
                    string MimeType;
                    SetCertificatePolicy();
                    //Apply a policy to a PDF document named Loan.pdf
                    BLOB outDoc = rmClient.protectDocument(
                        inDoc,
                        "TextToPDf.pdf",
                        "Test Policy Set",
                        "Test Policy 1",
                        null,
                        null,
                        ConsoleApplication1.ServiceReference1.RMLocale.en,
                        out PolicyID,
                        out DocumentID,
                        out MimeType);
                    //Populate a byte array with the contents of the BLOB
                    byte[] outByteArray = outDoc.MTOM;
                    //Create a new file containing the policy-protected PDF document
                    string FILE_NAME = @"P:\PDF\PolicyProtectedLoanDoc.pdf";
                    FileStream fs2 = new FileStream(FILE_NAME, FileMode.OpenOrCreate);
                    BinaryWriter w = new BinaryWriter(fs2);
                    w.Write(outByteArray);
                    w.Close();
                    fs2.Close();
                catch (Exception ee)
                    Console.WriteLine(ee.Message);
                    Console.ReadKey();
            /// <summary>
            /// Sets the cert policy.
            /// </summary>
            public static void SetCertificatePolicy()
                ServicePointManager.ServerCertificateValidationCallback += RemoteCertificateValidate;
            /// <summary>
            /// Remotes the certificate validate.
            /// </summary>
            private static bool RemoteCertificateValidate(object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors error)
                // trust any certificate!!!
                System.Console.WriteLine("Warning, trust any certificate");
                return true;
    web.config:
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        <system.serviceModel>
            <bindings>
                <basicHttpBinding>
                    <binding name="RightsManagementServiceSoapBinding" closeTimeout="00:01:00"
                        openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                        allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
                        maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
                        messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
                        useDefaultWebProxy="true">
                        <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                        <security mode="Transport">
                            <transport clientCredentialType="None" proxyCredentialType="None"
                                realm="AXIS" />
                            <message clientCredentialType="UserName" algorithmSuite="Default" />
                        </security>
                    </binding>
                    <binding name="RightsManagementServiceSoapBinding1" closeTimeout="00:01:00"
                        openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                        allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
                        maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
                        messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
                        useDefaultWebProxy="true">
                        <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                        <security mode="None">
                            <transport clientCredentialType="None" proxyCredentialType="None"
                                realm="" />
                            <message clientCredentialType="UserName" algorithmSuite="Default" />
                        </security>
                    </binding>
                </basicHttpBinding>
            </bindings>
            <client>
                <endpoint address="https://IPAddressofSite/soap/services/RightsManagementService"
                    binding="basicHttpBinding" bindingConfiguration="RightsManagementServiceSoapBinding"
                    contract="ServiceReference1.RightsManagementService" name="RightsManagementService" />
            </client>
        </system.serviceModel>
    </configuration>

  • Getting error while creating Customer Invoice Request via Web Service

    Hello,
    I am trying to create customer invoice request via web service.
    But I am getting the error message "No scheme configuration found for scheme '&CIRHP&' " continuously.
    It is working fine in reference tenant. But using the same payload its giving error in another tenant.
    Can you please tell me what is the root cause for this error?
    I have included the payload used in the prototype tenant(Payload.txt) and screen shot of the error.
    Thanks and Regards,
    Sriram

    Hi,
    Check the WSDL file is wellformed or not..You can test it using tools like XML Spy.
    Might be the attribute tag is missing something..If WSDL file is correct then, create proxy by selecting the WSDL file from local machine..
    Regards,
    Sunitha

  • Access denied Error while calling Web Service form Infopath Form 2010.

    Hi Dear All,
    I have been facing an error while calling an GetUserProfileByName() web service method from InfoPath 2010 from.
    i have FBA(Forms Base Authentication )configured . After Infopath form published to site collection when i select an user from people picker control i want to get Email Id of Selected user for that i am calling getUserProfileByName() Web Method, but 
    i am getting Access denied error code 500.
    Any Help would be more than welcome.
    Thanks.

    Hi,
    Greetings. Please check 
    Check the IE settings. Click Internet Options> Security>Custom level. Make sure that the ‘Access data source across domains’ is enabled. Make sure that you have permission to the web service and to the content which the web service tries to modify.
    For more information, please refer to this site:
    "Access is denied." error in Infopath 2007 form + ASMX: http://us.generation-nt.com/answer/access-denied-error-infopath-2007-form-plus-asmx-help-65808252.html
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Error while calling MII transaction as web service

    Hi all,
    I am using MII version 12.1.8
    When i try calling a BLS as a web service i am getting an error as " [ERROR] Error Invoking Web Service Action: Status (502): Proxy Error ( No data record is available. ) "
    The same WSDLGen url is working from the browser. The path is http://<server>:50000/XMII/WSDLGen/<TrxPath>
    I also gave Proxy Host and Proxy Port in System Management --> System Administration
    Is there anything i am missing in the web service action.
    Kindly help
    Regards
    Muzammil

    Hi Diana,
    It is working now. I removed the proxy settings from system administrator and added a new credential alias for web service. And then it started working..
    The scenario which i am trying is as mentioned. We need to call a transaction from a diiferent MII Server. So at first i was trying with the Trx within the same server.
    Hope this is the best way to access the transaction from a different server.
    Regards
    Muzammil

  • Error while calling up RFC

    Hi GuRuS,
               I am working on BI 7.0. When I open the BPS workbench using Transaction bps0 and select the planning area 4TPM9000, and click on either "Variables" tab or "Master Data" tab or when I click on "Adhoc Package", I get this error " You have selected a function, to execute this the system must set up an RFC connection to another SAP System. However, setting up this connection was not successful. The following internal error message was generated: Error while calling up RFC. " 
    FYI I have done RFC connections between my CRM 2007 system and BI 7.0 system using Tr.SM59 and checked the connections from both the ends and it is working fine. So, pls show me the way out.
    Thanks in advance,
    Raghu

    Hi...
         The roles SAP_ALL and SAP_NEW are assigned for the RFCUser.
    Regards,
    Raghu

  • Error while calling COM routines via application prog(return code 1028533-)

    Hello Expert,
    In Interactive Demand Planning ( /SAPAPO/SDP94 ), when I'm trying to load data in a planning book , error
    'Error while calling COM routines via application program (return code 1028533-)' is encountered.
    In my selection id, i have only two locations....there is no material selection. 
    When I select the 1st location and load the data its getting loaded properly.....but when i select the 2nd location and try loading data ...the above error is coming.
    I did run /SAPAPO/TS_LCM_CONS_CHECK but the problem persist.
    Any advise to fix this issue would be much appreciated.
    Thanks.
    Tom

    Hi Tom,
    Please see if below exiting threads help you.
    COM error 40134 in Interactive Planning on SCM 5.0 Support Pack SAPKY50011
    Error for COM Routine application program (return code 40028)
    Thukral

  • Error While calling getListItem Webservice : Server was unable to process request. --- Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    Hi All,
    we are calling sharepoint webservice from our web application but we are getting below error while calling webservice.
    Server was unable to process request. ---> Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    Our code is as below.
    We used below 2 options but we got same error for both scenario,
    1)
                ListService.Lists objLists = new ListService.Lists();
                NetworkCredential objNetworkCredential = new NetworkCredential("username", "password");
                objLists.Credentials = objNetworkCredential;
                System.Xml.XmlNode objXmlNode = objLists.GetListItems("Tasks", null, null, null, null, null, null);
    2)         ListService.Lists objLists = new ListService.Lists();
                objLists.Proxy = new WebProxy("proxyaddress",true);
                NetworkCredential objNetworkCredential = new NetworkCredential("username", "password");
                objLists.Credentials = objNetworkCredential;
                System.Xml.XmlNode objXmlNode = objLists.GetListItems("Tasks", null, null, null, null, null, null);
    Please help me what is the problem while calling this service.
    Thanks in advance.
    Regards,
    Kaivan Shah

    Hi ,
    Here is a similar case ,you can have a look at this .
    Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) -Accessing the sharepoint site:
    http://social.msdn.microsoft.com/Forums/en-NZ/sharepointworkflow/thread/5eab2116-7d7c-4bf3-bfa1-48bd8992dded
    Thanks,
    Entan Ming

Maybe you are looking for