• satyaprakash pal
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 10
    Questions
  • 15
    Replies
I am going to use JAVA Bulk API to pull the data from SFDC table.
for that I am trying to convert  partner.wsdl to partner.jar file, for this

A)

B) Getting error while running "mvn clean package" command.

D:\JAVA_BULK_API\wsc-master>mvn clean package
Picked up _JAVA_OPTIONS: -Xmx2048M
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.force.api:force-wsc:38.0.4: Could not transfer artifact org.sonatype.oss:oss-parent:pom:7 from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target and 'parent.relativePath' points at wrong local POM @ line 3, column 11
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.force.api:force-wsc:38.0.4 (D:\JAVA_BULK_API\wsc-master\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.force.api:force-wsc:38.0.4: Could not transfer artifact org.sonatype.oss:oss-parent:pom:7 from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target and 'parent.relativePath' points at wrong local POM @ line 3, column 11 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

D:\JAVA_BULK_API\wsc-master>

Note:
POM File:

<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <parent>
    <groupId>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.force.api</groupId>
  <artifactId>force-wsc</artifactId>
  <packaging>jar</packaging>
  <version>38.0.4</version>
  <name>force-wsc</name>
  <description>Force.com Web Service Connector</description>
  <url>http://www.force.com</url>
  <licenses>
    <license>
      <name>BSD License (FreeBSD)</name>
      <url>LICENSE.md</url>
      <distribution>repo</distribution>
      <comments>A business-friendly OSS license</comments>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:git://github.com/forcedotcom/wsc.git</connection>
    <developerConnection>scm:git:git://github.com/forcedotcom/wsc.git</developerConnection>
    <url>git@github.com/forcedotcom/wsc</url>
  </scm>
  <developers>
    <!-- see mailing list -->
  </developers>
  <mailingLists>
    <mailingList>
      <name>Database.com SDK for Java Issues</name>
      <archive>https://github.com/forcedotcom/java-sdk/issues?state=closed</archive>
      <subscribe>https://github.com/forcedotcom/java-sdk/toggle_watch</subscribe>
      <unsubscribe>https://github.com/forcedotcom/java-sdk/toggle_watch</unsubscribe>
      <post>https://github.com/forcedotcom/java-sdk/issues/new</post>
    </mailingList>
  </mailingLists>
  <dependencies>
    <dependency>
      <groupId>org.antlr</groupId>
      <artifactId>ST4</artifactId>
      <version>4.0.7</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.8.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.google.appengine</groupId>
      <artifactId>appengine-api-1.0-sdk</artifactId>
      <version>1.7.3</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.codehaus.jackson</groupId>
      <artifactId>jackson-core-asl</artifactId>
      <version>1.9.13</version>
    </dependency>
    <dependency>
      <groupId>org.codehaus.jackson</groupId>
      <artifactId>jackson-mapper-asl</artifactId>
      <version>1.9.13</version>
    </dependency>
    <dependency>
      <groupId>commons-beanutils</groupId>
      <artifactId>commons-beanutils</artifactId>
      <version>1.7.0</version>
    </dependency>
  </dependencies>
  <profiles>
    <profile>
      <id>doclint-java8-disable</id>
      <activation>
        <jdk>[1.8,)</jdk>
      </activation>
      <properties>
        <javadoc.opts>-Xdoclint:none</javadoc.opts>
      </properties>
    </profile>
  </profiles>
  <build>
    <resources>
      <resource>
        <filtering>false</filtering>
        <directory>${basedir}</directory>
        <includes>
          <include>LICENSE.md</include>
        </includes>
      </resource>
      <resource>
        <filtering>false</filtering>
        <directory>${basedir}/src/main/java</directory>
        <includes>
          <include>**</include>
        </includes>
        <excludes>
          <exclude>**/*.java</exclude>
        </excludes>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.0</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <relocations>
                <!-- repackage antlr to prevent namespace collision on classpath in core app -->
                <relocation>
                  <pattern>org.antlr</pattern>
                  <shadedPattern>com.sforce.ws.shade.org.antlr</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>antlr</pattern>
                  <shadedPattern>com.sforce.ws.shade.antlr</shadedPattern>
                </relocation>
                <!-- repackage string template to prevent namespace collision on classpath in core app -->
                <relocation>
                  <pattern>org.stringtemplate</pattern>
                  <shadedPattern>com.sforce.ws.shade.org.stringtemplate</shadedPattern>
             </relocation>
                <!-- jackson is also in core, prevent namespace collission -->
                <relocation>
                  <pattern>org.codehaus.jackson</pattern>
                  <shadedPattern>com.sforce.ws.shade.org.codehaus.jackson</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.commons</pattern>
                  <shadedPattern>com.sforce.ws.shade.org.apache.commons</shadedPattern>
                </relocation>
              </relocations>
              <createDependencyReducedPom>false</createDependencyReducedPom>
              <shadedArtifactAttached>true</shadedArtifactAttached>
              <shadedClassifierName>uber</shadedClassifierName>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.7</source>
          <target>1.7</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.4.3</version>
        <configuration>
          <encoding>UTF-8</encoding>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.3.1</version>
        <configuration>
          <includes>
            <include>**</include>
          </includes>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.1.2</version>
        <executions>
          <execution>
            <id>attach-source</id>
            <phase>package</phase>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.7</version>
        <configuration>
          <additionalparam>${javadoc.opts}</additionalparam>
        </configuration>
        <executions>
          <execution>
            <id>attach-javadoc</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    
   <plugin>
        <artifactId>maven-gpg-plugin</artifactId>
        <version>1.2</version>
        <executions>
          <execution>
            <id>sign-artifacts</id>
            <phase>package</phase>
            <goals>
              <goal>sign</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
 
      <plugin>
        <groupId>com.mycila.maven-license-plugin</groupId>
        <artifactId>maven-license-plugin</artifactId>
        <version>1.8.0</version>
        <configuration>
          <header>license.txt</header>
          <excludes>
            <exclude>src/test/resources/codegeneration/*.java</exclude>
          </excludes>
          <includes>
            <include>**/*.java</include>
          </includes>
        </configuration>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
     </plugin>
  <plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-surefire-plugin</artifactId>
   <version>2.7.1</version>
   <configuration>
    <forkMode>always</forkMode>
                <useManifestOnlyJar>false</useManifestOnlyJar>
   </configuration>
  </plugin>
    </plugins>
  </build>
</project>













B )

I am runing below command but it is giving error:
"Error: Could not find or load main class com.sforce.ws.tools.wsdlc"

C:\Users\satpal>java -classpath D:\JAVA_BULK_API\force-wsc-38.0.0.jar:js-1.7R2.jar.jar:ST4-4.0.7.jar:antlr-runtime-3.5.2.jar com.sforce.ws.tools.wsdlc D:\JAVA_BULK_API\partner.wsdl .\partner.jar

Picked up _JAVA_OPTIONS: -Xmx1024M
Error: Could not find or load main class com.sforce.ws.tools.wsdlc

Note:
1) I downloaded following jar file:
        force-wsc-38.0.0.jar;
        js-1.7R2.jar.jar;
        ST4-4.0.7.jar;
        antlr-runtime-3.5.2.jar;





 
I am going to use JAVA Bulk API to pull the data from SFDC table.
for that I am trying to convert  partner.wsdl to partner.jar file, for this I am runing below command but it is giving error: 
"Error: Could not find or load main class com.sforce.ws.tools.wsdlc"
A)
C:\Users\satpal>java -classpath D:\JAVA_BULK_API\force-wsc-38.0.0.jar:js-1.7R2.jar.jar:ST4-4.0.7.jar:antlr-runtime-3.5.2.jar com.sforce.ws.tools.wsdlc D:\JAVA_BULK_API\partner.wsdl .\partner.jar

Picked up _JAVA_OPTIONS: -Xmx1024M
Error: Could not find or load main class com.sforce.ws.tools.wsdlc


Note:
1) I downloaded following jar file:
        
force-wsc-38.0.0.jar;
        js-1.7R2.jar.jar;
        ST4-4.0.7.jar;
        antlr-runtime-3.5.2.jar;



B) I am running mvn clean package but it is giving below error:
C:\Users\satpal>mvn clean package

Picked up _JAVA_OPTIONS: -Xmx1024M
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.078 s
[INFO] Finished at: 2016-11-10T18:14:12+05:30
[INFO] Final Memory: 4M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Users\satpal). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException




Note:
POM File:


<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <parent>
    <groupId>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.force.api</groupId>
  <artifactId>force-wsc</artifactId>
  <packaging>jar</packaging>
  <version>38.0.4</version>
  <name>force-wsc</name>
  <description>Force.com Web Service Connector</description>
  <url>http://www.force.com</url>
  <licenses>
    <license>
      <name>BSD License (FreeBSD)</name>
      <url>LICENSE.md</url>
      <distribution>repo</distribution>
      <comments>A business-friendly OSS license</comments>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:git://github.com/forcedotcom/wsc.git</connection>
    <developerConnection>scm:git:git://github.com/forcedotcom/wsc.git</developerConnection>
    <url>git@github.com/forcedotcom/wsc</url>
  </scm>
  <developers>
    <!-- see mailing list -->
  </developers>
  <mailingLists>
    <mailingList>
      <name>Database.com SDK for Java Issues</name>
      <archive>https://github.com/forcedotcom/java-sdk/issues?state=closed</archive>
      <subscribe>https://github.com/forcedotcom/java-sdk/toggle_watch</subscribe>
      <unsubscribe>https://github.com/forcedotcom/java-sdk/toggle_watch</unsubscribe>
      <post>https://github.com/forcedotcom/java-sdk/issues/new</post>
    </mailingList>
  </mailingLists>
  <dependencies>
    <dependency>
      <groupId>org.antlr</groupId>
      <artifactId>ST4</artifactId>
      <version>4.0.7</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.8.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.google.appengine</groupId>
      <artifactId>appengine-api-1.0-sdk</artifactId>
      <version>1.7.3</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.codehaus.jackson</groupId>
      <artifactId>jackson-core-asl</artifactId>
      <version>1.9.13</version>
    </dependency>
    <dependency>
      <groupId>org.codehaus.jackson</groupId>
      <artifactId>jackson-mapper-asl</artifactId>
      <version>1.9.13</version>
    </dependency>
    <dependency>
      <groupId>commons-beanutils</groupId>
      <artifactId>commons-beanutils</artifactId>
      <version>1.7.0</version>
    </dependency>
  </dependencies>
  <profiles>
    <profile>
      <id>doclint-java8-disable</id>
      <activation>
        <jdk>[1.8,)</jdk>
      </activation>
      <properties>
        <javadoc.opts>-Xdoclint:none</javadoc.opts>
      </properties>
    </profile>
  </profiles>
  <build>
    <resources>
      <resource>
        <filtering>false</filtering>
        <directory>${basedir}</directory>
        <includes>
          <include>LICENSE.md</include>
        </includes>
      </resource>
      <resource>
        <filtering>false</filtering>
        <directory>${basedir}/src/main/java</directory>
        <includes>
          <include>**</include>
        </includes>
        <excludes>
          <exclude>**/*.java</exclude>
        </excludes>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.0</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <relocations>
                <!-- repackage antlr to prevent namespace collision on classpath in core app -->
                <relocation>
                  <pattern>org.antlr</pattern>
                  <shadedPattern>com.sforce.ws.shade.org.antlr</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>antlr</pattern>
                  <shadedPattern>com.sforce.ws.shade.antlr</shadedPattern>
                </relocation>
                <!-- repackage string template to prevent namespace collision on classpath in core app -->
                <relocation>
                  <pattern>org.stringtemplate</pattern>
                  <shadedPattern>com.sforce.ws.shade.org.stringtemplate</shadedPattern>
             </relocation>
                <!-- jackson is also in core, prevent namespace collission -->
                <relocation>
                  <pattern>org.codehaus.jackson</pattern>
                  <shadedPattern>com.sforce.ws.shade.org.codehaus.jackson</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.commons</pattern>
                  <shadedPattern>com.sforce.ws.shade.org.apache.commons</shadedPattern>
                </relocation>
              </relocations>
              <createDependencyReducedPom>false</createDependencyReducedPom>
              <shadedArtifactAttached>true</shadedArtifactAttached>
              <shadedClassifierName>uber</shadedClassifierName>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.7</source>
          <target>1.7</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.4.3</version>
        <configuration>
          <encoding>UTF-8</encoding>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.3.1</version>
        <configuration>
          <includes>
            <include>**</include>
          </includes>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.1.2</version>
        <executions>
          <execution>
            <id>attach-source</id>
            <phase>package</phase>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.7</version>
        <configuration>
          <additionalparam>${javadoc.opts}</additionalparam>
        </configuration>
        <executions>
          <execution>
            <id>attach-javadoc</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
     
   <plugin>
        <artifactId>maven-gpg-plugin</artifactId>
        <version>1.2</version>
        <executions>
          <execution>
            <id>sign-artifacts</id>
            <phase>package</phase>
            <goals>
              <goal>sign</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
  
      <plugin>
        <groupId>com.mycila.maven-license-plugin</groupId>
        <artifactId>maven-license-plugin</artifactId>
        <version>1.8.0</version>
        <configuration>
          <header>license.txt</header>
          <excludes>
            <exclude>src/test/resources/codegeneration/*.java</exclude>
          </excludes>
          <includes>
            <include>**/*.java</include>
          </includes>
        </configuration>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
     </plugin>
  <plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-surefire-plugin</artifactId>
   <version>2.7.1</version>
   <configuration>
    <forkMode>always</forkMode>
                <useManifestOnlyJar>false</useManifestOnlyJar>
   </configuration>
  </plugin>
    </plugins>
  </build>
</project>
 

Hi I am new in Salesforce,
Is ther any way to extraction, processing, and re-loading milliions of data in one atempt of SFDC and store into thierd party database ?.
I found 'Heroku' tool we can use but 
Heroku Connects main purpose is to sync data between a third party database and Salesforce. Our purpose is extraction, processing, and re-loading.
The scale of data required for the extraction does not make Heroku Connect viable 
Heroku Connect is simply not applicable in this use case, then we will need to callout directly to the API with many callouts which may hit up against Salesforces own API limits. But these limits are adjustable and we are only looking to do an extract once or twice.
Please help me on the same. how I can use Heroku in this case?

Please if you have any document or link please forward me
Hello everyon
I have created one Rest api for creating Contacts. How I can test my rest api by passing xml . is ther any way that I test my rest api. I tested using json parser in workbench but I am not able to test my rest api apex code by parsing xml.

//apex class    
@Httppost
    Global static String candidateInformation(List<Candidate> Candidates, String reqSessionId) {

Note: How I can read the xml in Rest api apex class ?
 
//Parsing xml request
<?xml version="1.0" encoding="UTF-8"?>
-<Candidates>
   -<Candidate>
            <JobID>string</JobID>
             <EmailAddress>string</EmailAddress>
              <FirstName>string</FirstName>
              <LastName>string</LastName>
              <Phone>string or int</Phone>        
             -<CoverLetter>
                   -<![CDATA[string]]>
              </CoverLetter>
              -<ResumeText>
                    -<![CDATA[string]]>
              </ResumeText>
             -<Base64Stream>
                   -<![CDATA[string]]>
               </Base64Stream>
     </Candidate>
</Candidates>
I wrote one SOAP webservice Class and I have created one connected app. I want to write login functionality in SOAP webservice.
I am using connected app for authentication.

I used below login code but it's showing Error: Compile Error: Invalid type: ConnectorConfig. error.

ConnectorConfig config = new ConnectorConfig();
config.setManualLogin(true);
EnterpriseConnection sforceConnection = Connector.newConnection(config);
sforceConnection.setLoginScopeHeader(ORGANIZATIONID, PORTALID);
LoginResult loginResult = sforceConnection.login(username, password);
config.setServiceEndpoint(loginResult.getServerUrl());
sforceConnection.setSessionHeader(loginResult.getSessionId()); 


I created apex SOAP web service which accepts attachments and creates the same in SFDC.
for testing I am using "SoapUI" tool for testing.
I am getting below error Please help me out, I am new in web service:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Client</faultcode>
         <faultstring>content-type of the request should be text/xml</faultstring>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>
=====================================================

Please find below request which I am passing:


// Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://soap.sforce.com/schemas/class/SOAPWebservice">
   <soapenv:Header>
      <soap:AllowFieldTruncationHeader>
         <soap:allowFieldTruncation>false</soap:allowFieldTruncation>
      </soap:AllowFieldTruncationHeader>
      <soap:DebuggingHeader>
         <!--Zero or more repetitions:-->
         <soap:categories>
            <soap:category>Callout</soap:category>
            <soap:level>None</soap:level>
         </soap:categories>
         <soap:debugLevel>None</soap:debugLevel>
      </soap:DebuggingHeader>
      <soap:CallOptions>
         <soap:client></soap:client>
      </soap:CallOptions>
      <soap:SessionHeader>
         <soap:sessionId>00D540000008ju2!AQ4AQNh0Een86V3.P4mMmvbdUTHZQWk0f.XobQ1</soap:sessionId>
      </soap:SessionHeader>
   </soapenv:Header>
   <soapenv:Body>
      <soap:candidateInformation>
         <soap:name>testUser</soap:name>
         <soap:att>
            <!--Optional:-->
            <soap:content></soap:content>
            <!--Optional:-->
            <soap:contentType>text/xml</soap:contentType>
            <!--Optional:-->
            <soap:title>test</soap:title>
         </soap:att>
      </soap:candidateInformation>
   </soapenv:Body>
</soapenv:Envelope>

// SOAP Class
global class createAttachment{
webservice static String createAttachment(String parent, List<MultipleAttachments> multiAtt )
    {
        try
        {
            Id parentRecordId=Id.ValueOf(parent);
            List<Attachment> listAtt = new List<Attachment>();
           
            for(MultipleAttachments at : multiAtt)
            {
                Attachment att = new Attachment();
                att.Name=at.title;
                att.Body=EncodingUtil.base64Decode(at.content);//at.content;
                att.ContentType=at.ContentType;
                att.parentId=parentRecordId;
                listAtt.add(att);
            }
           
            insert listAtt; 
        }
        catch(Exception e)
        {
            system.debug('Exception--> '+e.getMessage());
        }
        return 'Yes!!!';
    }
   
    global class MultipleAttachments
    {
        webservice String title {get;set;}
        webservice String contentType {get;set;}
        webservice String content {get;set;}
    }
}
Hi 
I am new in salesforce, i want to store the <apex:repeat> values in a variable or array using javascript .
How it is possible ?

please find the bellow code for reference.

<div class="accordion_body closed"> <apex:outputPanel id="catPanel" > <apex:repeat value="{!ResultCatalog.categories}" var="category" id="thecategories"> <apex:outputPanel rendered="{!ResultCatalog.categories[category]}"> <label class="label_check c_on " for="{!category}" title="{!category}"> <input id="{!category}" type="checkbox" checked="true" onclick="javascript:doAddLimiter('Job_Category_Description__c','{!category}');" /> {!category} </label> </apex:outputPanel> <apex:outputPanel rendered="{!NOT(ResultCatalog.categories[category])}"> <label class="label_check" for="{!category}" title="{!category}"> <input id="{!category}" type="checkbox" onclick="javascript:doAddLimiter('Job_Category_Description__c','{!category}');" /> {!category} </label> </apex:outputPanel> </apex:repeat> </apex:outputPanel> </div>



 
1) I have one VF page, I have used <apex:repeat with cehckbox.
ex:

<div class="accordion_head" onclick="javascript: if (isSpinner == 'false'){ isSpinner= 'true'; var child = j$(this).children(0);if (child.attr('class') == 'icon closed'){j$('#dialog-spinner').modal();designCatalog();}}"> Category <span class="icon closed"></span> </div> <div class="accordion_body closed"> <apex:outputPanel id="catPanel" > <apex:repeat value="{!ResultCatalog.categories}" var="category" id="thecategories"> <apex:outputPanel rendered="{!ResultCatalog.categories[category]}"> <label class="label_check c_on " for="{!category}" title="{!category}"> <input id="{!category}" type="checkbox" checked="true" onclick="javascript:doAddLimiter('Job_Category_Description__c','{!category}');" /> {!category} </label> </apex:outputPanel> <apex:outputPanel rendered="{!NOT(ResultCatalog.categories[category])}"> <label class="label_check" for="{!category}" title="{!category}"> <input id="{!category}" type="checkbox" onclick="javascript:doAddLimiter('Job_Category_Description__c','{!category}');" /> {!category} </label> </apex:outputPanel> </apex:repeat> </apex:outputPanel> </div>

2) I want to use a checkbox when i select checkbox all cehckboxes which is comes under <apex:repeat> tag should be get selected.

Please help me, I am new in salesforce technology.
How to Customize logout to redirect to a different URL & not the regular SF login page ?. 
For signin I have created connected app in salseforce, so that I can login with salesforce user name and password. I am able to login succesfully and redirected on 'default.aspx'. This default.aspx page have a sign out option.
The logout functionality lives on the salesforce side. So, the logout process and the redirect is happening on the salesforce side.
 I can't find out how to log out. There is no log out method.  How can I do that? 
Plese help me, I am new in salesforce .

 
Hello everyon
I have created one Rest api for creating Contacts. How I can test my rest api by passing xml . is ther any way that I test my rest api. I tested using json parser in workbench but I am not able to test my rest api apex code by parsing xml.

//apex class    
@Httppost
    Global static String candidateInformation(List<Candidate> Candidates, String reqSessionId) {

Note: How I can read the xml in Rest api apex class ?
 
//Parsing xml request
<?xml version="1.0" encoding="UTF-8"?>
-<Candidates>
   -<Candidate>
            <JobID>string</JobID>
             <EmailAddress>string</EmailAddress>
              <FirstName>string</FirstName>
              <LastName>string</LastName>
              <Phone>string or int</Phone>        
             -<CoverLetter>
                   -<![CDATA[string]]>
              </CoverLetter>
              -<ResumeText>
                    -<![CDATA[string]]>
              </ResumeText>
             -<Base64Stream>
                   -<![CDATA[string]]>
               </Base64Stream>
     </Candidate>
</Candidates>
I am going to use JAVA Bulk API to pull the data from SFDC table.
for that I am trying to convert  partner.wsdl to partner.jar file, for this I am runing below command but it is giving error: 
"Error: Could not find or load main class com.sforce.ws.tools.wsdlc"
A)
C:\Users\satpal>java -classpath D:\JAVA_BULK_API\force-wsc-38.0.0.jar:js-1.7R2.jar.jar:ST4-4.0.7.jar:antlr-runtime-3.5.2.jar com.sforce.ws.tools.wsdlc D:\JAVA_BULK_API\partner.wsdl .\partner.jar

Picked up _JAVA_OPTIONS: -Xmx1024M
Error: Could not find or load main class com.sforce.ws.tools.wsdlc


Note:
1) I downloaded following jar file:
        
force-wsc-38.0.0.jar;
        js-1.7R2.jar.jar;
        ST4-4.0.7.jar;
        antlr-runtime-3.5.2.jar;



B) I am running mvn clean package but it is giving below error:
C:\Users\satpal>mvn clean package

Picked up _JAVA_OPTIONS: -Xmx1024M
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.078 s
[INFO] Finished at: 2016-11-10T18:14:12+05:30
[INFO] Final Memory: 4M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Users\satpal). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException




Note:
POM File:


<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <parent>
    <groupId>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.force.api</groupId>
  <artifactId>force-wsc</artifactId>
  <packaging>jar</packaging>
  <version>38.0.4</version>
  <name>force-wsc</name>
  <description>Force.com Web Service Connector</description>
  <url>http://www.force.com</url>
  <licenses>
    <license>
      <name>BSD License (FreeBSD)</name>
      <url>LICENSE.md</url>
      <distribution>repo</distribution>
      <comments>A business-friendly OSS license</comments>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:git://github.com/forcedotcom/wsc.git</connection>
    <developerConnection>scm:git:git://github.com/forcedotcom/wsc.git</developerConnection>
    <url>git@github.com/forcedotcom/wsc</url>
  </scm>
  <developers>
    <!-- see mailing list -->
  </developers>
  <mailingLists>
    <mailingList>
      <name>Database.com SDK for Java Issues</name>
      <archive>https://github.com/forcedotcom/java-sdk/issues?state=closed</archive>
      <subscribe>https://github.com/forcedotcom/java-sdk/toggle_watch</subscribe>
      <unsubscribe>https://github.com/forcedotcom/java-sdk/toggle_watch</unsubscribe>
      <post>https://github.com/forcedotcom/java-sdk/issues/new</post>
    </mailingList>
  </mailingLists>
  <dependencies>
    <dependency>
      <groupId>org.antlr</groupId>
      <artifactId>ST4</artifactId>
      <version>4.0.7</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.8.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.google.appengine</groupId>
      <artifactId>appengine-api-1.0-sdk</artifactId>
      <version>1.7.3</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.codehaus.jackson</groupId>
      <artifactId>jackson-core-asl</artifactId>
      <version>1.9.13</version>
    </dependency>
    <dependency>
      <groupId>org.codehaus.jackson</groupId>
      <artifactId>jackson-mapper-asl</artifactId>
      <version>1.9.13</version>
    </dependency>
    <dependency>
      <groupId>commons-beanutils</groupId>
      <artifactId>commons-beanutils</artifactId>
      <version>1.7.0</version>
    </dependency>
  </dependencies>
  <profiles>
    <profile>
      <id>doclint-java8-disable</id>
      <activation>
        <jdk>[1.8,)</jdk>
      </activation>
      <properties>
        <javadoc.opts>-Xdoclint:none</javadoc.opts>
      </properties>
    </profile>
  </profiles>
  <build>
    <resources>
      <resource>
        <filtering>false</filtering>
        <directory>${basedir}</directory>
        <includes>
          <include>LICENSE.md</include>
        </includes>
      </resource>
      <resource>
        <filtering>false</filtering>
        <directory>${basedir}/src/main/java</directory>
        <includes>
          <include>**</include>
        </includes>
        <excludes>
          <exclude>**/*.java</exclude>
        </excludes>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.0</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <relocations>
                <!-- repackage antlr to prevent namespace collision on classpath in core app -->
                <relocation>
                  <pattern>org.antlr</pattern>
                  <shadedPattern>com.sforce.ws.shade.org.antlr</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>antlr</pattern>
                  <shadedPattern>com.sforce.ws.shade.antlr</shadedPattern>
                </relocation>
                <!-- repackage string template to prevent namespace collision on classpath in core app -->
                <relocation>
                  <pattern>org.stringtemplate</pattern>
                  <shadedPattern>com.sforce.ws.shade.org.stringtemplate</shadedPattern>
             </relocation>
                <!-- jackson is also in core, prevent namespace collission -->
                <relocation>
                  <pattern>org.codehaus.jackson</pattern>
                  <shadedPattern>com.sforce.ws.shade.org.codehaus.jackson</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.commons</pattern>
                  <shadedPattern>com.sforce.ws.shade.org.apache.commons</shadedPattern>
                </relocation>
              </relocations>
              <createDependencyReducedPom>false</createDependencyReducedPom>
              <shadedArtifactAttached>true</shadedArtifactAttached>
              <shadedClassifierName>uber</shadedClassifierName>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.7</source>
          <target>1.7</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.4.3</version>
        <configuration>
          <encoding>UTF-8</encoding>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.3.1</version>
        <configuration>
          <includes>
            <include>**</include>
          </includes>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.1.2</version>
        <executions>
          <execution>
            <id>attach-source</id>
            <phase>package</phase>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.7</version>
        <configuration>
          <additionalparam>${javadoc.opts}</additionalparam>
        </configuration>
        <executions>
          <execution>
            <id>attach-javadoc</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
     
   <plugin>
        <artifactId>maven-gpg-plugin</artifactId>
        <version>1.2</version>
        <executions>
          <execution>
            <id>sign-artifacts</id>
            <phase>package</phase>
            <goals>
              <goal>sign</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
  
      <plugin>
        <groupId>com.mycila.maven-license-plugin</groupId>
        <artifactId>maven-license-plugin</artifactId>
        <version>1.8.0</version>
        <configuration>
          <header>license.txt</header>
          <excludes>
            <exclude>src/test/resources/codegeneration/*.java</exclude>
          </excludes>
          <includes>
            <include>**/*.java</include>
          </includes>
        </configuration>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
     </plugin>
  <plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-surefire-plugin</artifactId>
   <version>2.7.1</version>
   <configuration>
    <forkMode>always</forkMode>
                <useManifestOnlyJar>false</useManifestOnlyJar>
   </configuration>
  </plugin>
    </plugins>
  </build>
</project>
 
HAi hallll
I need to  enable  the fields if i select the checkbox ,if i deselect the checkbox  dissable the fields how cani i do that please let me now
1) I have one VF page, I have used <apex:repeat with cehckbox.
ex:

<div class="accordion_head" onclick="javascript: if (isSpinner == 'false'){ isSpinner= 'true'; var child = j$(this).children(0);if (child.attr('class') == 'icon closed'){j$('#dialog-spinner').modal();designCatalog();}}"> Category <span class="icon closed"></span> </div> <div class="accordion_body closed"> <apex:outputPanel id="catPanel" > <apex:repeat value="{!ResultCatalog.categories}" var="category" id="thecategories"> <apex:outputPanel rendered="{!ResultCatalog.categories[category]}"> <label class="label_check c_on " for="{!category}" title="{!category}"> <input id="{!category}" type="checkbox" checked="true" onclick="javascript:doAddLimiter('Job_Category_Description__c','{!category}');" /> {!category} </label> </apex:outputPanel> <apex:outputPanel rendered="{!NOT(ResultCatalog.categories[category])}"> <label class="label_check" for="{!category}" title="{!category}"> <input id="{!category}" type="checkbox" onclick="javascript:doAddLimiter('Job_Category_Description__c','{!category}');" /> {!category} </label> </apex:outputPanel> </apex:repeat> </apex:outputPanel> </div>

2) I want to use a checkbox when i select checkbox all cehckboxes which is comes under <apex:repeat> tag should be get selected.

Please help me, I am new in salesforce technology.
How to Customize logout to redirect to a different URL & not the regular SF login page ?.