Hello,
There is any way to add XML attributes on the SOAP integration webservices?
Like
Hello Federico,
Yes, it is possible to add XML attributes in SOAP integration web services. In SOAP, XML attributes can be added to the SOAP message header and body elements. The SOAP message header contains optional attributes that provide additional information about the message, while the SOAP message body can have attributes that describe the data being transmitted.
To add XML attributes to a SOAP message, you need to define the attribute in the WSDL file and then include the attribute in the SOAP message. The WSDL file specifies the XML schema that defines the structure of the SOAP message, including any attributes that are allowed.
You can add XML attributes to the SOAP message using various programming languages and tools, such as Java, .NET, and PHP. For example, in Java, you can use the JAX-WS API to add attributes to the SOAP message header and body elements.
It is important to note that adding XML attributes to a SOAP message can impact the interoperability of the web service, as different systems may interpret the attributes differently. Therefore, it is recommended to follow the XML schema standards and best practices when adding attributes to SOAP messages.
Best regards,
Bogdan S.
Bogdan Spasibov,
Can you give me a example how to add this in the parameters?
I need to add MessageId="getAccountMsg" and
<DeviceInformation DeviceType="CREATIO" DeviceNumber="0000"/> I can't make it works using the webservice integration.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:acc="http://www.symxchange.generated.symitar.com/account" xmlns:tns="http://www.symxchange.generated.symitar.com/common/dto/common"> <soapenv:Header/> <soapenv:Body> <acc:getAccount> <Request MessageId="getAccountMsg"> <AccountNumber>1234</AccountNumber> <UserNumberCredentials> <!--Optional:--> <UserNumber</UserNumber> <Password></Password> </UserNumberCredentials> </Credentials> <DeviceInformation DeviceType="CREATIO" DeviceNumber="000000"/> </Request> </acc:getAccount> </soapenv:Body> </soapenv:Envelope>
To add the MessageId="getAccountMsg"
and <DeviceInformation DeviceType="CREATIO" DeviceNumber="0000"/>
parameters to the SOAP request, you would need to modify the XML code as follows:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:acc="http://www.symxchange.generated.symitar.com/account" xmlns:tns="http://www.symxchange.generated.symitar.com/common/dto/common">
<soapenv:Header/>
<soapenv:Body>
<acc:getAccount>
<Request MessageId="getAccountMsg">
<AccountNumber>1234</AccountNumber>
<UserNumberCredentials>
<!--Optional:-->
<UserNumber></UserNumber>
<Password></Password>
</UserNumberCredentials>
<DeviceInformation DeviceType="CREATIO" DeviceNumber="0000"/>
</Request>
</acc:getAccount>
</soapenv:Body>
</soapenv:Envelope>
Anton Starikov,
Hi Anton I need to know how to add that in the UI since from the wdsl is not taking that value like is in the xml. I need a example to see how to add the parameter in the UI for the attribute MessageId.