Can you send us your WSDL? My first hunch is that you aren't using a wrapper element for your two parameters. A doc/literal message must contain only one child element in the <soap:Body>. Axis will process only the first element and ignore any subsequent elements. That first child element should be a wrapper element that contains all your parameters.
Anne -----Original Message----- From: Rahul Jain [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 8:20 PM To: [EMAIL PROTECTED] Subject: RE: Exposing an EJB as a doc-literal web service Hi, Thanks for the help, Wei. I did what you suggested and it worked, but partially. The issue is there is a method called loadXMLData(String param1, String param2) on the EJB. I deployed the EJB as a web service exposing this method. I then wrote a client to invoke (actually used the Junit test case generated by WSDL2Java) to test the service. What happens is the EJB on the server only get the value for param1, but param2 is null. On the client side I checked that the Axis generated <ServiceName>SoapBindingStub which actually invoked the call using org.apache.axis.client.Call instance invoke(Object[]) method, passes in the proper values to the invoke() method. But somehow on the server (EJB) only the first param (param1) is obtained fine...param2 is somehow null. Also checked the EJB code and its is not doing anything funky. It just receives the param2 as null and hence throws an exception. Thanks. Rahul. >From: Wei Hsu <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> >Subject: RE: Exposing an EJB as a doc-literal web service >Date: Mon, 7 Jun 2004 15:53:45 -0700 > >Actually, the build-in Axis EJB Provider can expose the EJB as a >doc-literal >web service. In the simplest case, all you have to do is change one line >in >your deploy.wsdd: > >From > ><service name="MyService" provider="java:EJB"> > >to > ><service name="MyService" provider="java:EJB" style="wrapped" >use="literal"> > >If you want to use straight up doc-lit and not wrapped style, just set >style="document" instead. > >-Wei > >-----Original Message----- >From: Rahul Jain [mailto:[EMAIL PROTECTED] >Sent: Monday, June 07, 2004 10:12 AM >To: [EMAIL PROTECTED] >Subject: Exposing an EJB as a doc-literal web service > >Hi, > >Can somebody plz gudie me how I would expose an EJB as a doc-literal web >service? The build-in Axis EJB Provider exposes it as a RPC service only. > >Thanks. > >Rahul. > >_________________________________________________________________ >Looking to buy a house? Get informed with the Home Buying Guide from MSN >House & Home. http://coldwellbanker.msn.com/ _________________________________________________________________ Getting married? Find great tips, tools and the latest trends at MSN Life Events. http://lifeevents.msn.com/category.aspx?cid=married