try
QName servQN = QName("http://www.xmethods.net/sd/BabelFishService.wsdl",
"BabelFishService")
TIP:
When in doubt, run wsdl2java on the wsdl and see the generated code.
Thanks,
dims
--- Mark Timmings <[EMAIL PROTECTED]> wrote:
> Sorry, I'm a little new to Apache Axis, although have previously worked with
> SOAP using the MS toolkit.
>
> I've been using Axis fine when using it in the following manner (I took the
> info for the paremeters from XMethods view RPC profile:
>
> call.setTargetEndpointAddress(new
> java.net.URL("http://services.xmethods.net:80/perl/soaplite.cgi"));
> call.setOperationName(new QName("urn:xmethodsBabelFish", "BabelFish"));
> String msg = (String) call.invoke(new Object[]{new String("en_fr"), new
> String("Hello")});
> System.out.println(msg);
>
> However, I wanted to try and invoke the method by loading the WSDL file
> instead. I tried the following:
>
> QName servQN = new QName("urn:xmethodsBabelFish", "BabelFishService");
> QName portQN = new QName("urn:xmethodsBabelFish", "BabelFishPort");
> java.net.URL URL = new
> java.net.URL("http://www.xmethods.net/sd/2001/BabelFishService.wsdl");
>
> Service service = new Service(URL, servQN);
> Call call = (Call) service.createCall(portQN, "BabelFish");
> String msg = (String) call.invoke(new Object[]{new String("en_fr"), new
> String("Hello")});
> System.out.println(msg);
>
> This fails every time with the following messages:
>
> javax.xml.rpc.ServiceException: Error processing WSDL document:
> javax.xml.rpc.ServiceException: Error processing WSDL document:
> javax.xml.rpc.ServiceException: Cannot find service:
> {urn:xmethodsBabelFish}BabelFishService
>
> Am I doing this wrong (it looks like the GetQuote example client as far as I
> can tell), but just fails to work.
>
> Thanks
> Mark
>
=====
Davanum Srinivas - http://xml.apache.org/~dims/
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com