Posted: Thu Jul 06, 2006 10:54 pm Post subject: Problem with web service
Newbie
Joined: 12 Jun 2006 Posts: 9 Location: Valencia, Spain
Hi
I need to develop a web service with Message broker (toolkit v.5.0.7) and I have developed a message flow with:
HttpInput->Compute->HttpReply
The compute code is:
Code:
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
SET OutputRoot = InputRoot;
SET OutputRoot.MRM.*:Body.*:http.HTTPInputBody.OutputData.Data = 'xxxNEWDATAxxx';
RETURN TRUE;
END;
I have created a message definition file importing this xsd file:
In this response soap message the field OutputData.Data has the new value 'xxxNEWDATAxxx'
But the problem that I have is that I don´t know what happens
When I test this web service with a client application it retuns nothing.
I generate the wsdl files and then wsdl2java (with AXIS) to generate a java client applicacion. My test class is:
Code:
public static void main(String[] args) {
try {
Ej_01HTTP_SOAP_Service service = new Ej_01HTTP_SOAP_ServiceLocator();
Ej_01PortType port = service.getHTTPSOAPPort();
HTTPMessageType msgIn = new HTTPMessageType();
DataType data_in = new DataType();
data_in.setData("TEST_Input_ejemplo01");
msgIn.setURL("Test_url_ejemplo01");
msgIn.setInputData(data_in);
HTTPMessageType msgOut = new HTTPMessageType();
DataType data_out = new DataType();
data_out.setData("TEST_Output_ejemplo01");
msgIn.setOutputData(data_out);
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum