• Doug Hynes NI
  • NEWBIE
  • 40 Points
  • Member since 2014

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hello

I developed an API callout to a SOAP webservice.
How can I see the actual XML message being generate by the invoke methid?
I call the invoke method below:


WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              '',
              'iRT_XIFIN_Client',
              'RequestMessage',
              'iRT_XIFIN_Client',
              'ResponseMessage',
              'iRT_XIFIN_Client.ResponseMessage_element'}
            );
            
and my webservice expects something like this

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://www.xifin.com/schema/client" xmlns:msg="http://www.xifin.com/schema/msgHeader">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:RequestMessage>
         <msg:MessageHeader>
            
            <msg:SequenceNumber>1</msg:SequenceNumber><msg:UserId>Tester</msg:UserId>          
            <msg:SourceApplication>?</msg:SourceApplication><msg:OrgAlias>irhythmtest</msg:OrgAlias>          
         </msg:MessageHeader>
         <cli:Payload>                                                                
         <cli:GetClient><cli:ClientId>883</cli:ClientId></cli:GetClient></cli:Payload>
      </cli:RequestMessage>
   </soapenv:Body>
</soapenv:Envelope>

Thanks
Giorgio
I've been trying out Lightning Connect using this provider: http://services.odata.org/V2/Northwind/Northwind.svc/ and the Customer feed.

The documentation suggests that a global / SOSL search will work using $filter even if the source doesn't support a custom query option. However, even when I check "Include in Salesforce Searches", I see no sign that Salesforce is trying to include the object in the search. It doesn't show up as an object in advanced search, and a SOSL query will accept the object type but return nothing.

Can somebody give a definite answer if it actually works at all and if so, more about what's required?
Reference - Visualforce Developer guide
Although custom controllers and controller extension classes execute in system mode and thereby ignore user permissions
and field-level security, you can choose whether they respect a user's organization-wide defaults, role hierarchy, and sharing rules
by using the with sharing keywords in the class definition.

will with sharing apply field-level security and create, read, update and delete permissions of the current logged in user? From the above statement I am thinking it won't apply but in some blogs I am seeing that with sharing applies DML and field-level security also.

Please guide me which is correct.

 
Hello

I developed an API callout to a SOAP webservice.
How can I see the actual XML message being generate by the invoke methid?
I call the invoke method below:


WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              '',
              'iRT_XIFIN_Client',
              'RequestMessage',
              'iRT_XIFIN_Client',
              'ResponseMessage',
              'iRT_XIFIN_Client.ResponseMessage_element'}
            );
            
and my webservice expects something like this

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cli="http://www.xifin.com/schema/client" xmlns:msg="http://www.xifin.com/schema/msgHeader">
   <soapenv:Header/>
   <soapenv:Body>
      <cli:RequestMessage>
         <msg:MessageHeader>
            
            <msg:SequenceNumber>1</msg:SequenceNumber><msg:UserId>Tester</msg:UserId>          
            <msg:SourceApplication>?</msg:SourceApplication><msg:OrgAlias>irhythmtest</msg:OrgAlias>          
         </msg:MessageHeader>
         <cli:Payload>                                                                
         <cli:GetClient><cli:ClientId>883</cli:ClientId></cli:GetClient></cli:Payload>
      </cli:RequestMessage>
   </soapenv:Body>
</soapenv:Envelope>

Thanks
Giorgio