• Jeff Jin
  • NEWBIE
  • 0 Points
  • Member since 2004

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 5
    Replies

hi,

Below is my code.

// begin..

String        rq3 = "<?xml version=\"1.0\" encoding=\"UTF-8\"><SOAP_ENV:Envelope xmlns:SOAP_ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">"+
            "<SOAP-ENV:Body><ns:login xmlns:ns=\"urn:partner.soap.sforce.com\"><ns:username>jeffj@sz.webex.com</ns:username><ns:password>gowebex</ns:password></ns:login></SOAP-ENV:Body></SOAP-ENV:Envelope>";

            homeURL = "http://www.salesforce.com/services/Soap/u/2.5";
            URLConnection connection = null;
            URL netSerivce = new URL(homeURL);
            connection = netSerivce.openConnection();
            connection.setDoOutput(true);

            out = new BufferedOutputStream(connection.getOutputStream());
            out.write(rq.getBytes(), 0, request.length());
            out.flush();

            try {
                in = new BufferedReader(
                    (new InputStreamReader(connection.getInputStream())));
                int count = 0;
                while ( (getmessage = in.readLine()) != null) {
                    response.append(getmessage + "\n");
                }
            }
            catch (java.io.IOException ex) {
                ex.printStackTrace();
            }

        }
        catch (java.io.IOException e) {
            e.printStackTrace();
        }

        return response.toString();


// --End

the response i got always below:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Client.NoSOAPAction</faultcode>
   <faultstring>no SOAPAction header!</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>

I don't know what i can do because i don't know the reason.

could you help me check it? thanks.

-Jeff

Just as title, thanks!

hi

I'm a new developer. Now I develop in java. But I can not log on by sending the below request direct to http://www.salesforce.com/services/Soap/u/2.5.  Can you help me?

request message:

http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> xmlns:ns="urn:soap.sforce.com">brad.gillham@sendia.comxxxxxx

response message:


http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 
 
   ns1:Client.NoSOAPActionhttp://xml.apache.org/axis/">ns1:Client.NoSOAPAction>
   no SOAPAction header!
  
 
 

-Jeff

I am newer in Sforce integration.

I have created a Web Integration Link which uses scontrol, which in turn call a Java Applet.

And in this applet, we will try to write data into Sforce DB (create activites).

We can not invoke sforce API package in applet directly because user must download package to local machine and load it to browser to run the applet, but the package is a big file.

Is there any solution for that?

Thanks!

I have some difficult in create a new event or task, and close it by API. Who can you give me some help , example for attaching some code here, or give a link to download some development document.

Just as title, thanks!

hi

I'm a new developer. Now I develop in java. But I can not log on by sending the below request direct to http://www.salesforce.com/services/Soap/u/2.5.  Can you help me?

request message:

http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> xmlns:ns="urn:soap.sforce.com">brad.gillham@sendia.comxxxxxx

response message:


http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 
 
   ns1:Client.NoSOAPActionhttp://xml.apache.org/axis/">ns1:Client.NoSOAPAction>
   no SOAPAction header!
  
 
 

-Jeff

I am newer in Sforce integration.

I have created a Web Integration Link which uses scontrol, which in turn call a Java Applet.

And in this applet, we will try to write data into Sforce DB (create activites).

We can not invoke sforce API package in applet directly because user must download package to local machine and load it to browser to run the applet, but the package is a big file.

Is there any solution for that?

Thanks!

I have some difficult in create a new event or task, and close it by API. Who can you give me some help , example for attaching some code here, or give a link to download some development document.