starhu
asked on
2.)Delphi Soap: how to
Hello,
In the question https://www.experts-exchange.com/questions/28137065/Delphi-Soap-how-to.html I got the answer how to build a Soap request so I could call with it the following soap function:
public XmlDocument setProduct (array auth, array params);
Here I generated the Xml document in sXmlMsg TStringStream and I used SoapClient.Execute(sXmlMsg , Msg); //the SoapClient here is THTTPReqResp object
Now I need to call public XmlDocument setProductXML (array auth, XmlDocument XML);
The problem here is that there are two parameters (and the second is a separate Xml document). How can I build and send it with one SoapClient.Execute call?
Thank you
In the question https://www.experts-exchange.com/questions/28137065/Delphi-Soap-how-to.html I got the answer how to build a Soap request so I could call with it the following soap function:
public XmlDocument setProduct (array auth, array params);
Here I generated the Xml document in sXmlMsg TStringStream and I used SoapClient.Execute(sXmlMsg
Now I need to call public XmlDocument setProductXML (array auth, XmlDocument XML);
The problem here is that there are two parameters (and the second is a separate Xml document). How can I build and send it with one SoapClient.Execute call?
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hello,
It is not clear to me how to send the xml file.
Let's say I have this
Then how can I send the Xml to the server which waits for such a request:
public XmlDocument setProductXML (array auth, XmlDocument XML);
The setProductXML is not a Delphi procedure but a server side procedure.
Previusly (when I used *only* Xml message) I used SoapClient.Execute(sXmlMsg , Msg); where the sXmlMsg was the Xml message (as TStringStream).
But now I need to send not one but two parameteres:
- array auth (authentication array)
- and the Xml itself
The SoapClient.Execute has only one input parameter, how can I send two?
procedure Execute(const Request: TStream; Response: TStream);
Thank you!
It is not clear to me how to send the xml file.
Let's say I have this
XMLDoc := TXMLDocument.Create(nil);
XMLDoc.Active := True;
XMLDoc.LoadFromFile('setProductXMLRequest.xml');
Then how can I send the Xml to the server which waits for such a request:
public XmlDocument setProductXML (array auth, XmlDocument XML);
The setProductXML is not a Delphi procedure but a server side procedure.
Previusly (when I used *only* Xml message) I used SoapClient.Execute(sXmlMsg
But now I need to send not one but two parameteres:
- array auth (authentication array)
- and the Xml itself
The SoapClient.Execute has only one input parameter, how can I send two?
procedure Execute(const Request: TStream; Response: TStream);
Thank you!
ASKER