Saturday 15 December 2018

OSB-382191 - body". Value must be an instance of {http://schemas.xmlsoap.org/soap/envelope/}Body

                OSB ERROR - OSB-382191



Failed to set the value of context variable "body". Value must be an instance of {http://schemas.xmlsoap.org/soap/envelope/}Body.
Failed to set the value of context variable "header". Value must be an instance of {http://schemas.xmlsoap.org/soap/envelope/}Header.

This is a quite common error when you start manipulating OSB generated variables like body, headers.  
    This error happen, because OSB have a structure for all the variables and in the above errors only come when structure is replaced with the value.  


  There is a simple error  and be easily removed using the . in the request. Which simply mean we are putting the . instead of no value.







   Other way to avoid this error is place the value 

   Expression

     <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"         
          <Value>Value to be assign to body</Value>
        </soapenv:Body> 
            Variable: body








No comments:

Post a Comment