Siebel CRM Web services query limit 100 rows

Hi everyone,
A have an little problem here.
I need get accounts, contacts and oportunitys from Siebel CRM in clound using SIEBEL web service query methods BUT this web service allow me only 100 rows per query and I need more because at this moment I am using ODI interfaces for load XML response file into database tables and ODI don´t have an loop and so on...
My question is:
Is possible eliminate this limitation in administrative painel or something like?
Thanks in advice..
José Rodrigo
Edited by: user7286844 on 27/09/2011 14:07

What version of Siebel are you using? There was a bug in some versions when session management was used but it worked okay in other scenarios, e.g., when the user id and password were passed in the URL. This bug (id 12-1KXYCJ7 and 12-1KXYCJ7) has been fixed (more than once by the look of it). I have not noticed the same in 8.1.1.1.

Similar Messages

  • While consuming Fusion CRM web service in ADF mobile throwing an error

    Hi,
    I am developing ADF Mobile using JDeveloper
    11.1.2.3 and consuming Fusion CRM ADF Web Services.
    While executing CRUD operations with these web services
    in ADF mobile app, I am getting SOAP response as *Error in getting response
    and got result nothing *.
    And also noticed as using JDeveloper ADF mobile App, unable to create URL service
    Data Control - REST based for FUsion CRM web services. Where as I am able to
    create SOAP based web services data control. It' strange or surprise.
    Did anyone face the above problems. Kindly let me know any suggestions or
    samples to the below contacts
    Regards
    Bhaskara Reddy S
    00919008466722
    bhaskara.sannapureddy at Crmit.com

    Dear Frank,
    Based on below links, Fusion CRM also supports REST also apart from regular SOAP Web Services.
    http://niallcblogs.blogspot.in/2012/10/204-calling-rest-service-from-fusion-crm.html AND
    http://docs.oracle.com/cd/E15586_01/fusionapps.1111/e20388/F412758AN17B21.htm
    (For e.g one of linked in profile :http://www.linkedin.com/in/minalkhodani , many teams are developing using SOAP & REST)
    Designed and developed integration services using SOAP and REST web services for Oracle Fusion CRM Marketing Modules.)
    When creating URL based data control, getting an Error as "Forbidden" , (Does it mean NOT SUPPORTED??) . Kindly advice.
    I am calling WEB SERVICE thru SOAP in AMX PAGE code as below after creating Web Services Data Control from ADF Mobile UI thru JDeveloper IDE.
    == CODE SNIPPET OF AMX PAGE CALLING SOAP FUSION CRM WEB SERVICE =======
    <?xml version="1.0" encoding="UTF-8" ?>
    <amx:view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:amx="http://xmlns.oracle.com/adf/mf/amx"
    xmlns:dvtm="http://xmlns.oracle.com/adf/mf/amx/dvt">
    <amx:panelPage id="pp1">
    <amx:panelFormLayout id="pfl2">
    <amx:inputText value="#{bindings.name.inputValue}" label="Person First Name" id="it1"/>
    <amx:inputText value="300000001210220" label="Person Object Id" id="it2"/>
    </amx:panelFormLayout>
    <amx:facet name="header">
    <amx:outputText value="Create Person in Fusion CRM" id="ot1"/>
    </amx:facet>
    <amx:facet name="primary">
    <amx:commandButton id="cb1" text="Back" action="__back"/>
    </amx:facet>
    <amx:facet name="secondary">
    <amx:commandButton id="cb2"/>
    </amx:facet>
    <amx:panelFormLayout id="pfl1">
    </amx:panelFormLayout>
    <amx:outputText value="#{bindings.message.inputValue}" id="ot2"/>
    <amx:outputText value="#{bindings.code.inputValue}" id="ot3"/>
    *<amx:commandButton actionListener="#{bindings.createPerson.execute}" text="createPerson"*
    *disabled="#{!bindings.createPerson.enabled}" id="cb3"/>*
    <amx:iterator var="row" value="#{bindings.personParty1.collectionModel}" id="i1">
    <amx:panelLabelAndMessage label=" 300000001210220" id="plam2">
    <amx:outputText value="#{row.PartyId}" id="ot5">
    <amx:convertNumber groupingUsed="false"/>
    </amx:outputText>
    </amx:panelLabelAndMessage>
    <amx:panelLabelAndMessage label="#{bindings.name.inputValue}" id="plam1">
    <amx:outputText value="#{row.PersonFirstName}" id="ot4"/>
    </amx:panelLabelAndMessage>
    </amx:iterator>
    </amx:panelPage>
    </amx:view>
    Regards
    Bhaskara Reddy

  • Invoke Siebel OnDemand Web Service via BPEL

    Hi,
    We are trying to invoke Siebel OnDemand Web Service via BPEL.
    We have followed the steps as mentioned in
    http://www.oracle.com/technetwork/topics/ofm-siebel-blog-postings-092216.html
    But still we are unable to get the Session Id.
    Do we need to opne any port to resolve this issue or do we have any other way to get the session ID.
    Please let me know if there is any solution to this...
    Thanks

    Thanks for the update..
    We are trying to invoke the CRM On Demand session ID using the BPEL. It seems the we are having some problem with the URL
    https://secure-ausomxapa.crmondemand.com/Services/Integration?command=login
    => `Integration?command=login
    we are trying to access the URL from our SOA server using wget and we are getting following result.
    [XXXXXXXXXXXXXXX ~]$ wget https://secure-ausomxapa.crmondemand.com/Services/Integration?command=login
    --07:32:19-- https://secure-ausomxapa.crmondemand.com/Services/Integration?command=login
    => `Integration?command=login'
    Resolving secure-ausomxapa.crmondemand.com... 141.146.149.68
    Connecting to secure-ausomxapa.crmondemand.com|141.146.149.68|:443...
    We are expecting that we are unable to access the URL using 443 port.

  • Siebel OnDemand Web Services and BPEL II

    We are trying to do a POC for a given client that is trying to decide between SOD and another on demand CRM product.
    Our POC is to integrate SOD using bpel and sending data to a back end system with SOD as the originator and instigator of the flow.
    We intend to take data from an integration event pull it into bpel do a transformation to add data to it and update SOD to complete the circuit.
    We are having a few issues and was wondering if you can provide some insight since we would like to put SOD at this site.
    Our issues are :)
    Issue 1
    When we import the WSDL for the Integration event the scheema's are not resolved.
    Issue 2. When we import more than one WSDL in our flow it has issues with duplicates between the 2 wsdls..
    issue 3.
    We have succesfully used the example application to do our login and faked out the endpoint but have not been able to automate this step.
    We found an example online at oracle ( http://www.oracle.com/technology/tech/fmw4apps/siebel/ofm-siebel-blog-postings.html)
    (We got that link from the other BPEL post: Siebel OnDemand Web Services and BPEL
    But when we copy the code into our embeded java object it doesn't work. I think that we may be missing some of the code to use.
    Do we have the full copy of this java object?
    here is hte error that we get from bpel
    Exception reported is: Siebel_On_Demand.bpel:33: Class bpel.p0.URL not found.
    URL wsURL = new URL(wsLocation + "?command=login");
    ^
    Siebel_On_Demand.bpel:33: Class bpel.p0.URL not found.
    URL wsURL = new URL(wsLocation + "?command=login");
    ^
    Siebel_On_Demand.bpel:34: Class bpel.p0.HttpURLConnection not found.
    HttpURLConnection wsConnection = (HttpURLConnection)wsURL.openConnection();
    ^
    Siebel_On_Demand.bpel:34: Class bpel.p0.HttpURLConnection not found.
    HttpURLConnection wsConnection = (HttpURLConnection)wsURL.openConnection();
    ^
    Siebel_On_Demand.bpel:42: Class bpel.p0.HttpURLConnection not found.
    if (wsConnection.getResponseCode() == HttpURLConnection.HTTP_OK)
    ^
    Siebel_On_Demand.bpel:42: Undefined variable or class name: HttpURLConnection
    if (wsConnection.getResponseCode() == HttpURLConnection.HTTP_OK)
    We appriciate any help that cam be provided :)
    Thanks
    Message was edited by:
    user642301

    I'm also trying to do this.
    Some info from the Siebel web services guide:-
    "The login request is an HTTPS request to instantiate a session and obtain a session ID. A client invokes login by sending an HTTP GET request to a URL like the following:
    https://secure.crmondemand.com/Services/Integration?command=login
    NOTE: The login parameter value is case sensitive.
    ■ Login input. The input to login is provided in the URL parameters and the HTTP headers, as follows:
    ■ The only URL parameter to be set is command. This parameter value is login.
    Two HTTP headers, UserName and Password, must be set with the appropriate values for your system. For example:
    ❏ UserName: [email protected]
    ❏ Password: mypass
    ■ Login output. The login command returns the following items:
    ■ A session cookie, jsessionid. The client must use this cookie when submitting subsequent requests, including logoff requests.
    ■ A status code of 200, if the session does not encounter any errors. This indicates that the request succeeded.
    Then to get data out ....
    Integration request input. The jsessionid returned to the client during login must be included with the request. The request must contain the jsessionid either as a cookie or as a URL parameter, as follows:
    https://secure.crmondemand.com/Services/Integration/object;jsessionid=xyZ12489w3482413
    Does anyone have any ideas on how we might do this using the Oracle BPEL PM?
    Thanks in advance.

  • Bugs in BC CRM web service need to be fix (Server was unable to process request ERROR: A server error has occured)

    I'm using the following code to retrieve order list is working fine but it give me an error Server was unable to process request ERROR: A server error has occurred when I trying to retrieve order total paid with same code: and the output when retrieve order total paid is [object Object]
    var wsUrl = "https://mysite.worldsecuresystems.com/CatalystWebService/CatalystCRMWebservice.asmx?WSDL";
                          var RetrieveTotalPaidXML =
                          '<?xml version="1.0" encoding="utf-8"?>\
                          <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">\
                          <soap12:Body>\
                          <Order_RetrieveTotalPaid xmlns="http://tempuri.org/CatalystDeveloperService/CatalystCRMWebservice">\
                          <username>user</username>\
                          <password>pass</password>\
                          <siteid>111222</siteid>\
                          <orderId>112345</orderId>\
                          </Order_RetrieveTotalPaid>\
                          </soap12:Body>\
                          </soap12:Envelope>';
                           $.ajax({
                            type: "POST",
                            url: wsUrl,
                            Host: "mysite.worldsecuresystems.com",
                            contentType: "application/soap+xml; charset=utf-8",
                            data: RetrieveTotalPaidXML,
                            dataType: "xml",
                            success: processSuccess,
                            error: function(){alert("Error: Something went wrong");}
                           function processSuccess(ResData) {
                           var RetrieveTotalPaidParse = $.parseXML(ResData);
                           var $xmlRetrieveTotalPaidParse = $(RetrieveTotalPaidParse);
                           var $Order_RetrieveTotalPaidResult = $xmlRetrieveTotalPaidParse.find('Order_RetrieveTotalPaidResult');
                                   $Order_RetrieveTotalPaidResult = $(this).find('Order_RetrieveTotalPaidResult').text();
                                   $('#RetrieveTotalPaidResult').text(Order_RetrieveTotalPaidResult);
    I think there a bug in BC CRM Web Service when trying to make a request for Order_RetrieveTotalPaid using soap need to be fix

    Perhaps it would be good to update the sample request as shown on the  Developer reference page for this method (and, actually ALL of the SOAP samples)
    The sample shows siteid (all lower case)

  • Can a web service query a database at set intervals?

    Can someone verify if this is feasible?
    I need to display live data via browsers .  I would like to have the query to the database executed server side and have the web service provide the data to the browsers.
    Here is what I propose :
    I would like to have a web service run on a web server for an intranet.
    Have the web service  query a database every 20 seconds and update the data into a table or an array variable. 
    On the browser side I want the browser to refresh every 20 seconds with the updated data from the web service.
    Any other recommendations would be greatly appreciated.
    Thank you.
    Chris W.

    Hi ChrisTW1,
    Thank you for posting in MSDN forum.
    Based on your issue, I suggest you can try to use the JS to call the web service to set the intervals. For more information about how to use the JS to call the web service to set the intervals, please see:
    http://www.codeproject.com/Tips/647322/Calling-ASP-NET-Webservice-using-JavaScript-on-Reg
    In addition, since
    this forum is to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor. If you have any issues about the set the
    intervals for the web service, I suggest you can post this issue directly to the WCF forum:https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wcf, maybe
    you will get more help.
    Hope it help you!
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem building schema - Siebel OnDemand Web Services

    I'm trying to call a Siebel OnDemand Web Service from BPEL.
    I've downloaded the Contact.wsdl from OnDemand and imported it into my project.
    I've created a partner link and created variables for the input and output.
    The problem is that JDeveloper cannot build the schemas defined in the wsdl.
    If you try to copy a value to the Input variable, JDeveloper gives the error:
    Exception - Problem building schema!
    You cannot navigate the schema path.
    Does anyone know why this is happening?

    I'm also trying to do this.
    Some info from the Siebel web services guide:-
    "The login request is an HTTPS request to instantiate a session and obtain a session ID. A client invokes login by sending an HTTP GET request to a URL like the following:
    https://secure.crmondemand.com/Services/Integration?command=login
    NOTE: The login parameter value is case sensitive.
    ■ Login input. The input to login is provided in the URL parameters and the HTTP headers, as follows:
    ■ The only URL parameter to be set is command. This parameter value is login.
    Two HTTP headers, UserName and Password, must be set with the appropriate values for your system. For example:
    ❏ UserName: [email protected]
    ❏ Password: mypass
    ■ Login output. The login command returns the following items:
    ■ A session cookie, jsessionid. The client must use this cookie when submitting subsequent requests, including logoff requests.
    ■ A status code of 200, if the session does not encounter any errors. This indicates that the request succeeded.
    Then to get data out ....
    Integration request input. The jsessionid returned to the client during login must be included with the request. The request must contain the jsessionid either as a cookie or as a URL parameter, as follows:
    https://secure.crmondemand.com/Services/Integration/object;jsessionid=xyZ12489w3482413
    Does anyone have any ideas on how we might do this using the Oracle BPEL PM?
    Thanks in advance.

  • SOAP web service: query parameter?

    Hi guys,
    I'm a newbie when it comes to web services and I've hit a problem that I didn't expect. I've exposed several SOAP services using the JAX-WS and WebLogic which are working fine. I've tried implementing an access key security mechanism such as Amazon does by adding a filter in front of the service's handling servlet to check for an access key sent as an HTTP query parameter. So basically, the service that was exposed at the following URL:
    http://localhost/company/service
    must now be accessed using the following URL:
    http://localhost/company/service?accessKey=123
    The filter checks the accessKey parameter and short-circuits the request if the wrong access key is sent.
    While this approach works well with JAX-RS web services, it doesn't seem to be working as well with JAX-WS web services: adding the parameter makes WebLogic return a 404 error instead of processing the request. I'm convinced I've seen web services being called with query parameters and that this can be done, but I don't see how. Any ideas anyone?
    Cheers!

    It seems that the servlet generated by Workshop doesn't handle extra parameters too well. I've managed to get it working by tweaking the filter so that it lets WSDL retrieval requests pass through but still filters the other requests. Everything is working fine.

  • Create Lead with Oracle BPEL process using Siebel CRMOD web service

    I'm trying to create a lead in the siebel OD (hosted) with a oracle BPEL process and using the siebel web service (2.0). In my bpel process I've been able to
    1. Login to OD and get a session id
    2. create the partner link using Siebel OD (version 2.0) wsdl for Lead
    3. Assign the session id to the partner link
    4. Assign the inputs (lastname, firstname, leadowner, viewMode=Personal, lovLanguageMode=LDC) to lead
    5. Call the leadInsert operation on the partner link
    However, when I deploy and execute the bpel process it breaks after calling the leadInsert with the following error message:
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>Server</code>
    </part><part name="summary"><summary>The record with search specification '' in business component 'Lead' (integration component 'Lead') has been deleted by another user since it was retrieved.(SBL-EAI-04289)</summary>
    </part><part name="detail"><detail>&lt;detail>
    &lt;siebelf:siebdetail xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    &lt;siebelf:logfilename xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">OnDemandServicesObjMgr_enu_138636.log&lt;/siebelf:logfilename>
    &lt;siebelf:errorstack xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    &lt;siebelf:error xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    &lt;siebelf:errorcode xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">(SBL-DAT-00494)&lt;/siebelf:errorcode>
    &lt;siebelf:errorsymbol xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"/>
    &lt;siebelf:errormsg xmlns:siebelf="http://www.siebel.com/ws/fault" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">The record with search specification '' in business component 'Lead' (integration component 'Lead') has been deleted by another user since it was retrieved.(SBL-EAI-04289)&lt;/siebelf:errormsg>
    &lt;/siebelf:error>
    &lt;/siebelf:errorstack>
    &lt;/siebelf:siebdetail>
    &lt;/detail>
    </detail>
    </part></remoteFault>
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Any feedback as to what I'm doing worng woull be greatly appreciated.
    Thanks,
    --manoj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    We are also using BPEL to send data out to SIEBEL CRMOD.
    I've created a proxy that deals with authentication and session management.
    All you have to do is to deploy the proxy as a war file and refrence it as the end-point of your partner link.
    Code is here:
    http://another-soa-blog.blogspot.com/2010/02/oracle-siebel-on-demand-session-and.html
    Regards,
    Fred.

  • Issue with Siebel Inbound Web Service

    Hi pals,
    I have to make an Inbound Web Service that accept one Service Request, Insert the record in siebel's database and return the SR Number.
    I did an Integration Objects with the fields that I need, but I'm stuck with the workflow's steps, I did the next Workflow.
    Start-- EAI DATA MAPPING ENGINE---EAI SIEBEL ADAPTER (Insert)--END
    But I'm not sure if this will work.
    Anybody could you help me telling me if this steps are ok or If I need some more steps. Which are the arguments that have to be involved in the steps.
    Another issue is that I don't know if is it possible do the test since its a web service and I don't have the consumer system.
    Thanks for the help.
    Edited by: user8035855 on 16/11/2009 11:43 AM

    Hi Manohar
    You have posted the same question with two different subject text
    anyway follow these SAP notes your problem will be short out
    Note 856597 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 SOAP Adapter
    https://websmp102.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=856597&_NLANG=E
    Note 856599 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 Mail Adapter
    https://websmp102.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=856599&_NLANG=E
    Note 870845 - XI 3.0 SOAP adapter SSL client certificate problem
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=916664&nlang=EN&smpsrv=https%3a%2f%2fwebsmp102%2esap-ag%2ede
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=870845&nlang=EN&smpsrv=https%3a%2f%2fwebsmp102%2esap-ag%2ede
    check the OSS Note 554174 & see if it helps
    Note 645357 - SAPHTTP: SSL error
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=645357&nlang=EN&smpsrv=https%3a%2f%2fwebsmp102%2esap-ag%2ede
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1150980&nlang=EN&smpsrv=https%3a%2f%2fwebsmp102%2esap-ag%2ede
    one alternative may be Restart ICM (Internet Communication Manager) .This will solve your HTTP issue
    Cheers!!!!
    Regards
    sandeep
    if helpful kindly reward points

  • Specifying multiple books in WS2 web services query

    Hi,
    I am wondering if anybody has managed to use web services to query data and restrain by more than 1 book of business. According Oracle Support this can be done though the use of searchspec to determine the Book. I have tried this with no success
    Here is a SOAP message with just a single Book reference. It returns no results?
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body>
    <ContactQueryPage_Input xmlns="urn:crmondemand/ws/ecbs/contact/">
    <ListOfContact xmlns="urn:/crmondemand/xml/Contact/Query">
    <Contact searchspec="([ContactFirstName] = 'John') AND ([BookId] = 'AHIA-N3S58')"><Id />
    </Contact>
    </ListOfContact>
    </ContactQueryPage_Input></soap:Body></soap:Envelope>
    For multiple books the searchspec would be
    <Contact searchspec="([ContactFirstName] = 'John') AND ([BookId] = 'AHIA-N3S58') AND ([BookId] = 'AHIA-N3S76')"><Id />
    Any guidance is appreciated.
    Edited by: user10730659 on 11-Nov-2012 20:59

    Hi Christina,
    Thanks for your response. I had a typo in my initial description the searspec should have read:
    <Contact searchspec="([ContactFirstName] = 'John') AND (([BookId] = 'AHIA-N3S58') OR ([BookId] = 'AHIA-N3S76'))"><Id />
    Have you been able to specify the BookId in the searchspec successfully?
    I dont get an error thrown just no results returned - when I just specfiy 1 book. I normally set the book Id in the query but when using multiple books this won't work, hence why I am looking to use the searchspec...

  • Oracle CRM web services

    javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? and 500 Internal error
    This is the error I am getting, whenever I run the program. I have put dummy credentials
    package crmod;
    import com.sun.net.httpserver.Authenticator;
    import crmondemand.xml.contact.Contact;
    import java.io.IOException;
    import java.net.HttpURLConnection;
    import java.net.PasswordAuthentication;
    import java.net.URL;
    import java.security.Security;
    import java.util.StringTokenizer;
    import org.apache.axis.session.Session;
    public class CRMOD {
        public CRMOD() {
        public static void main(String[] args) {
        //  System.getProperties().put( "proxyHost", "172.17.24.24");
         // System.getProperties().put( "proxyPort", "8003");
       //   System.getProperties().put("proxySet", true);
         //            System.setProperty("http.proxyHost", "172.17.24.24");
         //            System.setProperty("http.proxyPort", "8003");
          //           System.setProperty("https.proxyHost", "172.17.24.24");
        //             System.setProperty("https.proxyPort", "8003");
          //           System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
          //           Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
          System.setProperty("javax.net.ssl.trustStore","C:\\Oracle\\Middleware\\jdk160_21\\jre\\lib\\security\\cacerts");
        System.setProperty("https.proxyHost", "172.17.24.24 ");
        System.setProperty("https.proxyPort", "8003");
           System.setProperty("mail.smtp.socketFactory.fallback", "true");
          String jsessionid;
                 String endpoint;
                 try
                                          CRMOD crmod = new CRMOD();
                                          System.out.println("Logging In");
                                          jsessionid = crmod.logon("https://secure-slsomxvka.crmondemand.com/Services/Integration", "CRM", "Ondemand");
                                          System.out.println(jsessionid);
                   endpoint =  "https://secure-slsomxvka.crmondemand.com/Services/Integration" + ";jsessionid=" + jsessionid;
                   URL urlAddr =  new java.net.URL( endpoint);
                   crmondemand.ws.contact.Contact service = new crmondemand.ws.contact.ContactLocator();
                   crmondemand.ws.contact.Default_Binding_Contact stub = service.getDefault(urlAddr);
                   crmondemand.ws.contact.ContactWS_ContactInsert_Input contactlist = new crmondemand.ws.contact.ContactWS_ContactInsert_Input();
                   crmondemand.ws.contact.ContactWS_ContactInsert_Output outlist = new crmondemand.ws.contact.ContactWS_ContactInsert_Output();
                   crmondemand.xml.contact.Contact[] contacts = new crmondemand.xml.contact.Contact[1];
                   crmondemand.xml.contact.Contact contact = new crmondemand.xml.contact.Contact();
                   contact.setContactFirstName("Joy");
                   contact.setContactLastName("Jose");
                   contact.setExternalSystemId("72134");
                   contacts[0] = contact;
                   contactlist.setListOfContact(contacts);
                   contactlist.setEcho("off");  // Don’t forget this line, as the Web service call would fail!
                   outlist = stub.contactInsert(contactlist);
                   crmondemand.xml.contact.Contact[] results = new crmondemand.xml.contact.Contact[1];
                   crmondemand.xml.contact.Contact result = new crmondemand.xml.contact.Contact();
                   results = outlist.getListOfContact();
                   result = results[0];
                   System.out.println(result.getContactId());
                                          crmod.logoff("https://secure-slsomxvka.crmondemand.com/Services/Integration", jsessionid);
                                          System.out.println("Log Out");
                 catch (Exception  e)
                         System.out.println(e);
      private static String logon(String wsLocation, String userName,
                                     String password) {
             String sessionString = "FAILURE";
             try {
                 // create an HTTPS connection to the On Demand webservices
                 URL wsURL = new URL(wsLocation + "?command=login");
                 HttpURLConnection wsConnection =
                     (HttpURLConnection)wsURL.openConnection();
                 // we don't want any caching to occur
                 wsConnection.setUseCaches(false);
                 // we want to send data to the server
                 // wsConnection.setDoOutput(true);
                 // set some http headers to indicate the username and passwod we are using to logon
                 wsConnection.setRequestProperty("UserName", userName);
                 wsConnection.setRequestProperty("Password", password);
                 wsConnection.setRequestMethod("GET");
                 // see if we got a successful response
                 if (wsConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {
                     // get the session id from the cookie setting
                     sessionString = getCookieFromHeaders(wsConnection);
             } catch (Exception e) {
                 System.out.println("Logon Exception generated :: " + e);
             return sessionString;
         * log off an existing web services session, using the sessionCookie information
         * to indicate to the server which session we are logging off of
         * @param wsLocation - location of web services provider
         * @param sessCookie - cookie string that indicates our sessionId with the WS provider
         private static void logoff(String wsLocation, String sessionCookie) {
             try {
                 // create an HTTPS connection to the On Demand webservices
                 URL wsURL = new URL(wsLocation + "?command=logoff");
                 HttpURLConnection wsConnection =
                     (HttpURLConnection)wsURL.openConnection();
                 // we don't want any caching to occur
                 wsConnection.setUseCaches(false);
                 // let it know which session we're logging off of
                 wsConnection.setRequestProperty("Cookie", sessionCookie);
                 wsConnection.setRequestMethod("GET");
                 // see if we got a successful response
                 if (wsConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {
                     // if you care that a logoff was successful, do that code here
                     // showResponseHttpHeaders(wsConnection);
             } catch (Exception e) {
                 System.out.println("Logoff Exception generated :: " + e);
         * given a successful logon response, extract the session cookie information
         * from the response HTTP headers
         * @param wsConnection successfully connected connection to On Demand web services
         * @return the session cookie string from the On Demand WS session or FAIL if not
         found*
         private static String getCookieFromHeaders(HttpURLConnection wsConnection) {
             // debug code - display all the returned headers
             String headerName;
             String headerValue = "FAIL";
             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)
                     headerValue = wsConnection.getHeaderField(i);
                     break;
             // return the header value (FAIL string for not found)
             return headerValue;
      private static String getSessionId(String cookie) {
                StringTokenizer st = new StringTokenizer(cookie, ";");
                String jsessionid = st.nextToken();
                st = new StringTokenizer(jsessionid, "=");
                st.nextToken();
                return st.nextToken();

    I guess both errors are same ..

  • Siebel outbound web service real example

    Can anyone point me to a real outbound web service example/tutorial. I created a simple web service (get date service) in Java that I want to call from Siebel.
    I imported the WSDL into Siebel tools using the wizard and got the business service and integration objects generated.
    Now, how do I test the web service in Siebel? Any help is greatly appreciated!

    Just a further note: will poking around the log files (PSCcObjMgr_enu_0011_11534346.log) I found the following. I confirmed that I can perform the web service outside of Siebel (using soapUI tool). Its a very simple service that just returns today's date. What am I doing wrong?
    ObjMgrLog     Error     1     000000e047c70c68:0     2008-02-28 14:28:34     (httptransport.cpp (1558)) SBL-EAI-04117: HTTP Request error during 'Submitting Data SendHTTP request': 'Status code - 500'
    ObjMgrLog     Error     1     000000e047c70c68:0     2008-02-28 14:28:34     (httptransport.cpp (949)) SBL-EAI-04117: HTTP Request error during 'Submitting Data Send HTTP request': 'Status code - 500'
    ObjMgrBusServiceLog     Error     1     000000e047c70c68:0     2008-02-28 14:28:34     (outdisp.cpp (201)) SBL-EAI-04308: Operation 'getDate' of Web Service 'http://datespackage/.GetDatesWS' at port 'GetDatesWSSoapHttpPort' failed with the following explanation: "Missing body information".

  • Siebel outbound web service  question

    I'm writing a customized 'SendMailing' outbound web service. I have tested my web service with stand alone client, and now I want to integrate it with siebel. My step is:
    1 configure the SendMailingService in Administration -> web services -> outbound web services, in Service Ports panel I set the Address of the 'SendMailing' to my Web service endpoint, such as http://myhost/Siebel/SendMailing?WSDL
    2 configure the Email Marketing Server (in 'Administration -> marketing ->servers), set 'SendMailing' (outbound web service port) to 'Email sending daemon(ESD)', and other parameters such as from address.
    3 create an email treatment which use the configured email marketing server as the delivery profile.
    4 create a campaign with the created treatment and assign a list to the campaign.
    5 load the campaign
    6 launch the campaign.
    after the 6th step is done, nothing happens - no error message, no logs found, the campaign status still remains 'in planning'.
    some other clues:
    1 when I do the 'test email' for the email treatment, the following error log is found:
    ObjMgrLog Error 1 000009ec4bf10fc5:0 2010-05-25 08:16:35 (httptransport.cpp (1631)) SBL-EAI-04117: HTTP Request error during 'Submitting Data SendHTTP request': 'Status code - 500'
    ObjMgrLog Error 1 000009ec4bf10fc5:0 2010-05-25 08:16:35 (httptransport.cpp (981)) SBL-EAI-04117: HTTP Request error during 'Submitting Data Send HTTP request': 'Status code - 500'
    ObjMgrLog Error 1 000009ec4bf10fc5:0 2010-05-25 08:16:35 (soapbinding.cpp (564)) SBL-EAI-04304: Unknown Part 'http://www.bea.com/servers/wls70/webservice/fault/1.0.0:stacktrace' for operation 'createMailing' exists in SOAP message.
    ObjMgrBusServiceLog Error 1 000009ec4bf10fc5:0 2010-05-25 08:16:35 (outdisp.cpp (209)) SBL-EAI-04308: Operation 'createMailing' of Web Service 'urn:xml-send-mailing.SendMailingService' at port 'SendMailing' failed with the following explanation: "[Server CodecHandler] Failed to decode
    -> Unable to find xml element for parameter: options
    I guess siebel does try to invoke the outbound web service for the 'test email', but it seems do nothing for regular campaign launch.
    Did I miss anything? please help! thanks in advance!

    I have known the reason of the error logs: the soap message sent by siebel lacks 2 parameters. The 2 parameters should be contained in the soap message with a value of null or empty if they are really empty, but the siebel removes these 2 parameters from the soap message. So the soap stack of my client refused the soap request. I think this should be a siebel bug.
    Now my question becomes why I can't launch a campaign? I followed the steps of 'create offer' -> create campaign -> associate the offer with campaign -> assign a list->allocate a list->load campaign -> launch campaign. but the campaign just keeps 'In planning'.
    Did I miss anything? Or where can I find some clues? such as logs...

  • Adding paging to Azure Mobile Web Service Query

    Hi all,
    I need to add paging to my Mobile Web Service, and in referencing this page it has a link stating "For more information, see
    Add paging to your queries."
    https://msdn.microsoft.com/en-us/library/azure/jj677199.aspx
    However, the link takes me to "Windows Store Samples". Does anyone know or have the correct reference for adding paging?
    Thanks,
    K.
    Personal Blog: http://thebitsthatbyte.com

    Hello Kelly,
    Let me know if this
    MSDN blog on paging results from Mobile Services helps.
    Abdulwahab Suleiman

Maybe you are looking for

  • My iphone3g is not working anymore, after try to upgrade. Why is that?

    Anyone can let me have AT&T's email address for asking help to unlock my old iPhone 3G. A relative gave it to me last year. It work alright with my Vodafone sim till I try to upgrade it lately. Now it just go into no service. I were told AT&T lock it

  • ITunes library file cannot be read

    Hi there I opened my iTunes library on another mac with iTunes 11. When I open my iTunes library with iTunes 10 on the mac where I had it in the first place it says: "The file 'iTunes Library.itl' cannot be read because it was created by a newer vers

  • Free Upgrade

    I upgraded from Logic 5 Platinum to Logic 7.2 two and a half weeks ago when I switched to the iMac from being a PC user for all these years. I paid $299 for the upgrade. Today the upgrade is $199. I am hoping that the free upgrade for those that purc

  • RAID Configuration Utility for KZPSC-XB in Alpha 2100

    I have an Alphaserver 2100 and need to replace the RAID card KZPSC-XB. I believe I will need a diskette with the RAID Configuration Utility software on it to setup the RAID. The system is old, and I can not locate our original software.  Does anyone

  • Freeze frame while capturing

    Hello Whislst capturing I experience a freeze frame in the capture display window for a few minutes, then it starts playing again. When I look at the captured clip the still image is still there but the audio is running as normal. Is this a problem w