If you have deployed the same service code in Axis that you were using in Apache SOAP, then the client should need a URL change, and if you have changed the URI for the service, you would have to change that in the client as well.
On 2 Jul 2003 at 9:45, Praveen Peddi wrote: > Hi Scott, > Thanks for the response. I am happy to know that I don't have to change my > clients. But is there any sample code that tells me how to call an axis > service from a apache soap client. > > If my Axis service is described as follows: > <deployment name="CMISOAPServices" xmlns="http://xml.apache.org/axis/wsdd/" > xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> > <service name="urn:CMISOAPAuthenticationService" provider="java:RPC"> > <parameter name="className" > value="com.contextmedia.ip.session.soap.CMISOAPAuthenticationService" /> > <parameter name="allowedMethods" value="login logout" /> > <requestFlow type="checks"/> > </service> > </deployment> > > How do I change my current apache client. > Right now my apache client looks something like this: (the communicates to > apache soap service) > > url = new URL(http://localhost:7001/soap/servlet/rpcrouter); > Call call = Simplex.getCallObject(); > call.setTargetObjectURI("urn:CMISOAPAuthenticationService"); > call.setMethodName("login"); > > Vector params = new Vector(); > params.addElement(new Parameter("userName", > userField.getText().getClass(), > new String(userField.getText()), null)); > > params.addElement(new Parameter("password", > passField.getText().getClass(), > new String(passField.getText()), null)); > > call.setParams(params); > Response resp; > try { > resp = call.invoke(url, ""); > System.out.println("Response is: " + resp); > } > catch (SOAPException e) { > System.err.println("Caught SOAPException (" + e.getFaultCode() + > "): " + e.getMessage()); > return -1; > } > > Is it just changing the url and or something else? > > Praveen > > ----- Original Message ----- > From: "Scott Nichol" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, July 02, 2003 9:29 AM > Subject: Re: Communication between axis and Apache soap > > > > Yes, you can migrate your services to Axis now and keep your clients > > in Apache SOAP. Of course, when you migrate the services, be sure to > > keep them rpc/encoded and don't use features of Axis that are not > > supported by Apache SOAP. > > > > On 1 Jul 2003 at 12:26, Praveen Peddi wrote: > > > > > My server and client are right now in apache. We are planning to migrate > to apche axis. Changing the server is easy but there are multiuple client > and due to the time constraints we can't migrate to apache axis on the > client side. > > > > > > My question is, can I keep my client as it is (in Apache SOAP) and just > change the server to migrate to axis? > > > > > > If so, does anyone has sample code in apache soap that communicates with > axis services. > > > > > > Praveen > > > > > > Scott Nichol > > > > Do not reply directly to this e-mail address, > > as it is filtered to only receive e-mail from > > specific mailing lists. > > > > > > > > > > Scott Nichol Do not reply directly to this e-mail address, as it is filtered to only receive e-mail from specific mailing lists.