• anu08
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 16
    Questions
  • 10
    Replies
Hi I have a problem. I have a sample order form page. I send the fields information of that page through mail merge template to another non salesforce.com user. If that user update that fields how can we get the updated fields in salesforce sample order form page. Could any one give the solution for this problem? Thanks

Hi All

 

I don't how to integrate paypal with Sales Force CRM , 

 

Paypal has provided 1 wsdl file and 2 xsd's 

 

 


These file are related webservice here PayPalSrv.wsdl has import tags and mutliple portbings and multiple port types ,So I am unable to generate Apex Stub Classes from above file , it throws error message multiple bindings and port types and etc .

 

Can u any help me ............

 

Thanks

VS.....

 

Hi All,

 

Can u any one help  I am new to Sales force ,How Integrate sales force with paypal  ,

How can procede , what is the best way follow 

 

I have downloaded 1 wsdl and 2 xsd files from paypal site and while uploading into sales force it doesn't suporting 

 

and also i copied xsd schemas in to wsdl but it show errors  can u please me how to write 2 schemas in to one wsd

 

 wsdl file :

 

 

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
    ns:version="60.0"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:ns="urn:ebay:api:PayPalAPI"
    xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ebl="urn:ebay:apis:eBLBaseComponents"
    xmlns:cc="urn:ebay:apis:CoreComponentTypes"
    xmlns:ed="urn:ebay:apis:EnhancedDataTypes"
    targetNamespace="urn:ebay:api:PayPalAPI">
    <wsdl:types>
        <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:ebay:api:PayPalAPI" elementFormDefault="qualified" attributeFormDefault="unqualified">
            <import namespace="urn:ebay:apis:CoreComponentTypes" schemaLocation="CoreComponentTypes.xsd"/>
            <import namespace="urn:ebay:apis:eBLBaseComponents" schemaLocation="eBLBaseComponents.xsd"/>
            <import namespace="urn:ebay:apis:EnhancedDataTypes" schemaLocation="EnhancedDataTypes.xsd"/>

 

 

--------

---------

 

I found the difficulty while parsing the  wsdl file (Bcz it has some import xsd's and i can't paste the xsd

in the same wsdl file  it supports sales force wsdl file )  in the force.com ,

 

Could please give  solution 

 

 

Thanks

vasu

 

 

 

 

thanks

vasu

Message Edited by anu08 on 10-30-2009 01:02 AM
How to Display Calendar Object on Custom home page  or  visual force pages

Person.xsd

 

<?xml version="1.0"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"

targetNamespace="http://www.person.org" xmlns="http://www.person.org"

elementFormDefault="qualified"> <xsd:complexType name="PersonType"> <xsd:sequence> <xsd:element name="Name" type="xsd:string"/> <xsd:element name="SSN" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:schema>

 

  Product.xsd

 

<?xml version="1.0"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.product.org" xmlns="http://www.product.org" elementFormDefault="qualified"> <xsd:complexType name="ProductType"> <xsd:sequence> <xsd:element name="Type" type="xsd:string" minOccurs="1" maxOccurs="1"/> </xsd:sequence> </xsd:complexType> </xsd:schema>

 

  Company.xsd

 

<?xml version="1.0"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.company.org" xmlns="http://www.company.org" xmlns:per="http://www.person.org" xmlns:pro="http://www.product.org" elementFormDefault="qualified"> <xsd:import namespace="http://www.person.org" schemaLocation="Person.xsd"/> <xsd:import namespace="http://www.product.org" schemaLocation="Product.xsd"/> <xsd:element name="Company"> <xsd:complexType> <xsd:sequence> <xsd:element name="Person" type="per:PersonType" maxOccurs="unbounded"/>

<xsd:element name="Product" type="pro:ProductType" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema>

 

 

In Company.xsd it imports an external schema, which is not supported in APEX.
Please let me know how to replace the following two lines:

 

<xsd:import namespace="http://www.person.org" schemaLocation="Person.xsd"/> <xsd:import namespace="http://www.product.org" schemaLocation="Product.xsd"/>

 

Thanks in advance. 

 Sankar

I am using axis2 to generate the java classes from the partner.wsdl

While calling getUserInfo() method in the SforceStub in the partner.wsdl I am getting an exception as specified below:

 

 org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.apache.axiom.om.OMException: java.lang.IllegalStateException

org.apache.axiom.om.OMException: java.lang.IllegalStateException
    org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:211)
    org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:127)
    org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:328)
    com.sforce.soap.partner.SforceServiceStub.toOM(SforceServiceStub.java:10726)
    com.sforce.soap.partner.SforceServiceStub.toEnvelope(SforceServiceStub.java:11176)
    com.sforce.soap.partner.SforceServiceStub.getUserInfo(SforceServiceStub.java:9555)

java.lang.IllegalStateException
    org.apache.xmlbeans.impl.store.Jsr173$XMLStreamReaderForString.next(Jsr173.java:1110)
    org.apache.xmlbeans.impl.store.Jsr173$SyncedJsr173.next(Jsr173.java:1138)
    org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68)
    org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:125)
    org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:127)
    org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:328)
    com.sforce.soap.partner.SforceServiceStub.toOM(SforceServiceStub.java:10726)
    com.sforce.soap.partner.SforceServiceStub.toEnvelope(SforceServiceStub.java:11176)
    com.sforce.soap.partner.SforceServiceStub.getUserInfo(SforceServiceStub.java:9555)

 

Do anyone have why this error is coming???

 

 

 

Message Edited by AnnParampathoor on 06-23-2009 10:41 PM

Note : Following is a small development being carried out to demystify salesforce apex webservice and callout features, please correct me if you find my understanding to be incorrect.

 

I am trying to integrate two Salesforce Orgs using Apex. Apex supports both callouts and webservices, then why not leverage both to achieve a 360 connectivity between two Salesforce instances.

 

Org1 : Create a Apex Web Service, Generate its WSDL

global class AccountPlan {

webservice String area;
webservice String region;

//Define an object in apex that is exposed in apex web service
global class Plan {
webservice String name;
webservice Integer planNumber;
webservice Date planningPeriod;
webservice Id planId;
}

webservice static Plan createAccountPlan(Plan vPlan) {

//A plan maps to the Account object in salesforce.com.
//So need to map the Plan class object to Account standard object
Account acct = new Account();
acct.Name = vPlan.name;
acct.AccountNumber = String.valueOf(vPlan.planNumber);
insert acct;

vPlan.planId=acct.Id;
return vPlan;
}

}

 

Org2:  Consume above generated WSDL to generate following Apex Class viz.,AccountPlanClasses

public class AccountPlanClasses {
public class LogInfo {
public String category;
public String level;
private String[] category_type_info = new String[]{'category','http://soap.sforce.com/schemas/class/TCSSAAS/AccountPlan','LogCategory','1','1','false'};
private String[] level_type_info = new String[]{'level','http://soap.sforce.com/schemas/class/TCSSAAS/AccountPlan','LogCategoryLevel','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/schemas/class/TCSSAAS/AccountPlan','true','false'};
private String[] field_order_type_info = new String[]{'category','level'};
}
public class AllowFieldTruncationHeader_element {
............................
............................

 

Now lets try to connect to Org1 from Org2

AccountPlanClasses.Plan plan = new AccountPlanClasses.Plan();
plan.name = 'Chirag';
plan.planNumber = 111;
AccountPlanClasses.AccountPlan a = new AccountPlanClasses.AccountPlan();
a.createAccountPlan(plan);

 

Execution of above code runs into following error

WebService returned a SOAP Fault: INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session faultcode=sf:INVALID_SESSION_ID faultactor= 

 

I to feel that somewhere I am missing User Credentials to be supplied, but I dont know exactly where. Please guide me to complete this 360 connectivity between two orgs using Apex.

Message Edited by Chirag Mehta on 05-05-2009 06:13 AM
Message Edited by Chirag Mehta on 05-12-2009 07:52 PM

I downloaded metadata from my dev instnce and developed code on that(java code to create objects), now i am trying to use another login, but i ma not able to use my metadata for that login..

 

 

any suggestion to overcome this, its very urgent...

 

i am getting the following error

 

 

 

INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session. Session not found, missing session key: 511800D80000000LvBm!AQQAQB3QNt1eH_4MOjT9PEAvJzrqfBdQHHNeD1XCpTmp3NauNvj95SxX_COjVj570Fek0b4VbjCSRNTdTZibUpYDw0GnqPNE

Message Edited by visualforce_dev on 02-09-2009 10:47 PM
Hello Everyone,

I am very new to Salesforce.com, I need to read and write a CSV file using Apex code.

Functionality wants to implement : Read some records using query and write into a excel file and
read a CSV file and insert records into database.
this should be using apex code.

Please help me :)

Thanks