Hi everyone,
as far as you create a SOAP reuest with simple parameter values (number, string,...) only, it should be possible with the SOAP-Tools, but I agree Venkoba, that you could also use XML tools to create the request and if you need complex type as parameter values, this is only possible with XML tools:
- Use "XML Create Document" to define your XML and the selection namespaces.
- Use "XML Select Single Node Set Value" to select each parameter node (by XPath pattern) and set the value.
- Use "SOAP HTTP Request Ex3" and set your XML document as "Request Envelop" parameter.
- Use "XML Select Single Node" to get the values from the "Response Envelope"
You should note some things:
- Add
encoding="utf-8" to your XML line: Example:
<?xml version="1.0" encoding="utf-8"?>. Otherwise the server may reject your request due to incorrect content type.
- Check "Retrieve Value" in input of "XML Select Single Node". Otherwise to output parameter "Node Value" will not be filled.
- If you have problems with selecting the right nodes from XML document or response envelope, have a look at the description of "Selection Namespaces" in the documentation of the "XML Set Document Property" tool.
------------------------------
---------------------------------------------
Hans-Gerd Sandhagen
Software Developer
Fiebig GmbH
---------------------------------------------
------------------------------
Original Message:
Sent: 10-11-2019 03:13
From: Venkoba Adeshappa
Subject: Help with formatting XML in Handler SOAP request
Hi Egill,
I think you can make use "XML Create Document" node.
Thanks.
------------------------------
Venkoba Adeshappa
Philips Electronics North America
Original Message:
Sent: 10-10-2019 10:58
From: Egill Palsson
Subject: Help with formatting XML in Handler SOAP request
Hi everyone,
I am having a massive problem with what seems to be a very simple issue :(
I need to be able to format this SOAP Request in a handler.
<?xml version="1.0"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:v2="https://pathtoservice">
<soapenv:Body>
<v2:GetAuthentication>
<v2:mobileNumber>Any number</v2:mobileNumber>
<v2:textPrompt>Any text</v2:textPrompt>
</v2:GetAuthentication>
</soapenv:Body>
</soapenv:Envelope>
I am using the following tool steps in this order:
SOAP Create Envelope - >SOAP Add RPC Parameter ->SOAP Add RPC Parameter - >SOAP HTTP Request Ex3
According to what I am seeing in the logs the "v2" is not being added in front of the RPC Method Name (GetAuthentication).
Can any of you share with me a simple SOAP Handler that actually works?
The documentation provides no examples of what should go where I just don't know what to do. Any pointers are most welcome.
#Handlers
------------------------------
Egill Palsson
Advania AB
------------------------------