Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:16 pm
by Torrie Moore >> Wed, 30 Jan 2008 20:07:50 GMT
Is it possible to define a web service method in Jade that simply returns a string? You can then generate the XML manually and return it.
You may also want to look at the JadeWebServiceProvider::reply, JadeWebServiceProvider::processRequest and the JadeWebServiceProvider::processMessage methods. You may be able to trap the SOAP response from Jade and reformat it as appropiate. For example, we reimplement the reply method to optionally log the outgoing message. (see below)
Torrie
-------------------------------------------------------
reply(): String updating, protected;
vars
sResult : String; // The outgoing soap message.begin
sResult := inheritMethod();
if currentSession <> null then // TM P363
app.myWebServiceLog.trace( '--------OUTGOING SOAP----------------SESSION ID=' & currentSession.getSessionID.String & '--------------------------' & CrLf
& sResult & CrLf );
else // TM P363
app.myWebServiceLog.trace( '--------OUTGOING SOAP----------------SESSION ENDED --------------------------' & CrLf
& sResult & CrLf ); // TM P363
endif; // TM P363
return sResult;
epilog
end;