Create Client Using WSDL files

Hi All,
I've completed the following -
1. Created the scenario SOAP => XI => RFC
2. Using XI configuration , generated WSDL specifying the Message Interface which triggers the scenario in XI.
http://<serverhost>:<port>/XISOAPAdapter/MessageServlet?channel=<party>:<ServiceName>:<Channel Name>
3. Transported this WSDL to local directory
now when i retrive wsdl from XIServer to Create Client
it gives exception
and i didn't retrive WSDL files
so please help, i have WSDL file how to Create Client using WSDL file.
Thanks in advance...
regards
Bhaumik

hi suraj
i will check with XMLSPY
but it gives Error Like :
HTTP Error : Could not Post
http://xiserver:8000/XISOAPAdapter/MessageServlet?channel=:BS_SoapToRFC:SOAPtoXI&version=3.0&Sender.Service=BS_SoapToRFC&Interface=http%3AservicetoRFC%5EPO_sync_out
on xiserver (500)
regards
Bhaumik

Similar Messages

  • Client Proxy(WSDL file) via Se80

    Hello
    We have a client proxy created against a WSDL file (http/url) in SE80 and we are using it currently it.
    Now the WSDL file is going to change a little. I want to use the same client proxy and only change the  WSDL file with the new WSDL file? How can i acheive this?
    I can create a new client proxy and associate WSDL file but i need to change a lot of place in code where we create instances of this abap proxy class.Hence i want to reuse the same client proxy while changing the WSDL file alone.
    Any guidance or pointers will be greatly appreciated.
    Thanks
    Abishek

    Hi Stuart,
    Cool. This solves my issue. If I choose the "regenerate" button(see attached image) then I am prompted to enter a new WSDL URL or file.
    Thanks!
    Regards, Yashu

  • Consuming web service in ABAP  using wsdl file  (need to use PI 7.1)

    Hi ,
      I am from Basis team , currently  one of our Developr(ABAP)  generating  ABAP Proxy using wsdl file (non-SAP)  within R/3 system and using it in his ABAP program to access  a Non-SAP system . In this process the only thing he is gettnig from Basis is creating Logical Port using SOAMANAGER.
      Now  we have  our PI 7.1 systems ,  we would like to leverage PI 7.1 systems for this process . But  ABAP developer doesn't have any idea about PI Development related activities , hence he is depending on Basis .
      Can  you please let me know  how we can leverage  PI 7.1 systems in this process ??
       I have already  configured ABAP Proxy on ECC system  mentioned PI 7.1 as Integration server( Ref :
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies)
    ECC version : 6.0 EHP1
    PI 7.1
                                                                                    ECC  <->  PI <--> Non-SAP system
    Thanks,
    Bhaskar

    Hi Sekhar,
    Please see below link. It will be helpful.
    Regards,
    Sudha

  • Web Service Project using WSDL file

    Hi All,
    I want to create web service project using WSDL file(I already have a wsdl file), which needs axis2 run time to generate correct project structure, I did this in eclipse but now I want to do it through JDeveloper(11.1.2.0.0), so please suggest me any ways on how can I configure axis2 runtime in Jdeveloper, and is it possible do it in Jdevloper?
    Thank You,
    Sunny
    Edited by: Sunny on May 8, 2012 1:51 AM

    Have you installed the 64-bit Access driver on your machine? See
    Data Source Names and 64-Bit Operating Systems for the differences in odbcad32. Call %SystemRoot%\system32\odbcad32.exe to check the drivers.
    How do you host your service? Stand-alone or IIS or embedded to another application? Keep in mind that IIS7 runs it in its application pool which is defaullt 64bit. Thus the bad image exception, when compiling your service as 32bit.
    When you need the Access database for your service to store informtation, then I would switch to SQL Server (Express) or XML files depending on your actual needs.
    Also check whether your account under which your service is run has the necessary NTFS file permissions on the access file and the folder. This is getting even more complex when it's a remote folder.

  • How to create Proxy CLIENT USING .WSDL ?

    I apologize if i have posted this question in the wrong forum.My question is concerned with WSDL.
    Recently i came across a question in as :
    Write a command to Create proxy client by using .WSDL and set of XSD file.
    Can anyone provide me some pointers as to where i can find more information on this.
    Thank you for your consideration.

    sunjava84 wrote:
    I apologize if i have posted this question in the wrong forum.My question is concerned with WSDL.
    you did. Try http://www.rentacode.com next time.
    Can anyone provide me some pointers as to where i can find more information on this.
    The documentation of any web services client stack.

  • HTTP error while sending SOAP request using wsdl file

    We created SOAP request using the wsdl file ; while sending SOAP request from Altova XMLSpy, we are getting the below error.
    HTTP error: could not post file
    Can you please explain how to resolve this issue
    Regards,
    Sanghamitra

    there is very little information to help you here.
    Can you confirm if this is a SOAP sender scenario or SOAP receiver scenario?
    Also do go to thru these links to help you out;
    Troubleshooting
    Troubleshooting - RFC and SOAP scenarios *** Updated on 20/04/2009 ***
    RFC -> SOAP
    RFC -> XI -> WebService - A Complete Walkthrough (Part 1)
    RFC -> XI -> WebService - A Complete Walkthrough (Part 2)
    SOAP <-> XI <-> RFC/BAPI
    Walkthrough - SOAP  XI  RFC/BAPI

  • Problem with data connection in adobe forms using wsdl file....

    Hi Experts,
        I am tryning to create a adobe form in which i need to create a data connection using a WSDL file. But i am coing across the problem as cannot find the path of th url.
    i tried to create the WSDL in 2 ways and i came across the same error.:
    1) using the URL of the WSDL file generated
    2)alos saved the file as WSDL file on desktop, and used to create
    in both cases i am coming across the same error.
    Note: i am not creating using webdynpro, i am doing using ABAP.
    Regards,
    Madhu

    @ankur17
    Won't insult you by suggesting that you haven't already checked Settings > mobile network > Data connection = On, as you have confirmed already that Internet Sharing is working.
    You may need to go to Settings > about > reset your phone and see if by setting up phone afresh it reads settings and applies correctly from SIM card.
    Is Network Setup application included or available from Marketplace > Nokia Collection as might be worth running this application too?
    If this issue still remains you may need to have device software re-installed at Nokia Care Point to try to resolve this.
    Happy to have helped forum with a Support Ratio = 42.5

  • Webservice client : different wsdl file for test/production environment

    In an ADF application, I need call a web service in model project
    In my company, we have 2 environments : test and production.
    This webservice is deploye in test server and production server.
    So there are 2 different wsdl file for test/production.
    I want to make my ADF Application portable cross the 2 environments.
    An environment variable can indicate in which environment the ADF application run.
    According to this variable, application choose which wsdl/endpoint to call.
    If I use "web service Data control" wizard, how can I achieve this?
    If I use "webservice proxy" wizard, how can I achieve this?
    Thanks!!!!!!

    Hi,
    I have a model project with ws proxy client and on this proxy I added an adf ws connection called CustomerExperience
    then I can do this.
    // a test to try to overrule the adf ws connection from EM
    Context ctx = null;
    try {
    ctx = ADFContext.getCurrent().getConnectionsContext();
    WebServiceConnection wsc = (WebServiceConnection) ctx.lookup("CustomerExperience");
    CustomerExperience customerExperience = wsc.getJaxWSPort(CustomerExperience.class);
    } catch (NamingException e) {
    LOGGER.severe("got web service loading fault: "+ e.getMessage());
    throw new JboException( messages.getString("NOM-999"),
    "NOM-999",
    null );
    I exported this to an adf jar and added this to a webapp.
    On runtime the ws connection is not dectected by the webapp so need to copy this ws conn to the connections of the webapp. This works
    but can I change it from wlst instead of EM , is this possible?
    I don't see the WS connection in wlst (oracle common) adf_listURLConnection('CE_Portal')
    thanks

  • Creating WSDD and WSDL file

    I am working on JSR 172,
    I have created a server code, installed Tomcat and Axis.
    Now i want to convert my .java file to .wsdd and .wsdl file the below command are not working plese help.
    java -classpath lib\axis.jar;lib\saaj.jar;lib\jaxrpc.jar;lib\commons-logging-1.0.4.jar; lib\commons-discovery-0.2.jar;lib\wsdl4j-1.5.1.jar;build\classes\.;org.apache.axis.wsdl.Java2WSDL -y DOCUMENT -u LITERAL -l http://localhost:8080/axis/services/ScoreService tutorial.ScoreInterface
    and this produces the below erroe
    Unrecognized option: -y
    Could not create the Java virtual machine.
    Thanks in advance.

    Hi ganesh,
    you have two options to get it working.
    The first one is using a CanonicalEditPolicy, which creates all Nodes and Edges for you based on your semantic model. This is easy to implement, but it has some drawbacks. Your editor will get dirty after opening it, because your Notation Model is changes and no layout information is available.
    The better way is to create Nodes and Edges for each semantic element you created.
    For your code snippet it might look like this:
    XXX model = createInitialModel();
    YYY yyy = XXXFactory.eINSTANCE.createYYY();
    yyy.setAttribute1("2");
    yyy.setAttribute2("name");
    model.getYYYs().add(yyy);
    attachModelToResource(model, modelResource);
    Diagram diagram = ViewService.createDiagram(model, XXXEditPart.MODEL_ID,XXXEditorPlugin.DIAGRAM_PREFERENCES_HINT);
    Node yyyView = ViewService.createNode(diagram, yyy, SemanticHints.YYY,
    ,XXXEditorPlugin.DIAGRAM_PREFERENCES_HINT);
    //Set some layout information assuming you use a XYLayout
    Bounds bounds = NotationFactory.eINSTANCE.createBounds();
    bounds.setX(70);
    bounds.setY(20);
    yyyView.setLayoutConstraint(bounds);
    Regards,
    Andreas

  • J2EE web service client using WSDL

    Hi,
    We are required to develop client program in Java for the
    web services developed in SAP XI 2.0.
    We will be getting the WSDL files for corresponding web
    services.
    We have tried doing it with J2EE JAX-RPC...
    We studied the sample program of HelloService...
    While calling the service from command line..it takes .jar file..
    But we have to make use of only WSDL....
    Is there any alternative way?? or jax-rpc is the best one???
    wat will be the best way to do so??

    Hi,
    thanx for your reply!
    We have written web services in SAP XI 2.0....
    we has generated corresponding WSDL..which is little
    incomplete..but we can modify and update it according to
    requirements...so we have complete WSDL....for corresponding web
    services.
    My colleagues have developed web dynpro application which
    makes use of those services. Now for demostration purpsoe we need
    to write java/jsp which will access those services...
    can u help???

  • Issues using WSDL file

    Hi,
    I have the following issue:
    created a Web Service
    Got the WSDL file
    Created a new data connection in the Adobe form
    Pulled the interface elements from the data view and designed the form
    Now when I input data to the form the data is mapped to web service interface and its passed to the RFC function module
    *But when I have a table I add rows to the table dynamically using addInstance method*
    Now when I submit back the data to the webservice only the last record of the table is passed to the web service can u guide me hw to get all the records of the table passed back to the web service
    Thank & Regards
    Nancy

    Hi Nancy,
    You can check these threads:
    Re: dynamic table data not transfered to context WD4ABAP
    Tables
    I have not worked on WSDL, but there should be some way to call method written in WD Java or ABAP. You have to write code of creating instance of the Table in that method.
    We are still working on it, we are using WD java and facing same issue. Will keep you updated if i solved this problem.
    With Regards,
    Amit

  • Where Dir is creating while using LKM -- File To Oracle(sqlldr) ?

    Hi All,
    I have created an interface (file -table) where I am using LKM -- File To Oracle(sqlldr) .
    But I am getting error -- at the time of creating DIR
    Error :-- Caused By: java.sql.SQLSyntaxErrorException: ORA-01031: insufficient privileges
    Code :-- create or replace directory dat_dir AS 'TEST_FILE'
    I have requested DBA to give permission for this user to create Dir.
    But he is asking which Directory he should give permission to create directory.
    -- Kindly provide a directory on the server. I will create an Oracle Directory object on it and give read and write privilege to "XYZ" schema.
    1> can any body help me that where this LKM is creating the DIR by default.I mean in which path.
    2> My other query is from where I can get the Agent log. If I have to set up for the log path then from where to set up?
    Not:- I am using ODI 11G
            DB server is different from where ODI is installed.
    Thanks,

    I looked into the KM steps and seems like the file is created in the same directory as your source file.
    Agent log can be found under <server>/logs/oracledi for jee agent or under oracledi/log for standalone agent. For more info please check  Troubleshooting Oracle Data Integrator - 11g Release 5 (11.1.5)

  • Workshop IDE can not create CTRL from WSDL file

    Hi everybody,
    For the evualtion of the Workshop IDE that comes with WLS 7.0 beta, I'm developing
    a web service (via this IDE) which must interoperate with another web service
    implemented with the help of another tool. I got the corresponding WSDL of this
    "outside" web service (see attachement), and when I want to generate the corresponding
    CTRL (via Add Service Control), I get the following error:
    Error: Could not find operation 'sayHello' in portType ''
    Prescription: The operation you are trying to bind was not found among the declared
    operations. Please check your <portType> sections.
    I do not have a lot of experience with WSDL files and its specification, but I
    compared this file with another WSDL files that work with WORKSHOP IDE, and I
    do not see difference between these files and the file that does not work. Moreover
    the IDE error says that my service 'sayHello' can not be find inside the 'portType'
    tags, but if you have a look at the WSDL file, you will see that is not true ?!?!?
    Can somebody help me please?
    Have a nice day
    Vincent

    Vincent,
    What is happening is that the type attribute on the binding tag must match
    both the targetnamespace and the name of the portType name attribute. Yours
    do match in basename only. When parsing the WSDL file what we do is put the
    name attributes of the portType, service and binding tags into the
    targetNamespace of the WSDL and then we expect the references to these names
    to also be resolved to that namespace.
    In the case of your WSDL, your targetNamespace is
    http://localhost:8000/HelloWorldApp/servlet/rpcrouter and the type attribute
    on the binding attribute just references HelloWorldServicePort which means
    it will use the default namespace of http://schemas.xmlsoap.org/wsdl which
    is, of course, different than the targetNamespace.
    To fixup the WSDL I would recommend you just define a new namespace at the
    top of the WSDL file that matches the targetNamespace attribute and then use
    that prefix in the text value of the attribute used to reference that name.
    Yes, we do need to do some better parser/error messages to help identify
    this :)
    Here is one way that I have done to fixup your WSDL and Workshop does pull
    it in and expose the methods correctly:
    <?xml version='1.0'?>
    <definitions name='HelloWorldService'
    xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
    xmlns:xsd='http://www.w3.org/2001/XMLSchema'
    xmlns='http://schemas.xmlsoap.org/wsdl/'
    xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'
    targetNamespace='http://localhost:8000/HelloWorldApp/servlet/rpcrouter'
    xmlns:test='http://localhost:8000/HelloWorldApp/servlet/rpcrouter'
    xmlns:xsd1='http://localhost:8000/HelloWorldApp/servlet/rpcrouter/schema'>
    <types>
    <xsd:schema
    targetNamespace='http://localhost:8000/HelloWorldApp/servlet/rpcrouter/schem
    a'>
    <xsd:simpleType name="java.lang.Integer"><xsd:restriction
    base="xsd:int"/></xsd:simpleType>
    <xsd:simpleType name="java.lang.Short"><xsd:restriction
    base="xsd:short"/></xsd:simpleType>
    <xsd:simpleType name="java.lang.Long"><xsd:restriction base="xsd:long"
    /></xsd:simpleType>
    <xsd:simpleType name="java.lang.Double"><xsd:restriction
    base="xsd:double"/></xsd:simpleType>
    <xsd:simpleType name="java.lang.Float"><xsd:restriction
    base="xsd:float"/></xsd:simpleType>
    <xsd:simpleType name="java.lang.Boolean"><xsd:restriction
    base="xsd:boolean"/></xsd:simpleType>
    <xsd:simpleType name="java.lang.Character"><xsd:restriction
    base="xsd:string"/></xsd:simpleType>
    <xsd:simpleType name="java.lang.String"><xsd:restriction
    base="xsd:string"/></xsd:simpleType>
    <xsd:simpleType name="java.lang.StringBuffer"><xsd:restriction
    base="xsd:string"/></xsd:simpleType>
    <xsd:simpleType name="java.lang.Byte"><xsd:restriction
    base="xsd:byte"/></xsd:simpleType>
    <xsd:simpleType name="char_lb_rb"><xsd:restriction
    base="xsd:string"/></xsd:simpleType>
    <xsd:simpleType name="char"><xsd:restriction
    base="xsd:string"/></xsd:simpleType>
    </xsd:schema>
    </types>
    <message name='sayHelloInput'>
    <part name='message' type='xsd:string'/>
    </message>
    <message name='sayHelloOutput'>
    <part name='result' type='xsd:string'/>
    </message>
    <portType name='HelloWorldServicePort'>
    <operation name='sayHello'>
    <input message='test:sayHelloInput'/>
    <output message='test:sayHelloOutput'/>
    </operation>
    </portType>
    <binding name='HelloWorldServiceBinding'
    type='test:HelloWorldServicePort'>
    <soap:binding style='rpc'
    transport='http://schemas.xmlsoap.org/soap/http'/>
    <operation name='sayHello'>
    <soap:operation
    soapAction='http://localhost:8000/HelloWorldApp/servlet/rpcrouter/sayHello'/
    >
    <input>
    <soap:body use='encoded' namespace='urn:HelloWorldService'
    encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
    </input>
    <output>
    <soap:body use='encoded' namespace='urn:HelloWorldService'
    encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
    </output>
    </operation>
    </binding>
    <service name='HelloWorldService'>
    <port name='HelloWorldServicePort'
    binding='test:HelloWorldServiceBinding'>
    <soap:address
    location='http://localhost:8000/HelloWorldApp/servlet/rpcrouter'/>
    </port>
    </service>
    </definitions>
    Thanks,
    Art
    "Vincent Ducret" <[email protected]> wrote in message
    news:[email protected]...
    >
    Thanks for your answer, but I do not understand it, and also yoursuggestion.
    >
    According to WSDL specification, the 'type' attribute of a 'binding' tagmust
    reference (bind to) an exisiting 'portType' tag. And it's the case here,no? I.e.
    we have a 'portType' tag called HelloWorldServicePort, which is referencedby
    the 'binding' tag named HelloWorldServiceBinding via its 'type' attribute:'HelloWorldServicePort'.
    >
    Where is the problem ?
    Thanks a lot
    Thanks for your help

  • Developing Java code to use WSDL files

    Hello,
    I was wondering if it was possible to develop a program that took in a URI to a WSDL file, have my code read the file and access the date from the web service described in the WSDL file. My program will then read the data that is accessed from the service write the data to a file, for example a text file. Nothing special, I just need to access and pull the data. I have been looking throughout the web for a while now and have not been able to find any tutorial that describes how to do this. Is this even possible with a web service and would anyone know of a tutorial that describes how to do this? Thank you in advance.

    PLEASE DESIST FROM POSTING THIS QUESTION OVER AND OVER AGAIN. One multipost is a mistake but four is idiocy. So cut it out.
    Previously answered here http://forum.java.sun.com/thread.jspa?threadID=5261436&tstart=0

  • Please help me ~ use WSDL file and Java Querypage Class

    First, i can't write english very well. so before read this you know.
    i have a project. and oracle suggest "http://www.webbasedcrmsoftware.com.au/crm-on-demand-tutorials/65-java-access-to-crm-on-demand#_Toc224720963 " . Do you know this URL?
    anyway I Along the this URL Explanation. but i have a problem.
    First, please look this source.(that URL same source)
    <Java Source Start(QueryPage(Select?))>
    package crmod;
    import java.net.HttpURLConnection;
    import java.net.URL;
    import java.util.StringTokenizer;
    public class CRMOD {
    public CRMOD() {
    public static void main(String[] args) {
    String jsessionid, jsessionid_full;
    String endpoint;
    try
    CRMOD crmod = new CRMOD();
    System.out.println("Loggin In");
    jsessionid_full = crmod.logon("https://secure-ausomxana.crmondemand.com/Services/Integration", "MY ID", "MY PASSWORD");
    jsessionid = getSessionId(jsessionid_full);
    System.out.println(jsessionid);
    endpoint = "https://secure-ausomxdsa.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_ContactQueryPage_Input contactlist = new crmondemand.ws.contact.ContactWS_ContactQueryPage_Input();
    crmondemand.ws.contact.ContactWS_ContactQueryPage_Output outlist = new crmondemand.ws.contact.ContactWS_ContactQueryPage_Output();
    crmondemand.xml.contact.Contact[] contacts = new crmondemand.xml.contact.Contact[1];
    crmondemand.xml.contact.Contact contact = new crmondemand.xml.contact.Contact();
    crmondemand.xml.contact.Activity[] activities = new crmondemand.xml.contact.Activity[1];
    crmondemand.xml.contact.Activity activity = new crmondemand.xml.contact.Activity();
    activity.setSubject("");
    activity.setType("");
    activity.setRowStatusOld("");
    activities[0] = activity;
    contact.setContactLastName("='Lee'");
    contact.setContactFirstName("");
    contact.setContactId("");
    contact.setListOfActivity(activities);
    contacts[0] = contact;
    contactlist.setPageSize("10");
    contactlist.setUseChildAnd("false");
    contactlist.setStartRowNum("0");
    contactlist.setListOfContact(contacts);
    System.out.println("contactlist =" +contactlist);
    System.out.println("==1==");
    outlist = stub.contactQueryPage(contactlist);
    System.out.println("==2==");
    crmondemand.xml.contact.Contact[] results =
    new crmondemand.xml.contact.Contact[1];
    results = outlist.getListOfContact();
    crmondemand.xml.contact.Activity[] activitiesout =
    new crmondemand.xml.contact.Activity[1];
    int lenC = results.length;
    if (lenC > 0) {
    for (int i = 0; i < lenC; i++) {
    System.out.println(results.getContactFirstName());
    System.out.println(results[i].getContactLastName());
    System.out.println(results[i].getContactId());
    int lenA = results[i].getListOfActivity().length;
    if (lenA > 0) {
    for (int j = 0; j < lenA; j++) {
    activitiesout = results[i].getListOfActivity();
    System.out.println(" " + activitiesout[j].getSubject() + ", " + activitiesout[j].getType());
    crmod.logoff("https://secure-ausomxdsa.crmondemand.com/Services/Integration", jsessionid_full);
    System.out.println("Loggin Out");
    catch (Exception e)
    System.out.println(e);
    private static String logon(String wsLocation, String userName, String password) {
    String sessionString = "FAIL";
    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();
    this source excute, print this error message.
    Loggin In
    281e56bb61372daba8c0a7db2d85d403536cf7645ee1247f527466c281cf1f30.e34QbhuQbNqSci0LbhiKaheTaNyKe0
    - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
    contactlist =crmondemand.ws.contact.ContactWS_ContactQueryPage_Input@702c65ba
    ==1==
    java.net.ConnectException: Connection refused: connect
    Process exited with exit code 0.
    i found many internet homepage, but i can't solve this problem.
    help me~~~ T.T
    p.s: I set My host file -> 127.0.0.1 some-proxy.com
    JDeveloper version = 11g Release 2
    OS = windows XP

    It looks like you have some problems that aren't CRMOD related.
    If you have the XML you are building and can post here that would help as well.

Maybe you are looking for

  • Vendor wise report

    Hi MM experts Is there any vendor related report which can provide hopw much excise duty , custom duty , frieght charges  paid to vendor .

  • IMac crackling and shutting down intermittently

    Can anybody help? Please be patient. :-/ I've seen a few similar issues but not exactly the same and none recent. Apologies if there's a similar recent thread that I haven't seen. I have a mid 2010 21.5inch iMac 3.06Ghz i3 with 12 GB RAM (upgraded fr

  • Ignoring single click in a JTree

    Hi, i crated a JTree with swing. I Also implemented an ExpandListener and a MouseListener for the tree. So how should i write my code, to ignore actions if mouse is just clicked once... (if i click on the handlers on the right side of the nodes, the

  • Locking a PDF from Editing once submitted

    I had a question from a person I am working with on locking a pdf form. She has a form that she wants to be able to distribute to the people in her department to fill out when they need to order or request something. She wants a submit button on it a

  • Character count in texting message

    in my apple 4s , iOS 8.0.2, character count not working  when texting messages, while in message setting its already on. i try to restart it and  change setting on /off again on and restart but still character not showing when texting message., this