Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
84248members
353348posts

SOAP XML - Method Override CDBPoint

EcoStruxure Geo SCADA Expert Forum

Find out how SCADA systems and networks, like EcoStruxure Geo SCADA Expert, help industrial organizations maintaining efficiency, processing data for smarter decision making with IoT, RTU and PLC devices.

Solved
dlucas
Ensign
Ensign
0 Likes
4
673

SOAP XML - Method Override CDBPoint

I am testing the XML SOAP of Geo SCADA Expert. The software used is SOAPUI 5.6.

I would like to execute "Override" method through SOAP.

I am able to execute this method without argument (here below the syntax of the SOAP xml query).

 

 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:scx6="http://serck-controls.com/webservices/SCX6/">
   <soapenv:Header/>
   <soapenv:Body>
      <scx6:ExecuteMethod>
         <scx6:Object>_TESTS.PointAnalogTest</scx6:Object>
         <scx6:Method>Override</scx6:Method>
         <!--Optional:-->
         <scx6:Arguments>
            <!--1 or more repetitions:-->
            <scx6:Argument></scx6:Argument>
         </scx6:Arguments>
      </scx6:ExecuteMethod>
   </soapenv:Body>
</soapenv:Envelope>

 

 

 

The reply is OK.

 

However, when I set an argument such as 2 (here below), error occurs.

 

 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:scx6="http://serck-controls.com/webservices/SCX6/">
   <soapenv:Header/>
   <soapenv:Body>
      <scx6:ExecuteMethod>
         <scx6:Object>_TESTS.PointAnalogTest</scx6:Object>
         <scx6:Method>Override</scx6:Method>
         <!--Optional:-->
         <scx6:Arguments>
            <!--1 or more repetitions:-->
            <scx6:Argument>2</scx6:Argument>
         </scx6:Arguments>
      </scx6:ExecuteMethod>
   </soapenv:Body>
</soapenv:Envelope>

 

 

 

Does somebody have any idea how to send argument through the method in SOAP ? which syntax is needed ?

Thank by advance,


Accepted Solutions
AndrewScott
Commander
Commander
0 Likes
1
642

Re: JustRe: SOAP XML - Method Override CDBPoint

Sorry, I forgot to mention that you also need to define the xsi namespace for the xsi:type attribute:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:scx6="http://serck-controls.com/webservices/SCX6/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Header/>
   <soapenv:Body>
      <scx6:ExecuteMethod>
         <scx6:Object>_TESTS.PointAnalogTest</scx6:Object>
         <scx6:Method>Override</scx6:Method>
         <!--Optional:-->
         <scx6:Arguments>
            <!--1 or more repetitions:-->
            <scx6:Argument xsi:type="xsd:double">12</scx6:Argument>
         </scx6:Arguments>
      </scx6:ExecuteMethod>
   </soapenv:Body>
</soapenv:Envelope>

 


Andrew Scott, Lead Engineer, AVEVA

See Answer In Context

4 Replies 4
AndrewScott
Commander
Commander
0 Likes
3
654

Re: SOAP XML - Method Override CDBPoint

The <scx6:Argument> element is missing the xsi:type attribute to define what kind of value the argument is.

For example, for an analogue point override using double precision floating point value:

<scx6:Argument xsi:type="xsd:double">12.34</scx6:Argument>

 


Andrew Scott, Lead Engineer, AVEVA
dlucas
Ensign
Ensign
0 Likes
2
651

JustRe: SOAP XML - Method Override CDBPoint

Justed checked.

The reply of the scada is unfortunately NOK: "the request body was not valid" whatever the xsd type (like int, float, double, short, long, etc.). Here below the print screen.

 

reply.png

 

It becomes better when "xsi" and the value are removed...

 

reply2.png

 

event logs.png

It seem working properly, however no value is sent...

Any idea ? Are you sure of the syntax ? Is there no error message from the soap server when the type is wrong ?

Attachments
AndrewScott
Commander
Commander
0 Likes
1
643

Re: JustRe: SOAP XML - Method Override CDBPoint

Sorry, I forgot to mention that you also need to define the xsi namespace for the xsi:type attribute:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:scx6="http://serck-controls.com/webservices/SCX6/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Header/>
   <soapenv:Body>
      <scx6:ExecuteMethod>
         <scx6:Object>_TESTS.PointAnalogTest</scx6:Object>
         <scx6:Method>Override</scx6:Method>
         <!--Optional:-->
         <scx6:Arguments>
            <!--1 or more repetitions:-->
            <scx6:Argument xsi:type="xsd:double">12</scx6:Argument>
         </scx6:Arguments>
      </scx6:ExecuteMethod>
   </soapenv:Body>
</soapenv:Envelope>

 


Andrew Scott, Lead Engineer, AVEVA
dlucas
Ensign
Ensign
0 Likes
0
638

Re: JustRe: SOAP XML - Method Override CDBPoint

Hi,

It is working now.

Good job. Thank you so much.

Cheers,