• Sadmin
  • NEWBIE
  • 0 Points
  • Member since 2008

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

We have a requirement like ,An object is having a status filed which is having values like submitted,Approved,rejected.

Whenever a record of that object is creating, an automatic mail should trigger to the record owner.

When the record owner replies with Approved or rejected. Then status in the record should change to the same.

I tried to use the workflow approvals for this. But it will not trigger automattivally.User need to submit it.

In this also when i i tried to reply the mail as approved ,Approval action is not happening? What could be the reason?

If anybody worked on this issue please suggest the solution.

Hi

 
I downloaded Blackberry 8703 Simulator. I am able to login to the Production from the simulator.

Now I am trying to test the mobile configuration created in sandbox. Is it possible to test this?

If so the where I need to change the settings in the blackberry simulator to access sandbox.


Hi ,

I am trying to call an external web service from Visual force. I have taken a WSDL from http://strikeiron.com/ .This Web service provides DNS lookup information from a server name. I parsed the WSDL to the apex class and  trying to call the request method in the Converted class from visual force. Visual force page Contains a button .On click ,it should display the dns name of Server passing('www.google.com') But whenever I am clicking on it .Getting an error:-"System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: No user identifier provided faultcode=soap:Client faultactor="



//Generated by wsdl2apex

public class tempuriOrg {
    public class ArrayOfString {
        public String[] string_x;
        private String[] string_x_type_info = new String[]{'string','http://www.w3.org/2001/XMLSchema','string','0','-1','true'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true'};
        private String[] field_order_type_info = new String[]{'string_x'};
    }
    public class DNSInfo {
        public String HostName;
        public tempuriOrg.ArrayOfString Aliases;
        public tempuriOrg.ArrayOfString AddressList;
        private String[] HostName_type_info = new String[]{'HostName','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] Aliases_type_info = new String[]{'Aliases','http://tempuri.org/','ArrayOfString','0','1','false'};
        private String[] AddressList_type_info = new String[]{'AddressList','http://tempuri.org/','ArrayOfString','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true'};
        private String[] field_order_type_info = new String[]{'HostName','Aliases','AddressList'};
    }
    public class DNSLookupResponse_element {
        public tempuriOrg.DNSInfo DNSLookupResult;
        private String[] DNSLookupResult_type_info = new String[]{'DNSLookupResult','http://tempuri.org/','DNSInfo','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true'};
        private String[] field_order_type_info = new String[]{'DNSLookupResult'};
    }
    public class DNSSoap {
        public String endpoint_x = 'http://ws.strikeiron.com/relauto/iplookup/DNS';
        public wsStrikeironCom.SubscriptionInfo SubscriptionInfo;
        public wsStrikeironCom.LicenseInfo LicenseInfo;
        private String SubscriptionInfo_hns = 'SubscriptionInfo=http://ws.strikeiron.com';
        private String LicenseInfo_hns = 'LicenseInfo=http://ws.strikeiron.com';
        private String[] ns_map_type_info = new String[]{'http://ws.strikeiron.com', 'wsStrikeironCom', 'http://tempuri.org/', 'tempuriOrg'};
        public tempuriOrg.DNSInfo DNSLookup(String server) {
            tempuriOrg.DNSLookup_element request_x = new tempuriOrg.DNSLookup_element();
            tempuriOrg.DNSLookupResponse_element response_x;
            request_x.server = server;
            Map<String, tempuriOrg.DNSLookupResponse_element> response_map_x = new Map<String, tempuriOrg.DNSLookupResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://tempuri.org/DNSLookup',
              'http://tempuri.org/',
              'DNSLookup',
              'http://tempuri.org/',
              'DNSLookupResponse',
              'tempuriOrg.DNSLookupResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.DNSLookupResult;
        }
        public void GetRemainingHits() {
            wsStrikeironCom.GetRemainingHits_element request_x = new wsStrikeironCom.GetRemainingHits_element();
            wsStrikeironCom.GetRemainingHitsResponse_element response_x;
            Map<String, wsStrikeironCom.GetRemainingHitsResponse_element> response_map_x = new Map<String, wsStrikeironCom.GetRemainingHitsResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://ws.strikeiron.com/relauto/iplookup/DNS/GetRemainingHits',
              'http://ws.strikeiron.com',
              'GetRemainingHits',
              'http://ws.strikeiron.com',
              'GetRemainingHitsResponse',
              'wsStrikeironCom.GetRemainingHitsResponse_element'}
            );
            response_x = response_map_x.get('response_x');
        }
    }
    public class DNSLookup_element {
        public String server;
        private String[] server_type_info = new String[]{'server','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true'};
        private String[] field_order_type_info = new String[]{'server'};
    }
}

It generated one more class wsStrikeironCom inside that I have given the userid and password inside a method called Which is


public class RegisteredUser {
        public String UserID='rachana.raveendran@gmail.com';
        public String Password='*******';
        private String[] UserID_type_info = new String[]{UserID,'http://www.w3.org/2001/XMLSchema','string','0','1','true'};
        private String[] Password_type_info = new String[]{Password,'http://www.w3.org/2001/XMLSchema','string','0','1','true'};
        private String[] apex_schema_type_info = new String[]{'http://ws.strikeiron.com','true'};
        private String[] field_order_type_info = new String[]{UserID,Password};
    }




Here is my visual force code

public class Temperature
{
tempuriOrg.DNSInfo output;
public void recordReplicator()
{
tempuriOrg.DNSSoap stub = new tempuriOrg.DNSSoap(); String nserver='www.google.com'; System.debug('Server Ips'); output= stub.DNSLookup(nserver); System.Debug('output'+output); } public tempuriOrg.DNSInfo getOutput() { return output; } }

Remote site is created for http://ws.strikeiron.com

Please help me to solve this

Thanks


I have following issue:
when I create a new Account I first would like to fetch the Account data from an external web service
and populate the Account with the result of my web service call. My idea is to add a button (GetAccountData) that would trigger the
web service (with a Controller ?), get the response and display the data on the Account Tab.
is there a way  in Visualforce to add such a functionality ?