SHARE
TWEET

Untitled

a guest Jun 25th, 2019 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <s:complexType name="ArrayOfRegistroProfissionalEntity">
  2. <s:sequence>
  3. <s:element minOccurs="0" maxOccurs="unbounded"
  4. name="RegistroProfissionalEntity" nillable="true"
  5. type="tns:RegistroProfissionalEntity"/>
  6. </s:sequence>
  7. </s:complexType>
  8. <s:complexType name="RegistroProfissionalEntity">
  9. <s:complexContent mixed="false">
  10. <s:extension base="tns:BaseEntity">
  11. <s:sequence>
  12. <s:element minOccurs="1" maxOccurs="1" name="PrfRegHstCod" type="s:int"/>
  13. <s:element minOccurs="0" maxOccurs="1" name="RNP" type="s:string"/>
  14. <s:element minOccurs="1" maxOccurs="1" name="DataInicio"
  15. type="s:dateTime"/>
  16. <s:element minOccurs="1" maxOccurs="1" name="DataFinal" nillable="true"
  17. type="s:dateTime"/>
  18. <s:element minOccurs="1" maxOccurs="1" name="SituacaoRegistro"
  19. type="s:int"/>
  20. <s:element minOccurs="1" maxOccurs="1" name="DataAlteracao"
  21. type="s:dateTime"/>
  22. <s:element minOccurs="0" maxOccurs="1" name="UsuarioCREA"
  23. type="s:string"/>
  24. <s:element minOccurs="0" maxOccurs="1" name="CodigoCrea"
  25. type="s:string"/>
  26. <s:element minOccurs="1" maxOccurs="1" name="DataFalecimento"
  27. nillable="true" type="s:dateTime"/>
  28. <s:element minOccurs="0" maxOccurs="1" name="Observacao"
  29. type="s:string"/>
  30. </s:sequence>
  31. </s:extension>
  32. </s:complexContent>
  33. </s:complexType>
  34.      
  35. class RegistroProfissional{
  36. public $PrfRegHstCod;
  37. public $RNP;
  38. public $DataInicio;
  39. public $DataFinal;
  40. public $SituacaoRegistro;
  41. public $DataAlteracao;
  42. public $UsuarioCrea;
  43. public $CodigoCrea;
  44. public $DataFalecimento;
  45. public $Observacao;
  46. }
  47. $RegistroProfissional = new RegistroProfissional();
  48. $RegistroProfissional->PrfRegHstCod=0;
  49. $RegistroProfissional->RNP='1';
  50. $RegistroProfissional->DataInicio='2019-04-26T00:00:00';
  51. $RegistroProfissional->DataFinal='2019-04-26T00:00:00';
  52. $RegistroProfissional->SituacaoRegistro=0;
  53. $RegistroProfissional->DataAlteracao='2019-04-26T00:00:00';
  54. $RegistroProfissional->UsuarioCrea='1';
  55. $RegistroProfissional->CodigoCrea='1';
  56. $RegistroProfissional->DataFalecimeno='2019-04-26T00:00:00';
  57. $RegistroProfissional->Observacao='1';
  58.  
  59. $client = new SoapClient('WSDL');
  60.  
  61. $function = "Salvar";
  62.  
  63. $options = array('location' => 'URL');
  64.  
  65. $ArrayOfRegistroProfissional['RegistroProfissionalEntity']=
  66. $RegistroProfissional;
  67.  
  68.  
  69. $result = $client->__soapCall($function, $ArrayOfRegistroProfissional,
  70. $options);
  71.  
  72. echo 'Response: ';
  73.  
  74. print_r($result);
  75.      
  76. Response: stdClass Object
  77. (
  78. [SalvarResult] => stdClass Object
  79.     (
  80.         [Mensagens] => stdClass Object
  81.             (
  82.                 [Message] => stdClass Object
  83.                     (
  84.                         [Description] => A entidade
  85.     "RegistroProfissional" n├úo foi informada.
  86.                         [Type] => Error
  87.                     )
  88.             )
  89.         [HasErro] => 1
  90.     )
  91.    )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top