dcsimg
Problem with 'INOUT' parameter mode in Weblogic Server 7.0 with RPC-based web-service.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Kakoli_Sen
Posted On:   Wednesday, September 18, 2002 02:47 AM

Service method: Client code snippet : call.addParameter("param0", xsdString, ParameterMode.IN); call.addParameter("param1", xsdString, ParameterMode.INOUT); But 'call.invoke' with two string objects give the following SOAPException: javax.xml.rpc.soap.SOAPFaultException: Found SOAPElement [ 40 ]. But was not able to find a Part that is registered with this Message which corresponds to this SOAPElement. Things work fine for only IN parameter. Any pointers to the problem would be appreciated.    More>>

Service method:






Client code snippet :


call.addParameter("param0", xsdString, ParameterMode.IN);


call.addParameter("param1", xsdString, ParameterMode.INOUT);





But 'call.invoke' with two string objects give the following SOAPException:


javax.xml.rpc.soap.SOAPFaultException: Found SOAPElement [ 40 ]. But was not able to find a Part that is registered with this Message which corresponds to this SOAPElement.




Things work fine for only IN parameter. Any pointers to the problem would be appreciated.

   <<Less

Re: Problem with 'INOUT' parameter mode in Weblogic Server 7.0 with RPC-based web-service.

Posted By:   neeraj_pandey  
Posted On:   Wednesday, October 23, 2002 01:35 AM

Not sure of whats happening at your end, but I have run the rpc based webservice examples using INOUT parameter using weblogic 7.0.






Here is the examples :





Call call = service.createCall();


//set port and operation name

call.setPortTypeName(portName);

call.setOperationName(operationName);



//add parameters

call.addParameter("param0", xsdString, ParameterMode.IN);

call.addParameter("result", xsdString, ParameterMode.OUT);


//set end point address
call.setTargetEndpointAddress(url);


Object result = call.invoke(new Object[]{ "BEAS" });

System.out.println("** Got result: "+result);






*************************************



inputParams = Object[] -- Parameters for this invocation.






Hope it helps !
About | Sitemap | Contact