Re: [Soaplab-users] Soaplab2, WSDLs and third-party clients
Brought to you by:
marsenger
From: Andrew C. <cl...@bi...> - 2008-06-06 14:23:02
|
On Friday 06 June 2008 15:04, Mahmut Uludag wrote: > > not sure I understood you correctly but if you are looking for the > replacement url in the WSDL file of the Analysis service it is > "http://localhost:8080/soaplab2/services" in my dynamically generated > WSDL file (which I can access using the following url of my local > server) > > http://localhost:8080/soaplab2/services?wsdl Okay -- I didn't realise you could access the WSDL dynamically like that, thanks. But I'm still not clear about how to access *specific* services (e.g. helloworld) via that generic interface definition. If I load up that WSDL in SoapUI, and create a new 'describe' request for example, there's no parameter into which I can put the name of the service I want to describe -- so how does Soaplab know *which* service I want to get the description for? (Or run any other method on...) And if I run 'describe' without any parameters, I still get the same error message as when I loaded the WSDL file locally: <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <S:Fault xmlns:ns3="http://www.w3.org/2003/05/soap-envelope"> <faultcode>S:Server</faultcode> <faultstring>Unknown service 'services'</faultstring> <detail> <ns2:SoaplabException xmlns:ns2="http://org.soaplab.2" xmlns:ns3="http://services.soaplab.org/"> <message>Unknown service 'services'</message> </ns2:SoaplabException> <ns2:exception class="org.soaplab.share.SoaplabException" note="To disable this feature, set com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace system property to false" xmlns:ns2="http://jax-ws.dev.java.net/"> <message>Unknown service 'services'</message> <ns2:stackTrace> <ns2:frame class="org.soaplab.services.metadata.MetadataAccessorXML" file="MetadataAccessorXML.java" line="118" method="<init>"/> <!-- blah blah blah --> <ns2:frame class="java.lang.Thread" file="Thread.java" line="619" method="run"/> </ns2:stackTrace> </ns2:exception> </detail> </S:Fault> </S:Body> </S:Envelope> Just to experiment, I tried changing the WSDL location to: http://localhost:8080/soaplab2/services/helloworld?wsdl and this did indeed give me a valid WSDL. However, calling 'describe' still resulted in the same exception (whether I changed the endpoint to services/helloworld or kept it as just services). Forgive me if I've missed something obvious -- I'm new to webservices in Java, having only done them in C# and (to a lesser extent) Perl before... Thanks for your help, Andrew. |