• venkatSanthanam
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 9
    Questions
  • 10
    Replies

Hello,

I have a potal user logged into Sites and have Site.ChangePassword in apex code to change the password of the logged in portal user.

 

When I use Site.ChangePassword(newpwd, verifnewpwd, oldpwd); method, it shows visual force error message.

When I user Site.ChangePassword(newpwd, verifynewpwd) method, there are no erros but pwd does not get changed.

 

This is puzzling. The method with 3 arguments work well in the default salesforce forgot password flow.

 

Any Thoughts?

 

Thanks

Venkat

Hi Guyz,

 

I have a WSDL and generated Apex code from it. Actually, WSDL2Apex itself took a long time as I had to remove Soap12 information, multiple binding, multiple port, etc.But, I have the Apex codegenerated succesfully.

 

Now the problem is, when I make a call to the Service, I find the following in the debug log. Please help me get past this issue.

 

System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element FacilityResults

 

Thanks

Venkat

 

Hi,

Requirement: I have a PageBlockTable. On RowClick on the pageBlockTable, I want to show some data(may be an outputPanel) between the clicked row and the next row and want to make it collapsible.

 

Probable Solution: I tried inserting a PageBlockSection within pageBlockTable, but i couldnt get to display the pageBlockSection.

 

Any thoughts on how I could get my requirement done ?

 

Thanks

Venkat

I have a similar problem as posted in this forum.

http://community.salesforce.com/sforce/board/message?board.id=apex&message.id=15448

But the solution to this problem as given here doesnt work.

 

Basically, I need to provide the link of a created note in an email. I use the following code.

 

String retURL = new PageReference('/' + thisNote.id).getUrl();

 

But the URL generated is as follows:

/00PS0000000RIQ6MAO

 Any thoughts???

 

Thanks

 

Venkat

 

Hello,

I get the following error during a webservice call.

 

AxisFault
 faultCode: {http://soap.sforce.com/schemas/class/TAAFetchObjectsController}INSUFFICIENT_ACCESS
 faultSubcode: 
 faultString: TAAFetchObjectsController: no access allowed to this class.
 faultActor: 
 faultNode: 
 faultDetail: 
    {http://xml.apache.org/axis/}stackTrace:TAAFetchObjectsController: no access allowed to this class.
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at com.sforce.soap.schemas._class.TAAFetchObjectsController.TAAFetchObjectsControllerBindingStub.getObjectMap(TAAFetchObjectsControllerBindingStub.java:193)
   

 

 

 

Honestly, I have no clue on this problem and any help is much appreciated. I have 4 other places where the call to this  TAAFetchObjectsController works(NOTE: the same exact call. It fails only in one case.

 

Any help is much appreciated.

 

Thanks

Venkat

Hello,

I get the following error. 

 

I do the following.

1. I write a Apex class called TAAFetchObjectsController with a method in it called getObjectMap

2. The method getObjectMap is made available for webservice and the class and method is set to global

3. I generate a WSDL from this class

4. Import the WSDL into my java environment.

5. Establish connection using Partner API Session URL.

6. Call the method using the stub generated by the WSDL.

 

I get the following error. Any thoughts?

 

I have got this error in the past because of using Enterprise End point URL to a Partner API, but this time, I do not understand what the error is due to. Help is much appreciated.

 

Thanks

Venkat

 

 

 

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
 faultSubcode: 
 faultString: No operation available for request {https://soap.sforce.com/schemas/class/TAAFetchObjectsController}getObjectMap
 faultActor: 
 faultNode: 
 faultDetail: 
    {http://xml.apache.org/axis/}stackTrace:No operation available for request {https://soap.sforce.com/schemas/class/TAAFetchObjectsController}getObjectMap
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at com.sforce.soap.schemas._class.TAAFetchObjectsController.TAAFetchObjectsControllerBindingStub.getObjectMap(TAAFetchObjectsControllerBindingStub.java:170)
   

How would we trigger when a Primary Partner on the Opportunity Changes. This is tricky because, changing primary partner updates OpportunityPartner Object which is not a high level object. Neither a Workflow rule nor a Trigger be written on this object.

 

But, I need to do some operations when the primary partner on the Opporuntiy is changed.

 

Any ideas / Suggestions?

 

Thanks

Venkat

I am trying to add a warning message like "Are you Sure" before Saving an Opportunity. I do not know how to over ride the save button. Could someone help me on this please?

 

Thanks
Venkat

No operation available for request {urn:partner.soap.sforce.com}getUserInfo

 

I get the following AxisFault error Message when I am using a Partner WSDL.

 

Anyone have anythoughts about going around this problem ?

 

https://cs2.salesforce.com/services/Soap/c/14.0/4e0200DR00000007p6w

 

Thanks

 

Hi Guyz,

 

I have a WSDL and generated Apex code from it. Actually, WSDL2Apex itself took a long time as I had to remove Soap12 information, multiple binding, multiple port, etc.But, I have the Apex codegenerated succesfully.

 

Now the problem is, when I make a call to the Service, I find the following in the debug log. Please help me get past this issue.

 

System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element FacilityResults

 

Thanks

Venkat

 

Hello,

I get the following error. 

 

I do the following.

1. I write a Apex class called TAAFetchObjectsController with a method in it called getObjectMap

2. The method getObjectMap is made available for webservice and the class and method is set to global

3. I generate a WSDL from this class

4. Import the WSDL into my java environment.

5. Establish connection using Partner API Session URL.

6. Call the method using the stub generated by the WSDL.

 

I get the following error. Any thoughts?

 

I have got this error in the past because of using Enterprise End point URL to a Partner API, but this time, I do not understand what the error is due to. Help is much appreciated.

 

Thanks

Venkat

 

 

 

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
 faultSubcode: 
 faultString: No operation available for request {https://soap.sforce.com/schemas/class/TAAFetchObjectsController}getObjectMap
 faultActor: 
 faultNode: 
 faultDetail: 
    {http://xml.apache.org/axis/}stackTrace:No operation available for request {https://soap.sforce.com/schemas/class/TAAFetchObjectsController}getObjectMap
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at com.sforce.soap.schemas._class.TAAFetchObjectsController.TAAFetchObjectsControllerBindingStub.getObjectMap(TAAFetchObjectsControllerBindingStub.java:170)
   

Hi,

 

I'm writing Apex trigger that needs to compose a URL to a dynamically created custom object.

Since I don't want to hard code the URL of the Salesforce instance and also don't want to change the code when switching between Sandbox and Prod org's, I'm looking for a way to find out from within Apex code which Salesforce instance it's running in.

So, for example, this code should return 'https://cs2.salesforce.com' when running in a Sandbox and 'https://na2.salesforce.com' when running in Prod.

I've noticed that Sandbox Id's start with 00DR whereas Prod Org IDs start with 00D<some digit>. But am not sure if this is something that can be used to identify the instance or if there is any better way.

 

Thanks.

I am trying to add a warning message like "Are you Sure" before Saving an Opportunity. I do not know how to over ride the save button. Could someone help me on this please?

 

Thanks
Venkat

No operation available for request {urn:partner.soap.sforce.com}getUserInfo

 

I get the following AxisFault error Message when I am using a Partner WSDL.

 

Anyone have anythoughts about going around this problem ?

 

https://cs2.salesforce.com/services/Soap/c/14.0/4e0200DR00000007p6w

 

Thanks

 

blank_page

Hi all-

 

I'm wondering if someone can help me figure out the solution to my problem.  I generated an apex class from the WSDL class generator, and this is part of the output. However, I have been told that I will need to ensure the the SOAP responses are described in the WSDL.  I'm not a SOAP expert so I don't know where to begin...  So, I have posted the two types of responses that come back from our web service provider as well as how its defined in the WSDL.   ANY help is greatly appreciated...

 

 

public csCallCenterWS.CreateNewAccountResult_element CreateNewAccount(String strUser,String strPin,Integer lngSiteID,String strFirstName,String strLastName,String strAccountName,String strAccountType,String strAddress1,String strAddress2,String strCity,String strState,String strZip,String strEmail,String strHomePhone) { csCallCenterWS.CreateNewAccount_element request_x = new csCallCenterWS.CreateNewAccount_element(); csCallCenterWS.CreateNewAccountResponse_element response_x; request_x.strUser = strUser; request_x.strPin = strPin; request_x.lngSiteID = lngSiteID; request_x.strFirstName = strFirstName; request_x.strLastName = strLastName; request_x.strAccountName = strAccountName; request_x.strAccountType = strAccountType; request_x.strAddress1 = strAddress1; request_x.strAddress2 = strAddress2; request_x.strCity = strCity; request_x.strState = strState; request_x.strZip = strZip; request_x.strEmail = strEmail; request_x.strHomePhone = strHomePhone; Map<String, csCallCenterWS.CreateNewAccountResponse_element> response_map_x = new Map<String, csCallCenterWS.CreateNewAccountResponse_element>(); response_map_x.put('response_x', response_x); WebServiceCallout.invoke( this, request_x, response_map_x, new String[]{endpoint_x, 'http://centershift.com/csCallCenter/csCallCenterService/CreateNewAccount', 'http://centershift.com/csCallCenter/csCallCenterService', 'CreateNewAccount', 'http://centershift.com/csCallCenter/csCallCenterService', 'CreateNewAccountResponse', 'csCallCenterWS.CreateNewAccountResponse_element'} ); response_x = response_map_x.get('response_x'); return response_x.CreateNewAccountResult; }

 

 

 

EXPECTED XML RESPONSE

 

ERROR

 

      <Error>
        <ErrorCode>100</ErrorCode>
        <Line>445</Line>
        <Message>Failed to log in User:  Either Username or Password is incorrect or User does not have permission</Message>
      </Error>

 

SUCCESS

 

      <Account>
        <FIRST_NAME>frank</FIRST_NAME>
        <LAST_NAME>sinatra</LAST_NAME>
        <EMAIL_ADDRESS>test@example.com</EMAIL_ADDESS>
        <PASSWORD>438500</PASSWORD>
        <CONTACT_ID>5662413</CONTACT_ID>
        <ACCOUNT_ID>3072405</ACCOUNT_ID>
      </Account>

 

 

HERE IS HOW THE RESPONSE IS DEFINED IN THE WSDL

 

      <s:element name="CreateNewAccountResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="CreateNewAccountResult">
              <s:complexType mixed="true">
                <s:sequence>
                  <s:any />
                </s:sequence>
              </s:complexType>
            </s:element>
          </s:sequence>
        </s:complexType>
      </s:element>

Message Edited by savvyboarder on 02-02-2009 09:03 AM
Message Edited by savvyboarder on 02-02-2009 09:58 AM