• rvattam
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
Hi All,
I'm trying to host a service and that need to be consumed by tibco...
so in my xml request.
 
 

      <inc:AllowFieldTruncationHeader>
         <inc:allowFieldTruncation></inc:allowFieldTruncation>
      </inc:AllowFieldTruncationHeader>
      <inc:DebuggingHeader>
         <!--Zero or more repetitions:-->
         <inc:categories>
            <inc:category></inc:category>
            <inc:level></inc:level>
         </inc:categories>
         <inc:debugLevel></inc:debugLevel>
      </inc:DebuggingHeader>
      <inc:CallOptions>
         <inc:client></inc:client>
      </inc:CallOptions>
     
 
im able to get the response when i remove this part from soapUi
Does it going to be a problem when tibco consume this?
if they want to pass a session id how can they pass?
 
Request:
   <soapenv:Header>
      <inc:AllowFieldTruncationHeader>
         <inc:allowFieldTruncation></inc:allowFieldTruncation>
      </inc:AllowFieldTruncationHeader>
      <inc:DebuggingHeader>
         <!--Zero or more repetitions:-->
         <inc:categories>
            <inc:category></inc:category>
            <inc:level></inc:level>
         </inc:categories>
         <inc:debugLevel></inc:debugLevel>
      </inc:DebuggingHeader>
      <inc:CallOptions>
         <inc:client></inc:client>
      </inc:CallOptions>
      <inc:SessionHeader>
         <inc:sessionId></inc:sessionId>
      </inc:SessionHeader>
   </soapenv:Header>
   <soapenv:Body>
      <inc:getIncidentInfo>
         <inc:IncidentNo>xxxxx</inc:IncidentNo>
      </inc:getIncidentInfo>
   </soapenv:Body>

</soapenv:Envelope>



Response:



<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Client</faultcode>
         <faultstring>'' is not valid for type xsd:boolean, should be '0', '1', 'true' or 'false'</faultstring>
      </soapenv:Fault>
   </soapenv:Body>

</soapenv:Envelope>

 

 

 

Hi All,
       when im trying to host a webservice... i'm getting the above error when i run my WSDL file in the SoapUi...


My Code:

global class IncidentInformation {
 
   
 
 
    global class incidentInfo {
        webservice Id Category;
    webservice Id Impact;
    webservice Id Urgency;
    webservice String contactType;
    webservice Id OwnerID;
    webservice Id Client;
        }
 
 
    WebService static incidentInfo  getIncidentInfo(string IncidentNo) {
        string incidentId= IncidentNo;
    incidentId = incidentId.trim();
        incidentInfo retInfo = new incidentInfo();
        
   ObjectName incObj =[Select Id,Name,field1,field2,field3,field4,field5,field6 from  ObjectName where id= : incidentId];                      
        if(incObj.Name!=null){
        retInfo.Category= incObj.field1;
        retInfo.Impact= incObj.field2;
        retInfo.Urgency= incObj.field3;
        retInfo.contactType= field4;
        retInfo.OwnerID= incObj.field5;
        retInfo.Client= incObj.field6 ;
        
    }
        return retInfo;
   }     
}






SoapUi Request:



   <soapenv:Header>
      <inc:AllowFieldTruncationHeader>
         <inc:allowFieldTruncation></inc:allowFieldTruncation>
      </inc:AllowFieldTruncationHeader>
      <inc:DebuggingHeader>
         <!--Zero or more repetitions:-->
         <inc:categories>
            <inc:category></inc:category>
            <inc:level></inc:level>
         </inc:categories>
         <inc:debugLevel></inc:debugLevel>
      </inc:DebuggingHeader>
      <inc:CallOptions>
         <inc:client></inc:client>
      </inc:CallOptions>
      <inc:SessionHeader>
         <inc:sessionId></inc:sessionId>
      </inc:SessionHeader>
   </soapenv:Header>
   <soapenv:Body>
      <inc:getIncidentInfo>
         <inc:IncidentNo>38253</inc:IncidentNo>
      </inc:getIncidentInfo>
   </soapenv:Body>
</soapenv:Envelope>



Response:



<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Client</faultcode>
         <faultstring>'' is not valid for type xsd:boolean, should be '0', '1', 'true' or 'false'</faultstring>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>




Please anyone can help out....That would be great!!!!



Hi All,
       when im trying to host a webservice... i'm getting the above error when i run my WSDL file in the SoapUi...


My Code:

global class IncidentInformation {
 
   
 
 
    global class incidentInfo {
        webservice Id Category;
    webservice Id Impact;
    webservice Id Urgency;
    webservice String contactType;
    webservice Id OwnerID;
    webservice Id Client;
        }
 
 
    WebService static incidentInfo  getIncidentInfo(string IncidentNo) {
        string incidentId= IncidentNo;
    incidentId = incidentId.trim();
        incidentInfo retInfo = new incidentInfo();
        
   ObjectName incObj =[Select Id,Name,field1,field2,field3,field4,field5,field6 from  ObjectName where id= : incidentId];                      
        if(incObj.Name!=null){
        retInfo.Category= incObj.field1;
        retInfo.Impact= incObj.field2;
        retInfo.Urgency= incObj.field3;
        retInfo.contactType= field4;
        retInfo.OwnerID= incObj.field5;
        retInfo.Client= incObj.field6 ;
        
    }
        return retInfo;
   }     
}






SoapUi Request:



   <soapenv:Header>
      <inc:AllowFieldTruncationHeader>
         <inc:allowFieldTruncation></inc:allowFieldTruncation>
      </inc:AllowFieldTruncationHeader>
      <inc:DebuggingHeader>
         <!--Zero or more repetitions:-->
         <inc:categories>
            <inc:category></inc:category>
            <inc:level></inc:level>
         </inc:categories>
         <inc:debugLevel></inc:debugLevel>
      </inc:DebuggingHeader>
      <inc:CallOptions>
         <inc:client></inc:client>
      </inc:CallOptions>
      <inc:SessionHeader>
         <inc:sessionId></inc:sessionId>
      </inc:SessionHeader>
   </soapenv:Header>
   <soapenv:Body>
      <inc:getIncidentInfo>
         <inc:IncidentNo>38253</inc:IncidentNo>
      </inc:getIncidentInfo>
   </soapenv:Body>
</soapenv:Envelope>



Response:



<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Client</faultcode>
         <faultstring>'' is not valid for type xsd:boolean, should be '0', '1', 'true' or 'false'</faultstring>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>




Please anyone can help out....That would be great!!!!



Hello,

 

i wanted to know if there is a way to get the IDs of listviews of an Object in Apex Code.